ERC-721
Overview
Max Total Supply
0 sthing
Holders
39
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Something
Compiler Version
v0.8.20+commit.a1b79de6
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.20; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Something is ERC721, Ownable, ReentrancyGuard { IERC20 public immutable nothingToken; uint256 public constant PRICE_PER_PIXEL = 1e8 * 1e18; uint16 public constant GRID_SIZE = 100; string private _baseTokenURI; mapping(uint256 => string) private _tokenData; mapping(uint256 => bool) private _gridOccupied; event TokenDataUpdated(uint256 indexed tokenId, address tokenOwner, string tokenData); struct TokenDetails { address tokenOwner; string data; } constructor(address _nothingTokenAddress, string memory baseTokenURI) ERC721("something", "sthing") Ownable(msg.sender) { nothingToken = IERC20(_nothingTokenAddress); _baseTokenURI = baseTokenURI; } function mint(uint16 x, uint16 y, string calldata data) external nonReentrant { uint256 tokenId = _calculateTokenId(x, y); require(!_gridOccupied[tokenId], "Position already minted"); require(nothingToken.allowance(msg.sender, address(this)) >= PRICE_PER_PIXEL, "Insufficient token allowance. Please approve tokens before minting."); _gridOccupied[tokenId] = true; _tokenData[tokenId] = data; _mint(msg.sender, tokenId); require(nothingToken.transferFrom(msg.sender, address(this), PRICE_PER_PIXEL),"Payment failed"); } function batchMint(uint16[] calldata x, uint16[] calldata y, string[] calldata data) external nonReentrant { require(x.length == y.length && x.length == data.length, "Mismatched input lengths"); require(nothingToken.allowance(msg.sender, address(this)) >= (PRICE_PER_PIXEL * x.length), "Insufficient token allowance. Please approve tokens before minting."); uint256 totalCost = 0; for (uint i = 0; i < x.length; i++) { uint256 tokenId = _calculateTokenId(x[i], y[i]); if (!_gridOccupied[tokenId]) { _gridOccupied[tokenId] = true; _mint(msg.sender, tokenId); _tokenData[tokenId] = data[i]; totalCost += PRICE_PER_PIXEL; } } require(totalCost > 0, "All NFTs were already minted by someone else."); require(nothingToken.transferFrom(msg.sender, address(this), totalCost), "Payment failed"); } function burn(uint256 tokenId) external nonReentrant { require(ownerOf(tokenId) == msg.sender, "Caller is not owner"); _burn(tokenId); _gridOccupied[tokenId] = false; delete _tokenData[tokenId]; require(nothingToken.transfer(msg.sender, PRICE_PER_PIXEL), "Refund failed"); } function updateData(uint256 tokenId, string calldata newData) external { require(ownerOf(tokenId) == msg.sender, "Caller is not owner"); _tokenData[tokenId] = newData; emit TokenDataUpdated(tokenId, ownerOf(tokenId), newData); } function getTokenData(uint256 tokenId) public view returns (string memory) { require(ownerOf(tokenId) != address(0), "Token non existing"); return _tokenData[tokenId]; } function getBatchTokenData(uint256 startTokenId, uint256 endTokenId) public view returns (TokenDetails[] memory) { require(startTokenId <= endTokenId, "Invalid token ID range"); require(endTokenId <= GRID_SIZE * GRID_SIZE, "Token ID exceeds limit"); uint256 count = endTokenId - startTokenId + 1; TokenDetails[] memory batchDetails = new TokenDetails[](count); for (uint256 i = 0; i < count; i++) { uint256 tokenId = startTokenId + i; if (_gridOccupied[tokenId]) { address tokenOwner = ownerOf(tokenId); string memory data = _tokenData[tokenId]; batchDetails[i] = TokenDetails(tokenOwner, data); } } return batchDetails; } function setBaseTokenURI(string memory baseTokenURI) external onlyOwner { _baseTokenURI = baseTokenURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(ownerOf(tokenId) != address(0), "Token non existing"); return _baseTokenURI; } function _calculateTokenId(uint16 x, uint16 y) private pure returns (uint256) { require(x > 0 && x <= GRID_SIZE && y > 0 && y <= GRID_SIZE, "Invalid coordinates"); return uint256(y - 1) * GRID_SIZE + x; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; import {IERC721} from "./IERC721.sol"; import {IERC721Receiver} from "./IERC721Receiver.sol"; import {IERC721Metadata} from "./extensions/IERC721Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {Strings} from "../../utils/Strings.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @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) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../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 v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../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 address zero. * * 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 v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_nothingTokenAddress","type":"address"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenOwner","type":"address"},{"indexed":false,"internalType":"string","name":"tokenData","type":"string"}],"name":"TokenDataUpdated","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":"GRID_SIZE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_PIXEL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint16[]","name":"x","type":"uint16[]"},{"internalType":"uint16[]","name":"y","type":"uint16[]"},{"internalType":"string[]","name":"data","type":"string[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"endTokenId","type":"uint256"}],"name":"getBatchTokenData","outputs":[{"components":[{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"string","name":"data","type":"string"}],"internalType":"struct Something.TokenDetails[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"x","type":"uint16"},{"internalType":"uint16","name":"y","type":"uint16"},{"internalType":"string","name":"data","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nothingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newData","type":"string"}],"name":"updateData","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801562000010575f80fd5b50604051620047993803806200479983398181016040528101906200003691906200044c565b336040518060400160405280600981526020017f736f6d657468696e6700000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f737468696e670000000000000000000000000000000000000000000000000000815250815f9081620000b39190620006e7565b508060019081620000c59190620006e7565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200013b575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001329190620007dc565b60405180910390fd5b6200014c81620001a360201b60201c565b5060016007819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505080600890816200019a9190620006e7565b505050620007f7565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620002a28262000277565b9050919050565b620002b48162000296565b8114620002bf575f80fd5b50565b5f81519050620002d281620002a9565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200032882620002e0565b810181811067ffffffffffffffff821117156200034a5762000349620002f0565b5b80604052505050565b5f6200035e62000266565b90506200036c82826200031d565b919050565b5f67ffffffffffffffff8211156200038e576200038d620002f0565b5b6200039982620002e0565b9050602081019050919050565b5f5b83811015620003c5578082015181840152602081019050620003a8565b5f8484015250505050565b5f620003e6620003e08462000371565b62000353565b905082815260208101848484011115620004055762000404620002dc565b5b62000412848285620003a6565b509392505050565b5f82601f830112620004315762000430620002d8565b5b815162000443848260208601620003d0565b91505092915050565b5f80604083850312156200046557620004646200026f565b5b5f6200047485828601620002c2565b925050602083015167ffffffffffffffff81111562000498576200049762000273565b5b620004a6858286016200041a565b9150509250929050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620004ff57607f821691505b602082108103620005155762000514620004ba565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005797fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200053c565b6200058586836200053c565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620005cf620005c9620005c3846200059d565b620005a6565b6200059d565b9050919050565b5f819050919050565b620005ea83620005af565b62000602620005f982620005d6565b84845462000548565b825550505050565b5f90565b620006186200060a565b62000625818484620005df565b505050565b5b818110156200064c57620006405f826200060e565b6001810190506200062b565b5050565b601f8211156200069b5762000665816200051b565b62000670846200052d565b8101602085101562000680578190505b620006986200068f856200052d565b8301826200062a565b50505b505050565b5f82821c905092915050565b5f620006bd5f1984600802620006a0565b1980831691505092915050565b5f620006d78383620006ac565b9150826002028217905092915050565b620006f282620004b0565b67ffffffffffffffff8111156200070e576200070d620002f0565b5b6200071a8254620004e7565b6200072782828562000650565b5f60209050601f8311600181146200075d575f841562000748578287015190505b620007548582620006ca565b865550620007c3565b601f1984166200076d866200051b565b5f5b8281101562000796578489015182556001820191506020850194506020810190506200076f565b86831015620007b65784890151620007b2601f891682620006ac565b8355505b6001600288020188555050505b505050505050565b620007d68162000296565b82525050565b5f602082019050620007f15f830184620007cb565b92915050565b608051613f66620008335f395f81816107200152818161096e01528181610b5a01528181610c830152818161108e01526111bd0152613f665ff3fe608060405234801561000f575f80fd5b506004361061018c575f3560e01c8063715018a6116100dc578063ac773bca11610095578063bc6d998b1161006f578063bc6d998b14610456578063c87b56dd14610486578063e985e9c5146104b6578063f2fde38b146104e65761018c565b8063ac773bca146103ee578063b09afec11461040a578063b88d4fde1461043a5761018c565b8063715018a6146103525780637fc4eda81461035c57806389a8e2a71461037a5780638da5cb5b1461039657806395d89b41146103b4578063a22cb465146103d25761018c565b80632b25a7e41161014957806342966c681161012357806342966c68146102b85780634afab31c146102d45780636352211e146102f257806370a08231146103225761018c565b80632b25a7e41461026257806330176e131461028057806342842e0e1461029c5761018c565b806301ffc9a71461019057806306fdde03146101c0578063081812fc146101de578063095ea7b31461020e5780631dce66021461022a57806323b872dd14610246575b5f80fd5b6101aa60048036038101906101a591906126ee565b610502565b6040516101b79190612733565b60405180910390f35b6101c86105e3565b6040516101d591906127d6565b60405180910390f35b6101f860048036038101906101f39190612829565b610672565b6040516102059190612893565b60405180910390f35b610228600480360381019061022391906128d6565b61068d565b005b610244600480360381019061023f91906129ca565b6106a3565b005b610260600480360381019061025b9190612a7a565b610a59565b005b61026a610b58565b6040516102779190612b25565b60405180910390f35b61029a60048036038101906102959190612c66565b610b7c565b005b6102b660048036038101906102b19190612a7a565b610b97565b005b6102d260048036038101906102cd9190612829565b610bb6565b005b6102dc610d71565b6040516102e99190612cbc565b60405180910390f35b61030c60048036038101906103079190612829565b610d80565b6040516103199190612893565b60405180910390f35b61033c60048036038101906103379190612cd5565b610d91565b6040516103499190612cbc565b60405180910390f35b61035a610e47565b005b610364610e5a565b6040516103719190612d1c565b60405180910390f35b610394600480360381019061038f9190612d8a565b610e5f565b005b61039e610f3f565b6040516103ab9190612893565b60405180910390f35b6103bc610f67565b6040516103c991906127d6565b60405180910390f35b6103ec60048036038101906103e79190612e11565b610ff7565b005b61040860048036038101906104039190612e79565b61100d565b005b610424600480360381019061041f9190612829565b6112b1565b60405161043191906127d6565b60405180910390f35b610454600480360381019061044f9190612f88565b6113c8565b005b610470600480360381019061046b9190613008565b6113e5565b60405161047d9190613192565b60405180910390f35b6104a0600480360381019061049b9190612829565b61163e565b6040516104ad91906127d6565b60405180910390f35b6104d060048036038101906104cb91906131b2565b611746565b6040516104dd9190612733565b60405180910390f35b61050060048036038101906104fb9190612cd5565b6117d4565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105cc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105dc57506105db82611858565b5b9050919050565b60605f80546105f19061321d565b80601f016020809104026020016040519081016040528092919081815260200182805461061d9061321d565b80156106685780601f1061063f57610100808354040283529160200191610668565b820191905f5260205f20905b81548152906001019060200180831161064b57829003601f168201915b5050505050905090565b5f61067c826118c1565b5061068682611947565b9050919050565b61069f828261069a611980565b611987565b5050565b6106ab611999565b83839050868690501480156106c557508181905086869050145b610704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fb90613297565b60405180910390fd5b858590506a52b7d2dcc80cd2e400000061071e91906132e2565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b8152600401610779929190613323565b602060405180830381865afa158015610794573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107b8919061335e565b10156107f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f09061341f565b60405180910390fd5b5f805b87879050811015610929575f61086089898481811061081e5761081d61343d565b5b9050602002016020810190610833919061346a565b8888858181106108465761084561343d565b5b905060200201602081019061085b919061346a565b6119df565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff16610915576001600a5f8381526020019081526020015f205f6101000a81548160ff0219169083151502179055506108b73382611a97565b8484838181106108ca576108c961343d565b5b90506020028101906108dc91906134a1565b60095f8481526020019081526020015f2091826108fa9291906136a1565b506a52b7d2dcc80cd2e400000083610912919061376e565b92505b508080610921906137a1565b9150506107fc565b505f811161096c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096390613858565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016109c993929190613876565b6020604051808303815f875af11580156109e5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a0991906138bf565b610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f90613934565b60405180910390fd5b50610a51611b8a565b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ac9575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac09190612893565b60405180910390fd5b5f610adc8383610ad7611980565b611b94565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b52578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b4993929190613952565b60405180910390fd5b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b84611d9f565b8060089081610b939190613987565b5050565b610bb183838360405180602001604052805f8152506113c8565b505050565b610bbe611999565b3373ffffffffffffffffffffffffffffffffffffffff16610bde82610d80565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90613aa0565b60405180910390fd5b610c3d81611e26565b5f600a5f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555060095f8281526020019081526020015f205f610c819190612601565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb336a52b7d2dcc80cd2e40000006040518363ffffffff1660e01b8152600401610ce7929190613abe565b6020604051808303815f875af1158015610d03573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2791906138bf565b610d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5d90613b2f565b60405180910390fd5b610d6e611b8a565b50565b6a52b7d2dcc80cd2e400000081565b5f610d8a826118c1565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e02575f6040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610df99190612893565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e4f611d9f565b610e585f611ea8565b565b606481565b3373ffffffffffffffffffffffffffffffffffffffff16610e7f84610d80565b73ffffffffffffffffffffffffffffffffffffffff1614610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90613aa0565b60405180910390fd5b818160095f8681526020019081526020015f209182610ef59291906136a1565b50827f54190102b3f7c7011df3550c5dcab80e34dbab34a4505462b2df606a0c9a5f2c610f2185610d80565b8484604051610f3293929190613b79565b60405180910390a2505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610f769061321d565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa29061321d565b8015610fed5780601f10610fc457610100808354040283529160200191610fed565b820191905f5260205f20905b815481529060010190602001808311610fd057829003601f168201915b5050505050905090565b611009611002611980565b8383611f6b565b5050565b611015611999565b5f61102085856119df565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff1615611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107790613bf3565b60405180910390fd5b6a52b7d2dcc80cd2e40000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b81526004016110e7929190613323565b602060405180830381865afa158015611102573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611126919061335e565b1015611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e9061341f565b60405180910390fd5b6001600a5f8381526020019081526020015f205f6101000a81548160ff021916908315150217905550828260095f8481526020019081526020015f2091826111b09291906136a1565b506111bb3382611a97565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd33306a52b7d2dcc80cd2e40000006040518463ffffffff1660e01b815260040161122393929190613876565b6020604051808303815f875af115801561123f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126391906138bf565b6112a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129990613934565b60405180910390fd5b506112ab611b8a565b50505050565b60605f73ffffffffffffffffffffffffffffffffffffffff166112d383610d80565b73ffffffffffffffffffffffffffffffffffffffff1603611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090613c5b565b60405180910390fd5b60095f8381526020019081526020015f2080546113459061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546113719061321d565b80156113bc5780601f10611393576101008083540402835291602001916113bc565b820191905f5260205f20905b81548152906001019060200180831161139f57829003601f168201915b50505050509050919050565b6113d3848484610a59565b6113df848484846120d4565b50505050565b60608183111561142a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142190613cc3565b60405180910390fd5b6064806114379190613ce1565b61ffff1682111561147d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147490613d67565b60405180910390fd5b5f6001848461148c9190613d85565b611496919061376e565b90505f8167ffffffffffffffff8111156114b3576114b2612b42565b5b6040519080825280602002602001820160405280156114ec57816020015b6114d961263e565b8152602001906001900390816114d15790505b5090505f5b82811015611632575f8187611506919061376e565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff161561161e575f61153582610d80565b90505f60095f8481526020019081526020015f2080546115549061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546115809061321d565b80156115cb5780601f106115a2576101008083540402835291602001916115cb565b820191905f5260205f20905b8154815290600101906020018083116115ae57829003601f168201915b5050505050905060405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001828152508585815181106116105761160f61343d565b5b602002602001018190525050505b50808061162a906137a1565b9150506114f1565b50809250505092915050565b60605f73ffffffffffffffffffffffffffffffffffffffff1661166083610d80565b73ffffffffffffffffffffffffffffffffffffffff16036116b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ad90613c5b565b60405180910390fd5b600880546116c39061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546116ef9061321d565b801561173a5780601f106117115761010080835404028352916020019161173a565b820191905f5260205f20905b81548152906001019060200180831161171d57829003601f168201915b50505050509050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6117dc611d9f565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361184c575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118439190612893565b60405180910390fd5b61185581611ea8565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f806118cc83612286565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361193e57826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016119359190612cbc565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61199483838360016122bf565b505050565b6002600754036119d5576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600781905550565b5f808361ffff161180156119fc5750606461ffff168361ffff1611155b8015611a0b57505f8261ffff16115b8015611a205750606461ffff168261ffff1611155b611a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5690613e02565b60405180910390fd5b8261ffff16606461ffff16600184611a779190613e20565b61ffff16611a8591906132e2565b611a8f919061376e565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b07575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611afe9190612893565b60405180910390fd5b5f611b1383835f611b94565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b85575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401611b7c9190612893565b60405180910390fd5b505050565b6001600781905550565b5f80611b9f84612286565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611be057611bdf81848661247e565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c6b57611c1f5f855f806122bf565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611cea57600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b611da7611980565b73ffffffffffffffffffffffffffffffffffffffff16611dc5610f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611e2457611de8611980565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611e1b9190612893565b60405180910390fd5b565b5f611e325f835f611b94565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ea457816040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611e9b9190612cbc565b60405180910390fd5b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fdb57816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611fd29190612893565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120c79190612733565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612280578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02612117611980565b8685856040518563ffffffff1660e01b81526004016121399493929190613ea7565b6020604051808303815f875af192505050801561217457506040513d601f19601f820116820180604052508101906121719190613f05565b60015b6121f5573d805f81146121a2576040519150601f19603f3d011682016040523d82523d5f602084013e6121a7565b606091505b505f8151036121ed57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016121e49190612893565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461227e57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016122759190612893565b60405180910390fd5b505b50505050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806122f757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612429575f612306846118c1565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561237057508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561238357506123818184611746565b155b156123c557826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016123bc9190612893565b60405180910390fd5b811561242757838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612489838383612541565b61253c575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124fd57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016124f49190612cbc565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612533929190613abe565b60405180910390fd5b505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156125f857508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125b957506125b88484611746565b5b806125f757508273ffffffffffffffffffffffffffffffffffffffff166125df83611947565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b50805461260d9061321d565b5f825580601f1061261e575061263b565b601f0160209004905f5260205f209081019061263a919061266d565b5b50565b60405180604001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b5b80821115612684575f815f90555060010161266e565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126cd81612699565b81146126d7575f80fd5b50565b5f813590506126e8816126c4565b92915050565b5f6020828403121561270357612702612691565b5b5f612710848285016126da565b91505092915050565b5f8115159050919050565b61272d81612719565b82525050565b5f6020820190506127465f830184612724565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612783578082015181840152602081019050612768565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6127a88261274c565b6127b28185612756565b93506127c2818560208601612766565b6127cb8161278e565b840191505092915050565b5f6020820190508181035f8301526127ee818461279e565b905092915050565b5f819050919050565b612808816127f6565b8114612812575f80fd5b50565b5f81359050612823816127ff565b92915050565b5f6020828403121561283e5761283d612691565b5b5f61284b84828501612815565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61287d82612854565b9050919050565b61288d81612873565b82525050565b5f6020820190506128a65f830184612884565b92915050565b6128b581612873565b81146128bf575f80fd5b50565b5f813590506128d0816128ac565b92915050565b5f80604083850312156128ec576128eb612691565b5b5f6128f9858286016128c2565b925050602061290a85828601612815565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261293557612934612914565b5b8235905067ffffffffffffffff81111561295257612951612918565b5b60208301915083602082028301111561296e5761296d61291c565b5b9250929050565b5f8083601f84011261298a57612989612914565b5b8235905067ffffffffffffffff8111156129a7576129a6612918565b5b6020830191508360208202830111156129c3576129c261291c565b5b9250929050565b5f805f805f80606087890312156129e4576129e3612691565b5b5f87013567ffffffffffffffff811115612a0157612a00612695565b5b612a0d89828a01612920565b9650965050602087013567ffffffffffffffff811115612a3057612a2f612695565b5b612a3c89828a01612920565b9450945050604087013567ffffffffffffffff811115612a5f57612a5e612695565b5b612a6b89828a01612975565b92509250509295509295509295565b5f805f60608486031215612a9157612a90612691565b5b5f612a9e868287016128c2565b9350506020612aaf868287016128c2565b9250506040612ac086828701612815565b9150509250925092565b5f819050919050565b5f612aed612ae8612ae384612854565b612aca565b612854565b9050919050565b5f612afe82612ad3565b9050919050565b5f612b0f82612af4565b9050919050565b612b1f81612b05565b82525050565b5f602082019050612b385f830184612b16565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612b788261278e565b810181811067ffffffffffffffff82111715612b9757612b96612b42565b5b80604052505050565b5f612ba9612688565b9050612bb58282612b6f565b919050565b5f67ffffffffffffffff821115612bd457612bd3612b42565b5b612bdd8261278e565b9050602081019050919050565b828183375f83830152505050565b5f612c0a612c0584612bba565b612ba0565b905082815260208101848484011115612c2657612c25612b3e565b5b612c31848285612bea565b509392505050565b5f82601f830112612c4d57612c4c612914565b5b8135612c5d848260208601612bf8565b91505092915050565b5f60208284031215612c7b57612c7a612691565b5b5f82013567ffffffffffffffff811115612c9857612c97612695565b5b612ca484828501612c39565b91505092915050565b612cb6816127f6565b82525050565b5f602082019050612ccf5f830184612cad565b92915050565b5f60208284031215612cea57612ce9612691565b5b5f612cf7848285016128c2565b91505092915050565b5f61ffff82169050919050565b612d1681612d00565b82525050565b5f602082019050612d2f5f830184612d0d565b92915050565b5f8083601f840112612d4a57612d49612914565b5b8235905067ffffffffffffffff811115612d6757612d66612918565b5b602083019150836001820283011115612d8357612d8261291c565b5b9250929050565b5f805f60408486031215612da157612da0612691565b5b5f612dae86828701612815565b935050602084013567ffffffffffffffff811115612dcf57612dce612695565b5b612ddb86828701612d35565b92509250509250925092565b612df081612719565b8114612dfa575f80fd5b50565b5f81359050612e0b81612de7565b92915050565b5f8060408385031215612e2757612e26612691565b5b5f612e34858286016128c2565b9250506020612e4585828601612dfd565b9150509250929050565b612e5881612d00565b8114612e62575f80fd5b50565b5f81359050612e7381612e4f565b92915050565b5f805f8060608587031215612e9157612e90612691565b5b5f612e9e87828801612e65565b9450506020612eaf87828801612e65565b935050604085013567ffffffffffffffff811115612ed057612ecf612695565b5b612edc87828801612d35565b925092505092959194509250565b5f67ffffffffffffffff821115612f0457612f03612b42565b5b612f0d8261278e565b9050602081019050919050565b5f612f2c612f2784612eea565b612ba0565b905082815260208101848484011115612f4857612f47612b3e565b5b612f53848285612bea565b509392505050565b5f82601f830112612f6f57612f6e612914565b5b8135612f7f848260208601612f1a565b91505092915050565b5f805f8060808587031215612fa057612f9f612691565b5b5f612fad878288016128c2565b9450506020612fbe878288016128c2565b9350506040612fcf87828801612815565b925050606085013567ffffffffffffffff811115612ff057612fef612695565b5b612ffc87828801612f5b565b91505092959194509250565b5f806040838503121561301e5761301d612691565b5b5f61302b85828601612815565b925050602061303c85828601612815565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61307881612873565b82525050565b5f82825260208201905092915050565b5f6130988261274c565b6130a2818561307e565b93506130b2818560208601612766565b6130bb8161278e565b840191505092915050565b5f604083015f8301516130db5f86018261306f565b50602083015184820360208601526130f3828261308e565b9150508091505092915050565b5f61310b83836130c6565b905092915050565b5f602082019050919050565b5f61312982613046565b6131338185613050565b93508360208202850161314585613060565b805f5b8581101561318057848403895281516131618582613100565b945061316c83613113565b925060208a01995050600181019050613148565b50829750879550505050505092915050565b5f6020820190508181035f8301526131aa818461311f565b905092915050565b5f80604083850312156131c8576131c7612691565b5b5f6131d5858286016128c2565b92505060206131e6858286016128c2565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061323457607f821691505b602082108103613247576132466131f0565b5b50919050565b7f4d69736d61746368656420696e707574206c656e6774687300000000000000005f82015250565b5f613281601883612756565b915061328c8261324d565b602082019050919050565b5f6020820190508181035f8301526132ae81613275565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6132ec826127f6565b91506132f7836127f6565b9250828202613305816127f6565b9150828204841483151761331c5761331b6132b5565b5b5092915050565b5f6040820190506133365f830185612884565b6133436020830184612884565b9392505050565b5f81519050613358816127ff565b92915050565b5f6020828403121561337357613372612691565b5b5f6133808482850161334a565b91505092915050565b7f496e73756666696369656e7420746f6b656e20616c6c6f77616e63652e20506c5f8201527f6561736520617070726f766520746f6b656e73206265666f7265206d696e746960208201527f6e672e0000000000000000000000000000000000000000000000000000000000604082015250565b5f613409604383612756565b915061341482613389565b606082019050919050565b5f6020820190508181035f830152613436816133fd565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561347f5761347e612691565b5b5f61348c84828501612e65565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f80833560016020038436030381126134bd576134bc613495565b5b80840192508235915067ffffffffffffffff8211156134df576134de613499565b5b6020830192506001820236038313156134fb576134fa61349d565b5b509250929050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026135697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261352e565b613573868361352e565b95508019841693508086168417925050509392505050565b5f6135a56135a061359b846127f6565b612aca565b6127f6565b9050919050565b5f819050919050565b6135be8361358b565b6135d26135ca826135ac565b84845461353a565b825550505050565b5f90565b6135e66135da565b6135f18184846135b5565b505050565b5b81811015613614576136095f826135de565b6001810190506135f7565b5050565b601f8211156136595761362a8161350d565b6136338461351f565b81016020851015613642578190505b61365661364e8561351f565b8301826135f6565b50505b505050565b5f82821c905092915050565b5f6136795f198460080261365e565b1980831691505092915050565b5f613691838361366a565b9150826002028217905092915050565b6136ab8383613503565b67ffffffffffffffff8111156136c4576136c3612b42565b5b6136ce825461321d565b6136d9828285613618565b5f601f831160018114613706575f84156136f4578287013590505b6136fe8582613686565b865550613765565b601f1984166137148661350d565b5f5b8281101561373b57848901358255600182019150602085019450602081019050613716565b868310156137585784890135613754601f89168261366a565b8355505b6001600288020188555050505b50505050505050565b5f613778826127f6565b9150613783836127f6565b925082820190508082111561379b5761379a6132b5565b5b92915050565b5f6137ab826127f6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137dd576137dc6132b5565b5b600182019050919050565b7f416c6c204e465473207765726520616c7265616479206d696e746564206279205f8201527f736f6d656f6e6520656c73652e00000000000000000000000000000000000000602082015250565b5f613842602d83612756565b915061384d826137e8565b604082019050919050565b5f6020820190508181035f83015261386f81613836565b9050919050565b5f6060820190506138895f830186612884565b6138966020830185612884565b6138a36040830184612cad565b949350505050565b5f815190506138b981612de7565b92915050565b5f602082840312156138d4576138d3612691565b5b5f6138e1848285016138ab565b91505092915050565b7f5061796d656e74206661696c65640000000000000000000000000000000000005f82015250565b5f61391e600e83612756565b9150613929826138ea565b602082019050919050565b5f6020820190508181035f83015261394b81613912565b9050919050565b5f6060820190506139655f830186612884565b6139726020830185612cad565b61397f6040830184612884565b949350505050565b6139908261274c565b67ffffffffffffffff8111156139a9576139a8612b42565b5b6139b3825461321d565b6139be828285613618565b5f60209050601f8311600181146139ef575f84156139dd578287015190505b6139e78582613686565b865550613a4e565b601f1984166139fd8661350d565b5f5b82811015613a24578489015182556001820191506020850194506020810190506139ff565b86831015613a415784890151613a3d601f89168261366a565b8355505b6001600288020188555050505b505050505050565b7f43616c6c6572206973206e6f74206f776e6572000000000000000000000000005f82015250565b5f613a8a601383612756565b9150613a9582613a56565b602082019050919050565b5f6020820190508181035f830152613ab781613a7e565b9050919050565b5f604082019050613ad15f830185612884565b613ade6020830184612cad565b9392505050565b7f526566756e64206661696c6564000000000000000000000000000000000000005f82015250565b5f613b19600d83612756565b9150613b2482613ae5565b602082019050919050565b5f6020820190508181035f830152613b4681613b0d565b9050919050565b5f613b588385612756565b9350613b65838584612bea565b613b6e8361278e565b840190509392505050565b5f604082019050613b8c5f830186612884565b8181036020830152613b9f818486613b4d565b9050949350505050565b7f506f736974696f6e20616c7265616479206d696e7465640000000000000000005f82015250565b5f613bdd601783612756565b9150613be882613ba9565b602082019050919050565b5f6020820190508181035f830152613c0a81613bd1565b9050919050565b7f546f6b656e206e6f6e206578697374696e6700000000000000000000000000005f82015250565b5f613c45601283612756565b9150613c5082613c11565b602082019050919050565b5f6020820190508181035f830152613c7281613c39565b9050919050565b7f496e76616c696420746f6b656e2049442072616e6765000000000000000000005f82015250565b5f613cad601683612756565b9150613cb882613c79565b602082019050919050565b5f6020820190508181035f830152613cda81613ca1565b9050919050565b5f613ceb82612d00565b9150613cf683612d00565b9250828202613d0481612d00565b9150808214613d1657613d156132b5565b5b5092915050565b7f546f6b656e2049442065786365656473206c696d6974000000000000000000005f82015250565b5f613d51601683612756565b9150613d5c82613d1d565b602082019050919050565b5f6020820190508181035f830152613d7e81613d45565b9050919050565b5f613d8f826127f6565b9150613d9a836127f6565b9250828203905081811115613db257613db16132b5565b5b92915050565b7f496e76616c696420636f6f7264696e61746573000000000000000000000000005f82015250565b5f613dec601383612756565b9150613df782613db8565b602082019050919050565b5f6020820190508181035f830152613e1981613de0565b9050919050565b5f613e2a82612d00565b9150613e3583612d00565b9250828203905061ffff811115613e4f57613e4e6132b5565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f613e7982613e55565b613e838185613e5f565b9350613e93818560208601612766565b613e9c8161278e565b840191505092915050565b5f608082019050613eba5f830187612884565b613ec76020830186612884565b613ed46040830185612cad565b8181036060830152613ee68184613e6f565b905095945050505050565b5f81519050613eff816126c4565b92915050565b5f60208284031215613f1a57613f19612691565b5b5f613f2784828501613ef1565b9150509291505056fea2646970667358221220624b00ac56859fa8994b9b54e88e29c18c5a72ab48250a5036c292368ae73acc64736f6c63430008140033000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f79656c6c6f772d6368616e67696e672d616e746c696f6e2d3934322e6d7970696e6174612e636c6f75642f697066732f516d5664766e54385a645a686d7741624879534c5034337a573663634c786e507a5a4563733334384c766e374b750000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061018c575f3560e01c8063715018a6116100dc578063ac773bca11610095578063bc6d998b1161006f578063bc6d998b14610456578063c87b56dd14610486578063e985e9c5146104b6578063f2fde38b146104e65761018c565b8063ac773bca146103ee578063b09afec11461040a578063b88d4fde1461043a5761018c565b8063715018a6146103525780637fc4eda81461035c57806389a8e2a71461037a5780638da5cb5b1461039657806395d89b41146103b4578063a22cb465146103d25761018c565b80632b25a7e41161014957806342966c681161012357806342966c68146102b85780634afab31c146102d45780636352211e146102f257806370a08231146103225761018c565b80632b25a7e41461026257806330176e131461028057806342842e0e1461029c5761018c565b806301ffc9a71461019057806306fdde03146101c0578063081812fc146101de578063095ea7b31461020e5780631dce66021461022a57806323b872dd14610246575b5f80fd5b6101aa60048036038101906101a591906126ee565b610502565b6040516101b79190612733565b60405180910390f35b6101c86105e3565b6040516101d591906127d6565b60405180910390f35b6101f860048036038101906101f39190612829565b610672565b6040516102059190612893565b60405180910390f35b610228600480360381019061022391906128d6565b61068d565b005b610244600480360381019061023f91906129ca565b6106a3565b005b610260600480360381019061025b9190612a7a565b610a59565b005b61026a610b58565b6040516102779190612b25565b60405180910390f35b61029a60048036038101906102959190612c66565b610b7c565b005b6102b660048036038101906102b19190612a7a565b610b97565b005b6102d260048036038101906102cd9190612829565b610bb6565b005b6102dc610d71565b6040516102e99190612cbc565b60405180910390f35b61030c60048036038101906103079190612829565b610d80565b6040516103199190612893565b60405180910390f35b61033c60048036038101906103379190612cd5565b610d91565b6040516103499190612cbc565b60405180910390f35b61035a610e47565b005b610364610e5a565b6040516103719190612d1c565b60405180910390f35b610394600480360381019061038f9190612d8a565b610e5f565b005b61039e610f3f565b6040516103ab9190612893565b60405180910390f35b6103bc610f67565b6040516103c991906127d6565b60405180910390f35b6103ec60048036038101906103e79190612e11565b610ff7565b005b61040860048036038101906104039190612e79565b61100d565b005b610424600480360381019061041f9190612829565b6112b1565b60405161043191906127d6565b60405180910390f35b610454600480360381019061044f9190612f88565b6113c8565b005b610470600480360381019061046b9190613008565b6113e5565b60405161047d9190613192565b60405180910390f35b6104a0600480360381019061049b9190612829565b61163e565b6040516104ad91906127d6565b60405180910390f35b6104d060048036038101906104cb91906131b2565b611746565b6040516104dd9190612733565b60405180910390f35b61050060048036038101906104fb9190612cd5565b6117d4565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105cc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105dc57506105db82611858565b5b9050919050565b60605f80546105f19061321d565b80601f016020809104026020016040519081016040528092919081815260200182805461061d9061321d565b80156106685780601f1061063f57610100808354040283529160200191610668565b820191905f5260205f20905b81548152906001019060200180831161064b57829003601f168201915b5050505050905090565b5f61067c826118c1565b5061068682611947565b9050919050565b61069f828261069a611980565b611987565b5050565b6106ab611999565b83839050868690501480156106c557508181905086869050145b610704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fb90613297565b60405180910390fd5b858590506a52b7d2dcc80cd2e400000061071e91906132e2565b7f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c873ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b8152600401610779929190613323565b602060405180830381865afa158015610794573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107b8919061335e565b10156107f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f09061341f565b60405180910390fd5b5f805b87879050811015610929575f61086089898481811061081e5761081d61343d565b5b9050602002016020810190610833919061346a565b8888858181106108465761084561343d565b5b905060200201602081019061085b919061346a565b6119df565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff16610915576001600a5f8381526020019081526020015f205f6101000a81548160ff0219169083151502179055506108b73382611a97565b8484838181106108ca576108c961343d565b5b90506020028101906108dc91906134a1565b60095f8481526020019081526020015f2091826108fa9291906136a1565b506a52b7d2dcc80cd2e400000083610912919061376e565b92505b508080610921906137a1565b9150506107fc565b505f811161096c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096390613858565b60405180910390fd5b7f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c873ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016109c993929190613876565b6020604051808303815f875af11580156109e5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a0991906138bf565b610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f90613934565b60405180910390fd5b50610a51611b8a565b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ac9575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac09190612893565b60405180910390fd5b5f610adc8383610ad7611980565b611b94565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b52578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b4993929190613952565b60405180910390fd5b50505050565b7f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c881565b610b84611d9f565b8060089081610b939190613987565b5050565b610bb183838360405180602001604052805f8152506113c8565b505050565b610bbe611999565b3373ffffffffffffffffffffffffffffffffffffffff16610bde82610d80565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90613aa0565b60405180910390fd5b610c3d81611e26565b5f600a5f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555060095f8281526020019081526020015f205f610c819190612601565b7f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c873ffffffffffffffffffffffffffffffffffffffff1663a9059cbb336a52b7d2dcc80cd2e40000006040518363ffffffff1660e01b8152600401610ce7929190613abe565b6020604051808303815f875af1158015610d03573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2791906138bf565b610d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5d90613b2f565b60405180910390fd5b610d6e611b8a565b50565b6a52b7d2dcc80cd2e400000081565b5f610d8a826118c1565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e02575f6040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610df99190612893565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e4f611d9f565b610e585f611ea8565b565b606481565b3373ffffffffffffffffffffffffffffffffffffffff16610e7f84610d80565b73ffffffffffffffffffffffffffffffffffffffff1614610ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecc90613aa0565b60405180910390fd5b818160095f8681526020019081526020015f209182610ef59291906136a1565b50827f54190102b3f7c7011df3550c5dcab80e34dbab34a4505462b2df606a0c9a5f2c610f2185610d80565b8484604051610f3293929190613b79565b60405180910390a2505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610f769061321d565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa29061321d565b8015610fed5780601f10610fc457610100808354040283529160200191610fed565b820191905f5260205f20905b815481529060010190602001808311610fd057829003601f168201915b5050505050905090565b611009611002611980565b8383611f6b565b5050565b611015611999565b5f61102085856119df565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff1615611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107790613bf3565b60405180910390fd5b6a52b7d2dcc80cd2e40000007f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c873ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b81526004016110e7929190613323565b602060405180830381865afa158015611102573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611126919061335e565b1015611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e9061341f565b60405180910390fd5b6001600a5f8381526020019081526020015f205f6101000a81548160ff021916908315150217905550828260095f8481526020019081526020015f2091826111b09291906136a1565b506111bb3382611a97565b7f000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c873ffffffffffffffffffffffffffffffffffffffff166323b872dd33306a52b7d2dcc80cd2e40000006040518463ffffffff1660e01b815260040161122393929190613876565b6020604051808303815f875af115801561123f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126391906138bf565b6112a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129990613934565b60405180910390fd5b506112ab611b8a565b50505050565b60605f73ffffffffffffffffffffffffffffffffffffffff166112d383610d80565b73ffffffffffffffffffffffffffffffffffffffff1603611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090613c5b565b60405180910390fd5b60095f8381526020019081526020015f2080546113459061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546113719061321d565b80156113bc5780601f10611393576101008083540402835291602001916113bc565b820191905f5260205f20905b81548152906001019060200180831161139f57829003601f168201915b50505050509050919050565b6113d3848484610a59565b6113df848484846120d4565b50505050565b60608183111561142a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142190613cc3565b60405180910390fd5b6064806114379190613ce1565b61ffff1682111561147d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147490613d67565b60405180910390fd5b5f6001848461148c9190613d85565b611496919061376e565b90505f8167ffffffffffffffff8111156114b3576114b2612b42565b5b6040519080825280602002602001820160405280156114ec57816020015b6114d961263e565b8152602001906001900390816114d15790505b5090505f5b82811015611632575f8187611506919061376e565b9050600a5f8281526020019081526020015f205f9054906101000a900460ff161561161e575f61153582610d80565b90505f60095f8481526020019081526020015f2080546115549061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546115809061321d565b80156115cb5780601f106115a2576101008083540402835291602001916115cb565b820191905f5260205f20905b8154815290600101906020018083116115ae57829003601f168201915b5050505050905060405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001828152508585815181106116105761160f61343d565b5b602002602001018190525050505b50808061162a906137a1565b9150506114f1565b50809250505092915050565b60605f73ffffffffffffffffffffffffffffffffffffffff1661166083610d80565b73ffffffffffffffffffffffffffffffffffffffff16036116b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ad90613c5b565b60405180910390fd5b600880546116c39061321d565b80601f01602080910402602001604051908101604052809291908181526020018280546116ef9061321d565b801561173a5780601f106117115761010080835404028352916020019161173a565b820191905f5260205f20905b81548152906001019060200180831161171d57829003601f168201915b50505050509050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6117dc611d9f565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361184c575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118439190612893565b60405180910390fd5b61185581611ea8565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f806118cc83612286565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361193e57826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016119359190612cbc565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61199483838360016122bf565b505050565b6002600754036119d5576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600781905550565b5f808361ffff161180156119fc5750606461ffff168361ffff1611155b8015611a0b57505f8261ffff16115b8015611a205750606461ffff168261ffff1611155b611a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5690613e02565b60405180910390fd5b8261ffff16606461ffff16600184611a779190613e20565b61ffff16611a8591906132e2565b611a8f919061376e565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b07575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611afe9190612893565b60405180910390fd5b5f611b1383835f611b94565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b85575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401611b7c9190612893565b60405180910390fd5b505050565b6001600781905550565b5f80611b9f84612286565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611be057611bdf81848661247e565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c6b57611c1f5f855f806122bf565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611cea57600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b611da7611980565b73ffffffffffffffffffffffffffffffffffffffff16611dc5610f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611e2457611de8611980565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611e1b9190612893565b60405180910390fd5b565b5f611e325f835f611b94565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ea457816040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611e9b9190612cbc565b60405180910390fd5b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fdb57816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611fd29190612893565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120c79190612733565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612280578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02612117611980565b8685856040518563ffffffff1660e01b81526004016121399493929190613ea7565b6020604051808303815f875af192505050801561217457506040513d601f19601f820116820180604052508101906121719190613f05565b60015b6121f5573d805f81146121a2576040519150601f19603f3d011682016040523d82523d5f602084013e6121a7565b606091505b505f8151036121ed57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016121e49190612893565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461227e57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016122759190612893565b60405180910390fd5b505b50505050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806122f757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612429575f612306846118c1565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561237057508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561238357506123818184611746565b155b156123c557826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016123bc9190612893565b60405180910390fd5b811561242757838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612489838383612541565b61253c575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124fd57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016124f49190612cbc565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612533929190613abe565b60405180910390fd5b505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156125f857508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125b957506125b88484611746565b5b806125f757508273ffffffffffffffffffffffffffffffffffffffff166125df83611947565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b50805461260d9061321d565b5f825580601f1061261e575061263b565b601f0160209004905f5260205f209081019061263a919061266d565b5b50565b60405180604001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b5b80821115612684575f815f90555060010161266e565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126cd81612699565b81146126d7575f80fd5b50565b5f813590506126e8816126c4565b92915050565b5f6020828403121561270357612702612691565b5b5f612710848285016126da565b91505092915050565b5f8115159050919050565b61272d81612719565b82525050565b5f6020820190506127465f830184612724565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612783578082015181840152602081019050612768565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6127a88261274c565b6127b28185612756565b93506127c2818560208601612766565b6127cb8161278e565b840191505092915050565b5f6020820190508181035f8301526127ee818461279e565b905092915050565b5f819050919050565b612808816127f6565b8114612812575f80fd5b50565b5f81359050612823816127ff565b92915050565b5f6020828403121561283e5761283d612691565b5b5f61284b84828501612815565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61287d82612854565b9050919050565b61288d81612873565b82525050565b5f6020820190506128a65f830184612884565b92915050565b6128b581612873565b81146128bf575f80fd5b50565b5f813590506128d0816128ac565b92915050565b5f80604083850312156128ec576128eb612691565b5b5f6128f9858286016128c2565b925050602061290a85828601612815565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261293557612934612914565b5b8235905067ffffffffffffffff81111561295257612951612918565b5b60208301915083602082028301111561296e5761296d61291c565b5b9250929050565b5f8083601f84011261298a57612989612914565b5b8235905067ffffffffffffffff8111156129a7576129a6612918565b5b6020830191508360208202830111156129c3576129c261291c565b5b9250929050565b5f805f805f80606087890312156129e4576129e3612691565b5b5f87013567ffffffffffffffff811115612a0157612a00612695565b5b612a0d89828a01612920565b9650965050602087013567ffffffffffffffff811115612a3057612a2f612695565b5b612a3c89828a01612920565b9450945050604087013567ffffffffffffffff811115612a5f57612a5e612695565b5b612a6b89828a01612975565b92509250509295509295509295565b5f805f60608486031215612a9157612a90612691565b5b5f612a9e868287016128c2565b9350506020612aaf868287016128c2565b9250506040612ac086828701612815565b9150509250925092565b5f819050919050565b5f612aed612ae8612ae384612854565b612aca565b612854565b9050919050565b5f612afe82612ad3565b9050919050565b5f612b0f82612af4565b9050919050565b612b1f81612b05565b82525050565b5f602082019050612b385f830184612b16565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612b788261278e565b810181811067ffffffffffffffff82111715612b9757612b96612b42565b5b80604052505050565b5f612ba9612688565b9050612bb58282612b6f565b919050565b5f67ffffffffffffffff821115612bd457612bd3612b42565b5b612bdd8261278e565b9050602081019050919050565b828183375f83830152505050565b5f612c0a612c0584612bba565b612ba0565b905082815260208101848484011115612c2657612c25612b3e565b5b612c31848285612bea565b509392505050565b5f82601f830112612c4d57612c4c612914565b5b8135612c5d848260208601612bf8565b91505092915050565b5f60208284031215612c7b57612c7a612691565b5b5f82013567ffffffffffffffff811115612c9857612c97612695565b5b612ca484828501612c39565b91505092915050565b612cb6816127f6565b82525050565b5f602082019050612ccf5f830184612cad565b92915050565b5f60208284031215612cea57612ce9612691565b5b5f612cf7848285016128c2565b91505092915050565b5f61ffff82169050919050565b612d1681612d00565b82525050565b5f602082019050612d2f5f830184612d0d565b92915050565b5f8083601f840112612d4a57612d49612914565b5b8235905067ffffffffffffffff811115612d6757612d66612918565b5b602083019150836001820283011115612d8357612d8261291c565b5b9250929050565b5f805f60408486031215612da157612da0612691565b5b5f612dae86828701612815565b935050602084013567ffffffffffffffff811115612dcf57612dce612695565b5b612ddb86828701612d35565b92509250509250925092565b612df081612719565b8114612dfa575f80fd5b50565b5f81359050612e0b81612de7565b92915050565b5f8060408385031215612e2757612e26612691565b5b5f612e34858286016128c2565b9250506020612e4585828601612dfd565b9150509250929050565b612e5881612d00565b8114612e62575f80fd5b50565b5f81359050612e7381612e4f565b92915050565b5f805f8060608587031215612e9157612e90612691565b5b5f612e9e87828801612e65565b9450506020612eaf87828801612e65565b935050604085013567ffffffffffffffff811115612ed057612ecf612695565b5b612edc87828801612d35565b925092505092959194509250565b5f67ffffffffffffffff821115612f0457612f03612b42565b5b612f0d8261278e565b9050602081019050919050565b5f612f2c612f2784612eea565b612ba0565b905082815260208101848484011115612f4857612f47612b3e565b5b612f53848285612bea565b509392505050565b5f82601f830112612f6f57612f6e612914565b5b8135612f7f848260208601612f1a565b91505092915050565b5f805f8060808587031215612fa057612f9f612691565b5b5f612fad878288016128c2565b9450506020612fbe878288016128c2565b9350506040612fcf87828801612815565b925050606085013567ffffffffffffffff811115612ff057612fef612695565b5b612ffc87828801612f5b565b91505092959194509250565b5f806040838503121561301e5761301d612691565b5b5f61302b85828601612815565b925050602061303c85828601612815565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61307881612873565b82525050565b5f82825260208201905092915050565b5f6130988261274c565b6130a2818561307e565b93506130b2818560208601612766565b6130bb8161278e565b840191505092915050565b5f604083015f8301516130db5f86018261306f565b50602083015184820360208601526130f3828261308e565b9150508091505092915050565b5f61310b83836130c6565b905092915050565b5f602082019050919050565b5f61312982613046565b6131338185613050565b93508360208202850161314585613060565b805f5b8581101561318057848403895281516131618582613100565b945061316c83613113565b925060208a01995050600181019050613148565b50829750879550505050505092915050565b5f6020820190508181035f8301526131aa818461311f565b905092915050565b5f80604083850312156131c8576131c7612691565b5b5f6131d5858286016128c2565b92505060206131e6858286016128c2565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061323457607f821691505b602082108103613247576132466131f0565b5b50919050565b7f4d69736d61746368656420696e707574206c656e6774687300000000000000005f82015250565b5f613281601883612756565b915061328c8261324d565b602082019050919050565b5f6020820190508181035f8301526132ae81613275565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6132ec826127f6565b91506132f7836127f6565b9250828202613305816127f6565b9150828204841483151761331c5761331b6132b5565b5b5092915050565b5f6040820190506133365f830185612884565b6133436020830184612884565b9392505050565b5f81519050613358816127ff565b92915050565b5f6020828403121561337357613372612691565b5b5f6133808482850161334a565b91505092915050565b7f496e73756666696369656e7420746f6b656e20616c6c6f77616e63652e20506c5f8201527f6561736520617070726f766520746f6b656e73206265666f7265206d696e746960208201527f6e672e0000000000000000000000000000000000000000000000000000000000604082015250565b5f613409604383612756565b915061341482613389565b606082019050919050565b5f6020820190508181035f830152613436816133fd565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561347f5761347e612691565b5b5f61348c84828501612e65565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f80833560016020038436030381126134bd576134bc613495565b5b80840192508235915067ffffffffffffffff8211156134df576134de613499565b5b6020830192506001820236038313156134fb576134fa61349d565b5b509250929050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026135697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261352e565b613573868361352e565b95508019841693508086168417925050509392505050565b5f6135a56135a061359b846127f6565b612aca565b6127f6565b9050919050565b5f819050919050565b6135be8361358b565b6135d26135ca826135ac565b84845461353a565b825550505050565b5f90565b6135e66135da565b6135f18184846135b5565b505050565b5b81811015613614576136095f826135de565b6001810190506135f7565b5050565b601f8211156136595761362a8161350d565b6136338461351f565b81016020851015613642578190505b61365661364e8561351f565b8301826135f6565b50505b505050565b5f82821c905092915050565b5f6136795f198460080261365e565b1980831691505092915050565b5f613691838361366a565b9150826002028217905092915050565b6136ab8383613503565b67ffffffffffffffff8111156136c4576136c3612b42565b5b6136ce825461321d565b6136d9828285613618565b5f601f831160018114613706575f84156136f4578287013590505b6136fe8582613686565b865550613765565b601f1984166137148661350d565b5f5b8281101561373b57848901358255600182019150602085019450602081019050613716565b868310156137585784890135613754601f89168261366a565b8355505b6001600288020188555050505b50505050505050565b5f613778826127f6565b9150613783836127f6565b925082820190508082111561379b5761379a6132b5565b5b92915050565b5f6137ab826127f6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137dd576137dc6132b5565b5b600182019050919050565b7f416c6c204e465473207765726520616c7265616479206d696e746564206279205f8201527f736f6d656f6e6520656c73652e00000000000000000000000000000000000000602082015250565b5f613842602d83612756565b915061384d826137e8565b604082019050919050565b5f6020820190508181035f83015261386f81613836565b9050919050565b5f6060820190506138895f830186612884565b6138966020830185612884565b6138a36040830184612cad565b949350505050565b5f815190506138b981612de7565b92915050565b5f602082840312156138d4576138d3612691565b5b5f6138e1848285016138ab565b91505092915050565b7f5061796d656e74206661696c65640000000000000000000000000000000000005f82015250565b5f61391e600e83612756565b9150613929826138ea565b602082019050919050565b5f6020820190508181035f83015261394b81613912565b9050919050565b5f6060820190506139655f830186612884565b6139726020830185612cad565b61397f6040830184612884565b949350505050565b6139908261274c565b67ffffffffffffffff8111156139a9576139a8612b42565b5b6139b3825461321d565b6139be828285613618565b5f60209050601f8311600181146139ef575f84156139dd578287015190505b6139e78582613686565b865550613a4e565b601f1984166139fd8661350d565b5f5b82811015613a24578489015182556001820191506020850194506020810190506139ff565b86831015613a415784890151613a3d601f89168261366a565b8355505b6001600288020188555050505b505050505050565b7f43616c6c6572206973206e6f74206f776e6572000000000000000000000000005f82015250565b5f613a8a601383612756565b9150613a9582613a56565b602082019050919050565b5f6020820190508181035f830152613ab781613a7e565b9050919050565b5f604082019050613ad15f830185612884565b613ade6020830184612cad565b9392505050565b7f526566756e64206661696c6564000000000000000000000000000000000000005f82015250565b5f613b19600d83612756565b9150613b2482613ae5565b602082019050919050565b5f6020820190508181035f830152613b4681613b0d565b9050919050565b5f613b588385612756565b9350613b65838584612bea565b613b6e8361278e565b840190509392505050565b5f604082019050613b8c5f830186612884565b8181036020830152613b9f818486613b4d565b9050949350505050565b7f506f736974696f6e20616c7265616479206d696e7465640000000000000000005f82015250565b5f613bdd601783612756565b9150613be882613ba9565b602082019050919050565b5f6020820190508181035f830152613c0a81613bd1565b9050919050565b7f546f6b656e206e6f6e206578697374696e6700000000000000000000000000005f82015250565b5f613c45601283612756565b9150613c5082613c11565b602082019050919050565b5f6020820190508181035f830152613c7281613c39565b9050919050565b7f496e76616c696420746f6b656e2049442072616e6765000000000000000000005f82015250565b5f613cad601683612756565b9150613cb882613c79565b602082019050919050565b5f6020820190508181035f830152613cda81613ca1565b9050919050565b5f613ceb82612d00565b9150613cf683612d00565b9250828202613d0481612d00565b9150808214613d1657613d156132b5565b5b5092915050565b7f546f6b656e2049442065786365656473206c696d6974000000000000000000005f82015250565b5f613d51601683612756565b9150613d5c82613d1d565b602082019050919050565b5f6020820190508181035f830152613d7e81613d45565b9050919050565b5f613d8f826127f6565b9150613d9a836127f6565b9250828203905081811115613db257613db16132b5565b5b92915050565b7f496e76616c696420636f6f7264696e61746573000000000000000000000000005f82015250565b5f613dec601383612756565b9150613df782613db8565b602082019050919050565b5f6020820190508181035f830152613e1981613de0565b9050919050565b5f613e2a82612d00565b9150613e3583612d00565b9250828203905061ffff811115613e4f57613e4e6132b5565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f613e7982613e55565b613e838185613e5f565b9350613e93818560208601612766565b613e9c8161278e565b840191505092915050565b5f608082019050613eba5f830187612884565b613ec76020830186612884565b613ed46040830185612cad565b8181036060830152613ee68184613e6f565b905095945050505050565b5f81519050613eff816126c4565b92915050565b5f60208284031215613f1a57613f19612691565b5b5f613f2784828501613ef1565b9150509291505056fea2646970667358221220624b00ac56859fa8994b9b54e88e29c18c5a72ab48250a5036c292368ae73acc64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f79656c6c6f772d6368616e67696e672d616e746c696f6e2d3934322e6d7970696e6174612e636c6f75642f697066732f516d5664766e54385a645a686d7741624879534c5034337a573663634c786e507a5a4563733334384c766e374b750000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _nothingTokenAddress (address): 0xFfD822149fA6749176C7a1424e71a417F26189C8
Arg [1] : baseTokenURI (string): https://yellow-changing-antlion-942.mypinata.cloud/ipfs/QmVdvnT8ZdZhmwAbHySLP43zW6ccLxnPzZEcs348Lvn7Ku
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000ffd822149fa6749176c7a1424e71a417f26189c8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000066
Arg [3] : 68747470733a2f2f79656c6c6f772d6368616e67696e672d616e746c696f6e2d
Arg [4] : 3934322e6d7970696e6174612e636c6f75642f697066732f516d5664766e5438
Arg [5] : 5a645a686d7741624879534c5034337a573663634c786e507a5a456373333438
Arg [6] : 4c766e374b750000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.