Overview
TokenID
161
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Micropass
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "erc721psi/contracts/extension/ERC721PsiAddressData.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Micropass is ERC721PsiAddressData, Ownable { using Strings for uint256; string private baseURI = "ipfs://bafybeiay2dwijkz456mavyblppb4hzcr5te42oo4kchrdjwkq5536kwbye/"; uint128 public constant PRICE = 0.09 ether; uint64 public constant MAX_SUPPLY = 1100; bool public mintIsOpen = false; bool private uriExtension = true; constructor() ERC721Psi("MicroPass", "MP") { _safeMint(msg.sender, 100); } function price() public pure returns (uint128) { return PRICE; } function getUserData( address user ) external view returns (AddressData memory) { return _addressData[user]; } function openMint() external onlyOwner { mintIsOpen = true; } function setUri(string memory _uri, bool _extension) external onlyOwner { baseURI = _uri; uriExtension = _extension; } function _baseURI() internal view override returns (string memory) { return baseURI; } function tokenURI( uint256 tokenId ) public view override returns (string memory) { return string.concat( _baseURI(), tokenId.toString(), uriExtension ? ".json" : "" ); } function mint() external payable { if (!mintIsOpen) { revert MintClose(); } if (totalSupply() >= MAX_SUPPLY) { revert MaxSupplyReached(); } if (_addressData[msg.sender].numberMinted > 0) { revert MintLimitReached(msg.sender); } if (msg.value < PRICE) { revert NotEnoughEther(PRICE, msg.value); } _safeMint(msg.sender, 1); } function withdraw() external onlyOwner { (bool success, ) = payable(owner()).call{value: address(this).balance}( "" ); require(success, "Transfer failed."); } function rescueERC20( address tokenAddress, uint256 amount ) external onlyOwner { IERC20(tokenAddress).transfer(owner(), amount); } error NotEnoughEther(uint256 required, uint256 sent); error MaxSupplyReached(); error MintLimitReached(address user); error MintClose(); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // 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); } } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @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); } }
// SPDX-License-Identifier: MIT /** ______ _____ _____ ______ ___ __ _ _ _ | ____| __ \ / ____|____ |__ \/_ | || || | | |__ | |__) | | / / ) || | \| |/ | | __| | _ /| | / / / / | |\_ _/ | |____| | \ \| |____ / / / /_ | | | | |______|_| \_\\_____|/_/ |____||_| |_| - github: https://github.com/estarriolvetch/ERC721Psi - npm: https://www.npmjs.com/package/erc721psi */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/StorageSlot.sol"; import "solidity-bits/contracts/BitMaps.sol"; contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; using BitMaps for BitMaps.BitMap; BitMaps.BitMap private _batchHead; string private _name; string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; uint256 private _currentIndex; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal pure returns (uint256) { // It will become modifiable in the future versions return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { return _currentIndex - _startTokenId(); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721Psi: balance query for the zero address"); uint count; for( uint i = _startTokenId(); i < _nextTokenId(); ++i ){ if(_exists(i)){ if( owner == ownerOf(i)){ ++count; } } } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { (address owner, ) = _ownerAndBatchHeadOf(tokenId); return owner; } function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){ require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token"); tokenIdBatchHead = _getBatchHead(tokenId); owner = _owners[tokenIdBatchHead]; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721Psi: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721Psi: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721Psi: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721Psi: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, 1,_data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _nextTokenId() && _startTokenId() <= tokenId; } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721Psi: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @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) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 nextTokenId = _nextTokenId(); _mint(to, quantity); require( _checkOnERC721Received(address(0), to, nextTokenId, quantity, _data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } function _mint( address to, uint256 quantity ) internal virtual { uint256 nextTokenId = _nextTokenId(); require(quantity > 0, "ERC721Psi: quantity must be greater 0"); require(to != address(0), "ERC721Psi: mint to the zero address"); _beforeTokenTransfers(address(0), to, nextTokenId, quantity); _currentIndex += quantity; _owners[nextTokenId] = to; _batchHead.set(nextTokenId); _afterTokenTransfers(address(0), to, nextTokenId, quantity); // Emit events for(uint256 tokenId=nextTokenId; tokenId < nextTokenId + quantity; tokenId++){ emit Transfer(address(0), to, tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId); require( owner == from, "ERC721Psi: transfer of token that is not own" ); require(to != address(0), "ERC721Psi: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId); uint256 subsequentTokenId = tokenId + 1; if(!_batchHead.get(subsequentTokenId) && subsequentTokenId < _nextTokenId() ) { _owners[subsequentTokenId] = from; _batchHead.set(subsequentTokenId); } _owners[tokenId] = to; if(tokenId != tokenIdBatchHead) { _batchHead.set(tokenId); } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), 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 startTokenId uint256 the first ID of the tokens to be transferred * @param quantity uint256 amount of the tokens to be transfered. * @param _data bytes optional data to send along with the call * @return r bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 startTokenId, uint256 quantity, bytes memory _data ) private returns (bool r) { if (to.isContract()) { r = true; for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){ try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { r = r && retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721Psi: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } return r; } else { return true; } } function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) { tokenIdBatchHead = _batchHead.scanForward(tokenId); } function totalSupply() public virtual view returns (uint256) { return _totalMinted(); } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * This function is compatiable with ERC721AQueryable. */ function tokensOfOwner(address owner) external view virtual returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { if (_exists(i)) { if (ownerOf(i) == owner) { tokenIds[tokenIdsIdx++] = i; } } } return tokenIds; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT /** ______ _____ _____ ______ ___ __ _ _ _ | ____| __ \ / ____|____ |__ \/_ | || || | | |__ | |__) | | / / ) || | \| |/ | | __| | _ /| | / / / / | |\_ _/ | |____| | \ \| |____ / / / /_ | | | | |______|_| \_\\_____|/_/ |____||_| |_| */ pragma solidity ^0.8.0; import "solidity-bits/contracts/BitMaps.sol"; import "../ERC721Psi.sol"; /** @dev This extension follows the AddressData format of ERC721A, so it can be a dropped-in replacement for the contract that requires AddressData */ abstract contract ERC721PsiAddressData is ERC721Psi { // Mapping owner address to address data mapping(address => AddressData) _addressData; // 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; } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721Psi: balance query for the zero address"); return uint256(_addressData[owner].balance); } /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override virtual { require(quantity < 2 ** 64); uint64 _quantity = uint64(quantity); if(from != address(0)){ _addressData[from].balance -= _quantity; } else { // Mint _addressData[to].numberMinted += _quantity; } if(to != address(0)){ _addressData[to].balance += _quantity; } else { // Burn _addressData[from].numberBurned += _quantity; } super._afterTokenTransfers(from, to, startTokenId, quantity); } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; import "./BitScan.sol"; /** * @dev This Library is a modified version of Openzeppelin's BitMaps library. * Functions of finding the index of the closest set bit from a given index are added. * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB. * The modification of indexing makes finding the closest previous set bit more efficient in gas usage. */ /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { using BitScan for uint256; uint256 private constant MASK_INDEX_ZERO = (1 << 255); uint256 private constant MASK_FULL = type(uint256).max; struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] &= ~mask; } /** * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`. */ function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex; } else { bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex; amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = MASK_FULL; amount -= 256; bucket++; } bitmap._data[bucket] |= MASK_FULL << (256 - amount); } } } /** * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`. */ function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex); } else { bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = 0; amount -= 256; bucket++; } bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount)); } } } /** * @dev Find the closest index of the set bit before `index`. */ function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) { uint256 bucket = index >> 8; // index within the bucket uint256 bucketIndex = (index & 0xff); // load a bitboard from the bitmap. uint256 bb = bitmap._data[bucket]; // offset the bitboard to scan from `bucketIndex`. bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex) if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (bucketIndex - bb.bitScanForward256()); } } else { while(true) { require(bucket > 0, "BitMaps: The set bit before the index doesn't exist."); unchecked { bucket--; } // No offset. Always scan from the least significiant bit now. bb = bitmap._data[bucket]; if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (255 - bb.bitScanForward256()); break; } } } } } function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) { return bitmap._data[bucket]; } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; library BitScan { uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff; bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8"; /** @dev Isolate the least significant set bit. */ function isolateLS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { return bb & (0 - bb); } } /** @dev Isolate the most significant set bit. */ function isolateMS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { bb |= bb >> 128; bb |= bb >> 64; bb |= bb >> 32; bb |= bb >> 16; bb |= bb >> 8; bb |= bb >> 4; bb |= bb >> 2; bb |= bb >> 1; return (bb >> 1) + 1; } } /** @dev Find the index of the lest significant set bit. (trailing zero count) */ function bitScanForward256(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]); } } /** @dev Find the index of the most significant set bit. */ function bitScanReverse256(uint256 bb) pure internal returns (uint8) { unchecked { return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]); } } function log2(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintClose","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"MintLimitReached","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"sent","type":"uint256"}],"name":"NotEnoughEther","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":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","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":"address","name":"user","type":"address"}],"name":"getUserData","outputs":[{"components":[{"internalType":"uint64","name":"balance","type":"uint64"},{"internalType":"uint64","name":"numberMinted","type":"uint64"},{"internalType":"uint64","name":"numberBurned","type":"uint64"},{"internalType":"uint64","name":"aux","type":"uint64"}],"internalType":"struct ERC721PsiAddressData.AddressData","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":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMint","outputs":[],"stateMutability":"nonpayable","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":"price","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueERC20","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":"_uri","type":"string"},{"internalType":"bool","name":"_extension","type":"bool"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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
60806040526040518060800160405280604381526020016200558660439139600990816200002e919062000cc5565b506000600a60006101000a81548160ff0219169083151502179055506001600a60016101000a81548160ff0219169083151502179055503480156200007257600080fd5b506040518060400160405280600981526020017f4d6963726f5061737300000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4d500000000000000000000000000000000000000000000000000000000000008152508160019081620000f0919062000cc5565b50806002908162000102919062000cc5565b50620001136200015460201b60201c565b60048190555050506200013b6200012f6200015960201b60201c565b6200016160201b60201c565b6200014e3360646200022760201b60201c565b620012ae565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002498282604051806020016040528060008152506200024d60201b60201c565b5050565b60006200025f620002d160201b60201c565b9050620002738484620002db60201b60201c565b62000289600085838686620004ed60201b60201c565b620002cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002c29062000e33565b60405180910390fd5b50505050565b6000600454905090565b6000620002ed620002d160201b60201c565b90506000821162000335576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032c9062000ecb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620003a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200039e9062000f63565b60405180910390fd5b620003bc6000848385620006d860201b60201c565b8160046000828254620003d0919062000fb4565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000444816000620006de60201b6200152e1790919060201c565b6200045960008483856200073b60201b60201c565b60008190505b82826200046d919062000fb4565b811015620004e757808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48080620004de9062000fef565b9150506200045f565b50505050565b60006200051b8573ffffffffffffffffffffffffffffffffffffffff1662000a2260201b6200158b1760201c565b15620006ca576001905060008490505b838562000539919062000fb4565b811015620006c3578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026200056d6200015960201b60201c565b8984876040518563ffffffff1660e01b81526004016200059194939291906200112c565b6020604051808303816000875af1925050508015620005d057506040513d601f19601f82011682018060405250810190620005cd9190620011e2565b60015b62000658573d806000811462000603576040519150601f19603f3d011682016040523d82523d6000602084013e62000608565b606091505b50600081510362000650576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006479062000e33565b60405180910390fd5b805181602001fd5b828015620006aa575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9250508080620006ba9062000fef565b9150506200052b565b50620006cf565b600190505b95945050505050565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6801000000000000000081106200075157600080fd5b6000819050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146200081e5780600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff16620007f2919062001228565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550620008ac565b80600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff166200088591906200126b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614620009745780600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff166200094891906200126b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555062000a02565b80600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff16620009db91906200126b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b62000a1b8585858562000a4560201b620015ae1760201c565b5050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000acd57607f821691505b60208210810362000ae35762000ae262000a85565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000b4d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000b0e565b62000b59868362000b0e565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000ba662000ba062000b9a8462000b71565b62000b7b565b62000b71565b9050919050565b6000819050919050565b62000bc28362000b85565b62000bda62000bd18262000bad565b84845462000b1b565b825550505050565b600090565b62000bf162000be2565b62000bfe81848462000bb7565b505050565b5b8181101562000c265762000c1a60008262000be7565b60018101905062000c04565b5050565b601f82111562000c755762000c3f8162000ae9565b62000c4a8462000afe565b8101602085101562000c5a578190505b62000c7262000c698562000afe565b83018262000c03565b50505b505050565b600082821c905092915050565b600062000c9a6000198460080262000c7a565b1980831691505092915050565b600062000cb5838362000c87565b9150826002028217905092915050565b62000cd08262000a4b565b67ffffffffffffffff81111562000cec5762000ceb62000a56565b5b62000cf8825462000ab4565b62000d0582828562000c2a565b600060209050601f83116001811462000d3d576000841562000d28578287015190505b62000d34858262000ca7565b86555062000da4565b601f19841662000d4d8662000ae9565b60005b8281101562000d775784890151825560018201915060208501945060208101905062000d50565b8683101562000d97578489015162000d93601f89168262000c87565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600062000e1b60358362000dac565b915062000e288262000dbd565b604082019050919050565b6000602082019050818103600083015262000e4e8162000e0c565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b600062000eb360258362000dac565b915062000ec08262000e55565b604082019050919050565b6000602082019050818103600083015262000ee68162000ea4565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600062000f4b60238362000dac565b915062000f588262000eed565b604082019050919050565b6000602082019050818103600083015262000f7e8162000f3c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000fc18262000b71565b915062000fce8362000b71565b925082820190508082111562000fe95762000fe862000f85565b5b92915050565b600062000ffc8262000b71565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362001031576200103062000f85565b5b600182019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062001069826200103c565b9050919050565b6200107b816200105c565b82525050565b6200108c8162000b71565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015620010ce578082015181840152602081019050620010b1565b60008484015250505050565b6000601f19601f8301169050919050565b6000620010f88262001092565b6200110481856200109d565b935062001116818560208601620010ae565b6200112181620010da565b840191505092915050565b600060808201905062001143600083018762001070565b62001152602083018662001070565b62001161604083018562001081565b8181036060830152620011758184620010eb565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620011bc8162001185565b8114620011c857600080fd5b50565b600081519050620011dc81620011b1565b92915050565b600060208284031215620011fb57620011fa62001180565b5b60006200120b84828501620011cb565b91505092915050565b600067ffffffffffffffff82169050919050565b6000620012358262001214565b9150620012428362001214565b9250828203905067ffffffffffffffff81111562001265576200126462000f85565b5b92915050565b6000620012788262001214565b9150620012858362001214565b9250828201905067ffffffffffffffff811115620012a857620012a762000f85565b5b92915050565b6142c880620012be6000396000f3fe6080604052600436106101b75760003560e01c80638462151c116100ec578063aa1152ab1161008a578063c87b56dd11610064578063c87b56dd146105b3578063e985e9c5146105f0578063f2fde38b1461062d578063ffc9896b14610656576101b7565b8063aa1152ab14610548578063b88d4fde14610573578063bce6d6721461059c576101b7565b80638da5cb5b116100c65780638da5cb5b1461049e57806395d89b41146104c9578063a035b1fe146104f4578063a22cb4651461051f576101b7565b80638462151c1461040d5780638cd4426d1461044a5780638d859f3e14610473576101b7565b8063277ff0041161015957806342842e0e1161013357806342842e0e146103535780636352211e1461037c57806370a08231146103b9578063715018a6146103f6576101b7565b8063277ff004146102e857806332cb6b0c146103115780633ccfd60b1461033c576101b7565b8063095ea7b311610195578063095ea7b3146102615780631249c58b1461028a57806318160ddd1461029457806323b872dd146102bf576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612936565b610693565b6040516101f0919061297e565b60405180910390f35b34801561020557600080fd5b5061020e610775565b60405161021b9190612a29565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190612a81565b610807565b6040516102589190612aef565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612b36565b61088c565b005b6102926109a3565b005b3480156102a057600080fd5b506102a9610b51565b6040516102b69190612b85565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190612ba0565b610b60565b005b3480156102f457600080fd5b5061030f600480360381019061030a9190612d54565b610bc0565b005b34801561031d57600080fd5b50610326610bf6565b6040516103339190612dd3565b60405180910390f35b34801561034857600080fd5b50610351610bfc565b005b34801561035f57600080fd5b5061037a60048036038101906103759190612ba0565b610cba565b005b34801561038857600080fd5b506103a3600480360381019061039e9190612a81565b610cda565b6040516103b09190612aef565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190612dee565b610cf2565b6040516103ed9190612b85565b60405180910390f35b34801561040257600080fd5b5061040b610dca565b005b34801561041957600080fd5b50610434600480360381019061042f9190612dee565b610dde565b6040516104419190612ed9565b60405180910390f35b34801561045657600080fd5b50610471600480360381019061046c9190612b36565b610ed7565b005b34801561047f57600080fd5b50610488610f69565b6040516104959190612f26565b60405180910390f35b3480156104aa57600080fd5b506104b3610f75565b6040516104c09190612aef565b60405180910390f35b3480156104d557600080fd5b506104de610f9f565b6040516104eb9190612a29565b60405180910390f35b34801561050057600080fd5b50610509611031565b6040516105169190612f26565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190612f41565b611041565b005b34801561055457600080fd5b5061055d6111c1565b60405161056a919061297e565b60405180910390f35b34801561057f57600080fd5b5061059a60048036038101906105959190613022565b6111d4565b005b3480156105a857600080fd5b506105b1611236565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190612a81565b61125b565b6040516105e79190612a29565b60405180910390f35b3480156105fc57600080fd5b50610617600480360381019061061291906130a5565b6112f6565b604051610624919061297e565b60405180910390f35b34801561063957600080fd5b50610654600480360381019061064f9190612dee565b61138a565b005b34801561066257600080fd5b5061067d60048036038101906106789190612dee565b61140d565b60405161068a9190613149565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076e575061076d826115b4565b5b9050919050565b60606001805461078490613193565b80601f01602080910402602001604051908101604052809291908181526020018280546107b090613193565b80156107fd5780601f106107d2576101008083540402835291602001916107fd565b820191906000526020600020905b8154815290600101906020018083116107e057829003601f168201915b5050505050905090565b60006108128261161e565b610851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084890613236565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061089782610cda565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610907576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fe906132c8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610926611644565b73ffffffffffffffffffffffffffffffffffffffff16148061095557506109548161094f611644565b6112f6565b5b610994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098b9061335a565b60405180910390fd5b61099e838361164c565b505050565b600a60009054906101000a900460ff166109e9576040517f6a7bdc8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61044c67ffffffffffffffff166109fe610b51565b10610a35576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff161115610adb57336040517f061b0fc8000000000000000000000000000000000000000000000000000000008152600401610ad29190612aef565b60405180910390fd5b67013fbe85edc900006fffffffffffffffffffffffffffffffff16341015610b445767013fbe85edc90000346040517f41ba67b6000000000000000000000000000000000000000000000000000000008152600401610b3b9291906133b5565b60405180910390fd5b610b4f336001611705565b565b6000610b5b611723565b905090565b610b71610b6b611644565b8261173f565b610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790613450565b60405180910390fd5b610bbb83838361181d565b505050565b610bc8611aa4565b8160099081610bd79190613612565b5080600a60016101000a81548160ff0219169083151502179055505050565b61044c81565b610c04611aa4565b6000610c0e610f75565b73ffffffffffffffffffffffffffffffffffffffff1647604051610c3190613715565b60006040518083038185875af1925050503d8060008114610c6e576040519150601f19603f3d011682016040523d82523d6000602084013e610c73565b606091505b5050905080610cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cae90613776565b60405180910390fd5b50565b610cd5838383604051806020016040528060008152506111d4565b505050565b600080610ce683611b22565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990613808565b60405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b610dd2611aa4565b610ddc6000611bb3565b565b6060600080610dec84610cf2565b905060008167ffffffffffffffff811115610e0a57610e09612bfd565b5b604051908082528060200260200182016040528015610e385781602001602082028036833780820191505090505b5090506000610e45611c79565b90505b828414610ecb57610e588161161e565b15610ec0578573ffffffffffffffffffffffffffffffffffffffff16610e7d82610cda565b73ffffffffffffffffffffffffffffffffffffffff1603610ebf5780828580600101965081518110610eb257610eb1613828565b5b6020026020010181815250505b5b806001019050610e48565b50809350505050919050565b610edf611aa4565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610f03610f75565b836040518363ffffffff1660e01b8152600401610f21929190613857565b6020604051808303816000875af1158015610f40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f649190613895565b505050565b67013fbe85edc9000081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054610fae90613193565b80601f0160208091040260200160405190810160405280929190818152602001828054610fda90613193565b80156110275780601f10610ffc57610100808354040283529160200191611027565b820191906000526020600020905b81548152906001019060200180831161100a57829003601f168201915b5050505050905090565b600067013fbe85edc90000905090565b611049611644565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ad9061390e565b60405180910390fd5b80600660006110c3611644565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611170611644565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111b5919061297e565b60405180910390a35050565b600a60009054906101000a900460ff1681565b6111e56111df611644565b8361173f565b611224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121b90613450565b60405180910390fd5b61123084848484611c7e565b50505050565b61123e611aa4565b6001600a60006101000a81548160ff021916908315150217905550565b6060611265611cdc565b61126e83611d6e565b600a60019054906101000a900460ff1661129757604051806020016040528060008152506112ce565b6040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152505b6040516020016112e09392919061396a565b6040516020818303038152906040529050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611392611aa4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f890613a0d565b60405180910390fd5b61140a81611bb3565b50565b61141561287a565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060800160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050919050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000611628611e3c565b8210801561163d57508161163a611c79565b11155b9050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116bf83610cda565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61171f828260405180602001604052806000815250611e46565b5050565b600061172d611c79565b60045461173a9190613a5c565b905090565b600061174a8261161e565b611789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178090613b02565b60405180910390fd5b600061179483610cda565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061180357508373ffffffffffffffffffffffffffffffffffffffff166117eb84610807565b73ffffffffffffffffffffffffffffffffffffffff16145b80611814575061181381856112f6565b5b91505092915050565b60008061182983611b22565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461189b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189290613b94565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190613c26565b60405180910390fd5b6119178585856001611eaf565b61192260008461164c565b60006001846119319190613c46565b9050611947816000611eb590919063ffffffff16565b15801561195a5750611957611e3c565b81105b156119c657856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506119c581600061152e90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414611a3457611a3384600061152e90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a9c8686866001611f10565b505050505050565b611aac611644565b73ffffffffffffffffffffffffffffffffffffffff16611aca610f75565b73ffffffffffffffffffffffffffffffffffffffff1614611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790613cc6565b60405180910390fd5b565b600080611b2e8361161e565b611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6490613d58565b60405180910390fd5b611b76836121dd565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b611c8984848461181d565b611c978484846001856121fa565b611cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccd90613dea565b60405180910390fd5b50505050565b606060098054611ceb90613193565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1790613193565b8015611d645780601f10611d3957610100808354040283529160200191611d64565b820191906000526020600020905b815481529060010190602001808311611d4757829003601f168201915b5050505050905090565b606060006001611d7d846123bc565b01905060008167ffffffffffffffff811115611d9c57611d9b612bfd565b5b6040519080825280601f01601f191660200182016040528015611dce5781602001600182028036833780820191505090505b509050600082602001820190505b600115611e31578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611e2557611e24613e0a565b5b04945060008503611ddc575b819350505050919050565b6000600454905090565b6000611e50611e3c565b9050611e5c848461250f565b611e6a6000858386866121fa565b611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090613dea565b60405180910390fd5b50505050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b680100000000000000008110611f2557600080fd5b6000819050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611fee5780600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff16611fc39190613e39565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061207a565b80600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff166120539190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461213e5780600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff166121139190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506121ca565b80600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff166121a39190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b6121d6858585856115ae565b5050505050565b60006121f38260006126f490919063ffffffff16565b9050919050565b600061221b8573ffffffffffffffffffffffffffffffffffffffff1661158b565b156123ae576001905060008490505b83856122369190613c46565b8110156123a8578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02612261611644565b8984876040518563ffffffff1660e01b81526004016122839493929190613f06565b6020604051808303816000875af19250505080156122bf57506040513d601f19601f820116820180604052508101906122bc9190613f67565b60015b612341573d80600081146122ef576040519150601f19603f3d011682016040523d82523d6000602084013e6122f4565b606091505b506000815103612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233090613dea565b60405180910390fd5b805181602001fd5b828015612392575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806123a090613f94565b91505061222a565b506123b3565b600190505b95945050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061241a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816124105761240f613e0a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612457576d04ee2d6d415b85acef8100000000838161244d5761244c613e0a565b5b0492506020810190505b662386f26fc10000831061248657662386f26fc10000838161247c5761247b613e0a565b5b0492506010810190505b6305f5e10083106124af576305f5e10083816124a5576124a4613e0a565b5b0492506008810190505b61271083106124d45761271083816124ca576124c9613e0a565b5b0492506004810190505b606483106124f757606483816124ed576124ec613e0a565b5b0492506002810190505b600a8310612506576001810190505b80915050919050565b6000612519611e3c565b90506000821161255e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125559061404e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c4906140e0565b60405180910390fd5b6125da6000848385611eaf565b81600460008282546125ec9190613c46565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061265981600061152e90919063ffffffff16565b6126666000848385611f10565b60008190505b82826126789190613c46565b8110156126ee57808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806126e690613f94565b91505061266c565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c9050600081111561274d5761273b816127ed565b60ff168203600884901b1793506127e4565b5b6001156127e35760008311612798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278f90614172565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156127de576127cb816127ed565b60ff0360ff16600884901b1793506127e3565b61274e565b5b50505092915050565b60006040518061012001604052806101008152602001614193610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff6128368561285f565b02901c8151811061284a57612849613828565b5b602001015160f81c60f81b60f81c9050919050565b600080821161286d57600080fd5b8160000382169050919050565b6040518060800160405280600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612913816128de565b811461291e57600080fd5b50565b6000813590506129308161290a565b92915050565b60006020828403121561294c5761294b6128d4565b5b600061295a84828501612921565b91505092915050565b60008115159050919050565b61297881612963565b82525050565b6000602082019050612993600083018461296f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156129d35780820151818401526020810190506129b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006129fb82612999565b612a0581856129a4565b9350612a158185602086016129b5565b612a1e816129df565b840191505092915050565b60006020820190508181036000830152612a4381846129f0565b905092915050565b6000819050919050565b612a5e81612a4b565b8114612a6957600080fd5b50565b600081359050612a7b81612a55565b92915050565b600060208284031215612a9757612a966128d4565b5b6000612aa584828501612a6c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612ad982612aae565b9050919050565b612ae981612ace565b82525050565b6000602082019050612b046000830184612ae0565b92915050565b612b1381612ace565b8114612b1e57600080fd5b50565b600081359050612b3081612b0a565b92915050565b60008060408385031215612b4d57612b4c6128d4565b5b6000612b5b85828601612b21565b9250506020612b6c85828601612a6c565b9150509250929050565b612b7f81612a4b565b82525050565b6000602082019050612b9a6000830184612b76565b92915050565b600080600060608486031215612bb957612bb86128d4565b5b6000612bc786828701612b21565b9350506020612bd886828701612b21565b9250506040612be986828701612a6c565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c35826129df565b810181811067ffffffffffffffff82111715612c5457612c53612bfd565b5b80604052505050565b6000612c676128ca565b9050612c738282612c2c565b919050565b600067ffffffffffffffff821115612c9357612c92612bfd565b5b612c9c826129df565b9050602081019050919050565b82818337600083830152505050565b6000612ccb612cc684612c78565b612c5d565b905082815260208101848484011115612ce757612ce6612bf8565b5b612cf2848285612ca9565b509392505050565b600082601f830112612d0f57612d0e612bf3565b5b8135612d1f848260208601612cb8565b91505092915050565b612d3181612963565b8114612d3c57600080fd5b50565b600081359050612d4e81612d28565b92915050565b60008060408385031215612d6b57612d6a6128d4565b5b600083013567ffffffffffffffff811115612d8957612d886128d9565b5b612d9585828601612cfa565b9250506020612da685828601612d3f565b9150509250929050565b600067ffffffffffffffff82169050919050565b612dcd81612db0565b82525050565b6000602082019050612de86000830184612dc4565b92915050565b600060208284031215612e0457612e036128d4565b5b6000612e1284828501612b21565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612e5081612a4b565b82525050565b6000612e628383612e47565b60208301905092915050565b6000602082019050919050565b6000612e8682612e1b565b612e908185612e26565b9350612e9b83612e37565b8060005b83811015612ecc578151612eb38882612e56565b9750612ebe83612e6e565b925050600181019050612e9f565b5085935050505092915050565b60006020820190508181036000830152612ef38184612e7b565b905092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612f2081612efb565b82525050565b6000602082019050612f3b6000830184612f17565b92915050565b60008060408385031215612f5857612f576128d4565b5b6000612f6685828601612b21565b9250506020612f7785828601612d3f565b9150509250929050565b600067ffffffffffffffff821115612f9c57612f9b612bfd565b5b612fa5826129df565b9050602081019050919050565b6000612fc5612fc084612f81565b612c5d565b905082815260208101848484011115612fe157612fe0612bf8565b5b612fec848285612ca9565b509392505050565b600082601f83011261300957613008612bf3565b5b8135613019848260208601612fb2565b91505092915050565b6000806000806080858703121561303c5761303b6128d4565b5b600061304a87828801612b21565b945050602061305b87828801612b21565b935050604061306c87828801612a6c565b925050606085013567ffffffffffffffff81111561308d5761308c6128d9565b5b61309987828801612ff4565b91505092959194509250565b600080604083850312156130bc576130bb6128d4565b5b60006130ca85828601612b21565b92505060206130db85828601612b21565b9150509250929050565b6130ee81612db0565b82525050565b60808201600082015161310a60008501826130e5565b50602082015161311d60208501826130e5565b50604082015161313060408501826130e5565b50606082015161314360608501826130e5565b50505050565b600060808201905061315e60008301846130f4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131ab57607f821691505b6020821081036131be576131bd613164565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613220602f836129a4565b915061322b826131c4565b604082019050919050565b6000602082019050818103600083015261324f81613213565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006132b26024836129a4565b91506132bd82613256565b604082019050919050565b600060208201905081810360008301526132e1816132a5565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613344603b836129a4565b915061334f826132e8565b604082019050919050565b6000602082019050818103600083015261337381613337565b9050919050565b6000819050919050565b600061339f61339a61339584612efb565b61337a565b612a4b565b9050919050565b6133af81613384565b82525050565b60006040820190506133ca60008301856133a6565b6133d76020830184612b76565b9392505050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061343a6034836129a4565b9150613445826133de565b604082019050919050565b600060208201905081810360008301526134698161342d565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134d27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613495565b6134dc8683613495565b95508019841693508086168417925050509392505050565b600061350f61350a61350584612a4b565b61337a565b612a4b565b9050919050565b6000819050919050565b613529836134f4565b61353d61353582613516565b8484546134a2565b825550505050565b600090565b613552613545565b61355d818484613520565b505050565b5b818110156135815761357660008261354a565b600181019050613563565b5050565b601f8211156135c65761359781613470565b6135a084613485565b810160208510156135af578190505b6135c36135bb85613485565b830182613562565b50505b505050565b600082821c905092915050565b60006135e9600019846008026135cb565b1980831691505092915050565b600061360283836135d8565b9150826002028217905092915050565b61361b82612999565b67ffffffffffffffff81111561363457613633612bfd565b5b61363e8254613193565b613649828285613585565b600060209050601f83116001811461367c576000841561366a578287015190505b61367485826135f6565b8655506136dc565b601f19841661368a86613470565b60005b828110156136b25784890151825560018201915060208501945060208101905061368d565b868310156136cf57848901516136cb601f8916826135d8565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b60006136ff6000836136e4565b915061370a826136ef565b600082019050919050565b6000613720826136f2565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006137606010836129a4565b915061376b8261372a565b602082019050919050565b6000602082019050818103600083015261378f81613753565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b60006137f2602d836129a4565b91506137fd82613796565b604082019050919050565b60006020820190508181036000830152613821816137e5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060408201905061386c6000830185612ae0565b6138796020830184612b76565b9392505050565b60008151905061388f81612d28565b92915050565b6000602082840312156138ab576138aa6128d4565b5b60006138b984828501613880565b91505092915050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b60006138f8601c836129a4565b9150613903826138c2565b602082019050919050565b60006020820190508181036000830152613927816138eb565b9050919050565b600081905092915050565b600061394482612999565b61394e818561392e565b935061395e8185602086016129b5565b80840191505092915050565b60006139768286613939565b91506139828285613939565b915061398e8284613939565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006139f76026836129a4565b9150613a028261399b565b604082019050919050565b60006020820190508181036000830152613a26816139ea565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a6782612a4b565b9150613a7283612a4b565b9250828203905081811115613a8a57613a89613a2d565b5b92915050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613aec602f836129a4565b9150613af782613a90565b604082019050919050565b60006020820190508181036000830152613b1b81613adf565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000613b7e602c836129a4565b9150613b8982613b22565b604082019050919050565b60006020820190508181036000830152613bad81613b71565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000613c106027836129a4565b9150613c1b82613bb4565b604082019050919050565b60006020820190508181036000830152613c3f81613c03565b9050919050565b6000613c5182612a4b565b9150613c5c83612a4b565b9250828201905080821115613c7457613c73613a2d565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613cb06020836129a4565b9150613cbb82613c7a565b602082019050919050565b60006020820190508181036000830152613cdf81613ca3565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613d42602c836129a4565b9150613d4d82613ce6565b604082019050919050565b60006020820190508181036000830152613d7181613d35565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000613dd46035836129a4565b9150613ddf82613d78565b604082019050919050565b60006020820190508181036000830152613e0381613dc7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e4482612db0565b9150613e4f83612db0565b9250828203905067ffffffffffffffff811115613e6f57613e6e613a2d565b5b92915050565b6000613e8082612db0565b9150613e8b83612db0565b9250828201905067ffffffffffffffff811115613eab57613eaa613a2d565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000613ed882613eb1565b613ee28185613ebc565b9350613ef28185602086016129b5565b613efb816129df565b840191505092915050565b6000608082019050613f1b6000830187612ae0565b613f286020830186612ae0565b613f356040830185612b76565b8181036060830152613f478184613ecd565b905095945050505050565b600081519050613f618161290a565b92915050565b600060208284031215613f7d57613f7c6128d4565b5b6000613f8b84828501613f52565b91505092915050565b6000613f9f82612a4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613fd157613fd0613a2d565b5b600182019050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006140386025836129a4565b915061404382613fdc565b604082019050919050565b600060208201905081810360008301526140678161402b565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006140ca6023836129a4565b91506140d58261406e565b604082019050919050565b600060208201905081810360008301526140f9816140bd565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b600061415c6034836129a4565b915061416782614100565b604082019050919050565b6000602082019050818103600083015261418b8161414f565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220dc8545b0d23133399d2a93ab36d7d490ee4ff263690363cb5ecc18cc4561089a64736f6c63430008110033697066733a2f2f626166796265696179326477696a6b7a3435366d617679626c70706234687a637235746534326f6f346b636872646a776b71353533366b776279652f
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80638462151c116100ec578063aa1152ab1161008a578063c87b56dd11610064578063c87b56dd146105b3578063e985e9c5146105f0578063f2fde38b1461062d578063ffc9896b14610656576101b7565b8063aa1152ab14610548578063b88d4fde14610573578063bce6d6721461059c576101b7565b80638da5cb5b116100c65780638da5cb5b1461049e57806395d89b41146104c9578063a035b1fe146104f4578063a22cb4651461051f576101b7565b80638462151c1461040d5780638cd4426d1461044a5780638d859f3e14610473576101b7565b8063277ff0041161015957806342842e0e1161013357806342842e0e146103535780636352211e1461037c57806370a08231146103b9578063715018a6146103f6576101b7565b8063277ff004146102e857806332cb6b0c146103115780633ccfd60b1461033c576101b7565b8063095ea7b311610195578063095ea7b3146102615780631249c58b1461028a57806318160ddd1461029457806323b872dd146102bf576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612936565b610693565b6040516101f0919061297e565b60405180910390f35b34801561020557600080fd5b5061020e610775565b60405161021b9190612a29565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190612a81565b610807565b6040516102589190612aef565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612b36565b61088c565b005b6102926109a3565b005b3480156102a057600080fd5b506102a9610b51565b6040516102b69190612b85565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190612ba0565b610b60565b005b3480156102f457600080fd5b5061030f600480360381019061030a9190612d54565b610bc0565b005b34801561031d57600080fd5b50610326610bf6565b6040516103339190612dd3565b60405180910390f35b34801561034857600080fd5b50610351610bfc565b005b34801561035f57600080fd5b5061037a60048036038101906103759190612ba0565b610cba565b005b34801561038857600080fd5b506103a3600480360381019061039e9190612a81565b610cda565b6040516103b09190612aef565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190612dee565b610cf2565b6040516103ed9190612b85565b60405180910390f35b34801561040257600080fd5b5061040b610dca565b005b34801561041957600080fd5b50610434600480360381019061042f9190612dee565b610dde565b6040516104419190612ed9565b60405180910390f35b34801561045657600080fd5b50610471600480360381019061046c9190612b36565b610ed7565b005b34801561047f57600080fd5b50610488610f69565b6040516104959190612f26565b60405180910390f35b3480156104aa57600080fd5b506104b3610f75565b6040516104c09190612aef565b60405180910390f35b3480156104d557600080fd5b506104de610f9f565b6040516104eb9190612a29565b60405180910390f35b34801561050057600080fd5b50610509611031565b6040516105169190612f26565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190612f41565b611041565b005b34801561055457600080fd5b5061055d6111c1565b60405161056a919061297e565b60405180910390f35b34801561057f57600080fd5b5061059a60048036038101906105959190613022565b6111d4565b005b3480156105a857600080fd5b506105b1611236565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190612a81565b61125b565b6040516105e79190612a29565b60405180910390f35b3480156105fc57600080fd5b50610617600480360381019061061291906130a5565b6112f6565b604051610624919061297e565b60405180910390f35b34801561063957600080fd5b50610654600480360381019061064f9190612dee565b61138a565b005b34801561066257600080fd5b5061067d60048036038101906106789190612dee565b61140d565b60405161068a9190613149565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076e575061076d826115b4565b5b9050919050565b60606001805461078490613193565b80601f01602080910402602001604051908101604052809291908181526020018280546107b090613193565b80156107fd5780601f106107d2576101008083540402835291602001916107fd565b820191906000526020600020905b8154815290600101906020018083116107e057829003601f168201915b5050505050905090565b60006108128261161e565b610851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084890613236565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061089782610cda565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610907576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fe906132c8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610926611644565b73ffffffffffffffffffffffffffffffffffffffff16148061095557506109548161094f611644565b6112f6565b5b610994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098b9061335a565b60405180910390fd5b61099e838361164c565b505050565b600a60009054906101000a900460ff166109e9576040517f6a7bdc8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61044c67ffffffffffffffff166109fe610b51565b10610a35576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff161115610adb57336040517f061b0fc8000000000000000000000000000000000000000000000000000000008152600401610ad29190612aef565b60405180910390fd5b67013fbe85edc900006fffffffffffffffffffffffffffffffff16341015610b445767013fbe85edc90000346040517f41ba67b6000000000000000000000000000000000000000000000000000000008152600401610b3b9291906133b5565b60405180910390fd5b610b4f336001611705565b565b6000610b5b611723565b905090565b610b71610b6b611644565b8261173f565b610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790613450565b60405180910390fd5b610bbb83838361181d565b505050565b610bc8611aa4565b8160099081610bd79190613612565b5080600a60016101000a81548160ff0219169083151502179055505050565b61044c81565b610c04611aa4565b6000610c0e610f75565b73ffffffffffffffffffffffffffffffffffffffff1647604051610c3190613715565b60006040518083038185875af1925050503d8060008114610c6e576040519150601f19603f3d011682016040523d82523d6000602084013e610c73565b606091505b5050905080610cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cae90613776565b60405180910390fd5b50565b610cd5838383604051806020016040528060008152506111d4565b505050565b600080610ce683611b22565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990613808565b60405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b610dd2611aa4565b610ddc6000611bb3565b565b6060600080610dec84610cf2565b905060008167ffffffffffffffff811115610e0a57610e09612bfd565b5b604051908082528060200260200182016040528015610e385781602001602082028036833780820191505090505b5090506000610e45611c79565b90505b828414610ecb57610e588161161e565b15610ec0578573ffffffffffffffffffffffffffffffffffffffff16610e7d82610cda565b73ffffffffffffffffffffffffffffffffffffffff1603610ebf5780828580600101965081518110610eb257610eb1613828565b5b6020026020010181815250505b5b806001019050610e48565b50809350505050919050565b610edf611aa4565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610f03610f75565b836040518363ffffffff1660e01b8152600401610f21929190613857565b6020604051808303816000875af1158015610f40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f649190613895565b505050565b67013fbe85edc9000081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054610fae90613193565b80601f0160208091040260200160405190810160405280929190818152602001828054610fda90613193565b80156110275780601f10610ffc57610100808354040283529160200191611027565b820191906000526020600020905b81548152906001019060200180831161100a57829003601f168201915b5050505050905090565b600067013fbe85edc90000905090565b611049611644565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ad9061390e565b60405180910390fd5b80600660006110c3611644565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611170611644565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111b5919061297e565b60405180910390a35050565b600a60009054906101000a900460ff1681565b6111e56111df611644565b8361173f565b611224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121b90613450565b60405180910390fd5b61123084848484611c7e565b50505050565b61123e611aa4565b6001600a60006101000a81548160ff021916908315150217905550565b6060611265611cdc565b61126e83611d6e565b600a60019054906101000a900460ff1661129757604051806020016040528060008152506112ce565b6040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152505b6040516020016112e09392919061396a565b6040516020818303038152906040529050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611392611aa4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f890613a0d565b60405180910390fd5b61140a81611bb3565b50565b61141561287a565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060800160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050919050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000611628611e3c565b8210801561163d57508161163a611c79565b11155b9050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116bf83610cda565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61171f828260405180602001604052806000815250611e46565b5050565b600061172d611c79565b60045461173a9190613a5c565b905090565b600061174a8261161e565b611789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178090613b02565b60405180910390fd5b600061179483610cda565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061180357508373ffffffffffffffffffffffffffffffffffffffff166117eb84610807565b73ffffffffffffffffffffffffffffffffffffffff16145b80611814575061181381856112f6565b5b91505092915050565b60008061182983611b22565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461189b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189290613b94565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190613c26565b60405180910390fd5b6119178585856001611eaf565b61192260008461164c565b60006001846119319190613c46565b9050611947816000611eb590919063ffffffff16565b15801561195a5750611957611e3c565b81105b156119c657856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506119c581600061152e90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414611a3457611a3384600061152e90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a9c8686866001611f10565b505050505050565b611aac611644565b73ffffffffffffffffffffffffffffffffffffffff16611aca610f75565b73ffffffffffffffffffffffffffffffffffffffff1614611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790613cc6565b60405180910390fd5b565b600080611b2e8361161e565b611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6490613d58565b60405180910390fd5b611b76836121dd565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b611c8984848461181d565b611c978484846001856121fa565b611cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccd90613dea565b60405180910390fd5b50505050565b606060098054611ceb90613193565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1790613193565b8015611d645780601f10611d3957610100808354040283529160200191611d64565b820191906000526020600020905b815481529060010190602001808311611d4757829003601f168201915b5050505050905090565b606060006001611d7d846123bc565b01905060008167ffffffffffffffff811115611d9c57611d9b612bfd565b5b6040519080825280601f01601f191660200182016040528015611dce5781602001600182028036833780820191505090505b509050600082602001820190505b600115611e31578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611e2557611e24613e0a565b5b04945060008503611ddc575b819350505050919050565b6000600454905090565b6000611e50611e3c565b9050611e5c848461250f565b611e6a6000858386866121fa565b611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090613dea565b60405180910390fd5b50505050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b680100000000000000008110611f2557600080fd5b6000819050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611fee5780600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff16611fc39190613e39565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061207a565b80600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff166120539190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461213e5780600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff166121139190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506121ca565b80600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff166121a39190613e75565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b6121d6858585856115ae565b5050505050565b60006121f38260006126f490919063ffffffff16565b9050919050565b600061221b8573ffffffffffffffffffffffffffffffffffffffff1661158b565b156123ae576001905060008490505b83856122369190613c46565b8110156123a8578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02612261611644565b8984876040518563ffffffff1660e01b81526004016122839493929190613f06565b6020604051808303816000875af19250505080156122bf57506040513d601f19601f820116820180604052508101906122bc9190613f67565b60015b612341573d80600081146122ef576040519150601f19603f3d011682016040523d82523d6000602084013e6122f4565b606091505b506000815103612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233090613dea565b60405180910390fd5b805181602001fd5b828015612392575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806123a090613f94565b91505061222a565b506123b3565b600190505b95945050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061241a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816124105761240f613e0a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612457576d04ee2d6d415b85acef8100000000838161244d5761244c613e0a565b5b0492506020810190505b662386f26fc10000831061248657662386f26fc10000838161247c5761247b613e0a565b5b0492506010810190505b6305f5e10083106124af576305f5e10083816124a5576124a4613e0a565b5b0492506008810190505b61271083106124d45761271083816124ca576124c9613e0a565b5b0492506004810190505b606483106124f757606483816124ed576124ec613e0a565b5b0492506002810190505b600a8310612506576001810190505b80915050919050565b6000612519611e3c565b90506000821161255e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125559061404e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c4906140e0565b60405180910390fd5b6125da6000848385611eaf565b81600460008282546125ec9190613c46565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061265981600061152e90919063ffffffff16565b6126666000848385611f10565b60008190505b82826126789190613c46565b8110156126ee57808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806126e690613f94565b91505061266c565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c9050600081111561274d5761273b816127ed565b60ff168203600884901b1793506127e4565b5b6001156127e35760008311612798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278f90614172565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156127de576127cb816127ed565b60ff0360ff16600884901b1793506127e3565b61274e565b5b50505092915050565b60006040518061012001604052806101008152602001614193610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff6128368561285f565b02901c8151811061284a57612849613828565b5b602001015160f81c60f81b60f81c9050919050565b600080821161286d57600080fd5b8160000382169050919050565b6040518060800160405280600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612913816128de565b811461291e57600080fd5b50565b6000813590506129308161290a565b92915050565b60006020828403121561294c5761294b6128d4565b5b600061295a84828501612921565b91505092915050565b60008115159050919050565b61297881612963565b82525050565b6000602082019050612993600083018461296f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156129d35780820151818401526020810190506129b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006129fb82612999565b612a0581856129a4565b9350612a158185602086016129b5565b612a1e816129df565b840191505092915050565b60006020820190508181036000830152612a4381846129f0565b905092915050565b6000819050919050565b612a5e81612a4b565b8114612a6957600080fd5b50565b600081359050612a7b81612a55565b92915050565b600060208284031215612a9757612a966128d4565b5b6000612aa584828501612a6c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612ad982612aae565b9050919050565b612ae981612ace565b82525050565b6000602082019050612b046000830184612ae0565b92915050565b612b1381612ace565b8114612b1e57600080fd5b50565b600081359050612b3081612b0a565b92915050565b60008060408385031215612b4d57612b4c6128d4565b5b6000612b5b85828601612b21565b9250506020612b6c85828601612a6c565b9150509250929050565b612b7f81612a4b565b82525050565b6000602082019050612b9a6000830184612b76565b92915050565b600080600060608486031215612bb957612bb86128d4565b5b6000612bc786828701612b21565b9350506020612bd886828701612b21565b9250506040612be986828701612a6c565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c35826129df565b810181811067ffffffffffffffff82111715612c5457612c53612bfd565b5b80604052505050565b6000612c676128ca565b9050612c738282612c2c565b919050565b600067ffffffffffffffff821115612c9357612c92612bfd565b5b612c9c826129df565b9050602081019050919050565b82818337600083830152505050565b6000612ccb612cc684612c78565b612c5d565b905082815260208101848484011115612ce757612ce6612bf8565b5b612cf2848285612ca9565b509392505050565b600082601f830112612d0f57612d0e612bf3565b5b8135612d1f848260208601612cb8565b91505092915050565b612d3181612963565b8114612d3c57600080fd5b50565b600081359050612d4e81612d28565b92915050565b60008060408385031215612d6b57612d6a6128d4565b5b600083013567ffffffffffffffff811115612d8957612d886128d9565b5b612d9585828601612cfa565b9250506020612da685828601612d3f565b9150509250929050565b600067ffffffffffffffff82169050919050565b612dcd81612db0565b82525050565b6000602082019050612de86000830184612dc4565b92915050565b600060208284031215612e0457612e036128d4565b5b6000612e1284828501612b21565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612e5081612a4b565b82525050565b6000612e628383612e47565b60208301905092915050565b6000602082019050919050565b6000612e8682612e1b565b612e908185612e26565b9350612e9b83612e37565b8060005b83811015612ecc578151612eb38882612e56565b9750612ebe83612e6e565b925050600181019050612e9f565b5085935050505092915050565b60006020820190508181036000830152612ef38184612e7b565b905092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612f2081612efb565b82525050565b6000602082019050612f3b6000830184612f17565b92915050565b60008060408385031215612f5857612f576128d4565b5b6000612f6685828601612b21565b9250506020612f7785828601612d3f565b9150509250929050565b600067ffffffffffffffff821115612f9c57612f9b612bfd565b5b612fa5826129df565b9050602081019050919050565b6000612fc5612fc084612f81565b612c5d565b905082815260208101848484011115612fe157612fe0612bf8565b5b612fec848285612ca9565b509392505050565b600082601f83011261300957613008612bf3565b5b8135613019848260208601612fb2565b91505092915050565b6000806000806080858703121561303c5761303b6128d4565b5b600061304a87828801612b21565b945050602061305b87828801612b21565b935050604061306c87828801612a6c565b925050606085013567ffffffffffffffff81111561308d5761308c6128d9565b5b61309987828801612ff4565b91505092959194509250565b600080604083850312156130bc576130bb6128d4565b5b60006130ca85828601612b21565b92505060206130db85828601612b21565b9150509250929050565b6130ee81612db0565b82525050565b60808201600082015161310a60008501826130e5565b50602082015161311d60208501826130e5565b50604082015161313060408501826130e5565b50606082015161314360608501826130e5565b50505050565b600060808201905061315e60008301846130f4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131ab57607f821691505b6020821081036131be576131bd613164565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613220602f836129a4565b915061322b826131c4565b604082019050919050565b6000602082019050818103600083015261324f81613213565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006132b26024836129a4565b91506132bd82613256565b604082019050919050565b600060208201905081810360008301526132e1816132a5565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613344603b836129a4565b915061334f826132e8565b604082019050919050565b6000602082019050818103600083015261337381613337565b9050919050565b6000819050919050565b600061339f61339a61339584612efb565b61337a565b612a4b565b9050919050565b6133af81613384565b82525050565b60006040820190506133ca60008301856133a6565b6133d76020830184612b76565b9392505050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061343a6034836129a4565b9150613445826133de565b604082019050919050565b600060208201905081810360008301526134698161342d565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134d27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613495565b6134dc8683613495565b95508019841693508086168417925050509392505050565b600061350f61350a61350584612a4b565b61337a565b612a4b565b9050919050565b6000819050919050565b613529836134f4565b61353d61353582613516565b8484546134a2565b825550505050565b600090565b613552613545565b61355d818484613520565b505050565b5b818110156135815761357660008261354a565b600181019050613563565b5050565b601f8211156135c65761359781613470565b6135a084613485565b810160208510156135af578190505b6135c36135bb85613485565b830182613562565b50505b505050565b600082821c905092915050565b60006135e9600019846008026135cb565b1980831691505092915050565b600061360283836135d8565b9150826002028217905092915050565b61361b82612999565b67ffffffffffffffff81111561363457613633612bfd565b5b61363e8254613193565b613649828285613585565b600060209050601f83116001811461367c576000841561366a578287015190505b61367485826135f6565b8655506136dc565b601f19841661368a86613470565b60005b828110156136b25784890151825560018201915060208501945060208101905061368d565b868310156136cf57848901516136cb601f8916826135d8565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b60006136ff6000836136e4565b915061370a826136ef565b600082019050919050565b6000613720826136f2565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006137606010836129a4565b915061376b8261372a565b602082019050919050565b6000602082019050818103600083015261378f81613753565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b60006137f2602d836129a4565b91506137fd82613796565b604082019050919050565b60006020820190508181036000830152613821816137e5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060408201905061386c6000830185612ae0565b6138796020830184612b76565b9392505050565b60008151905061388f81612d28565b92915050565b6000602082840312156138ab576138aa6128d4565b5b60006138b984828501613880565b91505092915050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b60006138f8601c836129a4565b9150613903826138c2565b602082019050919050565b60006020820190508181036000830152613927816138eb565b9050919050565b600081905092915050565b600061394482612999565b61394e818561392e565b935061395e8185602086016129b5565b80840191505092915050565b60006139768286613939565b91506139828285613939565b915061398e8284613939565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006139f76026836129a4565b9150613a028261399b565b604082019050919050565b60006020820190508181036000830152613a26816139ea565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a6782612a4b565b9150613a7283612a4b565b9250828203905081811115613a8a57613a89613a2d565b5b92915050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613aec602f836129a4565b9150613af782613a90565b604082019050919050565b60006020820190508181036000830152613b1b81613adf565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000613b7e602c836129a4565b9150613b8982613b22565b604082019050919050565b60006020820190508181036000830152613bad81613b71565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000613c106027836129a4565b9150613c1b82613bb4565b604082019050919050565b60006020820190508181036000830152613c3f81613c03565b9050919050565b6000613c5182612a4b565b9150613c5c83612a4b565b9250828201905080821115613c7457613c73613a2d565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613cb06020836129a4565b9150613cbb82613c7a565b602082019050919050565b60006020820190508181036000830152613cdf81613ca3565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613d42602c836129a4565b9150613d4d82613ce6565b604082019050919050565b60006020820190508181036000830152613d7181613d35565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000613dd46035836129a4565b9150613ddf82613d78565b604082019050919050565b60006020820190508181036000830152613e0381613dc7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e4482612db0565b9150613e4f83612db0565b9250828203905067ffffffffffffffff811115613e6f57613e6e613a2d565b5b92915050565b6000613e8082612db0565b9150613e8b83612db0565b9250828201905067ffffffffffffffff811115613eab57613eaa613a2d565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000613ed882613eb1565b613ee28185613ebc565b9350613ef28185602086016129b5565b613efb816129df565b840191505092915050565b6000608082019050613f1b6000830187612ae0565b613f286020830186612ae0565b613f356040830185612b76565b8181036060830152613f478184613ecd565b905095945050505050565b600081519050613f618161290a565b92915050565b600060208284031215613f7d57613f7c6128d4565b5b6000613f8b84828501613f52565b91505092915050565b6000613f9f82612a4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613fd157613fd0613a2d565b5b600182019050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006140386025836129a4565b915061404382613fdc565b604082019050919050565b600060208201905081810360008301526140678161402b565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006140ca6023836129a4565b91506140d58261406e565b604082019050919050565b600060208201905081810360008301526140f9816140bd565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b600061415c6034836129a4565b915061416782614100565b604082019050919050565b6000602082019050818103600083015261418b8161414f565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220dc8545b0d23133399d2a93ab36d7d490ee4ff263690363cb5ecc18cc4561089a64736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.