Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19368371 | 239 days ago | IN | 0 ETH | 0.00206232 | ||||
Mint Public | 15934212 | 720 days ago | IN | 0.03 ETH | 0.00962606 | ||||
Set Approval For... | 15932675 | 721 days ago | IN | 0 ETH | 0.00114367 | ||||
Airdrop | 15932657 | 721 days ago | IN | 0 ETH | 0.05917597 | ||||
Airdrop | 15932570 | 721 days ago | IN | 0 ETH | 0.02131743 | ||||
Airdrop | 15932564 | 721 days ago | IN | 0 ETH | 0.00731327 | ||||
Set Sale Step | 15932560 | 721 days ago | IN | 0 ETH | 0.00100076 | ||||
Set Base URI | 15932559 | 721 days ago | IN | 0 ETH | 0.00260752 | ||||
0x60806040 | 15932538 | 721 days ago | IN | 0 ETH | 0.05373227 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19368371 | 239 days ago | 0.03 ETH |
Loading...
Loading
Contract Name:
Scribs
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-09 */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: contracts/Scribs.sol pragma solidity ^0.8.7; // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol pragma solidity ^0.8.4; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); 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 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_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @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) { if (owner == address(0)) revert MintedQueryForZeroAddress(); 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) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); 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) { if (owner == address(0)) revert AuxQueryForZeroAddress(); 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 { if (owner == address(0)) revert AuxQueryForZeroAddress(); _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 (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 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 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 (!_checkOnERC721Received(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 tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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; _ownerships[tokenId].addr = to; _ownerships[tokenId].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; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].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; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, 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 address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * 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 {} } contract Scribs is ERC721A, Ownable { using Strings for uint256; uint256 public MAX_SUPPLY = 10000; string private BASE_URI; string private UNREVEAL_URI; bytes32 public WHITELIST_ROOT; uint256 public WHITELIST_PRICE = 0.03 ether; uint256 public PUBLIC_PRICE = 0.03 ether; uint256 public PUBLIC_MINT_LIMIT = 20; uint256 public SALE_STEP = 0; // 0 => NONE, 1 => WHITELIST, 2 => PUBLIC constructor() ERC721A("Scribs", "SCRIBS") {} function setWhitelistRoot(bytes32 _root) external onlyOwner { WHITELIST_ROOT = _root; } function setPublicMintLimit(uint256 _publicMintLimit) external onlyOwner { PUBLIC_MINT_LIMIT = _publicMintLimit; } function isWhiteListed(bytes32 _leafNode, bytes32[] memory _proof) public view returns (bool) { return MerkleProof.verify(_proof, WHITELIST_ROOT, _leafNode); } function toLeaf(address account, uint256 index, uint256 amount) public pure returns (bytes32) { return keccak256(abi.encodePacked(index, account, amount)); } function numberMinted(address _owner) public view returns (uint256) { return _numberMinted(_owner); } function mintWhitelist(uint256 _mintAmount, uint256 _index, uint256 _amount, bytes32[] calldata _proof) external payable { require(totalSupply() + _mintAmount <= MAX_SUPPLY, "Exceeds Max Supply"); require(SALE_STEP == 1, "Whitelist sale is not opened"); require(WHITELIST_PRICE * _mintAmount <= msg.value, "ETH not enough"); require(isWhiteListed(toLeaf(msg.sender, _index, _amount), _proof), "Invalid proof"); require((numberMinted(msg.sender) + _mintAmount) <= _amount, "Exceeds Max Mint Amount"); _mintLoop(msg.sender, _mintAmount); } function mintPublic(uint256 _mintAmount) external payable { require(totalSupply() + _mintAmount <= MAX_SUPPLY, "Exceeds Max Supply"); require(SALE_STEP == 2, "Public Sale is not opened"); require(PUBLIC_PRICE * _mintAmount <= msg.value, "ETH not enough"); require((numberMinted(msg.sender) + _mintAmount) <= PUBLIC_MINT_LIMIT, "Exceeds Max Mint Amount"); _mintLoop(msg.sender, _mintAmount); } function airdrop(address[] memory _airdropAddresses, uint256 _mintAmount) external onlyOwner { require(totalSupply() + _airdropAddresses.length * _mintAmount <= MAX_SUPPLY, "Exceeds Max Supply"); for (uint256 i = 0; i < _airdropAddresses.length; i++) { address to = _airdropAddresses[i]; _mintLoop(to, _mintAmount); } } function _baseURI() internal view virtual override returns (string memory) { return BASE_URI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : UNREVEAL_URI; } function setMaxSupply(uint256 _supply) external onlyOwner { MAX_SUPPLY = _supply; } function setBaseURI(string memory _newBaseURI) external onlyOwner { BASE_URI = _newBaseURI; } function setUnrevealURI(string memory _newUnrevealURI) external onlyOwner { UNREVEAL_URI = _newUnrevealURI; } function setSaleStep(uint256 _saleStep) external onlyOwner { SALE_STEP = _saleStep; } function _mintLoop(address _receiver, uint256 _mintAmount) internal { _safeMint(_receiver, _mintAmount); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function withdraw() external onlyOwner { uint256 curBalance = address(this).balance; payable(msg.sender).transfer(curBalance); } }
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":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_STEP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"bytes32","name":"_leafNode","type":"bytes32"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintLimit","type":"uint256"}],"name":"setPublicMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStep","type":"uint256"}],"name":"setSaleStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUnrevealURI","type":"string"}],"name":"setUnrevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"toLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600955666a94d74f430000600d55666a94d74f430000600e556014600f5560006010553480156200003757600080fd5b506040518060400160405280600681526020016553637269627360d01b8152506040518060400160405280600681526020016553435249425360d01b8152508160029081620000879190620001b4565b506003620000968282620001b4565b505050620000b3620000ad620000b960201b60201c565b620000bd565b62000280565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013a57607f821691505b6020821081036200015b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001af57600081815260208120601f850160051c810160208610156200018a5750805b601f850160051c820191505b81811015620001ab5782815560010162000196565b5050505b505050565b81516001600160401b03811115620001d057620001d06200010f565b620001e881620001e1845462000125565b8462000161565b602080601f831160018114620002205760008415620002075750858301515b600019600386901b1c1916600185901b178555620001ab565b600085815260208120601f198616915b82811015620002515788860151825594840194600190910190840162000230565b5085821015620002705787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6121c680620002906000396000f3fe60806040526004361061021a5760003560e01c806384b9a4a511610123578063c204642c116100ab578063efd0cbf91161006f578063efd0cbf914610657578063f2fde38b1461066a578063f5aa406d1461068a578063fdaf0125146106aa578063ff63cf01146106ca57600080fd5b8063c204642c1461058e578063c87b56dd146105ae578063dc33e681146105ce578063e985e9c5146105ee578063ef3e067c1461063757600080fd5b806397bc411c116100f257806397bc411c146104f8578063a22cb46514610518578063b88d4fde14610538578063bceae77b14610558578063bd6454541461056e57600080fd5b806384b9a4a5146104595780638da5cb5b1461046f5780639231ab2a1461048d57806395d89b41146104e357600080fd5b80633ccfd60b116101a6578063611f3f1011610175578063611f3f10146103ce5780636352211e146103e45780636f8b44b01461040457806370a0823114610424578063715018a61461044457600080fd5b80633ccfd60b1461035957806342842e0e1461036e57806353e90cbd1461038e57806355f804b3146103ae57600080fd5b806317e7f295116101ed57806317e7f295146102d057806318160ddd146102f457806323b872dd1461030d5780632a1d61901461032d57806332cb6b0c1461034357600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046119fd565b6106dd565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026961072f565b60405161024b9190611a6a565b34801561028257600080fd5b50610296610291366004611a7d565b6107c1565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004611ab2565b610805565b005b3480156102dc57600080fd5b506102e6600d5481565b60405190815260200161024b565b34801561030057600080fd5b50600154600054036102e6565b34801561031957600080fd5b506102ce610328366004611adc565b610892565b34801561033957600080fd5b506102e6600c5481565b34801561034f57600080fd5b506102e660095481565b34801561036557600080fd5b506102ce61089d565b34801561037a57600080fd5b506102ce610389366004611adc565b6108d8565b34801561039a57600080fd5b506102ce6103a9366004611a7d565b6108f3565b3480156103ba57600080fd5b506102ce6103c9366004611bb5565b610900565b3480156103da57600080fd5b506102e6600e5481565b3480156103f057600080fd5b506102966103ff366004611a7d565b610914565b34801561041057600080fd5b506102ce61041f366004611a7d565b610926565b34801561043057600080fd5b506102e661043f366004611bfd565b610933565b34801561045057600080fd5b506102ce610981565b34801561046557600080fd5b506102e660105481565b34801561047b57600080fd5b506008546001600160a01b0316610296565b34801561049957600080fd5b506104ad6104a8366004611a7d565b610995565b6040805182516001600160a01b031681526020808401516001600160401b0316908201529181015115159082015260600161024b565b3480156104ef57600080fd5b506102696109bb565b34801561050457600080fd5b506102ce610513366004611bb5565b6109ca565b34801561052457600080fd5b506102ce610533366004611c18565b6109de565b34801561054457600080fd5b506102ce610553366004611c54565b610a73565b34801561056457600080fd5b506102e6600f5481565b34801561057a57600080fd5b5061023f610589366004611cf2565b610aad565b34801561059a57600080fd5b506102ce6105a9366004611d93565b610ac3565b3480156105ba57600080fd5b506102696105c9366004611a7d565b610b5a565b3480156105da57600080fd5b506102e66105e9366004611bfd565b610c9f565b3480156105fa57600080fd5b5061023f610609366004611e30565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064357600080fd5b506102ce610652366004611a7d565b610caa565b6102ce610665366004611a7d565b610cb7565b34801561067657600080fd5b506102ce610685366004611bfd565b610dfc565b34801561069657600080fd5b506102ce6106a5366004611a7d565b610e72565b3480156106b657600080fd5b506102e66106c5366004611e63565b610e7f565b6102ce6106d8366004611e96565b610ec8565b60006001600160e01b031982166380ac58cd60e01b148061070e57506001600160e01b03198216635b5e139f60e01b145b8061072957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461073e90611f25565b80601f016020809104026020016040519081016040528092919081815260200182805461076a90611f25565b80156107b75780601f1061078c576101008083540402835291602001916107b7565b820191906000526020600020905b81548152906001019060200180831161079a57829003601f168201915b5050505050905090565b60006107cc82611092565b6107e9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061081082610914565b9050806001600160a01b0316836001600160a01b0316036108445760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061086457506108628133610609565b155b15610882576040516367d9dca160e11b815260040160405180910390fd5b61088d8383836110bd565b505050565b61088d838383611119565b6108a561132a565b6040514790339082156108fc029083906000818181858888f193505050501580156108d4573d6000803e3d6000fd5b5050565b61088d83838360405180602001604052806000815250610a73565b6108fb61132a565b601055565b61090861132a565b600a6108d48282611fad565b600061091f82611384565b5192915050565b61092e61132a565b600955565b60006001600160a01b03821661095c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b61098961132a565b610993600061149d565b565b604080516060810182526000808252602082018190529181019190915261072982611384565b60606003805461073e90611f25565b6109d261132a565b600b6108d48282611fad565b336001600160a01b03831603610a075760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7e848484611119565b610a8a848484846114ef565b610aa7576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000610abc82600c54856115f2565b9392505050565b610acb61132a565b600954818351610adb9190612082565b60015460005403610aec9190612099565b1115610b135760405162461bcd60e51b8152600401610b0a906120ac565b60405180910390fd5b60005b825181101561088d576000838281518110610b3357610b336120d8565b60200260200101519050610b478184611608565b5080610b52816120ee565b915050610b16565b6060610b6582611092565b610bc95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b0a565b6000610bd3611612565b90506000815111610c6e57600b8054610beb90611f25565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1790611f25565b8015610c645780601f10610c3957610100808354040283529160200191610c64565b820191906000526020600020905b815481529060010190602001808311610c4757829003601f168201915b5050505050610abc565b80610c7884611621565b604051602001610c89929190612107565b6040516020818303038152906040529392505050565b6000610729826116b3565b610cb261132a565b600f55565b60095481610cc86001546000540390565b610cd29190612099565b1115610cf05760405162461bcd60e51b8152600401610b0a906120ac565b601054600214610d425760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f74206f70656e6564000000000000006044820152606401610b0a565b3481600e54610d519190612082565b1115610d905760405162461bcd60e51b815260206004820152600e60248201526d08aa89040dcdee840cadcdeeaced60931b6044820152606401610b0a565b600f5481610d9d33610c9f565b610da79190612099565b1115610def5760405162461bcd60e51b8152602060048201526017602482015276115e18d959591cc813585e08135a5b9d08105b5bdd5b9d604a1b6044820152606401610b0a565b610df93382611608565b50565b610e0461132a565b6001600160a01b038116610e695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b0a565b610df98161149d565b610e7a61132a565b600c55565b6040805160208082019490945260609490941b6bffffffffffffffffffffffff191684820152605480850192909252805180850390920182526074909301909252815191012090565b60095485610ed96001546000540390565b610ee39190612099565b1115610f015760405162461bcd60e51b8152600401610b0a906120ac565b601054600114610f535760405162461bcd60e51b815260206004820152601c60248201527f57686974656c6973742073616c65206973206e6f74206f70656e6564000000006044820152606401610b0a565b3485600d54610f629190612082565b1115610fa15760405162461bcd60e51b815260206004820152600e60248201526d08aa89040dcdee840cadcdeeaced60931b6044820152606401610b0a565b610fe8610faf338686610e7f565b838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610aad92505050565b6110245760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b0a565b828561102f33610c9f565b6110399190612099565b11156110815760405162461bcd60e51b8152602060048201526017602482015276115e18d959591cc813585e08135a5b9d08105b5bdd5b9d604a1b6044820152606401610b0a565b61108b3386611608565b5050505050565b6000805482108015610729575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061112482611384565b80519091506000906001600160a01b0316336001600160a01b03161480611152575081516111529033610609565b8061116d575033611162846107c1565b6001600160a01b0316145b90508061118d57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146111c25760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166111e957604051633a954ecd60e21b815260040160405180910390fd5b6111f960008484600001516110bd565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166112e3576000548110156112e357825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461108b565b6008546001600160a01b031633146109935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0a565b604080516060810182526000808252602082018190529181018290529054829081101561148457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906114825780516001600160a01b031615611419579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561147d579392505050565b611419565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156115e657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611533903390899088908890600401612136565b6020604051808303816000875af192505050801561156e575060408051601f3d908101601f1916820190925261156b91810190612173565b60015b6115cc573d80801561159c576040519150601f19603f3d011682016040523d82523d6000602084013e6115a1565b606091505b5080516000036115c4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115ea565b5060015b949350505050565b6000826115ff8584611708565b14949350505050565b6108d48282611755565b6060600a805461073e90611f25565b6060600061162e8361176f565b60010190506000816001600160401b0381111561164d5761164d611b18565b6040519080825280601f01601f191660200182016040528015611677576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461168157509392505050565b60006001600160a01b0382166116dc576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b600081815b845181101561174d576117398286838151811061172c5761172c6120d8565b6020026020010151611847565b915080611745816120ee565b91505061170d565b509392505050565b6108d4828260405180602001604052806000815250611876565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117ae5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106117da576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106117f857662386f26fc10000830492506010015b6305f5e1008310611810576305f5e100830492506008015b612710831061182457612710830492506004015b60648310611836576064830492506002015b600a83106107295760010192915050565b6000818310611863576000828152602084905260409020610abc565b6000838152602083905260409020610abc565b61088d83838360016000546001600160a01b0385166118a757604051622e076360e81b815260040160405180910390fd5b836000036118c85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156119de5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156119b457506119b260008884886114ef565b155b156119d2576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161195d565b5060005561108b565b6001600160e01b031981168114610df957600080fd5b600060208284031215611a0f57600080fd5b8135610abc816119e7565b60005b83811015611a35578181015183820152602001611a1d565b50506000910152565b60008151808452611a56816020860160208601611a1a565b601f01601f19169290920160200192915050565b602081526000610abc6020830184611a3e565b600060208284031215611a8f57600080fd5b5035919050565b80356001600160a01b0381168114611aad57600080fd5b919050565b60008060408385031215611ac557600080fd5b611ace83611a96565b946020939093013593505050565b600080600060608486031215611af157600080fd5b611afa84611a96565b9250611b0860208501611a96565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b5657611b56611b18565b604052919050565b60006001600160401b03831115611b7757611b77611b18565b611b8a601f8401601f1916602001611b2e565b9050828152838383011115611b9e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611bc757600080fd5b81356001600160401b03811115611bdd57600080fd5b8201601f81018413611bee57600080fd5b6115ea84823560208401611b5e565b600060208284031215611c0f57600080fd5b610abc82611a96565b60008060408385031215611c2b57600080fd5b611c3483611a96565b915060208301358015158114611c4957600080fd5b809150509250929050565b60008060008060808587031215611c6a57600080fd5b611c7385611a96565b9350611c8160208601611a96565b92506040850135915060608501356001600160401b03811115611ca357600080fd5b8501601f81018713611cb457600080fd5b611cc387823560208401611b5e565b91505092959194509250565b60006001600160401b03821115611ce857611ce8611b18565b5060051b60200190565b60008060408385031215611d0557600080fd5b823591506020808401356001600160401b03811115611d2357600080fd5b8401601f81018613611d3457600080fd5b8035611d47611d4282611ccf565b611b2e565b81815260059190911b82018301908381019088831115611d6657600080fd5b928401925b82841015611d8457833582529284019290840190611d6b565b80955050505050509250929050565b60008060408385031215611da657600080fd5b82356001600160401b03811115611dbc57600080fd5b8301601f81018513611dcd57600080fd5b80356020611ddd611d4283611ccf565b82815260059290921b83018101918181019088841115611dfc57600080fd5b938201935b83851015611e2157611e1285611a96565b82529382019390820190611e01565b98969091013596505050505050565b60008060408385031215611e4357600080fd5b611e4c83611a96565b9150611e5a60208401611a96565b90509250929050565b600080600060608486031215611e7857600080fd5b611e8184611a96565b95602085013595506040909401359392505050565b600080600080600060808688031215611eae57600080fd5b85359450602086013593506040860135925060608601356001600160401b0380821115611eda57600080fd5b818801915088601f830112611eee57600080fd5b813581811115611efd57600080fd5b8960208260051b8501011115611f1257600080fd5b9699959850939650602001949392505050565b600181811c90821680611f3957607f821691505b602082108103611f5957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561088d57600081815260208120601f850160051c81016020861015611f865750805b601f850160051c820191505b81811015611fa557828155600101611f92565b505050505050565b81516001600160401b03811115611fc657611fc6611b18565b611fda81611fd48454611f25565b84611f5f565b602080601f83116001811461200f5760008415611ff75750858301515b600019600386901b1c1916600185901b178555611fa5565b600085815260208120601f198616915b8281101561203e5788860151825594840194600190910190840161201f565b508582101561205c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107295761072961206c565b808201808211156107295761072961206c565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016121005761210061206c565b5060010190565b60008351612119818460208801611a1a565b83519083019061212d818360208801611a1a565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061216990830184611a3e565b9695505050505050565b60006020828403121561218557600080fd5b8151610abc816119e756fea26469706673582212201551a524663c6994969e2d73937f1d226c926de22f0f22686a4a60412b9c64ba64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806384b9a4a511610123578063c204642c116100ab578063efd0cbf91161006f578063efd0cbf914610657578063f2fde38b1461066a578063f5aa406d1461068a578063fdaf0125146106aa578063ff63cf01146106ca57600080fd5b8063c204642c1461058e578063c87b56dd146105ae578063dc33e681146105ce578063e985e9c5146105ee578063ef3e067c1461063757600080fd5b806397bc411c116100f257806397bc411c146104f8578063a22cb46514610518578063b88d4fde14610538578063bceae77b14610558578063bd6454541461056e57600080fd5b806384b9a4a5146104595780638da5cb5b1461046f5780639231ab2a1461048d57806395d89b41146104e357600080fd5b80633ccfd60b116101a6578063611f3f1011610175578063611f3f10146103ce5780636352211e146103e45780636f8b44b01461040457806370a0823114610424578063715018a61461044457600080fd5b80633ccfd60b1461035957806342842e0e1461036e57806353e90cbd1461038e57806355f804b3146103ae57600080fd5b806317e7f295116101ed57806317e7f295146102d057806318160ddd146102f457806323b872dd1461030d5780632a1d61901461032d57806332cb6b0c1461034357600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046119fd565b6106dd565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026961072f565b60405161024b9190611a6a565b34801561028257600080fd5b50610296610291366004611a7d565b6107c1565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004611ab2565b610805565b005b3480156102dc57600080fd5b506102e6600d5481565b60405190815260200161024b565b34801561030057600080fd5b50600154600054036102e6565b34801561031957600080fd5b506102ce610328366004611adc565b610892565b34801561033957600080fd5b506102e6600c5481565b34801561034f57600080fd5b506102e660095481565b34801561036557600080fd5b506102ce61089d565b34801561037a57600080fd5b506102ce610389366004611adc565b6108d8565b34801561039a57600080fd5b506102ce6103a9366004611a7d565b6108f3565b3480156103ba57600080fd5b506102ce6103c9366004611bb5565b610900565b3480156103da57600080fd5b506102e6600e5481565b3480156103f057600080fd5b506102966103ff366004611a7d565b610914565b34801561041057600080fd5b506102ce61041f366004611a7d565b610926565b34801561043057600080fd5b506102e661043f366004611bfd565b610933565b34801561045057600080fd5b506102ce610981565b34801561046557600080fd5b506102e660105481565b34801561047b57600080fd5b506008546001600160a01b0316610296565b34801561049957600080fd5b506104ad6104a8366004611a7d565b610995565b6040805182516001600160a01b031681526020808401516001600160401b0316908201529181015115159082015260600161024b565b3480156104ef57600080fd5b506102696109bb565b34801561050457600080fd5b506102ce610513366004611bb5565b6109ca565b34801561052457600080fd5b506102ce610533366004611c18565b6109de565b34801561054457600080fd5b506102ce610553366004611c54565b610a73565b34801561056457600080fd5b506102e6600f5481565b34801561057a57600080fd5b5061023f610589366004611cf2565b610aad565b34801561059a57600080fd5b506102ce6105a9366004611d93565b610ac3565b3480156105ba57600080fd5b506102696105c9366004611a7d565b610b5a565b3480156105da57600080fd5b506102e66105e9366004611bfd565b610c9f565b3480156105fa57600080fd5b5061023f610609366004611e30565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064357600080fd5b506102ce610652366004611a7d565b610caa565b6102ce610665366004611a7d565b610cb7565b34801561067657600080fd5b506102ce610685366004611bfd565b610dfc565b34801561069657600080fd5b506102ce6106a5366004611a7d565b610e72565b3480156106b657600080fd5b506102e66106c5366004611e63565b610e7f565b6102ce6106d8366004611e96565b610ec8565b60006001600160e01b031982166380ac58cd60e01b148061070e57506001600160e01b03198216635b5e139f60e01b145b8061072957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461073e90611f25565b80601f016020809104026020016040519081016040528092919081815260200182805461076a90611f25565b80156107b75780601f1061078c576101008083540402835291602001916107b7565b820191906000526020600020905b81548152906001019060200180831161079a57829003601f168201915b5050505050905090565b60006107cc82611092565b6107e9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061081082610914565b9050806001600160a01b0316836001600160a01b0316036108445760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061086457506108628133610609565b155b15610882576040516367d9dca160e11b815260040160405180910390fd5b61088d8383836110bd565b505050565b61088d838383611119565b6108a561132a565b6040514790339082156108fc029083906000818181858888f193505050501580156108d4573d6000803e3d6000fd5b5050565b61088d83838360405180602001604052806000815250610a73565b6108fb61132a565b601055565b61090861132a565b600a6108d48282611fad565b600061091f82611384565b5192915050565b61092e61132a565b600955565b60006001600160a01b03821661095c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b61098961132a565b610993600061149d565b565b604080516060810182526000808252602082018190529181019190915261072982611384565b60606003805461073e90611f25565b6109d261132a565b600b6108d48282611fad565b336001600160a01b03831603610a075760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7e848484611119565b610a8a848484846114ef565b610aa7576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000610abc82600c54856115f2565b9392505050565b610acb61132a565b600954818351610adb9190612082565b60015460005403610aec9190612099565b1115610b135760405162461bcd60e51b8152600401610b0a906120ac565b60405180910390fd5b60005b825181101561088d576000838281518110610b3357610b336120d8565b60200260200101519050610b478184611608565b5080610b52816120ee565b915050610b16565b6060610b6582611092565b610bc95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b0a565b6000610bd3611612565b90506000815111610c6e57600b8054610beb90611f25565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1790611f25565b8015610c645780601f10610c3957610100808354040283529160200191610c64565b820191906000526020600020905b815481529060010190602001808311610c4757829003601f168201915b5050505050610abc565b80610c7884611621565b604051602001610c89929190612107565b6040516020818303038152906040529392505050565b6000610729826116b3565b610cb261132a565b600f55565b60095481610cc86001546000540390565b610cd29190612099565b1115610cf05760405162461bcd60e51b8152600401610b0a906120ac565b601054600214610d425760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f74206f70656e6564000000000000006044820152606401610b0a565b3481600e54610d519190612082565b1115610d905760405162461bcd60e51b815260206004820152600e60248201526d08aa89040dcdee840cadcdeeaced60931b6044820152606401610b0a565b600f5481610d9d33610c9f565b610da79190612099565b1115610def5760405162461bcd60e51b8152602060048201526017602482015276115e18d959591cc813585e08135a5b9d08105b5bdd5b9d604a1b6044820152606401610b0a565b610df93382611608565b50565b610e0461132a565b6001600160a01b038116610e695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b0a565b610df98161149d565b610e7a61132a565b600c55565b6040805160208082019490945260609490941b6bffffffffffffffffffffffff191684820152605480850192909252805180850390920182526074909301909252815191012090565b60095485610ed96001546000540390565b610ee39190612099565b1115610f015760405162461bcd60e51b8152600401610b0a906120ac565b601054600114610f535760405162461bcd60e51b815260206004820152601c60248201527f57686974656c6973742073616c65206973206e6f74206f70656e6564000000006044820152606401610b0a565b3485600d54610f629190612082565b1115610fa15760405162461bcd60e51b815260206004820152600e60248201526d08aa89040dcdee840cadcdeeaced60931b6044820152606401610b0a565b610fe8610faf338686610e7f565b838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610aad92505050565b6110245760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b0a565b828561102f33610c9f565b6110399190612099565b11156110815760405162461bcd60e51b8152602060048201526017602482015276115e18d959591cc813585e08135a5b9d08105b5bdd5b9d604a1b6044820152606401610b0a565b61108b3386611608565b5050505050565b6000805482108015610729575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061112482611384565b80519091506000906001600160a01b0316336001600160a01b03161480611152575081516111529033610609565b8061116d575033611162846107c1565b6001600160a01b0316145b90508061118d57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146111c25760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166111e957604051633a954ecd60e21b815260040160405180910390fd5b6111f960008484600001516110bd565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166112e3576000548110156112e357825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461108b565b6008546001600160a01b031633146109935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0a565b604080516060810182526000808252602082018190529181018290529054829081101561148457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906114825780516001600160a01b031615611419579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561147d579392505050565b611419565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156115e657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611533903390899088908890600401612136565b6020604051808303816000875af192505050801561156e575060408051601f3d908101601f1916820190925261156b91810190612173565b60015b6115cc573d80801561159c576040519150601f19603f3d011682016040523d82523d6000602084013e6115a1565b606091505b5080516000036115c4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115ea565b5060015b949350505050565b6000826115ff8584611708565b14949350505050565b6108d48282611755565b6060600a805461073e90611f25565b6060600061162e8361176f565b60010190506000816001600160401b0381111561164d5761164d611b18565b6040519080825280601f01601f191660200182016040528015611677576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461168157509392505050565b60006001600160a01b0382166116dc576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b600081815b845181101561174d576117398286838151811061172c5761172c6120d8565b6020026020010151611847565b915080611745816120ee565b91505061170d565b509392505050565b6108d4828260405180602001604052806000815250611876565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117ae5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106117da576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106117f857662386f26fc10000830492506010015b6305f5e1008310611810576305f5e100830492506008015b612710831061182457612710830492506004015b60648310611836576064830492506002015b600a83106107295760010192915050565b6000818310611863576000828152602084905260409020610abc565b6000838152602083905260409020610abc565b61088d83838360016000546001600160a01b0385166118a757604051622e076360e81b815260040160405180910390fd5b836000036118c85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156119de5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156119b457506119b260008884886114ef565b155b156119d2576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161195d565b5060005561108b565b6001600160e01b031981168114610df957600080fd5b600060208284031215611a0f57600080fd5b8135610abc816119e7565b60005b83811015611a35578181015183820152602001611a1d565b50506000910152565b60008151808452611a56816020860160208601611a1a565b601f01601f19169290920160200192915050565b602081526000610abc6020830184611a3e565b600060208284031215611a8f57600080fd5b5035919050565b80356001600160a01b0381168114611aad57600080fd5b919050565b60008060408385031215611ac557600080fd5b611ace83611a96565b946020939093013593505050565b600080600060608486031215611af157600080fd5b611afa84611a96565b9250611b0860208501611a96565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b5657611b56611b18565b604052919050565b60006001600160401b03831115611b7757611b77611b18565b611b8a601f8401601f1916602001611b2e565b9050828152838383011115611b9e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611bc757600080fd5b81356001600160401b03811115611bdd57600080fd5b8201601f81018413611bee57600080fd5b6115ea84823560208401611b5e565b600060208284031215611c0f57600080fd5b610abc82611a96565b60008060408385031215611c2b57600080fd5b611c3483611a96565b915060208301358015158114611c4957600080fd5b809150509250929050565b60008060008060808587031215611c6a57600080fd5b611c7385611a96565b9350611c8160208601611a96565b92506040850135915060608501356001600160401b03811115611ca357600080fd5b8501601f81018713611cb457600080fd5b611cc387823560208401611b5e565b91505092959194509250565b60006001600160401b03821115611ce857611ce8611b18565b5060051b60200190565b60008060408385031215611d0557600080fd5b823591506020808401356001600160401b03811115611d2357600080fd5b8401601f81018613611d3457600080fd5b8035611d47611d4282611ccf565b611b2e565b81815260059190911b82018301908381019088831115611d6657600080fd5b928401925b82841015611d8457833582529284019290840190611d6b565b80955050505050509250929050565b60008060408385031215611da657600080fd5b82356001600160401b03811115611dbc57600080fd5b8301601f81018513611dcd57600080fd5b80356020611ddd611d4283611ccf565b82815260059290921b83018101918181019088841115611dfc57600080fd5b938201935b83851015611e2157611e1285611a96565b82529382019390820190611e01565b98969091013596505050505050565b60008060408385031215611e4357600080fd5b611e4c83611a96565b9150611e5a60208401611a96565b90509250929050565b600080600060608486031215611e7857600080fd5b611e8184611a96565b95602085013595506040909401359392505050565b600080600080600060808688031215611eae57600080fd5b85359450602086013593506040860135925060608601356001600160401b0380821115611eda57600080fd5b818801915088601f830112611eee57600080fd5b813581811115611efd57600080fd5b8960208260051b8501011115611f1257600080fd5b9699959850939650602001949392505050565b600181811c90821680611f3957607f821691505b602082108103611f5957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561088d57600081815260208120601f850160051c81016020861015611f865750805b601f850160051c820191505b81811015611fa557828155600101611f92565b505050505050565b81516001600160401b03811115611fc657611fc6611b18565b611fda81611fd48454611f25565b84611f5f565b602080601f83116001811461200f5760008415611ff75750858301515b600019600386901b1c1916600185901b178555611fa5565b600085815260208120601f198616915b8281101561203e5788860151825594840194600190910190840161201f565b508582101561205c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107295761072961206c565b808201808211156107295761072961206c565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016121005761210061206c565b5060010190565b60008351612119818460208801611a1a565b83519083019061212d818360208801611a1a565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061216990830184611a3e565b9695505050505050565b60006020828403121561218557600080fd5b8151610abc816119e756fea26469706673582212201551a524663c6994969e2d73937f1d226c926de22f0f22686a4a60412b9c64ba64736f6c63430008110033
Deployed Bytecode Sourcemap
68769:4083:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51567:305;;;;;;;;;;-1:-1:-1;51567:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;51567:305:0;;;;;;;;54927:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;56430:204::-;;;;;;;;;;-1:-1:-1;56430:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;56430:204:0;1533:203:1;55993:371:0;;;;;;;;;;-1:-1:-1;55993:371:0;;;;;:::i;:::-;;:::i;:::-;;68996:43;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;68996:43:0;2178:177:1;51224:271:0;;;;;;;;;;-1:-1:-1;51460:12:0;;51268:7;51444:13;:28;51224:271;;57287:170;;;;;;;;;;-1:-1:-1;57287:170:0;;;;;:::i;:::-;;:::i;68958:29::-;;;;;;;;;;;;;;;;68850:33;;;;;;;;;;;;;;;;72698:151;;;;;;;;;;;;;:::i;57528:185::-;;;;;;;;;;-1:-1:-1;57528:185:0;;;;;:::i;:::-;;:::i;72320:99::-;;;;;;;;;;-1:-1:-1;72320:99:0;;;;;:::i;:::-;;:::i;72074:107::-;;;;;;;;;;-1:-1:-1;72074:107:0;;;;;:::i;:::-;;:::i;69046:40::-;;;;;;;;;;;;;;;;54736:124;;;;;;;;;;-1:-1:-1;54736:124:0;;;;;:::i;:::-;;:::i;71969:97::-;;;;;;;;;;-1:-1:-1;71969:97:0;;;;;:::i;:::-;;:::i;51936:206::-;;;;;;;;;;-1:-1:-1;51936:206:0;;;;;:::i;:::-;;:::i;12773:103::-;;;;;;;;;;;;;:::i;69139:28::-;;;;;;;;;;;;;;;;12125:87;;;;;;;;;;-1:-1:-1;12198:6:0;;-1:-1:-1;;;;;12198:6:0;12125:87;;72555:135;;;;;;;;;;-1:-1:-1;72555:135:0;;;;;:::i;:::-;;:::i;:::-;;;;4578:13:1;;-1:-1:-1;;;;;4574:39:1;4556:58;;4674:4;4662:17;;;4656:24;-1:-1:-1;;;;;4652:49:1;4630:20;;;4623:79;4760:17;;;4754:24;4747:32;4740:40;4718:20;;;4711:70;4544:2;4529:18;72555:135:0;4346:441:1;55096:104:0;;;;;;;;;;;;;:::i;72189:123::-;;;;;;;;;;-1:-1:-1;72189:123:0;;;;;:::i;:::-;;:::i;56706:279::-;;;;;;;;;;-1:-1:-1;56706:279:0;;;;;:::i;:::-;;:::i;57784:342::-;;;;;;;;;;-1:-1:-1;57784:342:0;;;;;:::i;:::-;;:::i;69093:37::-;;;;;;;;;;;;;;;;69521:173;;;;;;;;;;-1:-1:-1;69521:173:0;;;;;:::i;:::-;;:::i;71094:379::-;;;;;;;;;;-1:-1:-1;71094:379:0;;;;;:::i;:::-;;:::i;71598:363::-;;;;;;;;;;-1:-1:-1;71598:363:0;;;;;:::i;:::-;;:::i;69883:115::-;;;;;;;;;;-1:-1:-1;69883:115:0;;;;;:::i;:::-;;:::i;57056:164::-;;;;;;;;;;-1:-1:-1;57056:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;57177:25:0;;;57153:4;57177:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;57056:164;69379:128;;;;;;;;;;-1:-1:-1;69379:128:0;;;;;:::i;:::-;;:::i;70628:458::-;;;;;;:::i;:::-;;:::i;13031:201::-;;;;;;;;;;-1:-1:-1;13031:201:0;;;;;:::i;:::-;;:::i;69270:101::-;;;;;;;;;;-1:-1:-1;69270:101:0;;;;;:::i;:::-;;:::i;69700:171::-;;;;;;;;;;-1:-1:-1;69700:171:0;;;;;:::i;:::-;;:::i;70006:614::-;;;;;;:::i;:::-;;:::i;51567:305::-;51669:4;-1:-1:-1;;;;;;51706:40:0;;-1:-1:-1;;;51706:40:0;;:105;;-1:-1:-1;;;;;;;51763:48:0;;-1:-1:-1;;;51763:48:0;51706:105;:158;;;-1:-1:-1;;;;;;;;;;8888:40:0;;;51828:36;51686:178;51567:305;-1:-1:-1;;51567:305:0:o;54927:100::-;54981:13;55014:5;55007:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54927:100;:::o;56430:204::-;56498:7;56523:16;56531:7;56523;:16::i;:::-;56518:64;;56548:34;;-1:-1:-1;;;56548:34:0;;;;;;;;;;;56518:64;-1:-1:-1;56602:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;56602:24:0;;56430:204::o;55993:371::-;56066:13;56082:24;56098:7;56082:15;:24::i;:::-;56066:40;;56127:5;-1:-1:-1;;;;;56121:11:0;:2;-1:-1:-1;;;;;56121:11:0;;56117:48;;56141:24;;-1:-1:-1;;;56141:24:0;;;;;;;;;;;56117:48;10756:10;-1:-1:-1;;;;;56182:21:0;;;;;;:63;;-1:-1:-1;56208:37:0;56225:5;10756:10;57056:164;:::i;56208:37::-;56207:38;56182:63;56178:138;;;56269:35;;-1:-1:-1;;;56269:35:0;;;;;;;;;;;56178:138;56328:28;56337:2;56341:7;56350:5;56328:8;:28::i;:::-;56055:309;55993:371;;:::o;57287:170::-;57421:28;57431:4;57437:2;57441:7;57421:9;:28::i;72698:151::-;12011:13;:11;:13::i;:::-;72801:40:::1;::::0;72769:21:::1;::::0;72809:10:::1;::::0;72801:40;::::1;;;::::0;72769:21;;72748:18:::1;72801:40:::0;72748:18;72801:40;72769:21;72809:10;72801:40;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;72737:112;72698:151::o:0;57528:185::-;57666:39;57683:4;57689:2;57693:7;57666:39;;;;;;;;;;;;:16;:39::i;72320:99::-;12011:13;:11;:13::i;:::-;72390:9:::1;:21:::0;72320:99::o;72074:107::-;12011:13;:11;:13::i;:::-;72151:8:::1;:22;72162:11:::0;72151:8;:22:::1;:::i;54736:124::-:0;54800:7;54827:20;54839:7;54827:11;:20::i;:::-;:25;;54736:124;-1:-1:-1;;54736:124:0:o;71969:97::-;12011:13;:11;:13::i;:::-;72038:10:::1;:20:::0;71969:97::o;51936:206::-;52000:7;-1:-1:-1;;;;;52024:19:0;;52020:60;;52052:28;;-1:-1:-1;;;52052:28:0;;;;;;;;;;;52020:60;-1:-1:-1;;;;;;52106:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;52106:27:0;;51936:206::o;12773:103::-;12011:13;:11;:13::i;:::-;12838:30:::1;12865:1;12838:18;:30::i;:::-;12773:103::o:0;72555:135::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;72662:20:0;72674:7;72662:11;:20::i;55096:104::-;55152:13;55185:7;55178:14;;;;;:::i;72189:123::-;12011:13;:11;:13::i;:::-;72274:12:::1;:30;72289:15:::0;72274:12;:30:::1;:::i;56706:279::-:0;10756:10;-1:-1:-1;;;;;56797:24:0;;;56793:54;;56830:17;;-1:-1:-1;;;56830:17:0;;;;;;;;;;;56793:54;10756:10;56860:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;56860:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;56860:53:0;;;;;;;;;;56929:48;;540:41:1;;;56860:42:0;;10756:10;56929:48;;513:18:1;56929:48:0;;;;;;;56706:279;;:::o;57784:342::-;57951:28;57961:4;57967:2;57971:7;57951:9;:28::i;:::-;57995:48;58018:4;58024:2;58028:7;58037:5;57995:22;:48::i;:::-;57990:129;;58067:40;;-1:-1:-1;;;58067:40:0;;;;;;;;;;;57990:129;57784:342;;;;:::o;69521:173::-;69609:4;69633:53;69652:6;69660:14;;69676:9;69633:18;:53::i;:::-;69626:60;69521:173;-1:-1:-1;;;69521:173:0:o;71094:379::-;12011:13;:11;:13::i;:::-;71264:10:::1;;71249:11;71222:17;:24;:38;;;;:::i;:::-;51460:12:::0;;51268:7;51444:13;:28;71206:54:::1;;;;:::i;:::-;:68;;71198:99;;;;-1:-1:-1::0;;;71198:99:0::1;;;;;;;:::i;:::-;;;;;;;;;71315:9;71310:156;71334:17;:24;71330:1;:28;71310:156;;;71380:10;71393:17;71411:1;71393:20;;;;;;;;:::i;:::-;;;;;;;71380:33;;71428:26;71438:2;71442:11;71428:9;:26::i;:::-;-1:-1:-1::0;71360:3:0;::::1;::::0;::::1;:::i;:::-;;;;71310:156;;71598:363:::0;71671:13;71705:16;71713:7;71705;:16::i;:::-;71697:76;;;;-1:-1:-1;;;71697:76:0;;13387:2:1;71697:76:0;;;13369:21:1;13426:2;13406:18;;;13399:30;13465:34;13445:18;;;13438:62;-1:-1:-1;;;13516:18:1;;;13509:45;13571:19;;71697:76:0;13185:411:1;71697:76:0;71784:28;71815:10;:8;:10::i;:::-;71784:41;;71874:1;71849:14;71843:28;:32;:110;;71941:12;71843:110;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71902:14;71918:18;:7;:16;:18::i;:::-;71885:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71836:117;71598:363;-1:-1:-1;;;71598:363:0:o;69883:115::-;69942:7;69969:21;69983:6;69969:13;:21::i;69379:128::-;12011:13;:11;:13::i;:::-;69463:17:::1;:36:::0;69379:128::o;70628:458::-;70736:10;;70721:11;70705:13;51460:12;;51268:7;51444:13;:28;;51224:271;70705:13;:27;;;;:::i;:::-;:41;;70697:72;;;;-1:-1:-1;;;70697:72:0;;;;;;;:::i;:::-;70790:9;;70803:1;70790:14;70782:52;;;;-1:-1:-1;;;70782:52:0;;14304:2:1;70782:52:0;;;14286:21:1;14343:2;14323:18;;;14316:30;14382:27;14362:18;;;14355:55;14427:18;;70782:52:0;14102:349:1;70782:52:0;70885:9;70870:11;70855:12;;:26;;;;:::i;:::-;:39;;70847:66;;;;-1:-1:-1;;;70847:66:0;;14658:2:1;70847:66:0;;;14640:21:1;14697:2;14677:18;;;14670:30;-1:-1:-1;;;14716:18:1;;;14709:44;14770:18;;70847:66:0;14456:338:1;70847:66:0;70986:17;;70970:11;70943:24;70956:10;70943:12;:24::i;:::-;:38;;;;:::i;:::-;70942:61;;70934:97;;;;-1:-1:-1;;;70934:97:0;;15001:2:1;70934:97:0;;;14983:21:1;15040:2;15020:18;;;15013:30;-1:-1:-1;;;15059:18:1;;;15052:53;15122:18;;70934:97:0;14799:347:1;70934:97:0;71044:34;71054:10;71066:11;71044:9;:34::i;:::-;70628:458;:::o;13031:201::-;12011:13;:11;:13::i;:::-;-1:-1:-1;;;;;13120:22:0;::::1;13112:73;;;::::0;-1:-1:-1;;;13112:73:0;;15353:2:1;13112:73:0::1;::::0;::::1;15335:21:1::0;15392:2;15372:18;;;15365:30;15431:34;15411:18;;;15404:62;-1:-1:-1;;;15482:18:1;;;15475:36;15528:19;;13112:73:0::1;15151:402:1::0;13112:73:0::1;13196:28;13215:8;13196:18;:28::i;69270:101::-:0;12011:13;:11;:13::i;:::-;69341:14:::1;:22:::0;69270:101::o;69700:171::-;69822:40;;;;;;;15743:19:1;;;;15800:2;15796:15;;;;-1:-1:-1;;15792:53:1;15778:12;;;15771:75;15862:12;;;;15855:28;;;;69822:40:0;;;;;;;;;;15899:12:1;;;;69822:40:0;;;69812:51;;;;;;69700:171::o;70006:614::-;70177:10;;70162:11;70146:13;51460:12;;51268:7;51444:13;:28;;51224:271;70146:13;:27;;;;:::i;:::-;:41;;70138:72;;;;-1:-1:-1;;;70138:72:0;;;;;;;:::i;:::-;70231:9;;70244:1;70231:14;70223:55;;;;-1:-1:-1;;;70223:55:0;;16124:2:1;70223:55:0;;;16106:21:1;16163:2;16143:18;;;16136:30;16202;16182:18;;;16175:58;16250:18;;70223:55:0;15922:352:1;70223:55:0;70332:9;70317:11;70299:15;;:29;;;;:::i;:::-;:42;;70291:69;;;;-1:-1:-1;;;70291:69:0;;14658:2:1;70291:69:0;;;14640:21:1;14697:2;14677:18;;;14670:30;-1:-1:-1;;;14716:18:1;;;14709:44;14770:18;;70291:69:0;14456:338:1;70291:69:0;70381:58;70395:35;70402:10;70414:6;70422:7;70395:6;:35::i;:::-;70432:6;;70381:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70381:13:0;;-1:-1:-1;;;70381:58:0:i;:::-;70373:84;;;;-1:-1:-1;;;70373:84:0;;16481:2:1;70373:84:0;;;16463:21:1;16520:2;16500:18;;;16493:30;-1:-1:-1;;;16539:18:1;;;16532:43;16592:18;;70373:84:0;16279:337:1;70373:84:0;70530:7;70514:11;70487:24;70500:10;70487:12;:24::i;:::-;:38;;;;:::i;:::-;70486:51;;70478:87;;;;-1:-1:-1;;;70478:87:0;;15001:2:1;70478:87:0;;;14983:21:1;15040:2;15020:18;;;15013:30;-1:-1:-1;;;15059:18:1;;;15052:53;15122:18;;70478:87:0;14799:347:1;70478:87:0;70578:34;70588:10;70600:11;70578:9;:34::i;:::-;70006:614;;;;;:::o;58381:144::-;58438:4;58472:13;;58462:7;:23;:55;;;;-1:-1:-1;;58490:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;58490:27:0;;;;58489:28;;58381:144::o;65587:196::-;65702:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;65702:29:0;-1:-1:-1;;;;;65702:29:0;;;;;;;;;65747:28;;65702:24;;65747:28;;;;;;;65587:196;;;:::o;61088:2112::-;61203:35;61241:20;61253:7;61241:11;:20::i;:::-;61316:18;;61203:58;;-1:-1:-1;61274:22:0;;-1:-1:-1;;;;;61300:34:0;10756:10;-1:-1:-1;;;;;61300:34:0;;:101;;;-1:-1:-1;61368:18:0;;61351:50;;10756:10;57056:164;:::i;61351:50::-;61300:154;;;-1:-1:-1;10756:10:0;61418:20;61430:7;61418:11;:20::i;:::-;-1:-1:-1;;;;;61418:36:0;;61300:154;61274:181;;61473:17;61468:66;;61499:35;;-1:-1:-1;;;61499:35:0;;;;;;;;;;;61468:66;61571:4;-1:-1:-1;;;;;61549:26:0;:13;:18;;;-1:-1:-1;;;;;61549:26:0;;61545:67;;61584:28;;-1:-1:-1;;;61584:28:0;;;;;;;;;;;61545:67;-1:-1:-1;;;;;61627:16:0;;61623:52;;61652:23;;-1:-1:-1;;;61652:23:0;;;;;;;;;;;61623:52;61796:49;61813:1;61817:7;61826:13;:18;;;61796:8;:49::i;:::-;-1:-1:-1;;;;;62141:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;62141:31:0;;;-1:-1:-1;;;;;62141:31:0;;;-1:-1:-1;;62141:31:0;;;;;;;62187:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;62187:29:0;;;;;;;;;;;62233:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;62278:61:0;;;;-1:-1:-1;;;62323:15:0;62278:61;;;;;;;;;;;62613:11;;;62643:24;;;;;:29;62613:11;;62643:29;62639:445;;62868:13;;62854:11;:27;62850:219;;;62938:18;;;62906:24;;;:11;:24;;;;;;;;:50;;63021:28;;;;-1:-1:-1;;;;;62979:70:0;-1:-1:-1;;;62979:70:0;-1:-1:-1;;;;;;62979:70:0;;;-1:-1:-1;;;;;62906:50:0;;;62979:70;;;;;;;62850:219;62116:979;63131:7;63127:2;-1:-1:-1;;;;;63112:27:0;63121:4;-1:-1:-1;;;;;63112:27:0;;;;;;;;;;;63150:42;57784:342;12290:132;12198:6;;-1:-1:-1;;;;;12198:6:0;10756:10;12354:23;12346:68;;;;-1:-1:-1;;;12346:68:0;;16823:2:1;12346:68:0;;;16805:21:1;;;16842:18;;;16835:30;16901:34;16881:18;;;16874:62;16953:18;;12346:68:0;16621:356:1;53591:1083:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;53757:13:0;;53701:7;;53750:20;;53746:861;;;53791:31;53825:17;;;:11;:17;;;;;;;;;53791:51;;;;;;;;;-1:-1:-1;;;;;53791:51:0;;;;-1:-1:-1;;;53791:51:0;;-1:-1:-1;;;;;53791:51:0;;;;;;;;-1:-1:-1;;;53791:51:0;;;;;;;;;;;;;;53861:731;;53911:14;;-1:-1:-1;;;;;53911:28:0;;53907:101;;53975:9;53591:1083;-1:-1:-1;;;53591:1083:0:o;53907:101::-;-1:-1:-1;;;54352:6:0;54397:17;;;;:11;:17;;;;;;;;;54385:29;;;;;;;;;-1:-1:-1;;;;;54385:29:0;;;;;-1:-1:-1;;;54385:29:0;;-1:-1:-1;;;;;54385:29:0;;;;;;;;-1:-1:-1;;;54385:29:0;;;;;;;;;;;;;54445:28;54441:109;;54513:9;53591:1083;-1:-1:-1;;;53591:1083:0:o;54441:109::-;54312:261;;;53772:835;53746:861;54635:31;;-1:-1:-1;;;54635:31:0;;;;;;;;;;;13392:191;13485:6;;;-1:-1:-1;;;;;13502:17:0;;;-1:-1:-1;;;;;;13502:17:0;;;;;;;13535:40;;13485:6;;;13502:17;13485:6;;13535:40;;13466:16;;13535:40;13455:128;13392:191;:::o;66348:790::-;66503:4;-1:-1:-1;;;;;66524:13:0;;15118:19;:23;66520:611;;66560:72;;-1:-1:-1;;;66560:72:0;;-1:-1:-1;;;;;66560:36:0;;;;;:72;;10756:10;;66611:4;;66617:7;;66626:5;;66560:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66560:72:0;;;;;;;;-1:-1:-1;;66560:72:0;;;;;;;;;;;;:::i;:::-;;;66556:520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66806:6;:13;66823:1;66806:18;66802:259;;66856:40;;-1:-1:-1;;;66856:40:0;;;;;;;;;;;66802:259;67011:6;67005:13;66996:6;66992:2;66988:15;66981:38;66556:520;-1:-1:-1;;;;;;66683:55:0;-1:-1:-1;;;66683:55:0;;-1:-1:-1;66676:62:0;;66520:611;-1:-1:-1;67115:4:0;66520:611;66348:790;;;;;;:::o;39439:190::-;39564:4;39617;39588:25;39601:5;39608:4;39588:12;:25::i;:::-;:33;;39439:190;-1:-1:-1;;;;39439:190:0:o;72427:120::-;72506:33;72516:9;72527:11;72506:9;:33::i;71481:109::-;71541:13;71574:8;71567:15;;;;;:::i;36323:716::-;36379:13;36430:14;36447:17;36458:5;36447:10;:17::i;:::-;36467:1;36447:21;36430:38;;36483:20;36517:6;-1:-1:-1;;;;;36506:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36506:18:0;-1:-1:-1;36483:41:0;-1:-1:-1;36648:28:0;;;36664:2;36648:28;36705:288;-1:-1:-1;;36737:5:0;-1:-1:-1;;;36874:2:0;36863:14;;36858:30;36737:5;36845:44;36935:2;36926:11;;;-1:-1:-1;36956:21:0;36705:288;36956:21;-1:-1:-1;37014:6:0;36323:716;-1:-1:-1;;;36323:716:0:o;52224:207::-;52285:7;-1:-1:-1;;;;;52309:19:0;;52305:59;;52337:27;;-1:-1:-1;;;52337:27:0;;;;;;;;;;;52305:59;-1:-1:-1;;;;;;52390:19:0;;;;;:12;:19;;;;;:32;-1:-1:-1;;;52390:32:0;;-1:-1:-1;;;;;52390:32:0;;52224:207::o;40306:296::-;40389:7;40432:4;40389:7;40447:118;40471:5;:12;40467:1;:16;40447:118;;;40520:33;40530:12;40544:5;40550:1;40544:8;;;;;;;;:::i;:::-;;;;;;;40520:9;:33::i;:::-;40505:48;-1:-1:-1;40485:3:0;;;;:::i;:::-;;;;40447:118;;;-1:-1:-1;40582:12:0;40306:296;-1:-1:-1;;;40306:296:0:o;58533:104::-;58602:27;58612:2;58616:8;58602:27;;;;;;;;;;;;:9;:27::i;33189:922::-;33242:7;;-1:-1:-1;;;33320:15:0;;33316:102;;-1:-1:-1;;;33356:15:0;;;-1:-1:-1;33400:2:0;33390:12;33316:102;33445:6;33436:5;:15;33432:102;;33481:6;33472:15;;;-1:-1:-1;33516:2:0;33506:12;33432:102;33561:6;33552:5;:15;33548:102;;33597:6;33588:15;;;-1:-1:-1;33632:2:0;33622:12;33548:102;33677:5;33668;:14;33664:99;;33712:5;33703:14;;;-1:-1:-1;33746:1:0;33736:11;33664:99;33790:5;33781;:14;33777:99;;33825:5;33816:14;;;-1:-1:-1;33859:1:0;33849:11;33777:99;33903:5;33894;:14;33890:99;;33938:5;33929:14;;;-1:-1:-1;33972:1:0;33962:11;33890:99;34016:5;34007;:14;34003:66;;34052:1;34042:11;34097:6;33189:922;-1:-1:-1;;33189:922:0:o;47346:149::-;47409:7;47440:1;47436;:5;:51;;47571:13;47665:15;;;47701:4;47694:15;;;47748:4;47732:21;;47436:51;;;47571:13;47665:15;;;47701:4;47694:15;;;47748:4;47732:21;;47444:20;47503:268;59000:163;59123:32;59129:2;59133:8;59143:5;59150:4;59561:20;59584:13;-1:-1:-1;;;;;59612:16:0;;59608:48;;59637:19;;-1:-1:-1;;;59637:19:0;;;;;;;;;;;59608:48;59671:8;59683:1;59671:13;59667:44;;59693:18;;-1:-1:-1;;;59693:18:0;;;;;;;;;;;59667:44;-1:-1:-1;;;;;60062:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;60121:49:0;;-1:-1:-1;;;;;60062:44:0;;;;;;;60121:49;;;-1:-1:-1;;;;;60062:44:0;;;;;;60121:49;;;;;;;;;;;;;;;;60187:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;60237:66:0;;;;-1:-1:-1;;;60287:15:0;60237:66;;;;;;;;;;;60187:25;;60372:328;60392:8;60388:1;:12;60372:328;;;60431:38;;60456:12;;-1:-1:-1;;;;;60431:38:0;;;60448:1;;60431:38;;60448:1;;60431:38;60492:4;:68;;;;;60501:59;60532:1;60536:2;60540:12;60554:5;60501:22;:59::i;:::-;60500:60;60492:68;60488:164;;;60592:40;;-1:-1:-1;;;60592:40:0;;;;;;;;;;;60488:164;60670:14;;;;;60402:3;60372:328;;;-1:-1:-1;60716:13:0;:28;60766:60;57784:342;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:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2875:127::-;2936:10;2931:3;2927:20;2924:1;2917:31;2967:4;2964:1;2957:15;2991:4;2988:1;2981:15;3007:275;3078:2;3072:9;3143:2;3124:13;;-1:-1:-1;;3120:27:1;3108:40;;-1:-1:-1;;;;;3163:34:1;;3199:22;;;3160:62;3157:88;;;3225:18;;:::i;:::-;3261:2;3254:22;3007:275;;-1:-1:-1;3007:275:1:o;3287:407::-;3352:5;-1:-1:-1;;;;;3378:6:1;3375:30;3372:56;;;3408:18;;:::i;:::-;3446:57;3491:2;3470:15;;-1:-1:-1;;3466:29:1;3497:4;3462:40;3446:57;:::i;:::-;3437:66;;3526:6;3519:5;3512:21;3566:3;3557:6;3552:3;3548:16;3545:25;3542:45;;;3583:1;3580;3573:12;3542:45;3632:6;3627:3;3620:4;3613:5;3609:16;3596:43;3686:1;3679:4;3670:6;3663:5;3659:18;3655:29;3648:40;3287:407;;;;;:::o;3699:451::-;3768:6;3821:2;3809:9;3800:7;3796:23;3792:32;3789:52;;;3837:1;3834;3827:12;3789:52;3877:9;3864:23;-1:-1:-1;;;;;3902:6:1;3899:30;3896:50;;;3942:1;3939;3932:12;3896:50;3965:22;;4018:4;4010:13;;4006:27;-1:-1:-1;3996:55:1;;4047:1;4044;4037:12;3996:55;4070:74;4136:7;4131:2;4118:16;4113:2;4109;4105:11;4070:74;:::i;4155:186::-;4214:6;4267:2;4255:9;4246:7;4242:23;4238:32;4235:52;;;4283:1;4280;4273:12;4235:52;4306:29;4325:9;4306:29;:::i;4792:347::-;4857:6;4865;4918:2;4906:9;4897:7;4893:23;4889:32;4886:52;;;4934:1;4931;4924:12;4886:52;4957:29;4976:9;4957:29;:::i;:::-;4947:39;;5036:2;5025:9;5021:18;5008:32;5083:5;5076:13;5069:21;5062:5;5059:32;5049:60;;5105:1;5102;5095:12;5049:60;5128:5;5118:15;;;4792:347;;;;;:::o;5144:667::-;5239:6;5247;5255;5263;5316:3;5304:9;5295:7;5291:23;5287:33;5284:53;;;5333:1;5330;5323:12;5284:53;5356:29;5375:9;5356:29;:::i;:::-;5346:39;;5404:38;5438:2;5427:9;5423:18;5404:38;:::i;:::-;5394:48;;5489:2;5478:9;5474:18;5461:32;5451:42;;5544:2;5533:9;5529:18;5516:32;-1:-1:-1;;;;;5563:6:1;5560:30;5557:50;;;5603:1;5600;5593:12;5557:50;5626:22;;5679:4;5671:13;;5667:27;-1:-1:-1;5657:55:1;;5708:1;5705;5698:12;5657:55;5731:74;5797:7;5792:2;5779:16;5774:2;5770;5766:11;5731:74;:::i;:::-;5721:84;;;5144:667;;;;;;;:::o;5816:183::-;5876:4;-1:-1:-1;;;;;5901:6:1;5898:30;5895:56;;;5931:18;;:::i;:::-;-1:-1:-1;5976:1:1;5972:14;5988:4;5968:25;;5816:183::o;6004:959::-;6097:6;6105;6158:2;6146:9;6137:7;6133:23;6129:32;6126:52;;;6174:1;6171;6164:12;6126:52;6210:9;6197:23;6187:33;;6239:2;6292;6281:9;6277:18;6264:32;-1:-1:-1;;;;;6311:6:1;6308:30;6305:50;;;6351:1;6348;6341:12;6305:50;6374:22;;6427:4;6419:13;;6415:27;-1:-1:-1;6405:55:1;;6456:1;6453;6446:12;6405:55;6492:2;6479:16;6515:60;6531:43;6571:2;6531:43;:::i;:::-;6515:60;:::i;:::-;6609:15;;;6691:1;6687:10;;;;6679:19;;6675:28;;;6640:12;;;;6715:19;;;6712:39;;;6747:1;6744;6737:12;6712:39;6771:11;;;;6791:142;6807:6;6802:3;6799:15;6791:142;;;6873:17;;6861:30;;6824:12;;;;6911;;;;6791:142;;;6952:5;6942:15;;;;;;;6004:959;;;;;:::o;6968:967::-;7061:6;7069;7122:2;7110:9;7101:7;7097:23;7093:32;7090:52;;;7138:1;7135;7128:12;7090:52;7178:9;7165:23;-1:-1:-1;;;;;7203:6:1;7200:30;7197:50;;;7243:1;7240;7233:12;7197:50;7266:22;;7319:4;7311:13;;7307:27;-1:-1:-1;7297:55:1;;7348:1;7345;7338:12;7297:55;7384:2;7371:16;7406:4;7430:60;7446:43;7486:2;7446:43;:::i;7430:60::-;7524:15;;;7606:1;7602:10;;;;7594:19;;7590:28;;;7555:12;;;;7630:19;;;7627:39;;;7662:1;7659;7652:12;7627:39;7686:11;;;;7706:148;7722:6;7717:3;7714:15;7706:148;;;7788:23;7807:3;7788:23;:::i;:::-;7776:36;;7739:12;;;;7832;;;;7706:148;;;7873:5;7910:18;;;;7897:32;;-1:-1:-1;;;;;;6968:967:1:o;7940:260::-;8008:6;8016;8069:2;8057:9;8048:7;8044:23;8040:32;8037:52;;;8085:1;8082;8075:12;8037:52;8108:29;8127:9;8108:29;:::i;:::-;8098:39;;8156:38;8190:2;8179:9;8175:18;8156:38;:::i;:::-;8146:48;;7940:260;;;;;:::o;8390:322::-;8467:6;8475;8483;8536:2;8524:9;8515:7;8511:23;8507:32;8504:52;;;8552:1;8549;8542:12;8504:52;8575:29;8594:9;8575:29;:::i;:::-;8565:39;8651:2;8636:18;;8623:32;;-1:-1:-1;8702:2:1;8687:18;;;8674:32;;8390:322;-1:-1:-1;;;8390:322:1:o;8717:820::-;8830:6;8838;8846;8854;8862;8915:3;8903:9;8894:7;8890:23;8886:33;8883:53;;;8932:1;8929;8922:12;8883:53;8968:9;8955:23;8945:33;;9025:2;9014:9;9010:18;8997:32;8987:42;;9076:2;9065:9;9061:18;9048:32;9038:42;;9131:2;9120:9;9116:18;9103:32;-1:-1:-1;;;;;9195:2:1;9187:6;9184:14;9181:34;;;9211:1;9208;9201:12;9181:34;9249:6;9238:9;9234:22;9224:32;;9294:7;9287:4;9283:2;9279:13;9275:27;9265:55;;9316:1;9313;9306:12;9265:55;9356:2;9343:16;9382:2;9374:6;9371:14;9368:34;;;9398:1;9395;9388:12;9368:34;9451:7;9446:2;9436:6;9433:1;9429:14;9425:2;9421:23;9417:32;9414:45;9411:65;;;9472:1;9469;9462:12;9411:65;8717:820;;;;-1:-1:-1;8717:820:1;;-1:-1:-1;9503:2:1;9495:11;;9525:6;8717:820;-1:-1:-1;;;8717:820:1:o;9542:380::-;9621:1;9617:12;;;;9664;;;9685:61;;9739:4;9731:6;9727:17;9717:27;;9685:61;9792:2;9784:6;9781:14;9761:18;9758:38;9755:161;;9838:10;9833:3;9829:20;9826:1;9819:31;9873:4;9870:1;9863:15;9901:4;9898:1;9891:15;9755:161;;9542:380;;;:::o;10053:545::-;10155:2;10150:3;10147:11;10144:448;;;10191:1;10216:5;10212:2;10205:17;10261:4;10257:2;10247:19;10331:2;10319:10;10315:19;10312:1;10308:27;10302:4;10298:38;10367:4;10355:10;10352:20;10349:47;;;-1:-1:-1;10390:4:1;10349:47;10445:2;10440:3;10436:12;10433:1;10429:20;10423:4;10419:31;10409:41;;10500:82;10518:2;10511:5;10508:13;10500:82;;;10563:17;;;10544:1;10533:13;10500:82;;;10504:3;;;10053:545;;;:::o;10774:1352::-;10900:3;10894:10;-1:-1:-1;;;;;10919:6:1;10916:30;10913:56;;;10949:18;;:::i;:::-;10978:97;11068:6;11028:38;11060:4;11054:11;11028:38;:::i;:::-;11022:4;10978:97;:::i;:::-;11130:4;;11194:2;11183:14;;11211:1;11206:663;;;;11913:1;11930:6;11927:89;;;-1:-1:-1;11982:19:1;;;11976:26;11927:89;-1:-1:-1;;10731:1:1;10727:11;;;10723:24;10719:29;10709:40;10755:1;10751:11;;;10706:57;12029:81;;11176:944;;11206:663;10000:1;9993:14;;;10037:4;10024:18;;-1:-1:-1;;11242:20:1;;;11360:236;11374:7;11371:1;11368:14;11360:236;;;11463:19;;;11457:26;11442:42;;11555:27;;;;11523:1;11511:14;;;;11390:19;;11360:236;;;11364:3;11624:6;11615:7;11612:19;11609:201;;;11685:19;;;11679:26;-1:-1:-1;;11768:1:1;11764:14;;;11780:3;11760:24;11756:37;11752:42;11737:58;11722:74;;11609:201;-1:-1:-1;;;;;11856:1:1;11840:14;;;11836:22;11823:36;;-1:-1:-1;10774:1352:1:o;12131:127::-;12192:10;12187:3;12183:20;12180:1;12173:31;12223:4;12220:1;12213:15;12247:4;12244:1;12237:15;12263:168;12336:9;;;12367;;12384:15;;;12378:22;;12364:37;12354:71;;12405:18;;:::i;12436:125::-;12501:9;;;12522:10;;;12519:36;;;12535:18;;:::i;12566:342::-;12768:2;12750:21;;;12807:2;12787:18;;;12780:30;-1:-1:-1;;;12841:2:1;12826:18;;12819:48;12899:2;12884:18;;12566:342::o;12913:127::-;12974:10;12969:3;12965:20;12962:1;12955:31;13005:4;13002:1;12995:15;13029:4;13026:1;13019:15;13045:135;13084:3;13105:17;;;13102:43;;13125:18;;:::i;:::-;-1:-1:-1;13172:1:1;13161:13;;13045:135::o;13601:496::-;13780:3;13818:6;13812:13;13834:66;13893:6;13888:3;13881:4;13873:6;13869:17;13834:66;:::i;:::-;13963:13;;13922:16;;;;13985:70;13963:13;13922:16;14032:4;14020:17;;13985:70;:::i;:::-;14071:20;;13601:496;-1:-1:-1;;;;13601:496:1:o;16982:489::-;-1:-1:-1;;;;;17251:15:1;;;17233:34;;17303:15;;17298:2;17283:18;;17276:43;17350:2;17335:18;;17328:34;;;17398:3;17393:2;17378:18;;17371:31;;;17176:4;;17419:46;;17445:19;;17437:6;17419:46;:::i;:::-;17411:54;16982:489;-1:-1:-1;;;;;;16982:489:1:o;17476:249::-;17545:6;17598:2;17586:9;17577:7;17573:23;17569:32;17566:52;;;17614:1;17611;17604:12;17566:52;17646:9;17640:16;17665:30;17689:5;17665:30;:::i
Swarm Source
ipfs://1551a524663c6994969e2d73937f1d226c926de22f0f22686a4a60412b9c64ba
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.