ERC-721
Overview
Max Total Supply
1,811 AZKI
Holders
1
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 AZKILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AzukiApes
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-06-02 */ // SPDX-License-Identifier: MIT /* We Are Azuki Apes (formerly a Social Club) Contract by the [sometimes] controversial Aleph0ne */ 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; } 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); } 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); } pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains( Set storage set, bytes32 value ) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at( Set storage set, uint256 index ) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add( Bytes32Set storage set, bytes32 value ) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove( Bytes32Set storage set, bytes32 value ) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains( Bytes32Set storage set, bytes32 value ) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at( Bytes32Set storage set, uint256 index ) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values( Bytes32Set storage set ) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add( AddressSet storage set, address value ) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove( AddressSet storage set, address value ) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains( AddressSet storage set, address value ) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at( AddressSet storage set, uint256 index ) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values( AddressSet storage set ) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove( UintSet storage set, uint256 value ) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains( UintSet storage set, uint256 value ) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at( UintSet storage set, uint256 index ) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values( UintSet storage set ) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved( uint256 tokenId ) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll( address owner, address operator ) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex( address owner, uint256 index ) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); (bool success, ) = recipient.call{value: amount}(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data ) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data ) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data ) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } 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; } } pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString( uint256 value, uint256 length ) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } 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; } } pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole( bytes32 role, address account ) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view 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. */ function grantRole( bytes32 role, address account ) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole( bytes32 role, address account ) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole( bytes32 role, address account ) public virtual override { require( account == _msgSender(), "AccessControl: can only renounce roles for self" ); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } 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); } } pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } pragma solidity ^0.8.4; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary 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 { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf( uint256 tokenId ) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved( uint256 tokenId ) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll( address operator, bool approved ) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll( address owner, address operator ) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if ( to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data) ) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Safely mints `tokenId` token and transfers it to `to`. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal { _mint(to, tokenId, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenid` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 tokenId, bytes memory _data, bool safe ) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfers(address(0), to, tokenId, 1); _addressData[to].balance += 1; _addressData[to].numberMinted += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); if (safe && to.isContract()) { if ( !_checkContractOnERC721Received(address(0), to, tokenId, _data) ) { revert("ERC721: transfer to non ERC721Receiver implementer"); } } emit Transfer(address(0), to, tokenId); _currentIndex = tokenId + 1; _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId, address owner) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} } pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance( address owner, address spender ) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require( oldAllowance >= value, "SafeERC20: decreased allowance below zero" ); uint256 newAllowance = oldAllowance - value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall( data, "SafeERC20: low-level call failed" ); if (returndata.length > 0) { // Return data is optional require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } pragma solidity ^0.8.0; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased( IERC20 indexed token, address to, uint256 amount ); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require( payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch" ); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released( IERC20 token, address account ) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment( account, totalReceived, released(account) ); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment( account, totalReceived, released(token, account) ); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require( account != address(0), "PaymentSplitter: account is the zero address" ); require(shares_ > 0, "PaymentSplitter: shares are 0"); require( _shares[account] == 0, "PaymentSplitter: account already has shares" ); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed( address registrant, address operator ) external view returns (bool); function register(address registrant) external; function registerAndSubscribe( address registrant, address subscription ) external; function registerAndCopyEntries( address registrant, address registrantToCopy ) external; function unregister(address addr) external; function updateOperator( address registrant, address operator, bool filtered ) external; function updateOperators( address registrant, address[] calldata operators, bool filtered ) external; function updateCodeHash( address registrant, bytes32 codehash, bool filtered ) external; function updateCodeHashes( address registrant, bytes32[] calldata codeHashes, bool filtered ) external; function subscribe( address registrant, address registrantToSubscribe ) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers( address registrant ) external returns (address[] memory); function subscriberAt( address registrant, uint256 index ) external returns (address); function copyEntriesOf( address registrant, address registrantToCopy ) external; function isOperatorFiltered( address registrant, address operator ) external returns (bool); function isCodeHashOfFiltered( address registrant, address operatorWithCode ) external returns (bool); function isCodeHashFiltered( address registrant, bytes32 codeHash ) external returns (bool); function filteredOperators( address addr ) external returns (address[] memory); function filteredCodeHashes( address addr ) external returns (bytes32[] memory); function filteredOperatorAt( address registrant, uint256 index ) external returns (address); function filteredCodeHashAt( address registrant, uint256 index ) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } pragma solidity ^0.8.13; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering( address subscriptionOrRegistrantToCopy, bool subscribe ) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr( 96, shl(96, subscriptionOrRegistrantToCopy) ) for { } iszero(subscribe) { } { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero( call( gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04 ) ) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero( staticcall( gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00 ) ) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } } /** * @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); } /** * @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]; } } pragma solidity ^0.8.13; interface ApeForgeInterface { function _nftTokenForges(uint256 tokenId) external view returns (address); } contract AzukiApes is ERC721A, Ownable, OperatorFilterer { bool public operatorFilteringEnabled; address private ApeContract = 0x813b5c4aE6b188F4581aa1dfdB7f4Aba44AA578B; address private ApeForge = 0xc4Df0F70A590D01e6cA3B15284b2001c0c60c695; uint256 private maxSupply = 3333; bool public claimIsActive = true; string private _baseTokenURI = "ipfs://QmYfNQVevkhXYoV9Aoo4QuAYpenWrGQCk2AUAuGyh3aLUk/"; // NOTE: Map old token id to new (same) token id mapping(uint => uint256) public apeClaimed; mapping(uint256 => bool) private _lockedTokens; mapping(uint256 => uint256) private _lockTimestamps; constructor() ERC721A("Azuki Apes", "AZKI") { _registerForOperatorFiltering(); operatorFilteringEnabled = true; } function isClaimed(uint256 tokenId) external view returns (uint256) { return apeClaimed[tokenId]; } function burn(uint256 tokenId) external { require( msg.sender == ownerOf(tokenId) || msg.sender == owner(), "Must own or be contract owner to burn" ); _burn(tokenId); } event ClaimActivation(bool isActive); event ApeWasClaimed(address theAddress, uint256 theTokenId); event ApeNotFound(address theAddress, uint256 theTokenId, uint256 isForged); function mintApe(uint256 tokenId) internal { _safeMint(msg.sender, tokenId); apeClaimed[tokenId] = 1; emit ApeWasClaimed(msg.sender, tokenId); } function claimApes(uint256[] memory theTokenIDs) public { require(claimIsActive, "Claim Inactive"); uint256 numTokens = theTokenIDs.length; require(numTokens != 0, "Empty token ID array"); // Fetch the balance once instead of in every loop iteration uint256 senderBalance = IERC721(ApeContract).balanceOf(msg.sender); require(senderBalance >= numTokens, "Insufficient NFT balance"); for (uint256 i; i < numTokens; i++) { uint256 tokenId = theTokenIDs[i]; if (tokenId > maxSupply) { continue; } if (apeClaimed[tokenId] == 0) { if (IERC721(ApeContract).ownerOf(tokenId) != msg.sender) { emit ApeNotFound(msg.sender, tokenId, 0); continue; } mintApe(tokenId); } } } function claimForgedApes(uint256[] memory theTokenIDs) external { require(claimIsActive, "Claim Inactive"); uint256 numTokens = theTokenIDs.length; require(numTokens != 0, "Empty token ID array"); for (uint256 i; i < numTokens; i++) { uint256 tokenId = theTokenIDs[i]; if (tokenId > maxSupply) { continue; } if (apeClaimed[tokenId] == 0) { if ( ApeForgeInterface(ApeForge)._nftTokenForges(tokenId) != msg.sender ) { emit ApeNotFound(msg.sender, tokenId, 1); continue; } mintApe(tokenId); } } } function getWalletOfOwner( address owner ) external view returns (uint256[] memory) { unchecked { uint256[] memory a = new uint256[](balanceOf(owner)); uint256 end = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; for (uint256 i; i < end; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { a[tokenIdsIdx++] = i; } } return a; } } // ------------------------------------------------------------ // Token Locking, Locking info, and other calculations // ------------------------------------------------------------ function lockToken(uint256 tokenId) external { require(tokenId > 0, "Token ID must be 1 or greater"); // Make sure the caller is the owner of the NFT require(ownerOf(tokenId) == msg.sender, "Not the owner of the NFT"); _lockedTokens[tokenId] = true; _lockTimestamps[tokenId] = block.timestamp; } function getDaysLocked(uint256 tokenId) external view returns (uint256) { require(_lockedTokens[tokenId], "Token is not locked"); uint256 lockTimestamp = _lockTimestamps[tokenId]; uint256 daysLocked = (block.timestamp - lockTimestamp) / 1 days; return daysLocked; } function unlockToken(uint256 tokenId) external { require(tokenId > 0, "Token ID must be 1 or greater"); // Make sure the caller is the owner of the NFT require(ownerOf(tokenId) == msg.sender, "Not the owner of the NFT"); _lockedTokens[tokenId] = false; // NOTE: Should we reset the timestamp here? _lockTimestamps[tokenId] = block.timestamp; } function isTokenLocked(uint256 tokenId) public view returns (bool) { return _lockedTokens[tokenId]; } // -------------------------------------------------------------------- // OpenSea's new requirements to make sure royalties work (for now, // until they miraculously again decide to rug all of web3 nfts again) // They are also bloated as fuck and generally annoying, but if they do // not exist, OpenSea refuses royalties and transfers are broken. 🖕 // // ref: https://github.com/Vectorized/closedsea/tree/main function setApprovalForAll( address operator, bool approved ) public override(ERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public override(ERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } /** * @dev Both safeTransferFrom functions in ERC721A call this function * so we don't need to override them. */ function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721A) onlyAllowedOperator(from) { require(!isTokenLocked(tokenId), "Cannot move locked token"); super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721A) onlyAllowedOperator(from) { require(!isTokenLocked(tokenId), "Cannot move locked token"); super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function _isPriorityOperator( address operator ) internal pure override returns (bool) { // OpenSea Seaport Conduit: // https://etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 // https://goerli.etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71); } // --------------------------------------------------------------- // Functions allowed by owner and no one else, hence 'onlyOwner' // --------------------------------------------------------------- function toggleSaleStatus() external onlyOwner { claimIsActive = !claimIsActive; emit ClaimActivation(claimIsActive); } function setBaseURI(string memory baseURI) external onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI( uint256 tokenId ) public view override returns (string memory) { return string(abi.encodePacked(super.tokenURI(tokenId), ".json")); } function changeMaxSupply(uint256 number) external onlyOwner { maxSupply = number; } // NOTE: These are onlyOwner functions in case something goes // wrong, so the issues can be resolved. // Mint token to address, claim ETH (if someone accidentally // sends it to the contract) // burn tokens in case something goes sideways with tokens // NONE NEED TO BE USED, but... better to have and not need. function mint(address to, uint256 theToken) external onlyOwner { _safeMint(to, theToken); } function ownerClaim() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function ownerBurner(uint256[] calldata tokenIds) external onlyOwner { for (uint256 i; i < tokenIds.length; i++) { _burn(tokenIds[i]); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":false,"internalType":"address","name":"theAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"theTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"isForged","type":"uint256"}],"name":"ApeNotFound","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"theAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"theTokenId","type":"uint256"}],"name":"ApeWasClaimed","type":"event"},{"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":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"ClaimActivation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"apeClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"theTokenIDs","type":"uint256[]"}],"name":"claimApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"theTokenIDs","type":"uint256[]"}],"name":"claimForgedApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDaysLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getWalletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lockToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"theToken","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","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":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unlockToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600980546001600160a01b031990811673813b5c4ae6b188f4581aa1dfdb7f4aba44aa578b17909155600a805490911673c4df0f70a590d01e6ca3b15284b2001c0c60c695179055610d05600b55600c805460ff1916600117905560e0604052603660808181529062002b9f60a03980516200008491600d916020909101906200021b565b503480156200009257600080fd5b50604080518082018252600a815269417a756b69204170657360b01b602080830191825283518085019094526004845263415a4b4960e01b908401528151919291620000e1916002916200021b565b508051620000f79060039060208401906200021b565b5050600080555062000109336200012c565b620001136200017e565b6008805460ff60a01b1916600160a01b179055620002fd565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200019f733cc6cdda760b79bafa08df41ecfa224f810dceb66001620001a1565b565b6001600160a01b0390911690637d3e3dbe81620001d15782620001ca5750634420e486620001d1565b5063a0af29035b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af162000211578060005160e01c036200021157600080fd5b5060006024525050565b8280546200022990620002c1565b90600052602060002090601f0160209004810192826200024d576000855562000298565b82601f106200026857805160ff191683800117855562000298565b8280016001018555821562000298579182015b82811115620002985782518255916020019190600101906200027b565b50620002a6929150620002aa565b5090565b5b80821115620002a65760008155600101620002ab565b600181811c90821680620002d657607f821691505b602082108103620002f757634e487b7160e01b600052602260045260246000fd5b50919050565b612892806200030d6000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063b88d4fde116100ad578063dd2e0ac01161007c578063dd2e0ac014610498578063e6143d6b146104ab578063e985e9c5146104cb578063f2fde38b14610507578063fb796e6c1461051a57600080fd5b8063b88d4fde1461044c578063bc1b0a941461045f578063c4d50a5c14610472578063c87b56dd1461048557600080fd5b80638da5cb5b116100f45780638da5cb5b146103ed57806395d89b41146103fe5780639e34070f14610406578063a22cb46514610426578063b7c0b8e81461043957600080fd5b8063715018a6146103ac57806378c6bfff146103b45780637e356104146103c757806380f20363146103da57600080fd5b806340c10f19116101a85780635303f68c116101775780635303f68c1461034657806355f804b314610353578063627fdeab146103665780636352211e1461038657806370a082311461039957600080fd5b806340c10f191461030557806342842e0e1461031857806342966c681461032b5780634dbe58891461033e57600080fd5b8063095ea7b3116101ef578063095ea7b31461029357806318160ddd146102a657806323b872dd146102bc578063276a28a3146102cf578063404c7cdd146102f257600080fd5b806301ffc9a714610221578063049c5c491461024957806306fdde0314610253578063081812fc14610268575b600080fd5b61023461022f366004612192565b61052e565b60405190151581526020015b60405180910390f35b61025161053f565b005b61025b6105bf565b6040516102409190612207565b61027b61027636600461221a565b610651565b6040516001600160a01b039091168152602001610240565b6102516102a1366004612248565b610695565b600154600054035b604051908152602001610240565b6102516102ca366004612274565b6106cd565b6102346102dd36600461221a565b6000908152600f602052604090205460ff1690565b61025161030036600461221a565b610771565b610251610313366004612248565b6107a0565b610251610326366004612274565b6107d8565b61025161033936600461221a565b6107f3565b61025161088b565b600c546102349060ff1681565b610251610361366004612352565b6108e4565b61037961037436600461239a565b610921565b60405161024091906123b7565b61027b61039436600461221a565b610a49565b6102ae6103a736600461239a565b610a5b565b610251610aa9565b6102ae6103c236600461221a565b610adf565b6102516103d53660046123fb565b610b63565b6102516103e836600461221a565b610d1c565b6008546001600160a01b031661027b565b61025b610def565b6102ae61041436600461221a565b6000908152600e602052604090205490565b6102516104343660046124b5565b610dfe565b6102516104473660046124ea565b610e31565b61025161045a366004612505565b610e79565b61025161046d366004612584565b610f1f565b6102516104803660046123fb565b610f87565b61025b61049336600461221a565b6111ff565b6102516104a636600461221a565b611230565b6102ae6104b936600461221a565b600e6020526000908152604090205481565b6102346104d93660046125f8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61025161051536600461239a565b611300565b60085461023490600160a01b900460ff1681565b600061053982611398565b92915050565b6008546001600160a01b031633146105725760405162461bcd60e51b815260040161056990612631565b60405180910390fd5b600c805460ff8082161560ff1990921682179092556040519116151581527f398569ff5ba3e505659a502108faa79ea619ae2c901c198a7bf4e9b8e16bae389060200160405180910390a1565b6060600280546105ce90612666565b80601f01602080910402602001604051908101604052809291908181526020018280546105fa90612666565b80156106475780601f1061061c57610100808354040283529160200191610647565b820191906000526020600020905b81548152906001019060200180831161062a57829003601f168201915b5050505050905090565b600061065c826113e8565b610679576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161069f81611413565b6106be57600854600160a01b900460ff16156106be576106be81611435565b6106c88383611479565b505050565b826001600160a01b0381163314610706576106e733611413565b61070657600854600160a01b900460ff16156107065761070633611435565b6000828152600f602052604090205460ff16156107605760405162461bcd60e51b815260206004820152601860248201527721b0b73737ba1036b7bb32903637b1b5b2b2103a37b5b2b760411b6044820152606401610569565b61076b848484611501565b50505050565b6008546001600160a01b0316331461079b5760405162461bcd60e51b815260040161056990612631565b600b55565b6008546001600160a01b031633146107ca5760405162461bcd60e51b815260040161056990612631565b6107d4828261150c565b5050565b6106c883838360405180602001604052806000815250610e79565b6107fc81610a49565b6001600160a01b0316336001600160a01b0316148061082557506008546001600160a01b031633145b61087f5760405162461bcd60e51b815260206004820152602560248201527f4d757374206f776e206f7220626520636f6e7472616374206f776e657220746f60448201526410313ab93760d91b6064820152608401610569565b61088881611526565b50565b6008546001600160a01b031633146108b55760405162461bcd60e51b815260040161056990612631565b6040514790339082156108fc029083906000818181858888f193505050501580156107d4573d6000803e3d6000fd5b6008546001600160a01b0316331461090e5760405162461bcd60e51b815260040161056990612631565b80516107d490600d9060208401906120e3565b6060600061092e83610a5b565b6001600160401b03811115610945576109456122b5565b60405190808252806020026020018201604052801561096e578160200160208202803683370190505b506000805491925080805b83811015610a3e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906109e05750610a36565b80516001600160a01b0316156109f557805192505b876001600160a01b0316836001600160a01b031603610a345781868580600101965081518110610a2757610a276126a0565b6020026020010181815250505b505b600101610979565b509295945050505050565b6000610a5482611531565b5192915050565b60006001600160a01b038216610a84576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ad35760405162461bcd60e51b815260040161056990612631565b610add600061164b565b565b6000818152600f602052604081205460ff16610b335760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cc81b9bdd081b1bd8dad959606a1b6044820152606401610569565b6000828152601060205260408120549062015180610b5183426126cc565b610b5b91906126f9565b949350505050565b600c5460ff16610ba65760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b6044820152606401610569565b80516000819003610bf05760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b6044820152606401610569565b60005b818110156106c8576000838281518110610c0f57610c0f6126a0565b60200260200101519050600b54811115610c295750610d0a565b6000818152600e60205260408120549003610d0857600a546040516394a7eb4960e01b81526004810183905233916001600160a01b0316906394a7eb4990602401602060405180830381865afa158015610c87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cab919061270d565b6001600160a01b031614610cff57604080513381526020810183905260018183015290517f466eb39f0b88eed0b8023066bcdd81d044023a49452243c1f3300049eaa856019181900360600190a150610d0a565b610d088161169d565b505b80610d148161272a565b915050610bf3565b60008111610d6c5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e204944206d7573742062652031206f7220677265617465720000006044820152606401610569565b33610d7682610a49565b6001600160a01b031614610dc75760405162461bcd60e51b8152602060048201526018602482015277139bdd081d1a19481bdddb995c881bd9881d1a194813919560421b6044820152606401610569565b6000908152600f60209081526040808320805460ff1916600117905560109091529020429055565b6060600380546105ce90612666565b81610e0881611413565b610e2757600854600160a01b900460ff1615610e2757610e2781611435565b6106c883836116f6565b6008546001600160a01b03163314610e5b5760405162461bcd60e51b815260040161056990612631565b60088054911515600160a01b0260ff60a01b19909216919091179055565b836001600160a01b0381163314610eb257610e9333611413565b610eb257600854600160a01b900460ff1615610eb257610eb233611435565b6000838152600f602052604090205460ff1615610f0c5760405162461bcd60e51b815260206004820152601860248201527721b0b73737ba1036b7bb32903637b1b5b2b2103a37b5b2b760411b6044820152606401610569565b610f188585858561178b565b5050505050565b6008546001600160a01b03163314610f495760405162461bcd60e51b815260040161056990612631565b60005b818110156106c857610f75838383818110610f6957610f696126a0565b90506020020135611526565b80610f7f8161272a565b915050610f4c565b600c5460ff16610fca5760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b6044820152606401610569565b805160008190036110145760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b6044820152606401610569565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561105d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110819190612743565b9050818110156110d35760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204e46542062616c616e636500000000000000006044820152606401610569565b60005b8281101561076b5760008482815181106110f2576110f26126a0565b60200260200101519050600b5481111561110c57506111ed565b6000818152600e602052604081205490036111eb576009546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa15801561116a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118e919061270d565b6001600160a01b0316146111e257604080513381526020810183905260008183015290517f466eb39f0b88eed0b8023066bcdd81d044023a49452243c1f3300049eaa856019181900360600190a1506111ed565b6111eb8161169d565b505b806111f78161272a565b9150506110d6565b606061120a826117d6565b60405160200161121a919061275c565b6040516020818303038152906040529050919050565b600081116112805760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e204944206d7573742062652031206f7220677265617465720000006044820152606401610569565b3361128a82610a49565b6001600160a01b0316146112db5760405162461bcd60e51b8152602060048201526018602482015277139bdd081d1a19481bdddb995c881bd9881d1a194813919560421b6044820152606401610569565b6000908152600f60209081526040808320805460ff1916905560109091529020429055565b6008546001600160a01b0316331461132a5760405162461bcd60e51b815260040161056990612631565b6001600160a01b03811661138f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610569565b6108888161164b565b60006001600160e01b031982166380ac58cd60e01b14806113c957506001600160e01b03198216635b5e139f60e01b145b8061053957506301ffc9a760e01b6001600160e01b0319831614610539565b6000805482108015610539575050600090815260046020526040902054600160e01b900460ff161590565b6001600160a01b0316731e0049783f008a0085193e00003d00cd54003c711490565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611471573d6000803e3d6000fd5b6000603a5250565b600061148482610a49565b9050806001600160a01b0316836001600160a01b0316036114b85760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906114d857506114d681336104d9565b155b156114f6576040516367d9dca160e11b815260040160405180910390fd5b6106c883838361185a565b6106c88383836118b6565b6107d4828260405180602001604052806000815250611aa1565b610888816000611aae565b60408051606081018252600080825260208201819052918101919091528160005481101561163257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906116305780516001600160a01b0316156115c7579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561162b579392505050565b6115c7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116a7338261150c565b6000818152600e60209081526040918290206001905581513381529081018390527fb5c7a45051c5f4b2f942ebda7c60037c9f154c8ae5b35814e20db892106b6d93910160405180910390a150565b336001600160a01b0383160361171f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117968484846118b6565b6001600160a01b0383163b151580156117b857506117b684848484611c73565b155b1561076b576040516368d2bf6b60e11b815260040160405180910390fd5b60606117e1826113e8565b6117fe57604051630a14c4b560e41b815260040160405180910390fd5b6000611808611d5e565b905080516000036118285760405180602001604052806000815250611853565b8061183284611d6d565b604051602001611843929190612785565b6040516020818303038152906040525b9392505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118c182611531565b9050836001600160a01b031681600001516001600160a01b0316146118f85760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611916575061191685336104d9565b8061193157503361192684610651565b6001600160a01b0316145b90508061195157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661197857604051633a954ecd60e21b815260040160405180910390fd5b6119846000848761185a565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a58576000548214611a5857805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f18565b6106c88383836001611e6d565b6000611ab983611531565b80519091508215611b1f576000336001600160a01b0383161480611ae25750611ae282336104d9565b80611afd575033611af286610651565b6001600160a01b0316145b905080611b1d57604051632ce44b5f60e11b815260040160405180910390fd5b505b611b2b6000858361185a565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611c29576000548214611c2957805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ca89033908990889088906004016127b4565b6020604051808303816000875af1925050508015611ce3575060408051601f3d908101601f19168201909252611ce0918101906127f1565b60015b611d41573d808015611d11576040519150601f19603f3d011682016040523d82523d6000602084013e611d16565b606091505b508051600003611d39576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d80546105ce90612666565b606081600003611d945750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dbe5780611da88161272a565b9150611db79050600a836126f9565b9150611d98565b6000816001600160401b03811115611dd857611dd86122b5565b6040519080825280601f01601f191660200182016040528015611e02576020820181803683370190505b5090505b8415610b5b57611e176001836126cc565b9150611e24600a8661280e565b611e2f906030612822565b60f81b818381518110611e4457611e446126a0565b60200101906001600160f81b031916908160001a905350611e66600a866126f9565b9450611e06565b6001600160a01b038416611ec35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610569565b611ecc836113e8565b15611f195760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610569565b6001600160a01b0384166000908152600560205260408120805460019290611f4b9084906001600160401b031661283a565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b03861660009081526005602052604090208054600193509091600891611fa69185916801000000000000000090041661283a565b82546001600160401b039182166101009390930a9283029282021916919091179091556000858152600460205260409020805442909216600160a01b026001600160e01b03199092166001600160a01b038816179190911790555080801561201757506001600160a01b0384163b15155b15612090576120296000858585611c73565b6120905760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610569565b60405183906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46120d3836001612822565b600090815561076b908585600184565b8280546120ef90612666565b90600052602060002090601f0160209004810192826121115760008555612157565b82601f1061212a57805160ff1916838001178555612157565b82800160010185558215612157579182015b8281111561215757825182559160200191906001019061213c565b50612163929150612167565b5090565b5b808211156121635760008155600101612168565b6001600160e01b03198116811461088857600080fd5b6000602082840312156121a457600080fd5b81356118538161217c565b60005b838110156121ca5781810151838201526020016121b2565b8381111561076b5750506000910152565b600081518084526121f38160208601602086016121af565b601f01601f19169290920160200192915050565b60208152600061185360208301846121db565b60006020828403121561222c57600080fd5b5035919050565b6001600160a01b038116811461088857600080fd5b6000806040838503121561225b57600080fd5b823561226681612233565b946020939093013593505050565b60008060006060848603121561228957600080fd5b833561229481612233565b925060208401356122a481612233565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156122f3576122f36122b5565b604052919050565b60006001600160401b03831115612314576123146122b5565b612327601f8401601f19166020016122cb565b905082815283838301111561233b57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561236457600080fd5b81356001600160401b0381111561237a57600080fd5b8201601f8101841361238b57600080fd5b610b5b848235602084016122fb565b6000602082840312156123ac57600080fd5b813561185381612233565b6020808252825182820181905260009190848201906040850190845b818110156123ef578351835292840192918401916001016123d3565b50909695505050505050565b6000602080838503121561240e57600080fd5b82356001600160401b038082111561242557600080fd5b818501915085601f83011261243957600080fd5b81358181111561244b5761244b6122b5565b8060051b915061245c8483016122cb565b818152918301840191848101908884111561247657600080fd5b938501935b838510156124945784358252938501939085019061247b565b98975050505050505050565b803580151581146124b057600080fd5b919050565b600080604083850312156124c857600080fd5b82356124d381612233565b91506124e1602084016124a0565b90509250929050565b6000602082840312156124fc57600080fd5b611853826124a0565b6000806000806080858703121561251b57600080fd5b843561252681612233565b9350602085013561253681612233565b92506040850135915060608501356001600160401b0381111561255857600080fd5b8501601f8101871361256957600080fd5b612578878235602084016122fb565b91505092959194509250565b6000806020838503121561259757600080fd5b82356001600160401b03808211156125ae57600080fd5b818501915085601f8301126125c257600080fd5b8135818111156125d157600080fd5b8660208260051b85010111156125e657600080fd5b60209290920196919550909350505050565b6000806040838503121561260b57600080fd5b823561261681612233565b9150602083013561262681612233565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061267a57607f821691505b60208210810361269a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156126de576126de6126b6565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612708576127086126e3565b500490565b60006020828403121561271f57600080fd5b815161185381612233565b60006001820161273c5761273c6126b6565b5060010190565b60006020828403121561275557600080fd5b5051919050565b6000825161276e8184602087016121af565b64173539b7b760d91b920191825250600501919050565b600083516127978184602088016121af565b8351908301906127ab8183602088016121af565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127e7908301846121db565b9695505050505050565b60006020828403121561280357600080fd5b81516118538161217c565b60008261281d5761281d6126e3565b500690565b60008219821115612835576128356126b6565b500190565b60006001600160401b038083168185168083038211156127ab576127ab6126b656fea2646970667358221220583c4a7861ea5d6c646c9a26663ae58a029585faa06bccddb752f3439ac553cb64736f6c634300080d0033697066733a2f2f516d59664e515665766b6858596f5639416f6f345175415970656e57724751436b324155417547796833614c556b2f
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063b88d4fde116100ad578063dd2e0ac01161007c578063dd2e0ac014610498578063e6143d6b146104ab578063e985e9c5146104cb578063f2fde38b14610507578063fb796e6c1461051a57600080fd5b8063b88d4fde1461044c578063bc1b0a941461045f578063c4d50a5c14610472578063c87b56dd1461048557600080fd5b80638da5cb5b116100f45780638da5cb5b146103ed57806395d89b41146103fe5780639e34070f14610406578063a22cb46514610426578063b7c0b8e81461043957600080fd5b8063715018a6146103ac57806378c6bfff146103b45780637e356104146103c757806380f20363146103da57600080fd5b806340c10f19116101a85780635303f68c116101775780635303f68c1461034657806355f804b314610353578063627fdeab146103665780636352211e1461038657806370a082311461039957600080fd5b806340c10f191461030557806342842e0e1461031857806342966c681461032b5780634dbe58891461033e57600080fd5b8063095ea7b3116101ef578063095ea7b31461029357806318160ddd146102a657806323b872dd146102bc578063276a28a3146102cf578063404c7cdd146102f257600080fd5b806301ffc9a714610221578063049c5c491461024957806306fdde0314610253578063081812fc14610268575b600080fd5b61023461022f366004612192565b61052e565b60405190151581526020015b60405180910390f35b61025161053f565b005b61025b6105bf565b6040516102409190612207565b61027b61027636600461221a565b610651565b6040516001600160a01b039091168152602001610240565b6102516102a1366004612248565b610695565b600154600054035b604051908152602001610240565b6102516102ca366004612274565b6106cd565b6102346102dd36600461221a565b6000908152600f602052604090205460ff1690565b61025161030036600461221a565b610771565b610251610313366004612248565b6107a0565b610251610326366004612274565b6107d8565b61025161033936600461221a565b6107f3565b61025161088b565b600c546102349060ff1681565b610251610361366004612352565b6108e4565b61037961037436600461239a565b610921565b60405161024091906123b7565b61027b61039436600461221a565b610a49565b6102ae6103a736600461239a565b610a5b565b610251610aa9565b6102ae6103c236600461221a565b610adf565b6102516103d53660046123fb565b610b63565b6102516103e836600461221a565b610d1c565b6008546001600160a01b031661027b565b61025b610def565b6102ae61041436600461221a565b6000908152600e602052604090205490565b6102516104343660046124b5565b610dfe565b6102516104473660046124ea565b610e31565b61025161045a366004612505565b610e79565b61025161046d366004612584565b610f1f565b6102516104803660046123fb565b610f87565b61025b61049336600461221a565b6111ff565b6102516104a636600461221a565b611230565b6102ae6104b936600461221a565b600e6020526000908152604090205481565b6102346104d93660046125f8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61025161051536600461239a565b611300565b60085461023490600160a01b900460ff1681565b600061053982611398565b92915050565b6008546001600160a01b031633146105725760405162461bcd60e51b815260040161056990612631565b60405180910390fd5b600c805460ff8082161560ff1990921682179092556040519116151581527f398569ff5ba3e505659a502108faa79ea619ae2c901c198a7bf4e9b8e16bae389060200160405180910390a1565b6060600280546105ce90612666565b80601f01602080910402602001604051908101604052809291908181526020018280546105fa90612666565b80156106475780601f1061061c57610100808354040283529160200191610647565b820191906000526020600020905b81548152906001019060200180831161062a57829003601f168201915b5050505050905090565b600061065c826113e8565b610679576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161069f81611413565b6106be57600854600160a01b900460ff16156106be576106be81611435565b6106c88383611479565b505050565b826001600160a01b0381163314610706576106e733611413565b61070657600854600160a01b900460ff16156107065761070633611435565b6000828152600f602052604090205460ff16156107605760405162461bcd60e51b815260206004820152601860248201527721b0b73737ba1036b7bb32903637b1b5b2b2103a37b5b2b760411b6044820152606401610569565b61076b848484611501565b50505050565b6008546001600160a01b0316331461079b5760405162461bcd60e51b815260040161056990612631565b600b55565b6008546001600160a01b031633146107ca5760405162461bcd60e51b815260040161056990612631565b6107d4828261150c565b5050565b6106c883838360405180602001604052806000815250610e79565b6107fc81610a49565b6001600160a01b0316336001600160a01b0316148061082557506008546001600160a01b031633145b61087f5760405162461bcd60e51b815260206004820152602560248201527f4d757374206f776e206f7220626520636f6e7472616374206f776e657220746f60448201526410313ab93760d91b6064820152608401610569565b61088881611526565b50565b6008546001600160a01b031633146108b55760405162461bcd60e51b815260040161056990612631565b6040514790339082156108fc029083906000818181858888f193505050501580156107d4573d6000803e3d6000fd5b6008546001600160a01b0316331461090e5760405162461bcd60e51b815260040161056990612631565b80516107d490600d9060208401906120e3565b6060600061092e83610a5b565b6001600160401b03811115610945576109456122b5565b60405190808252806020026020018201604052801561096e578160200160208202803683370190505b506000805491925080805b83811015610a3e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906109e05750610a36565b80516001600160a01b0316156109f557805192505b876001600160a01b0316836001600160a01b031603610a345781868580600101965081518110610a2757610a276126a0565b6020026020010181815250505b505b600101610979565b509295945050505050565b6000610a5482611531565b5192915050565b60006001600160a01b038216610a84576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ad35760405162461bcd60e51b815260040161056990612631565b610add600061164b565b565b6000818152600f602052604081205460ff16610b335760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cc81b9bdd081b1bd8dad959606a1b6044820152606401610569565b6000828152601060205260408120549062015180610b5183426126cc565b610b5b91906126f9565b949350505050565b600c5460ff16610ba65760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b6044820152606401610569565b80516000819003610bf05760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b6044820152606401610569565b60005b818110156106c8576000838281518110610c0f57610c0f6126a0565b60200260200101519050600b54811115610c295750610d0a565b6000818152600e60205260408120549003610d0857600a546040516394a7eb4960e01b81526004810183905233916001600160a01b0316906394a7eb4990602401602060405180830381865afa158015610c87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cab919061270d565b6001600160a01b031614610cff57604080513381526020810183905260018183015290517f466eb39f0b88eed0b8023066bcdd81d044023a49452243c1f3300049eaa856019181900360600190a150610d0a565b610d088161169d565b505b80610d148161272a565b915050610bf3565b60008111610d6c5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e204944206d7573742062652031206f7220677265617465720000006044820152606401610569565b33610d7682610a49565b6001600160a01b031614610dc75760405162461bcd60e51b8152602060048201526018602482015277139bdd081d1a19481bdddb995c881bd9881d1a194813919560421b6044820152606401610569565b6000908152600f60209081526040808320805460ff1916600117905560109091529020429055565b6060600380546105ce90612666565b81610e0881611413565b610e2757600854600160a01b900460ff1615610e2757610e2781611435565b6106c883836116f6565b6008546001600160a01b03163314610e5b5760405162461bcd60e51b815260040161056990612631565b60088054911515600160a01b0260ff60a01b19909216919091179055565b836001600160a01b0381163314610eb257610e9333611413565b610eb257600854600160a01b900460ff1615610eb257610eb233611435565b6000838152600f602052604090205460ff1615610f0c5760405162461bcd60e51b815260206004820152601860248201527721b0b73737ba1036b7bb32903637b1b5b2b2103a37b5b2b760411b6044820152606401610569565b610f188585858561178b565b5050505050565b6008546001600160a01b03163314610f495760405162461bcd60e51b815260040161056990612631565b60005b818110156106c857610f75838383818110610f6957610f696126a0565b90506020020135611526565b80610f7f8161272a565b915050610f4c565b600c5460ff16610fca5760405162461bcd60e51b815260206004820152600e60248201526d436c61696d20496e61637469766560901b6044820152606401610569565b805160008190036110145760405162461bcd60e51b8152602060048201526014602482015273456d70747920746f6b656e20494420617272617960601b6044820152606401610569565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561105d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110819190612743565b9050818110156110d35760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204e46542062616c616e636500000000000000006044820152606401610569565b60005b8281101561076b5760008482815181106110f2576110f26126a0565b60200260200101519050600b5481111561110c57506111ed565b6000818152600e602052604081205490036111eb576009546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa15801561116a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118e919061270d565b6001600160a01b0316146111e257604080513381526020810183905260008183015290517f466eb39f0b88eed0b8023066bcdd81d044023a49452243c1f3300049eaa856019181900360600190a1506111ed565b6111eb8161169d565b505b806111f78161272a565b9150506110d6565b606061120a826117d6565b60405160200161121a919061275c565b6040516020818303038152906040529050919050565b600081116112805760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e204944206d7573742062652031206f7220677265617465720000006044820152606401610569565b3361128a82610a49565b6001600160a01b0316146112db5760405162461bcd60e51b8152602060048201526018602482015277139bdd081d1a19481bdddb995c881bd9881d1a194813919560421b6044820152606401610569565b6000908152600f60209081526040808320805460ff1916905560109091529020429055565b6008546001600160a01b0316331461132a5760405162461bcd60e51b815260040161056990612631565b6001600160a01b03811661138f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610569565b6108888161164b565b60006001600160e01b031982166380ac58cd60e01b14806113c957506001600160e01b03198216635b5e139f60e01b145b8061053957506301ffc9a760e01b6001600160e01b0319831614610539565b6000805482108015610539575050600090815260046020526040902054600160e01b900460ff161590565b6001600160a01b0316731e0049783f008a0085193e00003d00cd54003c711490565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611471573d6000803e3d6000fd5b6000603a5250565b600061148482610a49565b9050806001600160a01b0316836001600160a01b0316036114b85760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906114d857506114d681336104d9565b155b156114f6576040516367d9dca160e11b815260040160405180910390fd5b6106c883838361185a565b6106c88383836118b6565b6107d4828260405180602001604052806000815250611aa1565b610888816000611aae565b60408051606081018252600080825260208201819052918101919091528160005481101561163257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906116305780516001600160a01b0316156115c7579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561162b579392505050565b6115c7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116a7338261150c565b6000818152600e60209081526040918290206001905581513381529081018390527fb5c7a45051c5f4b2f942ebda7c60037c9f154c8ae5b35814e20db892106b6d93910160405180910390a150565b336001600160a01b0383160361171f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117968484846118b6565b6001600160a01b0383163b151580156117b857506117b684848484611c73565b155b1561076b576040516368d2bf6b60e11b815260040160405180910390fd5b60606117e1826113e8565b6117fe57604051630a14c4b560e41b815260040160405180910390fd5b6000611808611d5e565b905080516000036118285760405180602001604052806000815250611853565b8061183284611d6d565b604051602001611843929190612785565b6040516020818303038152906040525b9392505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118c182611531565b9050836001600160a01b031681600001516001600160a01b0316146118f85760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611916575061191685336104d9565b8061193157503361192684610651565b6001600160a01b0316145b90508061195157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661197857604051633a954ecd60e21b815260040160405180910390fd5b6119846000848761185a565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a58576000548214611a5857805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f18565b6106c88383836001611e6d565b6000611ab983611531565b80519091508215611b1f576000336001600160a01b0383161480611ae25750611ae282336104d9565b80611afd575033611af286610651565b6001600160a01b0316145b905080611b1d57604051632ce44b5f60e11b815260040160405180910390fd5b505b611b2b6000858361185a565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611c29576000548214611c2957805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ca89033908990889088906004016127b4565b6020604051808303816000875af1925050508015611ce3575060408051601f3d908101601f19168201909252611ce0918101906127f1565b60015b611d41573d808015611d11576040519150601f19603f3d011682016040523d82523d6000602084013e611d16565b606091505b508051600003611d39576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d80546105ce90612666565b606081600003611d945750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dbe5780611da88161272a565b9150611db79050600a836126f9565b9150611d98565b6000816001600160401b03811115611dd857611dd86122b5565b6040519080825280601f01601f191660200182016040528015611e02576020820181803683370190505b5090505b8415610b5b57611e176001836126cc565b9150611e24600a8661280e565b611e2f906030612822565b60f81b818381518110611e4457611e446126a0565b60200101906001600160f81b031916908160001a905350611e66600a866126f9565b9450611e06565b6001600160a01b038416611ec35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610569565b611ecc836113e8565b15611f195760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610569565b6001600160a01b0384166000908152600560205260408120805460019290611f4b9084906001600160401b031661283a565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b03861660009081526005602052604090208054600193509091600891611fa69185916801000000000000000090041661283a565b82546001600160401b039182166101009390930a9283029282021916919091179091556000858152600460205260409020805442909216600160a01b026001600160e01b03199092166001600160a01b038816179190911790555080801561201757506001600160a01b0384163b15155b15612090576120296000858585611c73565b6120905760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610569565b60405183906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46120d3836001612822565b600090815561076b908585600184565b8280546120ef90612666565b90600052602060002090601f0160209004810192826121115760008555612157565b82601f1061212a57805160ff1916838001178555612157565b82800160010185558215612157579182015b8281111561215757825182559160200191906001019061213c565b50612163929150612167565b5090565b5b808211156121635760008155600101612168565b6001600160e01b03198116811461088857600080fd5b6000602082840312156121a457600080fd5b81356118538161217c565b60005b838110156121ca5781810151838201526020016121b2565b8381111561076b5750506000910152565b600081518084526121f38160208601602086016121af565b601f01601f19169290920160200192915050565b60208152600061185360208301846121db565b60006020828403121561222c57600080fd5b5035919050565b6001600160a01b038116811461088857600080fd5b6000806040838503121561225b57600080fd5b823561226681612233565b946020939093013593505050565b60008060006060848603121561228957600080fd5b833561229481612233565b925060208401356122a481612233565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156122f3576122f36122b5565b604052919050565b60006001600160401b03831115612314576123146122b5565b612327601f8401601f19166020016122cb565b905082815283838301111561233b57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561236457600080fd5b81356001600160401b0381111561237a57600080fd5b8201601f8101841361238b57600080fd5b610b5b848235602084016122fb565b6000602082840312156123ac57600080fd5b813561185381612233565b6020808252825182820181905260009190848201906040850190845b818110156123ef578351835292840192918401916001016123d3565b50909695505050505050565b6000602080838503121561240e57600080fd5b82356001600160401b038082111561242557600080fd5b818501915085601f83011261243957600080fd5b81358181111561244b5761244b6122b5565b8060051b915061245c8483016122cb565b818152918301840191848101908884111561247657600080fd5b938501935b838510156124945784358252938501939085019061247b565b98975050505050505050565b803580151581146124b057600080fd5b919050565b600080604083850312156124c857600080fd5b82356124d381612233565b91506124e1602084016124a0565b90509250929050565b6000602082840312156124fc57600080fd5b611853826124a0565b6000806000806080858703121561251b57600080fd5b843561252681612233565b9350602085013561253681612233565b92506040850135915060608501356001600160401b0381111561255857600080fd5b8501601f8101871361256957600080fd5b612578878235602084016122fb565b91505092959194509250565b6000806020838503121561259757600080fd5b82356001600160401b03808211156125ae57600080fd5b818501915085601f8301126125c257600080fd5b8135818111156125d157600080fd5b8660208260051b85010111156125e657600080fd5b60209290920196919550909350505050565b6000806040838503121561260b57600080fd5b823561261681612233565b9150602083013561262681612233565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061267a57607f821691505b60208210810361269a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156126de576126de6126b6565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612708576127086126e3565b500490565b60006020828403121561271f57600080fd5b815161185381612233565b60006001820161273c5761273c6126b6565b5060010190565b60006020828403121561275557600080fd5b5051919050565b6000825161276e8184602087016121af565b64173539b7b760d91b920191825250600501919050565b600083516127978184602088016121af565b8351908301906127ab8183602088016121af565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127e7908301846121db565b9695505050505050565b60006020828403121561280357600080fd5b81516118538161217c565b60008261281d5761281d6126e3565b500690565b60008219821115612835576128356126b6565b500190565b60006001600160401b038083168185168083038211156127ab576127ab6126b656fea2646970667358221220583c4a7861ea5d6c646c9a26663ae58a029585faa06bccddb752f3439ac553cb64736f6c634300080d0033
Deployed Bytecode Sourcemap
102432:9867:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109534:376;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;109534:376:0;;;;;;;;110802:142;;;:::i;:::-;;59882:100;;;:::i;:::-;;;;;;;:::i;61456:220::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;61456:220:0;1528:203:1;108588:191:0;;;;;;:::i;:::-;;:::i;55986:303::-;56240:12;;56030:7;56224:13;:28;55986:303;;;2338:25:1;;;2326:2;2311:18;55986:303:0;2192:177:1;108923:276:0;;;;;;:::i;:::-;;:::i;107797:115::-;;;;;;:::i;:::-;107858:4;107882:22;;;:13;:22;;;;;;;;;107797:115;111374:97;;;;;;:::i;:::-;;:::i;111854:105::-;;;;;;:::i;:::-;;:::i;62628:185::-;;;;;;:::i;:::-;;:::i;103366:226::-;;;;;;:::i;:::-;;:::i;111967:147::-;;;:::i;102737:32::-;;;;;;;;;110952:104;;;;;;:::i;:::-;;:::i;105702:804::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;59690:125::-;;;;;;:::i;:::-;;:::i;57122:206::-;;;;;;:::i;:::-;;:::i;46697:103::-;;;:::i;107069:306::-;;;;;;:::i;:::-;;:::i;104909:785::-;;;;;;:::i;:::-;;:::i;106714:347::-;;;;;;:::i;:::-;;:::i;46046:87::-;46119:6;;-1:-1:-1;;;;;46119:6:0;46046:87;;60051:104;;;:::i;103245:113::-;;;;;;:::i;:::-;103304:7;103331:19;;;:10;:19;;;;;;;103245:113;108370:210;;;;;;:::i;:::-;;:::i;109918:117::-;;;;;;:::i;:::-;;:::i;109207:319::-;;;;;;:::i;:::-;;:::i;112122:174::-;;;;;;:::i;:::-;;:::i;103977:924::-;;;;;;:::i;:::-;;:::i;111186:180::-;;;;;;:::i;:::-;;:::i;107383:406::-;;;;;;:::i;:::-;;:::i;102937:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;62131:189;;;;;;:::i;:::-;-1:-1:-1;;;;;62277:25:0;;;62253:4;62277:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;62131:189;46955:238;;;;;;:::i;:::-;;:::i;102496:36::-;;;;;-1:-1:-1;;;102496:36:0;;;;;;109534:376;109644:4;109864:38;109890:11;109864:25;:38::i;:::-;109857:45;109534:376;-1:-1:-1;;109534:376:0:o;110802:142::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;;;;;;;;;110877:13:::1;::::0;;::::1;::::0;;::::1;110876:14;-1:-1:-1::0;;110860:30:0;;::::1;::::0;::::1;::::0;;;110906::::1;::::0;110922:13;;565:14:1;558:22;540:41;;110906:30:0::1;::::0;528:2:1;513:18;110906:30:0::1;;;;;;;110802:142::o:0;59882:100::-;59936:13;59969:5;59962:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59882:100;:::o;61456:220::-;61540:7;61565:16;61573:7;61565;:16::i;:::-;61560:64;;61590:34;;-1:-1:-1;;;61590:34:0;;;;;;;;;;;61560:64;-1:-1:-1;61644:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;61644:24:0;;61456:220::o;108588:191::-;108718:8;95065:29;95085:8;95065:19;:29::i;:::-;95060:122;;110136:24;;-1:-1:-1;;;110136:24:0;;;;95111:59;;;95144:26;95161:8;95144:16;:26::i;:::-;108739:32:::1;108753:8;108763:7;108739:13;:32::i;:::-;108588:191:::0;;;:::o;108923:276::-;109066:4;-1:-1:-1;;;;;94700:18:0;;94708:10;94700:18;94696:184;;94740:31;94760:10;94740:19;:31::i;:::-;94735:134;;110136:24;;-1:-1:-1;;;110136:24:0;;;;94792:61;;;94825:28;94842:10;94825:16;:28::i;:::-;107858:4;107882:22;;;:13;:22;;;;;;;;109091:23:::1;109083:60;;;::::0;-1:-1:-1;;;109083:60:0;;9386:2:1;109083:60:0::1;::::0;::::1;9368:21:1::0;9425:2;9405:18;;;9398:30;-1:-1:-1;;;9444:18:1;;;9437:54;9508:18;;109083:60:0::1;9184:348:1::0;109083:60:0::1;109154:37;109173:4;109179:2;109183:7;109154:18;:37::i;:::-;108923:276:::0;;;;:::o;111374:97::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;111445:9:::1;:18:::0;111374:97::o;111854:105::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;111928:23:::1;111938:2;111942:8;111928:9;:23::i;:::-;111854:105:::0;;:::o;62628:185::-;62766:39;62783:4;62789:2;62793:7;62766:39;;;;;;;;;;;;:16;:39::i;103366:226::-;103453:16;103461:7;103453;:16::i;:::-;-1:-1:-1;;;;;103439:30:0;:10;-1:-1:-1;;;;;103439:30:0;;:55;;;-1:-1:-1;46119:6:0;;-1:-1:-1;;;;;46119:6:0;103473:10;:21;103439:55;103417:142;;;;-1:-1:-1;;;103417:142:0;;9739:2:1;103417:142:0;;;9721:21:1;9778:2;9758:18;;;9751:30;9817:34;9797:18;;;9790:62;-1:-1:-1;;;9868:18:1;;;9861:35;9913:19;;103417:142:0;9537:401:1;103417:142:0;103570:14;103576:7;103570:5;:14::i;:::-;103366:226;:::o;111967:147::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;112069:37:::1;::::0;112037:21:::1;::::0;112077:10:::1;::::0;112069:37;::::1;;;::::0;112037:21;;112019:15:::1;112069:37:::0;112019:15;112069:37;112037:21;112077:10;112069:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;110952:104:::0;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;111025:23;;::::1;::::0;:13:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;105702:804::-:0;105782:16;105836:18;105871:16;105881:5;105871:9;:16::i;:::-;-1:-1:-1;;;;;105857:31:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;105857:31:0;-1:-1:-1;105903:11:0;105917:13;;105836:52;;-1:-1:-1;105903:11:0;;106019:446;106039:3;106035:1;:7;106019:446;;;106068:31;106102:14;;;:11;:14;;;;;;;;;106068:48;;;;;;;;;-1:-1:-1;;;;;106068:48:0;;;;-1:-1:-1;;;106068:48:0;;-1:-1:-1;;;;;106068:48:0;;;;;;;;-1:-1:-1;;;106068:48:0;;;;;;;;;;;;;;;;106135:73;;106180:8;;;106135:73;106230:14;;-1:-1:-1;;;;;106230:28:0;;106226:111;;106303:14;;;-1:-1:-1;106226:111:0;106380:5;-1:-1:-1;;;;;106359:26:0;:17;-1:-1:-1;;;;;106359:26:0;;106355:95;;106429:1;106410;106412:13;;;;;;106410:16;;;;;;;;:::i;:::-;;;;;;:20;;;;;106355:95;106049:416;106019:446;106044:3;;106019:446;;;-1:-1:-1;106486:1:0;;105702:804;-1:-1:-1;;;;;105702:804:0:o;59690:125::-;59754:7;59781:21;59794:7;59781:12;:21::i;:::-;:26;;59690:125;-1:-1:-1;;59690:125:0:o;57122:206::-;57186:7;-1:-1:-1;;;;;57210:19:0;;57206:60;;57238:28;;-1:-1:-1;;;57238:28:0;;;;;;;;;;;57206:60;-1:-1:-1;;;;;;57292:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;57292:27:0;;57122:206::o;46697:103::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;46762:30:::1;46789:1;46762:18;:30::i;:::-;46697:103::o:0;107069:306::-;107132:7;107160:22;;;:13;:22;;;;;;;;107152:54;;;;-1:-1:-1;;;107152:54:0;;10277:2:1;107152:54:0;;;10259:21:1;10316:2;10296:18;;;10289:30;-1:-1:-1;;;10335:18:1;;;10328:49;10394:18;;107152:54:0;10075:343:1;107152:54:0;107217:21;107241:24;;;:15;:24;;;;;;;107333:6;107298:31;107241:24;107298:15;:31;:::i;:::-;107297:42;;;;:::i;:::-;107276:63;107069:306;-1:-1:-1;;;;107069:306:0:o;104909:785::-;104992:13;;;;104984:40;;;;-1:-1:-1;;;104984:40:0;;11144:2:1;104984:40:0;;;11126:21:1;11183:2;11163:18;;;11156:30;-1:-1:-1;;;11202:18:1;;;11195:44;11256:18;;104984:40:0;10942:338:1;104984:40:0;105057:18;;105037:17;105094:14;;;105086:47;;;;-1:-1:-1;;;105086:47:0;;11487:2:1;105086:47:0;;;11469:21:1;11526:2;11506:18;;;11499:30;-1:-1:-1;;;11545:18:1;;;11538:50;11605:18;;105086:47:0;11285:344:1;105086:47:0;105151:9;105146:541;105166:9;105162:1;:13;105146:541;;;105197:15;105215:11;105227:1;105215:14;;;;;;;;:::i;:::-;;;;;;;105197:32;;105260:9;;105250:7;:19;105246:68;;;105290:8;;;105246:68;105334:19;;;;:10;:19;;;;;;:24;;105330:346;;105423:8;;105405:52;;-1:-1:-1;;;105405:52:0;;;;;2338:25:1;;;105482:10:0;;-1:-1:-1;;;;;105423:8:0;;105405:43;;2311:18:1;;105405:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;105405:87:0;;105379:247;;105540:35;;;105552:10;12100:51:1;;12182:2;12167:18;;12160:34;;;105573:1:0;12210:18:1;;;12203:34;105540:35:0;;;;;;;12088:2:1;105540:35:0;;;105598:8;;;105379:247;105644:16;105652:7;105644;:16::i;:::-;105182:505;105146:541;105177:3;;;;:::i;:::-;;;;105146:541;;106714:347;106788:1;106778:7;:11;106770:53;;;;-1:-1:-1;;;106770:53:0;;12590:2:1;106770:53:0;;;12572:21:1;12629:2;12609:18;;;12602:30;12668:31;12648:18;;;12641:59;12717:18;;106770:53:0;12388:353:1;106770:53:0;106921:10;106901:16;106909:7;106901;:16::i;:::-;-1:-1:-1;;;;;106901:30:0;;106893:67;;;;-1:-1:-1;;;106893:67:0;;12948:2:1;106893:67:0;;;12930:21:1;12987:2;12967:18;;;12960:30;-1:-1:-1;;;13006:18:1;;;12999:54;13070:18;;106893:67:0;12746:348:1;106893:67:0;106971:22;;;;:13;:22;;;;;;;;:29;;-1:-1:-1;;106971:29:0;106996:4;106971:29;;;107011:15;:24;;;;;107038:15;107011:42;;106714:347::o;60051:104::-;60107:13;60140:7;60133:14;;;;;:::i;108370:210::-;108508:8;95065:29;95085:8;95065:19;:29::i;:::-;95060:122;;110136:24;;-1:-1:-1;;;110136:24:0;;;;95111:59;;;95144:26;95161:8;95144:16;:26::i;:::-;108529:43:::1;108553:8;108563;108529:23;:43::i;109918:117::-:0;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;109995:24:::1;:32:::0;;;::::1;;-1:-1:-1::0;;;109995:32:0::1;-1:-1:-1::0;;;;109995:32:0;;::::1;::::0;;;::::1;::::0;;109918:117::o;109207:319::-;109383:4;-1:-1:-1;;;;;94700:18:0;;94708:10;94700:18;94696:184;;94740:31;94760:10;94740:19;:31::i;:::-;94735:134;;110136:24;;-1:-1:-1;;;110136:24:0;;;;94792:61;;;94825:28;94842:10;94825:16;:28::i;:::-;107858:4;107882:22;;;:13;:22;;;;;;;;109408:23:::1;109400:60;;;::::0;-1:-1:-1;;;109400:60:0;;9386:2:1;109400:60:0::1;::::0;::::1;9368:21:1::0;9425:2;9405:18;;;9398:30;-1:-1:-1;;;9444:18:1;;;9437:54;9508:18;;109400:60:0::1;9184:348:1::0;109400:60:0::1;109471:47;109494:4;109500:2;109504:7;109513:4;109471:22;:47::i;:::-;109207:319:::0;;;;;:::o;112122:174::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;112207:9:::1;112202:87;112218:19:::0;;::::1;112202:87;;;112259:18;112265:8;;112274:1;112265:11;;;;;;;:::i;:::-;;;;;;;112259:5;:18::i;:::-;112239:3:::0;::::1;::::0;::::1;:::i;:::-;;;;112202:87;;103977:924:::0;104052:13;;;;104044:40;;;;-1:-1:-1;;;104044:40:0;;11144:2:1;104044:40:0;;;11126:21:1;11183:2;11163:18;;;11156:30;-1:-1:-1;;;11202:18:1;;;11195:44;11256:18;;104044:40:0;10942:338:1;104044:40:0;104117:18;;104097:17;104154:14;;;104146:47;;;;-1:-1:-1;;;104146:47:0;;11487:2:1;104146:47:0;;;11469:21:1;11526:2;11506:18;;;11499:30;-1:-1:-1;;;11545:18:1;;;11538:50;11605:18;;104146:47:0;11285:344:1;104146:47:0;104308:11;;104300:42;;-1:-1:-1;;;104300:42:0;;104331:10;104300:42;;;1674:51:1;104276:21:0;;-1:-1:-1;;;;;104308:11:0;;104300:30;;1647:18:1;;104300:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104276:66;;104378:9;104361:13;:26;;104353:63;;;;-1:-1:-1;;;104353:63:0;;13490:2:1;104353:63:0;;;13472:21:1;13529:2;13509:18;;;13502:30;13568:26;13548:18;;;13541:54;13612:18;;104353:63:0;13288:348:1;104353:63:0;104434:9;104429:465;104449:9;104445:1;:13;104429:465;;;104480:15;104498:11;104510:1;104498:14;;;;;;;;:::i;:::-;;;;;;;104480:32;;104543:9;;104533:7;:19;104529:68;;;104573:8;;;104529:68;104617:19;;;;:10;:19;;;;;;:24;;104613:270;;104674:11;;104666:37;;-1:-1:-1;;;104666:37:0;;;;;2338:25:1;;;104707:10:0;;-1:-1:-1;;;;;104674:11:0;;104666:28;;2311:18:1;;104666:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;104666:51:0;;104662:171;;104747:35;;;104759:10;12100:51:1;;12182:2;12167:18;;12160:34;;;-1:-1:-1;12210:18:1;;;12203:34;104747:35:0;;;;;;;12088:2:1;104747:35:0;;;104805:8;;;104662:171;104851:16;104859:7;104851;:16::i;:::-;104465:429;104429:465;104460:3;;;;:::i;:::-;;;;104429:465;;111186:180;111267:13;111324:23;111339:7;111324:14;:23::i;:::-;111307:50;;;;;;;;:::i;:::-;;;;;;;;;;;;;111293:65;;111186:180;;;:::o;107383:406::-;107459:1;107449:7;:11;107441:53;;;;-1:-1:-1;;;107441:53:0;;12590:2:1;107441:53:0;;;12572:21:1;12629:2;12609:18;;;12602:30;12668:31;12648:18;;;12641:59;12717:18;;107441:53:0;12388:353:1;107441:53:0;107592:10;107572:16;107580:7;107572;:16::i;:::-;-1:-1:-1;;;;;107572:30:0;;107564:67;;;;-1:-1:-1;;;107564:67:0;;12948:2:1;107564:67:0;;;12930:21:1;12987:2;12967:18;;;12960:30;-1:-1:-1;;;13006:18:1;;;12999:54;13070:18;;107564:67:0;12746:348:1;107564:67:0;107667:5;107642:22;;;:13;:22;;;;;;;;:30;;-1:-1:-1;;107642:30:0;;;107739:15;:24;;;;;107766:15;107739:42;;107383:406::o;46955:238::-;46119:6;;-1:-1:-1;;;;;46119:6:0;34377:10;46266:23;46258:68;;;;-1:-1:-1;;;46258:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;47058:22:0;::::1;47036:110;;;::::0;-1:-1:-1;;;47036:110:0;;14649:2:1;47036:110:0::1;::::0;::::1;14631:21:1::0;14688:2;14668:18;;;14661:30;14727:34;14707:18;;;14700:62;-1:-1:-1;;;14778:18:1;;;14771:36;14824:19;;47036:110:0::1;14447:402:1::0;47036:110:0::1;47157:28;47176:8;47157:18;:28::i;56737:321::-:0;56855:4;-1:-1:-1;;;;;;56892:40:0;;-1:-1:-1;;;56892:40:0;;:105;;-1:-1:-1;;;;;;;56949:48:0;;-1:-1:-1;;;56949:48:0;56892:105;:158;;;-1:-1:-1;;;;;;;;;;37398:40:0;;;57014:36;37273:173;63545:213;63602:4;63692:13;;63682:7;:23;63639:111;;;;-1:-1:-1;;63723:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;63723:27:0;;;;63722:28;;63545:213::o;110176:402::-;-1:-1:-1;;;;;110507:63:0;110527:42;110507:63;;110176:402::o;95298:1536::-;95691:22;95685:4;95678:36;95784:9;95778:4;95771:23;95859:8;95853:4;95846:22;96181:4;96154;96127;96100;96052:25;96024:5;95991:213;95963:451;;96334:16;96328:4;96322;96307:44;96382:16;96376:4;96369:30;95963:451;96814:1;96808:4;96801:15;95298:1536;:::o;61011:379::-;61092:13;61108:24;61124:7;61108:15;:24::i;:::-;61092:40;;61153:5;-1:-1:-1;;;;;61147:11:0;:2;-1:-1:-1;;;;;61147:11:0;;61143:48;;61167:24;;-1:-1:-1;;;61167:24:0;;;;;;;;;;;61143:48;34377:10;-1:-1:-1;;;;;61208:21:0;;;;;;:63;;-1:-1:-1;61234:37:0;61251:5;34377:10;62131:189;:::i;61234:37::-;61233:38;61208:63;61204:138;;;61295:35;;-1:-1:-1;;;61295:35:0;;;;;;;;;;;61204:138;61354:28;61363:2;61367:7;61376:5;61354:8;:28::i;62387:170::-;62521:28;62531:4;62537:2;62541:7;62521:9;:28::i;63766:102::-;63834:26;63844:2;63848:7;63834:26;;;;;;;;;;;;:9;:26::i;67813:89::-;67873:21;67879:7;67888:5;67873;:21::i;58503:1125::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;58630:7:0;58713:13;;58706:4;:20;58675:886;;;58747:31;58781:17;;;:11;:17;;;;;;;;;58747:51;;;;;;;;;-1:-1:-1;;;;;58747:51:0;;;;-1:-1:-1;;;58747:51:0;;-1:-1:-1;;;;;58747:51:0;;;;;;;;-1:-1:-1;;;58747:51:0;;;;;;;;;;;;;;58817:729;;58867:14;;-1:-1:-1;;;;;58867:28:0;;58863:101;;58931:9;58503:1125;-1:-1:-1;;;58503:1125:0:o;58863:101::-;-1:-1:-1;;;59306:6:0;59351:17;;;;:11;:17;;;;;;;;;59339:29;;;;;;;;;-1:-1:-1;;;;;59339:29:0;;;;;-1:-1:-1;;;59339:29:0;;-1:-1:-1;;;;;59339:29:0;;;;;;;;-1:-1:-1;;;59339:29:0;;;;;;;;;;;;;59399:28;59395:109;;59467:9;58503:1125;-1:-1:-1;;;58503:1125:0:o;59395:109::-;59266:261;;;58728:833;58675:886;59589:31;;-1:-1:-1;;;59589:31:0;;;;;;;;;;;47353:191;47446:6;;;-1:-1:-1;;;;;47463:17:0;;;-1:-1:-1;;;;;;47463:17:0;;;;;;;47496:40;;47446:6;;;47463:17;47446:6;;47496:40;;47427:16;;47496:40;47416:128;47353:191;:::o;103793:176::-;103847:30;103857:10;103869:7;103847:9;:30::i;:::-;103888:19;;;;:10;:19;;;;;;;;;103910:1;103888:23;;103927:34;;103941:10;15028:51:1;;15095:18;;;15088:34;;;103927::0;;15001:18:1;103927:34:0;;;;;;;103793:176;:::o;61748:312::-;34377:10;-1:-1:-1;;;;;61872:24:0;;;61868:54;;61905:17;;-1:-1:-1;;;61905:17:0;;;;;;;;;;;61868:54;34377:10;61935:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;61935:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;61935:53:0;;;;;;;;;;62004:48;;540:41:1;;;61935:42:0;;34377:10;62004:48;;513:18:1;62004:48:0;;;;;;;61748:312;;:::o;62884:406::-;63051:28;63061:4;63067:2;63071:7;63051:9;:28::i;:::-;-1:-1:-1;;;;;63108:13:0;;26258:20;26306:8;;63108:89;;;;;63141:56;63172:4;63178:2;63182:7;63191:5;63141:30;:56::i;:::-;63140:57;63108:89;63090:193;;;63231:40;;-1:-1:-1;;;63231:40:0;;;;;;;;;;;60226:381;60315:13;60346:16;60354:7;60346;:16::i;:::-;60341:59;;60371:29;;-1:-1:-1;;;60371:29:0;;;;;;;;;;;60341:59;60413:21;60437:10;:8;:10::i;:::-;60413:34;;60484:7;60478:21;60503:1;60478:26;:121;;;;;;;;;;;;;;;;;60548:7;60557:18;:7;:16;:18::i;:::-;60531:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;60478:121;60458:141;60226:381;-1:-1:-1;;;60226:381:0:o;70657:162::-;70738:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;70738:29:0;-1:-1:-1;;;;;70738:29:0;;;;;;;;;70783:28;;70738:24;;70783:28;;;;;;;70657:162;;;:::o;65634:2096::-;65715:35;65753:21;65766:7;65753:12;:21::i;:::-;65715:59;;65813:4;-1:-1:-1;;;;;65791:26:0;:13;:18;;;-1:-1:-1;;;;;65791:26:0;;65787:67;;65826:28;;-1:-1:-1;;;65826:28:0;;;;;;;;;;;65787:67;65867:22;34377:10;-1:-1:-1;;;;;65893:20:0;;;;:73;;-1:-1:-1;65930:36:0;65947:4;34377:10;62131:189;:::i;65930:36::-;65893:126;;;-1:-1:-1;34377:10:0;65983:20;65995:7;65983:11;:20::i;:::-;-1:-1:-1;;;;;65983:36:0;;65893:126;65867:153;;66038:17;66033:66;;66064:35;;-1:-1:-1;;;66064:35:0;;;;;;;;;;;66033:66;-1:-1:-1;;;;;66114:16:0;;66110:52;;66139:23;;-1:-1:-1;;;66139:23:0;;;;;;;;;;;66110:52;66283:35;66300:1;66304:7;66313:4;66283:8;:35::i;:::-;-1:-1:-1;;;;;66614:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;66614:31:0;;;-1:-1:-1;;;;;66614:31:0;;;-1:-1:-1;;66614:31:0;;;;;;;66660:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;66660:29:0;;;;;;;;;;;66740:20;;;:11;:20;;;;;;66775:18;;-1:-1:-1;;;;;;66808:49:0;;;;-1:-1:-1;;;66841:15:0;66808:49;;;;;;;;;;67131:11;;67191:24;;;;;67234:13;;66740:20;;67191:24;;67234:13;67230:384;;67444:13;;67429:11;:28;67425:174;;67482:20;;67551:28;;;;-1:-1:-1;;;;;67525:54:0;-1:-1:-1;;;67525:54:0;-1:-1:-1;;;;;;67525:54:0;;;-1:-1:-1;;;;;67482:20:0;;67525:54;;;;67425:174;66589:1036;;;67661:7;67657:2;-1:-1:-1;;;;;67642:27:0;67651:4;-1:-1:-1;;;;;67642:27:0;;;;;;;;;;;67680:42;108923:276;64004:161;64126:31;64132:2;64136:7;64145:5;64152:4;64126:5;:31::i;68131:2408::-;68211:35;68249:21;68262:7;68249:12;:21::i;:::-;68298:18;;68211:59;;-1:-1:-1;68329:290:0;;;;68363:22;34377:10;-1:-1:-1;;;;;68389:20:0;;;;:77;;-1:-1:-1;68430:36:0;68447:4;34377:10;62131:189;:::i;68430:36::-;68389:134;;;-1:-1:-1;34377:10:0;68487:20;68499:7;68487:11;:20::i;:::-;-1:-1:-1;;;;;68487:36:0;;68389:134;68363:161;;68546:17;68541:66;;68572:35;;-1:-1:-1;;;68572:35:0;;;;;;;;;;;68541:66;68348:271;68329:290;68747:35;68764:1;68768:7;68777:4;68747:8;:35::i;:::-;-1:-1:-1;;;;;69112:18:0;;;69078:31;69112:18;;;:12;:18;;;;;;;;69145:24;;-1:-1:-1;;;;;;;;;;69145:24:0;;;;;;;;;-1:-1:-1;;69145:24:0;;;;69184:29;;;;;69168:1;69184:29;;;;;;;;-1:-1:-1;;69184:29:0;;;;;;;;;;69346:20;;;:11;:20;;;;;;69381;;-1:-1:-1;;;;69449:15:0;69416:49;;;-1:-1:-1;;;69416:49:0;-1:-1:-1;;;;;;69416:49:0;;;;;;;;;;69480:22;-1:-1:-1;;;69480:22:0;;;69772:11;;;69832:24;;;;;69875:13;;69112:18;;69832:24;;69875:13;69871:384;;70085:13;;70070:11;:28;70066:174;;70123:20;;70192:28;;;;-1:-1:-1;;;;;70166:54:0;-1:-1:-1;;;70166:54:0;-1:-1:-1;;;;;;70166:54:0;;;-1:-1:-1;;;;;70123:20:0;;70166:54;;;;70066:174;-1:-1:-1;;70283:35:0;;70310:7;;-1:-1:-1;70306:1:0;;-1:-1:-1;;;;;;70283:35:0;;;;;70306:1;;70283:35;-1:-1:-1;;70506:12:0;:14;;;;;;-1:-1:-1;;68131:2408:0:o;71311:772::-;71508:155;;-1:-1:-1;;;71508:155:0;;71474:4;;-1:-1:-1;;;;;71508:36:0;;;;;:155;;34377:10;;71594:4;;71617:7;;71643:5;;71508:155;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71508:155:0;;;;;;;;-1:-1:-1;;71508:155:0;;;;;;;;;;;;:::i;:::-;;;71491:585;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71834:6;:13;71851:1;71834:18;71830:235;;71880:40;;-1:-1:-1;;;71880:40:0;;;;;;;;;;;71830:235;72023:6;72017:13;72008:6;72004:2;72000:15;71993:38;71491:585;-1:-1:-1;;;;;;71719:55:0;-1:-1:-1;;;71719:55:0;;-1:-1:-1;71311:772:0;;;;;;:::o;111064:114::-;111124:13;111157;111150:20;;;;;:::i;34764:723::-;34820:13;35041:5;35050:1;35041:10;35037:53;;-1:-1:-1;;35068:10:0;;;;;;;;;;;;-1:-1:-1;;;35068:10:0;;;;;34764:723::o;35037:53::-;35115:5;35100:12;35156:78;35163:9;;35156:78;;35189:8;;;;:::i;:::-;;-1:-1:-1;35212:10:0;;-1:-1:-1;35220:2:0;35212:10;;:::i;:::-;;;35156:78;;;35244:19;35276:6;-1:-1:-1;;;;;35266:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35266:17:0;;35244:39;;35294:154;35301:10;;35294:154;;35328:11;35338:1;35328:11;;:::i;:::-;;-1:-1:-1;35397:10:0;35405:2;35397:5;:10;:::i;:::-;35384:24;;:2;:24;:::i;:::-;35371:39;;35354:6;35361;35354:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;35354:56:0;;;;;;;;-1:-1:-1;35425:11:0;35434:2;35425:11;;:::i;:::-;;;35294:154;;64425:955;-1:-1:-1;;;;;64571:16:0;;64563:61;;;;-1:-1:-1;;;64563:61:0;;16808:2:1;64563:61:0;;;16790:21:1;;;16827:18;;;16820:30;16886:34;16866:18;;;16859:62;16938:18;;64563:61:0;16606:356:1;64563:61:0;64644:16;64652:7;64644;:16::i;:::-;64643:17;64635:58;;;;-1:-1:-1;;;64635:58:0;;17169:2:1;64635:58:0;;;17151:21:1;17208:2;17188:18;;;17181:30;17247;17227:18;;;17220:58;17295:18;;64635:58:0;16967:352:1;64635:58:0;-1:-1:-1;;;;;64768:16:0;;;;;;:12;:16;;;;;:29;;64796:1;;64768:16;:29;;64796:1;;-1:-1:-1;;;;;64768:29:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;64768:29:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;64808:16:0;;-1:-1:-1;64808:16:0;;;:12;:16;;;;;:34;;-1:-1:-1;;;64808:16:0;;:29;;:34;;-1:-1:-1;;64808:34:0;;;;;:::i;:::-;;;-1:-1:-1;;;;;64808:34:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64855:20:0;;;:11;:20;;;;;:30;;64941:15;64896:61;;;-1:-1:-1;;;64896:61:0;-1:-1:-1;;;;;;64896:61:0;;;-1:-1:-1;;;;;64855:30:0;;64896:61;;;;;;;-1:-1:-1;64974:4:0;:23;;;;-1:-1:-1;;;;;;64982:13:0;;26258:20;26306:8;;64982:15;64970:251;;;65037:62;65076:1;65080:2;65084:7;65093:5;65037:30;:62::i;:::-;65014:196;;65134:60;;-1:-1:-1;;;65134:60:0;;17767:2:1;65134:60:0;;;17749:21:1;17806:2;17786:18;;;17779:30;17845:34;17825:18;;;17818:62;-1:-1:-1;;;17896:18:1;;;17889:48;17954:19;;65134:60:0;17565:414:1;65014:196:0;65238:33;;65263:7;;-1:-1:-1;;;;;65238:33:0;;;65255:1;;65238:33;;65255:1;;65238:33;65300:11;:7;65310:1;65300:11;:::i;:::-;65284:13;:27;;;65324:48;;65357:2;65361:7;65370:1;65324:48;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:131::-;-1:-1:-1;;;;;1811:31:1;;1801:42;;1791:70;;1857:1;1854;1847:12;1872:315;1940:6;1948;2001:2;1989:9;1980:7;1976:23;1972:32;1969:52;;;2017:1;2014;2007:12;1969:52;2056:9;2043:23;2075:31;2100:5;2075:31;:::i;:::-;2125:5;2177:2;2162:18;;;;2149:32;;-1:-1:-1;;;1872:315:1:o;2374:456::-;2451:6;2459;2467;2520:2;2508:9;2499:7;2495:23;2491:32;2488:52;;;2536:1;2533;2526:12;2488:52;2575:9;2562:23;2594:31;2619:5;2594:31;:::i;:::-;2644:5;-1:-1:-1;2701:2:1;2686:18;;2673:32;2714:33;2673:32;2714:33;:::i;:::-;2374:456;;2766:7;;-1:-1:-1;;;2820:2:1;2805:18;;;;2792:32;;2374:456::o;2835:127::-;2896:10;2891:3;2887:20;2884:1;2877:31;2927:4;2924:1;2917:15;2951:4;2948:1;2941:15;2967:275;3038:2;3032:9;3103:2;3084:13;;-1:-1:-1;;3080:27:1;3068:40;;-1:-1:-1;;;;;3123:34:1;;3159:22;;;3120:62;3117:88;;;3185:18;;:::i;:::-;3221:2;3214:22;2967:275;;-1:-1:-1;2967:275:1:o;3247:407::-;3312:5;-1:-1:-1;;;;;3338:6:1;3335:30;3332:56;;;3368:18;;:::i;:::-;3406:57;3451:2;3430:15;;-1:-1:-1;;3426:29:1;3457:4;3422:40;3406:57;:::i;:::-;3397:66;;3486:6;3479:5;3472:21;3526:3;3517:6;3512:3;3508:16;3505:25;3502:45;;;3543:1;3540;3533:12;3502:45;3592:6;3587:3;3580:4;3573:5;3569:16;3556:43;3646:1;3639:4;3630:6;3623:5;3619:18;3615:29;3608:40;3247:407;;;;;:::o;3659:451::-;3728:6;3781:2;3769:9;3760:7;3756:23;3752:32;3749:52;;;3797:1;3794;3787:12;3749:52;3837:9;3824:23;-1:-1:-1;;;;;3862:6:1;3859:30;3856:50;;;3902:1;3899;3892:12;3856:50;3925:22;;3978:4;3970:13;;3966:27;-1:-1:-1;3956:55:1;;4007:1;4004;3997:12;3956:55;4030:74;4096:7;4091:2;4078:16;4073:2;4069;4065:11;4030:74;:::i;4115:247::-;4174:6;4227:2;4215:9;4206:7;4202:23;4198:32;4195:52;;;4243:1;4240;4233:12;4195:52;4282:9;4269:23;4301:31;4326:5;4301:31;:::i;4367:632::-;4538:2;4590:21;;;4660:13;;4563:18;;;4682:22;;;4509:4;;4538:2;4761:15;;;;4735:2;4720:18;;;4509:4;4804:169;4818:6;4815:1;4812:13;4804:169;;;4879:13;;4867:26;;4948:15;;;;4913:12;;;;4840:1;4833:9;4804:169;;;-1:-1:-1;4990:3:1;;4367:632;-1:-1:-1;;;;;;4367:632:1:o;5004:946::-;5088:6;5119:2;5162;5150:9;5141:7;5137:23;5133:32;5130:52;;;5178:1;5175;5168:12;5130:52;5218:9;5205:23;-1:-1:-1;;;;;5288:2:1;5280:6;5277:14;5274:34;;;5304:1;5301;5294:12;5274:34;5342:6;5331:9;5327:22;5317:32;;5387:7;5380:4;5376:2;5372:13;5368:27;5358:55;;5409:1;5406;5399:12;5358:55;5445:2;5432:16;5467:2;5463;5460:10;5457:36;;;5473:18;;:::i;:::-;5519:2;5516:1;5512:10;5502:20;;5542:28;5566:2;5562;5558:11;5542:28;:::i;:::-;5604:15;;;5674:11;;;5670:20;;;5635:12;;;;5702:19;;;5699:39;;;5734:1;5731;5724:12;5699:39;5758:11;;;;5778:142;5794:6;5789:3;5786:15;5778:142;;;5860:17;;5848:30;;5811:12;;;;5898;;;;5778:142;;;5939:5;5004:946;-1:-1:-1;;;;;;;;5004:946:1:o;5955:160::-;6020:20;;6076:13;;6069:21;6059:32;;6049:60;;6105:1;6102;6095:12;6049:60;5955:160;;;:::o;6120:315::-;6185:6;6193;6246:2;6234:9;6225:7;6221:23;6217:32;6214:52;;;6262:1;6259;6252:12;6214:52;6301:9;6288:23;6320:31;6345:5;6320:31;:::i;:::-;6370:5;-1:-1:-1;6394:35:1;6425:2;6410:18;;6394:35;:::i;:::-;6384:45;;6120:315;;;;;:::o;6440:180::-;6496:6;6549:2;6537:9;6528:7;6524:23;6520:32;6517:52;;;6565:1;6562;6555:12;6517:52;6588:26;6604:9;6588:26;:::i;6625:795::-;6720:6;6728;6736;6744;6797:3;6785:9;6776:7;6772:23;6768:33;6765:53;;;6814:1;6811;6804:12;6765:53;6853:9;6840:23;6872:31;6897:5;6872:31;:::i;:::-;6922:5;-1:-1:-1;6979:2:1;6964:18;;6951:32;6992:33;6951:32;6992:33;:::i;:::-;7044:7;-1:-1:-1;7098:2:1;7083:18;;7070:32;;-1:-1:-1;7153:2:1;7138:18;;7125:32;-1:-1:-1;;;;;7169:30:1;;7166:50;;;7212:1;7209;7202:12;7166:50;7235:22;;7288:4;7280:13;;7276:27;-1:-1:-1;7266:55:1;;7317:1;7314;7307:12;7266:55;7340:74;7406:7;7401:2;7388:16;7383:2;7379;7375:11;7340:74;:::i;:::-;7330:84;;;6625:795;;;;;;;:::o;7425:615::-;7511:6;7519;7572:2;7560:9;7551:7;7547:23;7543:32;7540:52;;;7588:1;7585;7578:12;7540:52;7628:9;7615:23;-1:-1:-1;;;;;7698:2:1;7690:6;7687:14;7684:34;;;7714:1;7711;7704:12;7684:34;7752:6;7741:9;7737:22;7727:32;;7797:7;7790:4;7786:2;7782:13;7778:27;7768:55;;7819:1;7816;7809:12;7768:55;7859:2;7846:16;7885:2;7877:6;7874:14;7871:34;;;7901:1;7898;7891:12;7871:34;7954:7;7949:2;7939:6;7936:1;7932:14;7928:2;7924:23;7920:32;7917:45;7914:65;;;7975:1;7972;7965:12;7914:65;8006:2;7998:11;;;;;8028:6;;-1:-1:-1;7425:615:1;;-1:-1:-1;;;;7425:615:1:o;8045:388::-;8113:6;8121;8174:2;8162:9;8153:7;8149:23;8145:32;8142:52;;;8190:1;8187;8180:12;8142:52;8229:9;8216:23;8248:31;8273:5;8248:31;:::i;:::-;8298:5;-1:-1:-1;8355:2:1;8340:18;;8327:32;8368:33;8327:32;8368:33;:::i;:::-;8420:7;8410:17;;;8045:388;;;;;:::o;8438:356::-;8640:2;8622:21;;;8659:18;;;8652:30;8718:34;8713:2;8698:18;;8691:62;8785:2;8770:18;;8438:356::o;8799:380::-;8878:1;8874:12;;;;8921;;;8942:61;;8996:4;8988:6;8984:17;8974:27;;8942:61;9049:2;9041:6;9038:14;9018:18;9015:38;9012:161;;9095:10;9090:3;9086:20;9083:1;9076:31;9130:4;9127:1;9120:15;9158:4;9155:1;9148:15;9012:161;;8799:380;;;:::o;9943:127::-;10004:10;9999:3;9995:20;9992:1;9985:31;10035:4;10032:1;10025:15;10059:4;10056:1;10049:15;10423:127;10484:10;10479:3;10475:20;10472:1;10465:31;10515:4;10512:1;10505:15;10539:4;10536:1;10529:15;10555:125;10595:4;10623:1;10620;10617:8;10614:34;;;10628:18;;:::i;:::-;-1:-1:-1;10665:9:1;;10555:125::o;10685:127::-;10746:10;10741:3;10737:20;10734:1;10727:31;10777:4;10774:1;10767:15;10801:4;10798:1;10791:15;10817:120;10857:1;10883;10873:35;;10888:18;;:::i;:::-;-1:-1:-1;10922:9:1;;10817:120::o;11634:251::-;11704:6;11757:2;11745:9;11736:7;11732:23;11728:32;11725:52;;;11773:1;11770;11763:12;11725:52;11805:9;11799:16;11824:31;11849:5;11824:31;:::i;12248:135::-;12287:3;12308:17;;;12305:43;;12328:18;;:::i;:::-;-1:-1:-1;12375:1:1;12364:13;;12248:135::o;13099:184::-;13169:6;13222:2;13210:9;13201:7;13197:23;13193:32;13190:52;;;13238:1;13235;13228:12;13190:52;-1:-1:-1;13261:16:1;;13099:184;-1:-1:-1;13099:184:1:o;13999:443::-;14231:3;14269:6;14263:13;14285:53;14331:6;14326:3;14319:4;14311:6;14307:17;14285:53;:::i;:::-;-1:-1:-1;;;14360:16:1;;14385:22;;;-1:-1:-1;14434:1:1;14423:13;;13999:443;-1:-1:-1;13999:443:1:o;15133:470::-;15312:3;15350:6;15344:13;15366:53;15412:6;15407:3;15400:4;15392:6;15388:17;15366:53;:::i;:::-;15482:13;;15441:16;;;;15504:57;15482:13;15441:16;15538:4;15526:17;;15504:57;:::i;:::-;15577:20;;15133:470;-1:-1:-1;;;;15133:470:1:o;15608:489::-;-1:-1:-1;;;;;15877:15:1;;;15859:34;;15929:15;;15924:2;15909:18;;15902:43;15976:2;15961:18;;15954:34;;;16024:3;16019:2;16004:18;;15997:31;;;15802:4;;16045:46;;16071:19;;16063:6;16045:46;:::i;:::-;16037:54;15608:489;-1:-1:-1;;;;;;15608:489:1:o;16102:249::-;16171:6;16224:2;16212:9;16203:7;16199:23;16195:32;16192:52;;;16240:1;16237;16230:12;16192:52;16272:9;16266:16;16291:30;16315:5;16291:30;:::i;16356:112::-;16388:1;16414;16404:35;;16419:18;;:::i;:::-;-1:-1:-1;16453:9:1;;16356:112::o;16473:128::-;16513:3;16544:1;16540:6;16537:1;16534:13;16531:39;;;16550:18;;:::i;:::-;-1:-1:-1;16586:9:1;;16473:128::o;17324:236::-;17363:3;-1:-1:-1;;;;;17436:2:1;17433:1;17429:10;17466:2;17463:1;17459:10;17497:3;17493:2;17489:12;17484:3;17481:21;17478:47;;;17505:18;;:::i
Swarm Source
ipfs://583c4a7861ea5d6c646c9a26663ae58a029585faa06bccddb752f3439ac553cb
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.