ERC-721
Overview
Max Total Supply
24 PRS3
Holders
23
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PRS3Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x158A8101...33c94A2a3 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PeachRoyalNFTV2
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-24 */ // Sources flattened with hardhat v2.10.1 https://hardhat.org // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (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 @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (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 @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (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); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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 virtual { 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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/utils/structs/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ 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; /// @solidity memory-safe-assembly 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; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (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 virtual 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 virtual 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 @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/interfaces/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File @openzeppelin/contracts/token/common/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File erc721a/contracts/[email protected] // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * 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, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File erc721a/contracts/[email protected] // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File operator-filter-registry/src/[email protected] pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File operator-filter-registry/src/lib/[email protected] pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File operator-filter-registry/src/[email protected] pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File operator-filter-registry/src/[email protected] pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // File contracts/Royal/PeachRoyalNFTV2.sol // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; /** * * @title Peach Farmer Royal NFTs Contract * @notice This contract is used for the Royal NFTs of Peach Farmer. Learn more on https://www.peachfarmer.com/. */ contract PeachRoyalNFTV2 is ERC721A, Ownable, AccessControlEnumerable, ERC2981, DefaultOperatorFilterer { //Total Max supply. Will not be totally minted during the first season. Reserve for later giveaways. uint256 public constant MAX_SUPPLY = 100; //General admin role bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); //Minter role, only allowed to mint bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); //Base URI of NFTs string public baseURI; constructor( string memory name, string memory symbol ) ERC721A(name, symbol) { _setRoleAdmin(MINTER_ROLE, ADMIN_ROLE); //Admin role manages Minter role _grantRole(ADMIN_ROLE, msg.sender); //msg.sender is granted Admin role. Role might be passed off to a more secure address. _safeMint(msg.sender, 1); //Needed to configure OpenSea. Will be sent to user that won a Royal NFT _setDefaultRoyalty(msg.sender, 750); //Default royalty } //Restrict function to admin role modifier onlyAdmin() { require( hasRole(ADMIN_ROLE, msg.sender), "You must be an Admin to perform this action" ); _; } //Restrict function to minter role modifier onlyMinter() { require( hasRole(MINTER_ROLE, msg.sender), "You must be a Minter to perform this action" ); _; } /** * @dev Overrides the default _baseURI function to use this contract's baseURI string. */ function _baseURI() internal view override returns (string memory) { return baseURI; } /** * @dev Allows to change the baseURI. Used in case of an artwork update. * @param _newBaseURI The new base URI */ function setBaseURI(string memory _newBaseURI) public onlyAdmin { baseURI = _newBaseURI; } /** * @dev Mints to the `to` address `amount` NFTs. May be used either manually for airdropping or by another contract. * @param to the address that the tokens will be minted to * @param amount Quantity to mint */ function mintTo(address to, uint256 amount) public onlyMinter { require(totalSupply() + amount <= MAX_SUPPLY, "Mint too large"); _safeMint(to, amount); } /** * @dev Mints multiple NFTs at the same time. Similar to mintTo but batched version. * @param addresses Array of recipients * @param amounts Quantity to mint for each recipient */ function airdrop( address[] calldata addresses, uint256[] calldata amounts ) public onlyMinter { require(addresses.length == amounts.length, "Length mismatch"); uint256 totalAmount = 0; for (uint256 i = 0; i < amounts.length; i++) { totalAmount += amounts[i]; } require(totalSupply() + totalAmount <= MAX_SUPPLY, "Mint too large"); for (uint256 i = 0; i < amounts.length; i++) { _safeMint(addresses[i], amounts[i]); } } /** * @dev Change the default royalties for the collection. * @param _receiver Address that will receive the royalties * @param _feeBasisPoint Points of royalties */ function setRoyalties( address _receiver, uint96 _feeBasisPoint ) public onlyOwner { require(_feeBasisPoint > 0, "Royalties can't be set to 0%"); require(_feeBasisPoint < 10000, "Royalties can't be set to 0%"); require(_receiver != address(0), "Royalties can't go to zero address"); _setDefaultRoyalty(_receiver, _feeBasisPoint); } /** * @dev Transfer Admin role. We don't allow the use of the zero address to avoid input errors. * @param _to the address that will be the new Admin */ function transferAdmin(address _to) external onlyAdmin { require(_to != address(0), "Can't transfer to 0 address"); _revokeRole(ADMIN_ROLE, msg.sender); _grantRole(ADMIN_ROLE, _to); } /** * @dev Indicates that this contract supports both ERC721Metadata, and ERC2981 interfaces */ function supportsInterface( bytes4 interfaceId ) public view override(ERC721A, ERC2981, AccessControlEnumerable) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /** * @notice This section is set up in accordance to the OpenSea OperatorFilterer documentation, in order to enforce creators royalties. * We use the default subscription. */ function setApprovalForAll( address operator, bool approved ) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeBasisPoint","type":"uint96"}],"name":"setRoyalties","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":"_to","type":"address"}],"name":"transferAdmin","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200389438038062003894833981016040819052620000349162000875565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001838360026200005b83826200096d565b5060036200006a82826200096d565b505060008055506200007c336200023d565b6daaeb6d7670e522a718067333cd4e3b15620001c15780156200010f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000f057600080fd5b505af115801562000105573d6000803e3d6000fd5b50505050620001c1565b6001600160a01b03821615620001605760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000d5565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001a757600080fd5b505af1158015620001bc573d6000803e3d6000fd5b505050505b50620001ff90507f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6600080516020620038748339815191526200028f565b6200021a6000805160206200387483398151915233620002da565b620002273360016200031d565b62000235336102ee62000343565b505062000ac2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082815260096020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620002f182826200044860201b620012151760201c565b6000828152600a6020908152604090912062000318918390620012b7620004ec821b17901c565b505050565b6200033f8282604051806020016040528060008152506200050c60201b60201c565b5050565b6127106001600160601b0382161115620003b75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200040f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620003ae565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166200033f5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004a83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000503836001600160a01b03841662000582565b90505b92915050565b620005188383620005d4565b6001600160a01b0383163b1562000318576000548281035b60018101906200054690600090879086620006b4565b62000564576040516368d2bf6b60e11b815260040160405180910390fd5b818110620005305781600054146200057b57600080fd5b5050505050565b6000818152600183016020526040812054620005cb5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000506565b50600062000506565b6000805490829003620005fa5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620038548339815191528180a4600183015b81811462000689578083600060008051602062003854833981519152600080a460010162000660565b5081600003620006ab57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620006eb90339089908890889060040162000a39565b6020604051808303816000875af192505050801562000729575060408051601f3d908101601f19168201909252620007269181019062000a8f565b60015b6200078b573d8080156200075a576040519150601f19603f3d011682016040523d82523d6000602084013e6200075f565b606091505b50805160000362000783576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620007db578181015183820152602001620007c1565b50506000910152565b600082601f830112620007f657600080fd5b81516001600160401b0380821115620008135762000813620007a8565b604051601f8301601f19908116603f011681019082821181831017156200083e576200083e620007a8565b816040528381528660208588010111156200085857600080fd5b6200086b846020830160208901620007be565b9695505050505050565b600080604083850312156200088957600080fd5b82516001600160401b0380821115620008a157600080fd5b620008af86838701620007e4565b93506020850151915080821115620008c657600080fd5b50620008d585828601620007e4565b9150509250929050565b600181811c90821680620008f457607f821691505b6020821081036200091557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031857600081815260208120601f850160051c81016020861015620009445750805b601f850160051c820191505b81811015620009655782815560010162000950565b505050505050565b81516001600160401b03811115620009895762000989620007a8565b620009a1816200099a8454620008df565b846200091b565b602080601f831160018114620009d95760008415620009c05750858301515b600019600386901b1c1916600185901b17855562000965565b600085815260208120601f198616915b8281101562000a0a57888601518255948401946001909101908401620009e9565b508582101562000a295787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b03808716835280861660208401525083604083015260806060830152825180608084015262000a788160a0850160208701620007be565b601f01601f19169190910160a00195945050505050565b60006020828403121562000aa257600080fd5b81516001600160e01b03198116811462000abb57600080fd5b9392505050565b612d828062000ad26000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c806370a0823111610145578063a22cb465116100bd578063ca15c8731161008c578063d547741f11610071578063d547741f1461054e578063e985e9c514610561578063f2fde38b1461059d57600080fd5b8063ca15c87314610514578063d53913931461052757600080fd5b8063a22cb465146104c8578063b88d4fde146104db578063c21b471b146104ee578063c87b56dd1461050157600080fd5b80638da5cb5b1161011457806391d14854116100f957806391d148541461047f57806395d89b41146104b8578063a217fddf146104c057600080fd5b80638da5cb5b1461045b5780639010d07c1461046c57600080fd5b806370a0823114610406578063715018a61461041957806375829def1461042157806375b238fc1461043457600080fd5b806332cb6b0c116101d8578063449a52f8116101a75780636352211e1161018c5780636352211e146103d857806367243482146103eb5780636c0360eb146103fe57600080fd5b8063449a52f8146103b257806355f804b3146103c557600080fd5b806332cb6b0c1461036f57806336568abe1461037757806341f434341461038a57806342842e0e1461039f57600080fd5b806318160ddd1161022f578063248a9ca311610214578063248a9ca3146103075780632a55205a1461032a5780632f2ff15d1461035c57600080fd5b806318160ddd146102de57806323b872dd146102f457600080fd5b806301ffc9a71461026157806306fdde0314610289578063081812fc1461029e578063095ea7b3146102c9575b600080fd5b61027461026f36600461254c565b6105b0565b60405190151581526020015b60405180910390f35b6102916105d0565b60405161028091906125b9565b6102b16102ac3660046125cc565b610662565b6040516001600160a01b039091168152602001610280565b6102dc6102d7366004612601565b6106bf565b005b600154600054035b604051908152602001610280565b6102dc61030236600461262b565b6106d8565b6102e66103153660046125cc565b60009081526009602052604090206001015490565b61033d610338366004612667565b610703565b604080516001600160a01b039093168352602083019190915201610280565b6102dc61036a366004612689565b6107e2565b6102e6606481565b6102dc610385366004612689565b610807565b6102b16daaeb6d7670e522a718067333cd4e81565b6102dc6103ad36600461262b565b610898565b6102dc6103c0366004612601565b6108bd565b6102dc6103d336600461275a565b6109d3565b6102b16103e63660046125cc565b610a83565b6102dc6103f93660046127e8565b610a8e565b610291610c9b565b6102e6610414366004612854565b610d29565b6102dc610d91565b6102dc61042f366004612854565b610da5565b6102e67fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6008546001600160a01b03166102b1565b6102b161047a366004612667565b610ef6565b61027461048d366004612689565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610291610f15565b6102e6600081565b6102dc6104d636600461287d565b610f24565b6102dc6104e93660046128b4565b610f38565b6102dc6104fc366004612930565b610f65565b61029161050f3660046125cc565b6110b0565b6102e66105223660046125cc565b61114c565b6102e67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102dc61055c366004612689565b611163565b61027461056f36600461296d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102dc6105ab366004612854565b611188565b60006105bb826112cc565b806105ca57506105ca826113ad565b92915050565b6060600280546105df90612997565b80601f016020809104026020016040519081016040528092919081815260200182805461060b90612997565b80156106585780601f1061062d57610100808354040283529160200191610658565b820191906000526020600020905b81548152906001019060200180831161063b57829003601f168201915b5050505050905090565b600061066d82611403565b6106a3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816106c981611443565b6106d3838361152e565b505050565b826001600160a01b03811633146106f2576106f233611443565b6106fd8484846115ff565b50505050565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916107a4575060408051808201909152600b546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b6020810151600090612710906107c8906bffffffffffffffffffffffff1687612a19565b6107d29190612a30565b91519350909150505b9250929050565b6000828152600960205260409020600101546107fd81611812565b6106d3838361181c565b6001600160a01b038116331461088a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610894828261183e565b5050565b826001600160a01b03811633146108b2576108b233611443565b6106fd848484611860565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff166109615760405162461bcd60e51b815260206004820152602b60248201527f596f75206d7573742062652061204d696e74657220746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b6064816109716001546000540390565b61097b9190612a6b565b11156109c95760405162461bcd60e51b815260206004820152600e60248201527f4d696e7420746f6f206c617267650000000000000000000000000000000000006044820152606401610881565b610894828261187b565b3360009081527f5e421a728e346ccaf4d82870ec53d59217a30d3483c6688054a2a67760f2138c602052604090205460ff16610a775760405162461bcd60e51b815260206004820152602b60248201527f596f75206d75737420626520616e2041646d696e20746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b600d6108948282612ac4565b60006105ca82611895565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff16610b325760405162461bcd60e51b815260206004820152602b60248201527f596f75206d7573742062652061204d696e74657220746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b828114610b815760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610881565b6000805b82811015610bc557838382818110610b9f57610b9f612b84565b9050602002013582610bb19190612a6b565b915080610bbd81612bb3565b915050610b85565b50606481610bd66001546000540390565b610be09190612a6b565b1115610c2e5760405162461bcd60e51b815260206004820152600e60248201527f4d696e7420746f6f206c617267650000000000000000000000000000000000006044820152606401610881565b60005b82811015610c9357610c81868683818110610c4e57610c4e612b84565b9050602002016020810190610c639190612854565b858584818110610c7557610c75612b84565b9050602002013561187b565b80610c8b81612bb3565b915050610c31565b505050505050565b600d8054610ca890612997565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd490612997565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b505050505081565b60006001600160a01b038216610d6b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d9961192e565b610da36000611988565b565b3360009081527f5e421a728e346ccaf4d82870ec53d59217a30d3483c6688054a2a67760f2138c602052604090205460ff16610e495760405162461bcd60e51b815260206004820152602b60248201527f596f75206d75737420626520616e2041646d696e20746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b6001600160a01b038116610e9f5760405162461bcd60e51b815260206004820152601b60248201527f43616e2774207472616e7366657220746f2030206164647265737300000000006044820152606401610881565b610ec97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361183e565b610ef37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758261181c565b50565b6000828152600a60205260408120610f0e90836119f2565b9392505050565b6060600380546105df90612997565b81610f2e81611443565b6106d383836119fe565b836001600160a01b0381163314610f5257610f5233611443565b610f5e85858585611aac565b5050505050565b610f6d61192e565b6000816bffffffffffffffffffffffff1611610fcb5760405162461bcd60e51b815260206004820152601c60248201527f526f79616c746965732063616e27742062652073657420746f203025000000006044820152606401610881565b612710816bffffffffffffffffffffffff161061102a5760405162461bcd60e51b815260206004820152601c60248201527f526f79616c746965732063616e27742062652073657420746f203025000000006044820152606401610881565b6001600160a01b0382166110a65760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965732063616e277420676f20746f207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610881565b6108948282611b09565b60606110bb82611403565b6110f1576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006110fb611c34565b9050805160000361111b5760405180602001604052806000815250610f0e565b8061112584611c43565b604051602001611136929190612bcd565b6040516020818303038152906040529392505050565b6000818152600a602052604081206105ca90611c7b565b60008281526009602052604090206001015461117e81611812565b6106d3838361183e565b61119061192e565b6001600160a01b03811661120c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610881565b610ef381611988565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166108945760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556112733390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610f0e836001600160a01b038416611c85565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061135f57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806105ca5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806105ca57506105ca82611cd4565b60008054821080156105ca5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15610ef3576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612bfc565b610ef3576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610881565b600061153982610a83565b9050336001600160a01b0382161461158b57611555813361056f565b61158b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061160a82611895565b9050836001600160a01b0316816001600160a01b031614611657576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176116bd57611687863361056f565b6116bd576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166116fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561170857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000841690036117cc576001840160008181526004602052604081205490036117ca5760005481146117ca5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610c93565b610ef38133611d2a565b6118268282611215565b6000828152600a602052604090206106d390826112b7565b6118488282611daa565b6000828152600a602052604090206106d39082611e2d565b6106d383838360405180602001604052806000815250610f38565b610894828260405180602001604052806000815250611e42565b6000816000548110156118fc57600081815260046020526040812054907c0100000000000000000000000000000000000000000000000000000000821690036118fa575b80600003610f0e5750600019016000818152600460205260409020546118d9565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546001600160a01b03163314610da35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610881565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f0e8383611ec1565b336001600160a01b03831603611a40576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ab78484846106d8565b6001600160a01b0383163b156106fd57611ad384848484611eeb565b6106fd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127106bffffffffffffffffffffffff82161115611b8f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610881565b6001600160a01b038216611be55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610881565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600b55565b6060600d80546105df90612997565b604080516080019081905280825b600183039250600a81066030018353600a900480611c515750819003601f19909101908152919050565b60006105ca825490565b6000818152600183016020526040812054611ccc575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105ca565b5060006105ca565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806105ca57506105ca8261203a565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661089457611d68816001600160a01b031660146120d1565b611d738360206120d1565b604051602001611d84929190612c19565b60408051601f198184030181529082905262461bcd60e51b8252610881916004016125b9565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156108945760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f0e836001600160a01b0384166122fa565b611e4c83836123ed565b6001600160a01b0383163b156106d3576000548281035b611e766000868380600101945086611eeb565b611eac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611e63578160005414610f5e57600080fd5b6000826000018281548110611ed857611ed8612b84565b9060005260206000200154905092915050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290611f39903390899088908890600401612c9a565b6020604051808303816000875af1925050508015611f74575060408051601f3d908101601f19168201909252611f7191810190612cd6565b60015b611feb573d808015611fa2576040519150601f19603f3d011682016040523d82523d6000602084013e611fa7565b606091505b508051600003611fe3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806105ca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105ca565b606060006120e0836002612a19565b6120eb906002612a6b565b67ffffffffffffffff811115612103576121036126b5565b6040519080825280601f01601f19166020018201604052801561212d576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061216457612164612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121c7576121c7612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612203846002612a19565b61220e906001612a6b565b90505b60018111156122ab577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061224f5761224f612b84565b1a60f81b82828151811061226557612265612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936122a481612cf3565b9050612211565b508315610f0e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610881565b600081815260018301602052604081205480156123e357600061231e600183612d0a565b855490915060009061233290600190612d0a565b905081811461239757600086600001828154811061235257612352612b84565b906000526020600020015490508087600001848154811061237557612375612b84565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806123a8576123a8612d1d565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105ca565b60009150506105ca565b600080549082900361242b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146124da57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016124a2565b5081600003612515576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ef357600080fd5b60006020828403121561255e57600080fd5b8135610f0e8161251e565b60005b8381101561258457818101518382015260200161256c565b50506000910152565b600081518084526125a5816020860160208601612569565b601f01601f19169290920160200192915050565b602081526000610f0e602083018461258d565b6000602082840312156125de57600080fd5b5035919050565b80356001600160a01b03811681146125fc57600080fd5b919050565b6000806040838503121561261457600080fd5b61261d836125e5565b946020939093013593505050565b60008060006060848603121561264057600080fd5b612649846125e5565b9250612657602085016125e5565b9150604084013590509250925092565b6000806040838503121561267a57600080fd5b50508035926020909101359150565b6000806040838503121561269c57600080fd5b823591506126ac602084016125e5565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156126ff576126ff6126b5565b604051601f8501601f19908116603f01168101908282118183101715612727576127276126b5565b8160405280935085815286868601111561274057600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561276c57600080fd5b813567ffffffffffffffff81111561278357600080fd5b8201601f8101841361279457600080fd5b612032848235602084016126e4565b60008083601f8401126127b557600080fd5b50813567ffffffffffffffff8111156127cd57600080fd5b6020830191508360208260051b85010111156107db57600080fd5b600080600080604085870312156127fe57600080fd5b843567ffffffffffffffff8082111561281657600080fd5b612822888389016127a3565b9096509450602087013591508082111561283b57600080fd5b50612848878288016127a3565b95989497509550505050565b60006020828403121561286657600080fd5b610f0e826125e5565b8015158114610ef357600080fd5b6000806040838503121561289057600080fd5b612899836125e5565b915060208301356128a98161286f565b809150509250929050565b600080600080608085870312156128ca57600080fd5b6128d3856125e5565b93506128e1602086016125e5565b925060408501359150606085013567ffffffffffffffff81111561290457600080fd5b8501601f8101871361291557600080fd5b612924878235602084016126e4565b91505092959194509250565b6000806040838503121561294357600080fd5b61294c836125e5565b915060208301356bffffffffffffffffffffffff811681146128a957600080fd5b6000806040838503121561298057600080fd5b612989836125e5565b91506126ac602084016125e5565b600181811c908216806129ab57607f821691505b6020821081036129e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176105ca576105ca6129ea565b600082612a66577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808201808211156105ca576105ca6129ea565b601f8211156106d357600081815260208120601f850160051c81016020861015612aa55750805b601f850160051c820191505b81811015610c9357828155600101612ab1565b815167ffffffffffffffff811115612ade57612ade6126b5565b612af281612aec8454612997565b84612a7e565b602080601f831160018114612b275760008415612b0f5750858301515b600019600386901b1c1916600185901b178555610c93565b600085815260208120601f198616915b82811015612b5657888601518255948401946001909101908401612b37565b5085821015612b745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006000198203612bc657612bc66129ea565b5060010190565b60008351612bdf818460208801612569565b835190830190612bf3818360208801612569565b01949350505050565b600060208284031215612c0e57600080fd5b8151610f0e8161286f565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c51816017850160208801612569565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612c8e816028840160208801612569565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ccc608083018461258d565b9695505050505050565b600060208284031215612ce857600080fd5b8151610f0e8161251e565b600081612d0257612d026129ea565b506000190190565b818103818111156105ca576105ca6129ea565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220d2c8149445cb6ea5a4d9e17a46bd74117a4de6a42836fb3da6e175e700ee4d5164736f6c63430008120033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000e506561636820526f79616c20533200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045052533200000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025c5760003560e01c806370a0823111610145578063a22cb465116100bd578063ca15c8731161008c578063d547741f11610071578063d547741f1461054e578063e985e9c514610561578063f2fde38b1461059d57600080fd5b8063ca15c87314610514578063d53913931461052757600080fd5b8063a22cb465146104c8578063b88d4fde146104db578063c21b471b146104ee578063c87b56dd1461050157600080fd5b80638da5cb5b1161011457806391d14854116100f957806391d148541461047f57806395d89b41146104b8578063a217fddf146104c057600080fd5b80638da5cb5b1461045b5780639010d07c1461046c57600080fd5b806370a0823114610406578063715018a61461041957806375829def1461042157806375b238fc1461043457600080fd5b806332cb6b0c116101d8578063449a52f8116101a75780636352211e1161018c5780636352211e146103d857806367243482146103eb5780636c0360eb146103fe57600080fd5b8063449a52f8146103b257806355f804b3146103c557600080fd5b806332cb6b0c1461036f57806336568abe1461037757806341f434341461038a57806342842e0e1461039f57600080fd5b806318160ddd1161022f578063248a9ca311610214578063248a9ca3146103075780632a55205a1461032a5780632f2ff15d1461035c57600080fd5b806318160ddd146102de57806323b872dd146102f457600080fd5b806301ffc9a71461026157806306fdde0314610289578063081812fc1461029e578063095ea7b3146102c9575b600080fd5b61027461026f36600461254c565b6105b0565b60405190151581526020015b60405180910390f35b6102916105d0565b60405161028091906125b9565b6102b16102ac3660046125cc565b610662565b6040516001600160a01b039091168152602001610280565b6102dc6102d7366004612601565b6106bf565b005b600154600054035b604051908152602001610280565b6102dc61030236600461262b565b6106d8565b6102e66103153660046125cc565b60009081526009602052604090206001015490565b61033d610338366004612667565b610703565b604080516001600160a01b039093168352602083019190915201610280565b6102dc61036a366004612689565b6107e2565b6102e6606481565b6102dc610385366004612689565b610807565b6102b16daaeb6d7670e522a718067333cd4e81565b6102dc6103ad36600461262b565b610898565b6102dc6103c0366004612601565b6108bd565b6102dc6103d336600461275a565b6109d3565b6102b16103e63660046125cc565b610a83565b6102dc6103f93660046127e8565b610a8e565b610291610c9b565b6102e6610414366004612854565b610d29565b6102dc610d91565b6102dc61042f366004612854565b610da5565b6102e67fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6008546001600160a01b03166102b1565b6102b161047a366004612667565b610ef6565b61027461048d366004612689565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610291610f15565b6102e6600081565b6102dc6104d636600461287d565b610f24565b6102dc6104e93660046128b4565b610f38565b6102dc6104fc366004612930565b610f65565b61029161050f3660046125cc565b6110b0565b6102e66105223660046125cc565b61114c565b6102e67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102dc61055c366004612689565b611163565b61027461056f36600461296d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102dc6105ab366004612854565b611188565b60006105bb826112cc565b806105ca57506105ca826113ad565b92915050565b6060600280546105df90612997565b80601f016020809104026020016040519081016040528092919081815260200182805461060b90612997565b80156106585780601f1061062d57610100808354040283529160200191610658565b820191906000526020600020905b81548152906001019060200180831161063b57829003601f168201915b5050505050905090565b600061066d82611403565b6106a3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816106c981611443565b6106d3838361152e565b505050565b826001600160a01b03811633146106f2576106f233611443565b6106fd8484846115ff565b50505050565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916107a4575060408051808201909152600b546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b6020810151600090612710906107c8906bffffffffffffffffffffffff1687612a19565b6107d29190612a30565b91519350909150505b9250929050565b6000828152600960205260409020600101546107fd81611812565b6106d3838361181c565b6001600160a01b038116331461088a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610894828261183e565b5050565b826001600160a01b03811633146108b2576108b233611443565b6106fd848484611860565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff166109615760405162461bcd60e51b815260206004820152602b60248201527f596f75206d7573742062652061204d696e74657220746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b6064816109716001546000540390565b61097b9190612a6b565b11156109c95760405162461bcd60e51b815260206004820152600e60248201527f4d696e7420746f6f206c617267650000000000000000000000000000000000006044820152606401610881565b610894828261187b565b3360009081527f5e421a728e346ccaf4d82870ec53d59217a30d3483c6688054a2a67760f2138c602052604090205460ff16610a775760405162461bcd60e51b815260206004820152602b60248201527f596f75206d75737420626520616e2041646d696e20746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b600d6108948282612ac4565b60006105ca82611895565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff16610b325760405162461bcd60e51b815260206004820152602b60248201527f596f75206d7573742062652061204d696e74657220746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b828114610b815760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610881565b6000805b82811015610bc557838382818110610b9f57610b9f612b84565b9050602002013582610bb19190612a6b565b915080610bbd81612bb3565b915050610b85565b50606481610bd66001546000540390565b610be09190612a6b565b1115610c2e5760405162461bcd60e51b815260206004820152600e60248201527f4d696e7420746f6f206c617267650000000000000000000000000000000000006044820152606401610881565b60005b82811015610c9357610c81868683818110610c4e57610c4e612b84565b9050602002016020810190610c639190612854565b858584818110610c7557610c75612b84565b9050602002013561187b565b80610c8b81612bb3565b915050610c31565b505050505050565b600d8054610ca890612997565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd490612997565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b505050505081565b60006001600160a01b038216610d6b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d9961192e565b610da36000611988565b565b3360009081527f5e421a728e346ccaf4d82870ec53d59217a30d3483c6688054a2a67760f2138c602052604090205460ff16610e495760405162461bcd60e51b815260206004820152602b60248201527f596f75206d75737420626520616e2041646d696e20746f20706572666f726d2060448201527f7468697320616374696f6e0000000000000000000000000000000000000000006064820152608401610881565b6001600160a01b038116610e9f5760405162461bcd60e51b815260206004820152601b60248201527f43616e2774207472616e7366657220746f2030206164647265737300000000006044820152606401610881565b610ec97fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361183e565b610ef37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758261181c565b50565b6000828152600a60205260408120610f0e90836119f2565b9392505050565b6060600380546105df90612997565b81610f2e81611443565b6106d383836119fe565b836001600160a01b0381163314610f5257610f5233611443565b610f5e85858585611aac565b5050505050565b610f6d61192e565b6000816bffffffffffffffffffffffff1611610fcb5760405162461bcd60e51b815260206004820152601c60248201527f526f79616c746965732063616e27742062652073657420746f203025000000006044820152606401610881565b612710816bffffffffffffffffffffffff161061102a5760405162461bcd60e51b815260206004820152601c60248201527f526f79616c746965732063616e27742062652073657420746f203025000000006044820152606401610881565b6001600160a01b0382166110a65760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965732063616e277420676f20746f207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610881565b6108948282611b09565b60606110bb82611403565b6110f1576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006110fb611c34565b9050805160000361111b5760405180602001604052806000815250610f0e565b8061112584611c43565b604051602001611136929190612bcd565b6040516020818303038152906040529392505050565b6000818152600a602052604081206105ca90611c7b565b60008281526009602052604090206001015461117e81611812565b6106d3838361183e565b61119061192e565b6001600160a01b03811661120c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610881565b610ef381611988565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166108945760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556112733390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610f0e836001600160a01b038416611c85565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061135f57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806105ca5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806105ca57506105ca82611cd4565b60008054821080156105ca5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15610ef3576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ed9190612bfc565b610ef3576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610881565b600061153982610a83565b9050336001600160a01b0382161461158b57611555813361056f565b61158b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061160a82611895565b9050836001600160a01b0316816001600160a01b031614611657576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176116bd57611687863361056f565b6116bd576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166116fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561170857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000841690036117cc576001840160008181526004602052604081205490036117ca5760005481146117ca5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610c93565b610ef38133611d2a565b6118268282611215565b6000828152600a602052604090206106d390826112b7565b6118488282611daa565b6000828152600a602052604090206106d39082611e2d565b6106d383838360405180602001604052806000815250610f38565b610894828260405180602001604052806000815250611e42565b6000816000548110156118fc57600081815260046020526040812054907c0100000000000000000000000000000000000000000000000000000000821690036118fa575b80600003610f0e5750600019016000818152600460205260409020546118d9565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546001600160a01b03163314610da35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610881565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f0e8383611ec1565b336001600160a01b03831603611a40576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ab78484846106d8565b6001600160a01b0383163b156106fd57611ad384848484611eeb565b6106fd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127106bffffffffffffffffffffffff82161115611b8f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610881565b6001600160a01b038216611be55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610881565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600b55565b6060600d80546105df90612997565b604080516080019081905280825b600183039250600a81066030018353600a900480611c515750819003601f19909101908152919050565b60006105ca825490565b6000818152600183016020526040812054611ccc575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105ca565b5060006105ca565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806105ca57506105ca8261203a565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1661089457611d68816001600160a01b031660146120d1565b611d738360206120d1565b604051602001611d84929190612c19565b60408051601f198184030181529082905262461bcd60e51b8252610881916004016125b9565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16156108945760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f0e836001600160a01b0384166122fa565b611e4c83836123ed565b6001600160a01b0383163b156106d3576000548281035b611e766000868380600101945086611eeb565b611eac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611e63578160005414610f5e57600080fd5b6000826000018281548110611ed857611ed8612b84565b9060005260206000200154905092915050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290611f39903390899088908890600401612c9a565b6020604051808303816000875af1925050508015611f74575060408051601f3d908101601f19168201909252611f7191810190612cd6565b60015b611feb573d808015611fa2576040519150601f19603f3d011682016040523d82523d6000602084013e611fa7565b606091505b508051600003611fe3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806105ca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105ca565b606060006120e0836002612a19565b6120eb906002612a6b565b67ffffffffffffffff811115612103576121036126b5565b6040519080825280601f01601f19166020018201604052801561212d576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061216457612164612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121c7576121c7612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612203846002612a19565b61220e906001612a6b565b90505b60018111156122ab577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061224f5761224f612b84565b1a60f81b82828151811061226557612265612b84565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936122a481612cf3565b9050612211565b508315610f0e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610881565b600081815260018301602052604081205480156123e357600061231e600183612d0a565b855490915060009061233290600190612d0a565b905081811461239757600086600001828154811061235257612352612b84565b906000526020600020015490508087600001848154811061237557612375612b84565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806123a8576123a8612d1d565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105ca565b60009150506105ca565b600080549082900361242b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146124da57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016124a2565b5081600003612515576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ef357600080fd5b60006020828403121561255e57600080fd5b8135610f0e8161251e565b60005b8381101561258457818101518382015260200161256c565b50506000910152565b600081518084526125a5816020860160208601612569565b601f01601f19169290920160200192915050565b602081526000610f0e602083018461258d565b6000602082840312156125de57600080fd5b5035919050565b80356001600160a01b03811681146125fc57600080fd5b919050565b6000806040838503121561261457600080fd5b61261d836125e5565b946020939093013593505050565b60008060006060848603121561264057600080fd5b612649846125e5565b9250612657602085016125e5565b9150604084013590509250925092565b6000806040838503121561267a57600080fd5b50508035926020909101359150565b6000806040838503121561269c57600080fd5b823591506126ac602084016125e5565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156126ff576126ff6126b5565b604051601f8501601f19908116603f01168101908282118183101715612727576127276126b5565b8160405280935085815286868601111561274057600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561276c57600080fd5b813567ffffffffffffffff81111561278357600080fd5b8201601f8101841361279457600080fd5b612032848235602084016126e4565b60008083601f8401126127b557600080fd5b50813567ffffffffffffffff8111156127cd57600080fd5b6020830191508360208260051b85010111156107db57600080fd5b600080600080604085870312156127fe57600080fd5b843567ffffffffffffffff8082111561281657600080fd5b612822888389016127a3565b9096509450602087013591508082111561283b57600080fd5b50612848878288016127a3565b95989497509550505050565b60006020828403121561286657600080fd5b610f0e826125e5565b8015158114610ef357600080fd5b6000806040838503121561289057600080fd5b612899836125e5565b915060208301356128a98161286f565b809150509250929050565b600080600080608085870312156128ca57600080fd5b6128d3856125e5565b93506128e1602086016125e5565b925060408501359150606085013567ffffffffffffffff81111561290457600080fd5b8501601f8101871361291557600080fd5b612924878235602084016126e4565b91505092959194509250565b6000806040838503121561294357600080fd5b61294c836125e5565b915060208301356bffffffffffffffffffffffff811681146128a957600080fd5b6000806040838503121561298057600080fd5b612989836125e5565b91506126ac602084016125e5565b600181811c908216806129ab57607f821691505b6020821081036129e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176105ca576105ca6129ea565b600082612a66577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808201808211156105ca576105ca6129ea565b601f8211156106d357600081815260208120601f850160051c81016020861015612aa55750805b601f850160051c820191505b81811015610c9357828155600101612ab1565b815167ffffffffffffffff811115612ade57612ade6126b5565b612af281612aec8454612997565b84612a7e565b602080601f831160018114612b275760008415612b0f5750858301515b600019600386901b1c1916600185901b178555610c93565b600085815260208120601f198616915b82811015612b5657888601518255948401946001909101908401612b37565b5085821015612b745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006000198203612bc657612bc66129ea565b5060010190565b60008351612bdf818460208801612569565b835190830190612bf3818360208801612569565b01949350505050565b600060208284031215612c0e57600080fd5b8151610f0e8161286f565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c51816017850160208801612569565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612c8e816028840160208801612569565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ccc608083018461258d565b9695505050505050565b600060208284031215612ce857600080fd5b8151610f0e8161251e565b600081612d0257612d026129ea565b506000190190565b818103818111156105ca576105ca6129ea565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220d2c8149445cb6ea5a4d9e17a46bd74117a4de6a42836fb3da6e175e700ee4d5164736f6c63430008120033
Deployed Bytecode Sourcemap
103546:5861:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107826:315;;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;107826:315:0;;;;;;;;60640:100;;;:::i;:::-;;;;;;;:::i;67123:218::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;67123:218:0;1638:226:1;108557:182:0;;;;;;:::i;:::-;;:::i;:::-;;56391:323;56665:12;;56452:7;56649:13;:28;56391:323;;;2475:25:1;;;2463:2;2448:18;56391:323:0;2329:177:1;108747:197:0;;;;;;:::i;:::-;;:::i;14173:131::-;;;;;;:::i;:::-;14247:7;14274:12;;;:6;:12;;;;;:22;;;;14173:131;38792:442;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3656:55:1;;;3638:74;;3743:2;3728:18;;3721:34;;;;3611:18;38792:442:0;3464:297:1;14614:147:0;;;;;;:::i;:::-;;:::i;103789:40::-;;103826:3;103789:40;;15758:218;;;;;;:::i;:::-;;:::i;99888:143::-;;98682:42;99888:143;;108952:205;;;;;;:::i;:::-;;:::i;105762:178::-;;;;;;:::i;:::-;;:::i;105407:104::-;;;;;;:::i;:::-;;:::i;62033:152::-;;;;;;:::i;:::-;;:::i;106160:544::-;;;;;;:::i;:::-;;:::i;104067:21::-;;;:::i;57575:233::-;;;;;;:::i;:::-;;:::i;35409:103::-;;;:::i;107488:217::-;;;;;;:::i;:::-;;:::i;103864:60::-;;103901:23;103864:60;;34761:87;34834:6;;-1:-1:-1;;;;;34834:6:0;34761:87;;32514:153;;;;;;:::i;:::-;;:::i;12633:147::-;;;;;;:::i;:::-;12719:4;12743:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;12743:29:0;;;;;;;;;;;;;;;12633:147;60816:104;;;:::i;11738:49::-;;11783:4;11738:49;;108348:201;;;;;;:::i;:::-;;:::i;109165:239::-;;;;;;:::i;:::-;;:::i;106907:397::-;;;;;;:::i;:::-;;:::i;61026:318::-;;;;;;:::i;:::-;;:::i;32841:142::-;;;;;;:::i;:::-;;:::i;103972:62::-;;104010:24;103972:62;;15054:149;;;;;;:::i;:::-;;:::i;68146:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;68267:25:0;;;68243:4;68267:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;68146:164;35667:201;;;;;;:::i;:::-;;:::i;107826:315::-;107998:4;108040:38;108066:11;108040:25;:38::i;:::-;:93;;;;108095:38;108121:11;108095:25;:38::i;:::-;108020:113;107826:315;-1:-1:-1;;107826:315:0:o;60640:100::-;60694:13;60727:5;60720:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60640:100;:::o;67123:218::-;67199:7;67224:16;67232:7;67224;:16::i;:::-;67219:64;;67249:34;;;;;;;;;;;;;;67219:64;-1:-1:-1;67303:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;67303:30:0;;67123:218::o;108557:182::-;108678:8;101670:30;101691:8;101670:20;:30::i;:::-;108699:32:::1;108713:8;108723:7;108699:13;:32::i;:::-;108557:182:::0;;;:::o;108747:197::-;108882:4;-1:-1:-1;;;;;101396:18:0;;101404:10;101396:18;101392:83;;101431:32;101452:10;101431:20;:32::i;:::-;108899:37:::1;108918:4;108924:2;108928:7;108899:18;:37::i;:::-;108747:197:::0;;;;:::o;38792:442::-;38889:7;38947:27;;;:17;:27;;;;;;;;38918:56;;;;;;;;;-1:-1:-1;;;;;38918:56:0;;;;;;;;;;;;;;;;;;38889:7;;38987:92;;-1:-1:-1;39038:29:0;;;;;;;;;39048:19;39038:29;-1:-1:-1;;;;;39038:29:0;;;;;;;;;;;;;38987:92;39129:23;;;;39091:21;;39600:5;;39116:36;;39115:58;39116:36;:10;:36;:::i;:::-;39115:58;;;;:::i;:::-;39194:16;;;-1:-1:-1;39091:82:0;;-1:-1:-1;;38792:442:0;;;;;;:::o;14614:147::-;14247:7;14274:12;;;:6;:12;;;;;:22;;;12229:16;12240:4;12229:10;:16::i;:::-;14728:25:::1;14739:4;14745:7;14728:10;:25::i;15758:218::-:0;-1:-1:-1;;;;;15854:23:0;;5155:10;15854:23;15846:83;;;;-1:-1:-1;;;15846:83:0;;10259:2:1;15846:83:0;;;10241:21:1;10298:2;10278:18;;;10271:30;10337:34;10317:18;;;10310:62;10408:17;10388:18;;;10381:45;10443:19;;15846:83:0;;;;;;;;;15942:26;15954:4;15960:7;15942:11;:26::i;:::-;15758:218;;:::o;108952:205::-;109091:4;-1:-1:-1;;;;;101396:18:0;;101404:10;101396:18;101392:83;;101431:32;101452:10;101431:20;:32::i;:::-;109108:41:::1;109131:4;109137:2;109141:7;109108:22;:41::i;105762:178::-:0;104939:10;12719:4;12743:29;;;:12;;:29;:12;:29;;;;;104896:125;;;;-1:-1:-1;;;104896:125:0;;10675:2:1;104896:125:0;;;10657:21:1;10714:2;10694:18;;;10687:30;10753:34;10733:18;;;10726:62;10824:13;10804:18;;;10797:41;10855:19;;104896:125:0;10473:407:1;104896:125:0;103826:3:::1;105859:6;105843:13;56665:12:::0;;56452:7;56649:13;:28;;56391:323;105843:13:::1;:22;;;;:::i;:::-;:36;;105835:63;;;::::0;-1:-1:-1;;;105835:63:0;;11217:2:1;105835:63:0::1;::::0;::::1;11199:21:1::0;11256:2;11236:18;;;11229:30;11295:16;11275:18;;;11268:44;11329:18;;105835:63:0::1;11015:338:1::0;105835:63:0::1;105911:21;105921:2;105925:6;105911:9;:21::i;105407:104::-:0;104713:10;12719:4;12743:29;;;:12;;:29;:12;:29;;;;;104671:124;;;;-1:-1:-1;;;104671:124:0;;11560:2:1;104671:124:0;;;11542:21:1;11599:2;11579:18;;;11572:30;11638:34;11618:18;;;11611:62;11709:13;11689:18;;;11682:41;11740:19;;104671:124:0;11358:407:1;104671:124:0;105482:7:::1;:21;105492:11:::0;105482:7;:21:::1;:::i;62033:152::-:0;62105:7;62148:27;62167:7;62148:18;:27::i;106160:544::-;104939:10;12719:4;12743:29;;;:12;;:29;:12;:29;;;;;104896:125;;;;-1:-1:-1;;;104896:125:0;;10675:2:1;104896:125:0;;;10657:21:1;10714:2;10694:18;;;10687:30;10753:34;10733:18;;;10726:62;10824:13;10804:18;;;10797:41;10855:19;;104896:125:0;10473:407:1;104896:125:0;106297:34;;::::1;106289:62;;;::::0;-1:-1:-1;;;106289:62:0;;14355:2:1;106289:62:0::1;::::0;::::1;14337:21:1::0;14394:2;14374:18;;;14367:30;14433:17;14413:18;;;14406:45;14468:18;;106289:62:0::1;14153:339:1::0;106289:62:0::1;106364:19;106405:9:::0;106400:97:::1;106420:18:::0;;::::1;106400:97;;;106475:7;;106483:1;106475:10;;;;;;;:::i;:::-;;;;;;;106460:25;;;;;:::i;:::-;::::0;-1:-1:-1;106440:3:0;::::1;::::0;::::1;:::i;:::-;;;;106400:97;;;;103826:3;106533:11;106517:13;56665:12:::0;;56452:7;56649:13;:28;;56391:323;106517:13:::1;:27;;;;:::i;:::-;:41;;106509:68;;;::::0;-1:-1:-1;;;106509:68:0;;11217:2:1;106509:68:0::1;::::0;::::1;11199:21:1::0;11256:2;11236:18;;;11229:30;11295:16;11275:18;;;11268:44;11329:18;;106509:68:0::1;11015:338:1::0;106509:68:0::1;106595:9;106590:107;106610:18:::0;;::::1;106590:107;;;106650:35;106660:9;;106670:1;106660:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;106674:7;;106682:1;106674:10;;;;;;;:::i;:::-;;;;;;;106650:9;:35::i;:::-;106630:3:::0;::::1;::::0;::::1;:::i;:::-;;;;106590:107;;;;106278:426;106160:544:::0;;;;:::o;104067:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;57575:233::-;57647:7;-1:-1:-1;;;;;57671:19:0;;57667:60;;57699:28;;;;;;;;;;;;;;57667:60;-1:-1:-1;;;;;;57745:25:0;;;;;:18;:25;;;;;;51734:13;57745:55;;57575:233::o;35409:103::-;34647:13;:11;:13::i;:::-;35474:30:::1;35501:1;35474:18;:30::i;:::-;35409:103::o:0;107488:217::-;104713:10;12719:4;12743:29;;;:12;;:29;:12;:29;;;;;104671:124;;;;-1:-1:-1;;;104671:124:0;;11560:2:1;104671:124:0;;;11542:21:1;11599:2;11579:18;;;11572:30;11638:34;11618:18;;;11611:62;11709:13;11689:18;;;11682:41;11740:19;;104671:124:0;11358:407:1;104671:124:0;-1:-1:-1;;;;;107562:17:0;::::1;107554:57;;;::::0;-1:-1:-1;;;107554:57:0;;15088:2:1;107554:57:0::1;::::0;::::1;15070:21:1::0;15127:2;15107:18;;;15100:30;15166:29;15146:18;;;15139:57;15213:18;;107554:57:0::1;14886:351:1::0;107554:57:0::1;107624:35;103901:23;107648:10;107624:11;:35::i;:::-;107670:27;103901:23;107693:3;107670:10;:27::i;:::-;107488:217:::0;:::o;32514:153::-;32604:7;32631:18;;;:12;:18;;;;;:28;;32653:5;32631:21;:28::i;:::-;32624:35;32514:153;-1:-1:-1;;;32514:153:0:o;60816:104::-;60872:13;60905:7;60898:14;;;;;:::i;108348:201::-;108477:8;101670:30;101691:8;101670:20;:30::i;:::-;108498:43:::1;108522:8;108532;108498:23;:43::i;109165:239::-:0;109332:4;-1:-1:-1;;;;;101396:18:0;;101404:10;101396:18;101392:83;;101431:32;101452:10;101431:20;:32::i;:::-;109349:47:::1;109372:4;109378:2;109382:7;109391:4;109349:22;:47::i;:::-;109165:239:::0;;;;;:::o;106907:397::-;34647:13;:11;:13::i;:::-;107049:1:::1;107032:14;:18;;;107024:59;;;::::0;-1:-1:-1;;;107024:59:0;;15444:2:1;107024:59:0::1;::::0;::::1;15426:21:1::0;15483:2;15463:18;;;15456:30;15522;15502:18;;;15495:58;15570:18;;107024:59:0::1;15242:352:1::0;107024:59:0::1;107119:5;107102:14;:22;;;107094:63;;;::::0;-1:-1:-1;;;107094:63:0;;15444:2:1;107094:63:0::1;::::0;::::1;15426:21:1::0;15483:2;15463:18;;;15456:30;15522;15502:18;;;15495:58;15570:18;;107094:63:0::1;15242:352:1::0;107094:63:0::1;-1:-1:-1::0;;;;;107176:23:0;::::1;107168:70;;;::::0;-1:-1:-1;;;107168:70:0;;15801:2:1;107168:70:0::1;::::0;::::1;15783:21:1::0;15840:2;15820:18;;;15813:30;15879:34;15859:18;;;15852:62;15950:4;15930:18;;;15923:32;15972:19;;107168:70:0::1;15599:398:1::0;107168:70:0::1;107251:45;107270:9;107281:14;107251:18;:45::i;61026:318::-:0;61099:13;61130:16;61138:7;61130;:16::i;:::-;61125:59;;61155:29;;;;;;;;;;;;;;61125:59;61197:21;61221:10;:8;:10::i;:::-;61197:34;;61255:7;61249:21;61274:1;61249:26;:87;;;;;;;;;;;;;;;;;61302:7;61311:18;61321:7;61311:9;:18::i;:::-;61285:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;61242:94;61026:318;-1:-1:-1;;;61026:318:0:o;32841:142::-;32921:7;32948:18;;;:12;:18;;;;;:27;;:25;:27::i;15054:149::-;14247:7;14274:12;;;:6;:12;;;;;:22;;;12229:16;12240:4;12229:10;:16::i;:::-;15169:26:::1;15181:4;15187:7;15169:11;:26::i;35667:201::-:0;34647:13;:11;:13::i;:::-;-1:-1:-1;;;;;35756:22:0;::::1;35748:73;;;::::0;-1:-1:-1;;;35748:73:0;;16705:2:1;35748:73:0::1;::::0;::::1;16687:21:1::0;16744:2;16724:18;;;16717:30;16783:34;16763:18;;;16756:62;16854:8;16834:18;;;16827:36;16880:19;;35748:73:0::1;16503:402:1::0;35748:73:0::1;35832:28;35851:8;35832:18;:28::i;17355:238::-:0;12719:4;12743:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;12743:29:0;;;;;;;;;;;;17434:152;;17478:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;17478:29:0;;;;;;;;;:36;;-1:-1:-1;;17478:36:0;17510:4;17478:36;;;17561:12;5155:10;;5075:98;17561:12;-1:-1:-1;;;;;17534:40:0;17552:7;-1:-1:-1;;;;;17534:40:0;17546:4;17534:40;;;;;;;;;;17355:238;;:::o;26323:152::-;26393:4;26417:50;26422:3;-1:-1:-1;;;;;26442:23:0;;26417:4;:50::i;59738:639::-;59823:4;60147:25;;;;;;:102;;-1:-1:-1;60224:25:0;;;;;60147:102;:179;;;-1:-1:-1;;60301:25:0;;;;;59738:639::o;38522:215::-;38624:4;38648:41;;;38663:26;38648:41;;:81;;;38693:36;38717:11;38693:23;:36::i;68568:282::-;68633:4;68723:13;;68713:7;:23;68670:153;;;;-1:-1:-1;;68774:26:0;;;;:17;:26;;;;;;52510:8;68774:44;:49;;68568:282::o;101813:647::-;98682:42;102004:45;:49;102000:453;;102303:67;;;;;102354:4;102303:67;;;17145:34:1;-1:-1:-1;;;;;17215:15:1;;17195:18;;;17188:43;98682:42:0;;102303;;17057:18:1;;102303:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102298:144;;102398:28;;;;;-1:-1:-1;;;;;1802:55:1;;102398:28:0;;;1784:74:1;1757:18;;102398:28:0;1638:226:1;66564:400:0;66645:13;66661:16;66669:7;66661;:16::i;:::-;66645:32;-1:-1:-1;5155:10:0;-1:-1:-1;;;;;66694:28:0;;;66690:175;;66742:44;66759:5;5155:10;68146:164;:::i;66742:44::-;66737:128;;66814:35;;;;;;;;;;;;;;66737:128;66877:24;;;;:15;:24;;;;;;:35;;;;-1:-1:-1;;;;;66877:35:0;;;;;;;;;66928:28;;66877:24;;66928:28;;;;;;;66634:330;66564:400;;:::o;70830:2817::-;70964:27;70994;71013:7;70994:18;:27::i;:::-;70964:57;;71079:4;-1:-1:-1;;;;;71038:45:0;71054:19;-1:-1:-1;;;;;71038:45:0;;71034:86;;71092:28;;;;;;;;;;;;;;71034:86;71134:27;69944:24;;;:15;:24;;;;;70166:26;;5155:10;69569:30;;;-1:-1:-1;;;;;69262:28:0;;69547:20;;;69544:56;71320:180;;71413:43;71430:4;5155:10;68146:164;:::i;71413:43::-;71408:92;;71465:35;;;;;;;;;;;;;;71408:92;-1:-1:-1;;;;;71517:16:0;;71513:52;;71542:23;;;;;;;;;;;;;;71513:52;71714:15;71711:160;;;71854:1;71833:19;71826:30;71711:160;-1:-1:-1;;;;;72251:24:0;;;;;;;:18;:24;;;;;;72249:26;;-1:-1:-1;;72249:26:0;;;72320:22;;;;;;;;;72318:24;;-1:-1:-1;72318:24:0;;;65422:11;65397:23;65393:41;65380:63;52790:8;65380:63;72613:26;;;;:17;:26;;;;;:175;;;;52790:8;72908:47;;:52;;72904:627;;73013:1;73003:11;;72981:19;73136:30;;;:17;:30;;;;;;:35;;73132:384;;73274:13;;73259:11;:28;73255:242;;73421:30;;;;:17;:30;;;;;:52;;;73255:242;72962:569;72904:627;73578:7;73574:2;-1:-1:-1;;;;;73559:27:0;73568:4;-1:-1:-1;;;;;73559:27:0;;;;;;;;;;;73597:42;108747:197;13084:105;13151:30;13162:4;5155:10;13151;:30::i;33076:169::-;33164:31;33181:4;33187:7;33164:16;:31::i;:::-;33206:18;;;;:12;:18;;;;;:31;;33229:7;33206:22;:31::i;33339:174::-;33428:32;33446:4;33452:7;33428:17;:32::i;:::-;33471:18;;;;:12;:18;;;;;:34;;33497:7;33471:25;:34::i;73743:185::-;73881:39;73898:4;73904:2;73908:7;73881:39;;;;;;;;;;;;:16;:39::i;84166:112::-;84243:27;84253:2;84257:8;84243:27;;;;;;;;;;;;:9;:27::i;63188:1275::-;63255:7;63290;63392:13;;63385:4;:20;63381:1015;;;63430:14;63447:23;;;:17;:23;;;;;;;52510:8;63536:24;;:29;;63532:845;;64201:113;64208:6;64218:1;64208:11;64201:113;;-1:-1:-1;;;64279:6:0;64261:25;;;;:17;:25;;;;;;64201:113;;63532:845;63407:989;63381:1015;64424:31;;;;;;;;;;;;;;34926:132;34834:6;;-1:-1:-1;;;;;34834:6:0;5155:10;34990:23;34982:68;;;;-1:-1:-1;;;34982:68:0;;17694:2:1;34982:68:0;;;17676:21:1;;;17713:18;;;17706:30;17772:34;17752:18;;;17745:62;17824:18;;34982:68:0;17492:356:1;36028:191:0;36121:6;;;-1:-1:-1;;;;;36138:17:0;;;;;;;;;;;36171:40;;36121:6;;;36138:17;36121:6;;36171:40;;36102:16;;36171:40;36091:128;36028:191;:::o;27619:158::-;27693:7;27744:22;27748:3;27760:5;27744:3;:22::i;67681:308::-;5155:10;-1:-1:-1;;;;;67780:31:0;;;67776:61;;67820:17;;;;;;;;;;;;;;67776:61;5155:10;67850:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;67850:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;67850:60:0;;;;;;;;;;67926:55;;586:41:1;;;67850:49:0;;5155:10;67926:55;;559:18:1;67926:55:0;;;;;;;67681:308;;:::o;74526:399::-;74693:31;74706:4;74712:2;74716:7;74693:12;:31::i;:::-;-1:-1:-1;;;;;74739:14:0;;;:19;74735:183;;74778:56;74809:4;74815:2;74819:7;74828:5;74778:30;:56::i;:::-;74773:145;;74862:40;;;;;;;;;;;;;;39884:332;39600:5;39987:33;;;;;39979:88;;;;-1:-1:-1;;;39979:88:0;;18055:2:1;39979:88:0;;;18037:21:1;18094:2;18074:18;;;18067:30;18133:34;18113:18;;;18106:62;18204:12;18184:18;;;18177:40;18234:19;;39979:88:0;17853:406:1;39979:88:0;-1:-1:-1;;;;;40086:22:0;;40078:60;;;;-1:-1:-1;;;40078:60:0;;18466:2:1;40078:60:0;;;18448:21:1;18505:2;18485:18;;;18478:30;18544:27;18524:18;;;18517:55;18589:18;;40078:60:0;18264:349:1;40078:60:0;40173:35;;;;;;;;;-1:-1:-1;;;;;40173:35:0;;;;;;;;;;;;;;;;;40151:57;;;;;:19;:57;39884:332::o;105159:100::-;105211:13;105244:7;105237:14;;;;;:::i;90541:1581::-;91024:4;91018:11;;91031:4;91014:22;91110:17;;;;91014:22;91468:5;91450:428;91516:1;91511:3;91507:11;91500:18;;91687:2;91681:4;91677:13;91673:2;91669:22;91664:3;91656:36;91781:2;91771:13;;91838:25;91450:428;91838:25;-1:-1:-1;91908:13:0;;;-1:-1:-1;;92023:14:0;;;92085:19;;;92023:14;90541:1581;-1:-1:-1;90541:1581:0:o;27148:117::-;27211:7;27238:19;27246:3;22632:18;;22549:109;20238:414;20301:4;22431:19;;;:12;;;:19;;;;;;20318:327;;-1:-1:-1;20361:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;20544:18;;20522:19;;;:12;;;:19;;;;;;:40;;;;20577:11;;20318:327;-1:-1:-1;20628:5:0;20621:12;;31701:214;31786:4;31810:57;;;31825:42;31810:57;;:97;;;31871:36;31895:11;31871:23;:36::i;13479:505::-;12719:4;12743:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;12743:29:0;;;;;;;;;;;;13563:414;;13756:41;13784:7;-1:-1:-1;;;;;13756:41:0;13794:2;13756:19;:41::i;:::-;13870:38;13898:4;13905:2;13870:19;:38::i;:::-;13661:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;13661:270:0;;;;;;;;;;-1:-1:-1;;;13607:358:0;;;;;;;:::i;17773:239::-;12719:4;12743:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;12743:29:0;;;;;;;;;;;;17853:152;;;17928:5;17896:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;17896:29:0;;;;;;;;;;:37;;-1:-1:-1;;17896:37:0;;;17953:40;5155:10;;17896:12;;17953:40;;17928:5;17953:40;17773:239;;:::o;26651:158::-;26724:4;26748:53;26756:3;-1:-1:-1;;;;;26776:23:0;;26748:7;:53::i;83393:689::-;83524:19;83530:2;83534:8;83524:5;:19::i;:::-;-1:-1:-1;;;;;83585:14:0;;;:19;83581:483;;83625:11;83639:13;83687:14;;;83720:233;83751:62;83790:1;83794:2;83798:7;;;;;;83807:5;83751:30;:62::i;:::-;83746:167;;83849:40;;;;;;;;;;;;;;83746:167;83948:3;83940:5;:11;83720:233;;84035:3;84018:13;;:20;84014:34;;84040:8;;;23012:120;23079:7;23106:3;:11;;23118:5;23106:18;;;;;;;;:::i;:::-;;;;;;;;;23099:25;;23012:120;;;;:::o;77009:716::-;77193:88;;;;;77172:4;;-1:-1:-1;;;;;77193:45:0;;;;;:88;;5155:10;;77260:4;;77266:7;;77275:5;;77193:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77193:88:0;;;;;;;;-1:-1:-1;;77193:88:0;;;;;;;;;;;;:::i;:::-;;;77189:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77476:6;:13;77493:1;77476:18;77472:235;;77522:40;;;;;;;;;;;;;;77472:235;77665:6;77659:13;77650:6;77646:2;77642:15;77635:38;77189:529;77352:64;;77362:54;77352:64;;-1:-1:-1;77189:529:0;77009:716;;;;;;:::o;12337:204::-;12422:4;12446:47;;;12461:32;12446:47;;:87;;-1:-1:-1;9714:25:0;9699:40;;;;12497:36;9590:157;7028:451;7103:13;7129:19;7161:10;7165:6;7161:1;:10;:::i;:::-;:14;;7174:1;7161:14;:::i;:::-;7151:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7151:25:0;;7129:47;;7187:15;:6;7194:1;7187:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;;7213;:6;7220:1;7213:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;-1:-1:-1;7244:9:0;7256:10;7260:6;7256:1;:10;:::i;:::-;:14;;7269:1;7256:14;:::i;:::-;7244:26;;7239:135;7276:1;7272;:5;7239:135;;;7311:12;7324:5;7332:3;7324:11;7311:25;;;;;;;:::i;:::-;;;;7299:6;7306:1;7299:9;;;;;;;;:::i;:::-;;;;:37;;;;;;;;;;-1:-1:-1;7361:1:0;7351:11;;;;;7279:3;;;:::i;:::-;;;7239:135;;;-1:-1:-1;7392:10:0;;7384:55;;;;-1:-1:-1;;;7384:55:0;;20609:2:1;7384:55:0;;;20591:21:1;;;20628:18;;;20621:30;20687:34;20667:18;;;20660:62;20739:18;;7384:55:0;20407:356:1;20828:1420:0;20894:4;21033:19;;;:12;;;:19;;;;;;21069:15;;21065:1176;;21444:21;21468:14;21481:1;21468:10;:14;:::i;:::-;21517:18;;21444:38;;-1:-1:-1;21497:17:0;;21517:22;;21538:1;;21517:22;:::i;:::-;21497:42;;21573:13;21560:9;:26;21556:405;;21607:17;21627:3;:11;;21639:9;21627:22;;;;;;;;:::i;:::-;;;;;;;;;21607:42;;21781:9;21752:3;:11;;21764:13;21752:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;21866:23;;;:12;;;:23;;;;;:36;;;21556:405;22042:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;22137:3;:12;;:19;22150:5;22137:19;;;;;;;;;;;22130:26;;;22180:4;22173:11;;;;;;;21065:1176;22224:5;22217:12;;;;;78187:2454;78260:20;78283:13;;;78311;;;78307:44;;78333:18;;;;;;;;;;;;;;78307:44;-1:-1:-1;;;;;78839:22:0;;;;;;:18;:22;;;;51872:2;78839:22;;;:71;;78877:32;78865:45;;78839:71;;;79153:31;;;:17;:31;;;;;-1:-1:-1;65853:15:0;;65827:24;65823:46;65422:11;65397:23;65393:41;65390:52;65380:63;;79153:173;;79388:23;;;;79153:31;;78839:22;;79887:25;78839:22;;79740:335;80155:1;80141:12;80137:20;80095:346;80196:3;80187:7;80184:16;80095:346;;80414:7;80404:8;80401:1;80374:25;80371:1;80368;80363:59;80249:1;80236:15;80095:346;;;80099:77;80474:8;80486:1;80474:13;80470:45;;80496:19;;;;;;;;;;;;;;80470:45;80532:13;:19;-1:-1:-1;108557:182:0;;;:::o;14:177:1:-;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:250::-;723:1;733:113;747:6;744:1;741:13;733:113;;;823:11;;;817:18;804:11;;;797:39;769:2;762:10;733:113;;;-1:-1:-1;;880:1:1;862:16;;855:27;638:250::o;893:330::-;935:3;973:5;967:12;1000:6;995:3;988:19;1016:76;1085:6;1078:4;1073:3;1069:14;1062:4;1055:5;1051:16;1016:76;:::i;:::-;1137:2;1125:15;-1:-1:-1;;1121:88:1;1112:98;;;;1212:4;1108:109;;893:330;-1:-1:-1;;893:330:1:o;1228:220::-;1377:2;1366:9;1359:21;1340:4;1397:45;1438:2;1427:9;1423:18;1415:6;1397:45;:::i;1453:180::-;1512:6;1565:2;1553:9;1544:7;1540:23;1536:32;1533:52;;;1581:1;1578;1571:12;1533:52;-1:-1:-1;1604:23:1;;1453:180;-1:-1:-1;1453:180:1:o;1869:196::-;1937:20;;-1:-1:-1;;;;;1986:54:1;;1976:65;;1966:93;;2055:1;2052;2045:12;1966:93;1869:196;;;:::o;2070:254::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2238:29;2257:9;2238:29;:::i;:::-;2228:39;2314:2;2299:18;;;;2286:32;;-1:-1:-1;;;2070:254:1:o;2511:328::-;2588:6;2596;2604;2657:2;2645:9;2636:7;2632:23;2628:32;2625:52;;;2673:1;2670;2663:12;2625:52;2696:29;2715:9;2696:29;:::i;:::-;2686:39;;2744:38;2778:2;2767:9;2763:18;2744:38;:::i;:::-;2734:48;;2829:2;2818:9;2814:18;2801:32;2791:42;;2511:328;;;;;:::o;3211:248::-;3279:6;3287;3340:2;3328:9;3319:7;3315:23;3311:32;3308:52;;;3356:1;3353;3346:12;3308:52;-1:-1:-1;;3379:23:1;;;3449:2;3434:18;;;3421:32;;-1:-1:-1;3211:248:1:o;3766:254::-;3834:6;3842;3895:2;3883:9;3874:7;3870:23;3866:32;3863:52;;;3911:1;3908;3901:12;3863:52;3947:9;3934:23;3924:33;;3976:38;4010:2;3999:9;3995:18;3976:38;:::i;:::-;3966:48;;3766:254;;;;;:::o;4288:184::-;4340:77;4337:1;4330:88;4437:4;4434:1;4427:15;4461:4;4458:1;4451:15;4477:691;4542:5;4572:18;4613:2;4605:6;4602:14;4599:40;;;4619:18;;:::i;:::-;4753:2;4747:9;4819:2;4807:15;;-1:-1:-1;;4803:24:1;;;4829:2;4799:33;4795:42;4783:55;;;4853:18;;;4873:22;;;4850:46;4847:72;;;4899:18;;:::i;:::-;4939:10;4935:2;4928:22;4968:6;4959:15;;4998:6;4990;4983:22;5038:3;5029:6;5024:3;5020:16;5017:25;5014:45;;;5055:1;5052;5045:12;5014:45;5105:6;5100:3;5093:4;5085:6;5081:17;5068:44;5160:1;5153:4;5144:6;5136;5132:19;5128:30;5121:41;;;;4477:691;;;;;:::o;5173:451::-;5242:6;5295:2;5283:9;5274:7;5270:23;5266:32;5263:52;;;5311:1;5308;5301:12;5263:52;5351:9;5338:23;5384:18;5376:6;5373:30;5370:50;;;5416:1;5413;5406:12;5370:50;5439:22;;5492:4;5484:13;;5480:27;-1:-1:-1;5470:55:1;;5521:1;5518;5511:12;5470:55;5544:74;5610:7;5605:2;5592:16;5587:2;5583;5579:11;5544:74;:::i;5629:367::-;5692:8;5702:6;5756:3;5749:4;5741:6;5737:17;5733:27;5723:55;;5774:1;5771;5764:12;5723:55;-1:-1:-1;5797:20:1;;5840:18;5829:30;;5826:50;;;5872:1;5869;5862:12;5826:50;5909:4;5901:6;5897:17;5885:29;;5969:3;5962:4;5952:6;5949:1;5945:14;5937:6;5933:27;5929:38;5926:47;5923:67;;;5986:1;5983;5976:12;6001:773;6123:6;6131;6139;6147;6200:2;6188:9;6179:7;6175:23;6171:32;6168:52;;;6216:1;6213;6206:12;6168:52;6256:9;6243:23;6285:18;6326:2;6318:6;6315:14;6312:34;;;6342:1;6339;6332:12;6312:34;6381:70;6443:7;6434:6;6423:9;6419:22;6381:70;:::i;:::-;6470:8;;-1:-1:-1;6355:96:1;-1:-1:-1;6558:2:1;6543:18;;6530:32;;-1:-1:-1;6574:16:1;;;6571:36;;;6603:1;6600;6593:12;6571:36;;6642:72;6706:7;6695:8;6684:9;6680:24;6642:72;:::i;:::-;6001:773;;;;-1:-1:-1;6733:8:1;-1:-1:-1;;;;6001:773:1:o;6779:186::-;6838:6;6891:2;6879:9;6870:7;6866:23;6862:32;6859:52;;;6907:1;6904;6897:12;6859:52;6930:29;6949:9;6930:29;:::i;7223:118::-;7309:5;7302:13;7295:21;7288:5;7285:32;7275:60;;7331:1;7328;7321:12;7346:315;7411:6;7419;7472:2;7460:9;7451:7;7447:23;7443:32;7440:52;;;7488:1;7485;7478:12;7440:52;7511:29;7530:9;7511:29;:::i;:::-;7501:39;;7590:2;7579:9;7575:18;7562:32;7603:28;7625:5;7603:28;:::i;:::-;7650:5;7640:15;;;7346:315;;;;;:::o;7666:667::-;7761:6;7769;7777;7785;7838:3;7826:9;7817:7;7813:23;7809:33;7806:53;;;7855:1;7852;7845:12;7806:53;7878:29;7897:9;7878:29;:::i;:::-;7868:39;;7926:38;7960:2;7949:9;7945:18;7926:38;:::i;:::-;7916:48;;8011:2;8000:9;7996:18;7983:32;7973:42;;8066:2;8055:9;8051:18;8038:32;8093:18;8085:6;8082:30;8079:50;;;8125:1;8122;8115:12;8079:50;8148:22;;8201:4;8193:13;;8189:27;-1:-1:-1;8179:55:1;;8230:1;8227;8220:12;8179:55;8253:74;8319:7;8314:2;8301:16;8296:2;8292;8288:11;8253:74;:::i;:::-;8243:84;;;7666:667;;;;;;;:::o;8338:366::-;8405:6;8413;8466:2;8454:9;8445:7;8441:23;8437:32;8434:52;;;8482:1;8479;8472:12;8434:52;8505:29;8524:9;8505:29;:::i;:::-;8495:39;;8584:2;8573:9;8569:18;8556:32;8628:26;8621:5;8617:38;8610:5;8607:49;8597:77;;8670:1;8667;8660:12;8709:260;8777:6;8785;8838:2;8826:9;8817:7;8813:23;8809:32;8806:52;;;8854:1;8851;8844:12;8806:52;8877:29;8896:9;8877:29;:::i;:::-;8867:39;;8925:38;8959:2;8948:9;8944:18;8925:38;:::i;8974:437::-;9053:1;9049:12;;;;9096;;;9117:61;;9171:4;9163:6;9159:17;9149:27;;9117:61;9224:2;9216:6;9213:14;9193:18;9190:38;9187:218;;9261:77;9258:1;9251:88;9362:4;9359:1;9352:15;9390:4;9387:1;9380:15;9187:218;;8974:437;;;:::o;9416:184::-;9468:77;9465:1;9458:88;9565:4;9562:1;9555:15;9589:4;9586:1;9579:15;9605:168;9678:9;;;9709;;9726:15;;;9720:22;;9706:37;9696:71;;9747:18;;:::i;9778:274::-;9818:1;9844;9834:189;;9879:77;9876:1;9869:88;9980:4;9977:1;9970:15;10008:4;10005:1;9998:15;9834:189;-1:-1:-1;10037:9:1;;9778:274::o;10885:125::-;10950:9;;;10971:10;;;10968:36;;;10984:18;;:::i;11896:545::-;11998:2;11993:3;11990:11;11987:448;;;12034:1;12059:5;12055:2;12048:17;12104:4;12100:2;12090:19;12174:2;12162:10;12158:19;12155:1;12151:27;12145:4;12141:38;12210:4;12198:10;12195:20;12192:47;;;-1:-1:-1;12233:4:1;12192:47;12288:2;12283:3;12279:12;12276:1;12272:20;12266:4;12262:31;12252:41;;12343:82;12361:2;12354:5;12351:13;12343:82;;;12406:17;;;12387:1;12376:13;12343:82;;12677:1471;12803:3;12797:10;12830:18;12822:6;12819:30;12816:56;;;12852:18;;:::i;:::-;12881:97;12971:6;12931:38;12963:4;12957:11;12931:38;:::i;:::-;12925:4;12881:97;:::i;:::-;13033:4;;13097:2;13086:14;;13114:1;13109:782;;;;13935:1;13952:6;13949:89;;;-1:-1:-1;14004:19:1;;;13998:26;13949:89;-1:-1:-1;;12574:1:1;12570:11;;;12566:84;12562:89;12552:100;12658:1;12654:11;;;12549:117;14051:81;;13079:1063;;13109:782;11843:1;11836:14;;;11880:4;11867:18;;-1:-1:-1;;13145:79:1;;;13322:236;13336:7;13333:1;13330:14;13322:236;;;13425:19;;;13419:26;13404:42;;13517:27;;;;13485:1;13473:14;;;;13352:19;;13322:236;;;13326:3;13586:6;13577:7;13574:19;13571:261;;;13647:19;;;13641:26;-1:-1:-1;;13730:1:1;13726:14;;;13742:3;13722:24;13718:97;13714:102;13699:118;13684:134;;13571:261;-1:-1:-1;;;;;13878:1:1;13862:14;;;13858:22;13845:36;;-1:-1:-1;12677:1471:1:o;14497:184::-;14549:77;14546:1;14539:88;14646:4;14643:1;14636:15;14670:4;14667:1;14660:15;14686:195;14725:3;-1:-1:-1;;14749:5:1;14746:77;14743:103;;14826:18;;:::i;:::-;-1:-1:-1;14873:1:1;14862:13;;14686:195::o;16002:496::-;16181:3;16219:6;16213:13;16235:66;16294:6;16289:3;16282:4;16274:6;16270:17;16235:66;:::i;:::-;16364:13;;16323:16;;;;16386:70;16364:13;16323:16;16433:4;16421:17;;16386:70;:::i;:::-;16472:20;;16002:496;-1:-1:-1;;;;16002:496:1:o;17242:245::-;17309:6;17362:2;17350:9;17341:7;17337:23;17333:32;17330:52;;;17378:1;17375;17368:12;17330:52;17410:9;17404:16;17429:28;17451:5;17429:28;:::i;18618:812::-;19029:25;19024:3;19017:38;18999:3;19084:6;19078:13;19100:75;19168:6;19163:2;19158:3;19154:12;19147:4;19139:6;19135:17;19100:75;:::i;:::-;19239:19;19234:2;19194:16;;;19226:11;;;19219:40;19284:13;;19306:76;19284:13;19368:2;19360:11;;19353:4;19341:17;;19306:76;:::i;:::-;19402:17;19421:2;19398:26;;18618:812;-1:-1:-1;;;;18618:812:1:o;19435:512::-;19629:4;-1:-1:-1;;;;;19739:2:1;19731:6;19727:15;19716:9;19709:34;19791:2;19783:6;19779:15;19774:2;19763:9;19759:18;19752:43;;19831:6;19826:2;19815:9;19811:18;19804:34;19874:3;19869:2;19858:9;19854:18;19847:31;19895:46;19936:3;19925:9;19921:19;19913:6;19895:46;:::i;:::-;19887:54;19435:512;-1:-1:-1;;;;;;19435:512:1:o;19952:249::-;20021:6;20074:2;20062:9;20053:7;20049:23;20045:32;20042:52;;;20090:1;20087;20080:12;20042:52;20122:9;20116:16;20141:30;20165:5;20141:30;:::i;20206:196::-;20245:3;20273:5;20263:39;;20282:18;;:::i;:::-;-1:-1:-1;;;20318:78:1;;20206:196::o;20768:128::-;20835:9;;;20856:11;;;20853:37;;;20870:18;;:::i;20901:184::-;20953:77;20950:1;20943:88;21050:4;21047:1;21040:15;21074:4;21071:1;21064:15
Swarm Source
ipfs://d2c8149445cb6ea5a4d9e17a46bd74117a4de6a42836fb3da6e175e700ee4d51
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.