Overview
TokenID
9271
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Stone
Compiler Version
v0.8.15+commit.e14f2714
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.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721AQueryable.sol"; contract Stone is ERC2981, ERC721AQueryable, Ownable { using Address for address payable; using Strings for uint256; uint256 public immutable _price; uint32 public immutable _maxSupply; uint32 public immutable _teamSupply; uint32 public immutable _walletLimit; uint32 public _teamMinted; bool public _started; string public _metadataURI = "https://meta.stone-nft.xyz/stone/json/"; struct Status { // config uint256 price; uint32 maxSupply; uint32 publicSupply; uint32 walletLimit; // state uint32 publicMinted; uint32 userMinted; bool soldout; bool started; } constructor( uint256 price, uint32 maxSupply, uint32 teamSupply, uint32 walletLimit ) ERC721A("Stone", "STN") { require(maxSupply >= teamSupply); _price = price; _maxSupply = maxSupply; _teamSupply = teamSupply; _walletLimit = walletLimit; setFeeNumerator(750); } function mint(uint32 amount) external payable { require(_started, "Stone is not ready"); uint32 publicMinted = _publicMinted(); uint32 publicSupply = _publicSupply(); require(amount + publicMinted <= _publicSupply(), "Sold Out"); uint32 minted = uint32(_numberMinted(msg.sender)); require(amount + minted <= _walletLimit, "3 Stone per wallet"); uint32 freeAmount = 0; uint256 requiredValue = (amount - freeAmount) * _price; require(msg.value >= requiredValue, "Not enough ETH"); _safeMint(msg.sender, amount); if (msg.value > requiredValue) { payable(msg.sender).sendValue(msg.value - requiredValue); } } function _publicMinted() public view returns (uint32) { return uint32(_totalMinted()) - _teamMinted; } function _publicSupply() public view returns (uint32) { return _maxSupply - _teamSupply; } function _status(address minter) external view returns (Status memory) { uint32 publicSupply = _maxSupply - _teamSupply; uint32 publicMinted = uint32(ERC721A._totalMinted()) - _teamMinted; return Status({ // config price: _price, maxSupply: _maxSupply, publicSupply:publicSupply, walletLimit: _walletLimit, // state publicMinted: publicMinted, soldout: publicMinted >= publicSupply, userMinted: uint32(_numberMinted(minter)), started: _started }); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _metadataURI; return string(abi.encodePacked(baseURI, tokenId.toString(), ".json")); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, ERC721A) returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IERC721).interfaceId || super.supportsInterface(interfaceId); } function devMint(address to, uint32 amount) external onlyOwner { _teamMinted += amount; require(_teamMinted <= _teamSupply, "Out of supply"); _safeMint(to, amount); } function setFeeNumerator(uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(owner(), feeNumerator); } function setStarted(bool started) external onlyOwner { _started = started; } function setMetadataURI(string memory uri) external onlyOwner { _metadataURI = uri; } function withdraw() external onlyOwner { payable(msg.sender).sendValue(address(this).balance); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "./ERC721A.sol"; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.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}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @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 override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * 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 virtual { _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); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @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 virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
{ "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":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"teamSupply","type":"uint32"},{"internalType":"uint32","name":"walletLimit","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"_status","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"publicSupply","type":"uint32"},{"internalType":"uint32","name":"walletLimit","type":"uint32"},{"internalType":"uint32","name":"publicMinted","type":"uint32"},{"internalType":"uint32","name":"userMinted","type":"uint32"},{"internalType":"bool","name":"soldout","type":"bool"},{"internalType":"bool","name":"started","type":"bool"}],"internalType":"struct Stone.Status","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_teamMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_teamSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_walletLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"address","name":"to","type":"address"},{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint32","name":"amount","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setFeeNumerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"started","type":"bool"}],"name":"setStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61010060405260405180606001604052806026815260200162005c9860269139600b90816200002f91906200078e565b503480156200003d57600080fd5b5060405162005cbe38038062005cbe8339818101604052810190620000639190620008ec565b6040518060400160405280600581526020017f53746f6e650000000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f53544e00000000000000000000000000000000000000000000000000000000008152508160049081620000e091906200078e565b508060059081620000f291906200078e565b5062000103620001a660201b60201c565b60028190555050506200012b6200011f620001ab60201b60201c565b620001b360201b60201c565b8163ffffffff168363ffffffff1610156200014557600080fd5b83608081815250508263ffffffff1660a08163ffffffff16815250508163ffffffff1660c08163ffffffff16815250508063ffffffff1660e08163ffffffff16815250506200019c6102ee6200027960201b60201c565b5050505062000aeb565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000289620002ad60201b60201c565b620002aa6200029d6200033e60201b60201c565b826200036860201b60201c565b50565b620002bd620001ab60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002e36200033e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200033c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200033390620009bf565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620003786200050a60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620003d9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d09062000a57565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200044b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004429062000ac9565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059657607f821691505b602082108103620005ac57620005ab6200054e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005d7565b620006228683620005d7565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200066f6200066962000663846200063a565b62000644565b6200063a565b9050919050565b6000819050919050565b6200068b836200064e565b620006a36200069a8262000676565b848454620005e4565b825550505050565b600090565b620006ba620006ab565b620006c781848462000680565b505050565b5b81811015620006ef57620006e3600082620006b0565b600181019050620006cd565b5050565b601f8211156200073e576200070881620005b2565b6200071384620005c7565b8101602085101562000723578190505b6200073b6200073285620005c7565b830182620006cc565b50505b505050565b600082821c905092915050565b6000620007636000198460080262000743565b1980831691505092915050565b60006200077e838362000750565b9150826002028217905092915050565b620007998262000514565b67ffffffffffffffff811115620007b557620007b46200051f565b5b620007c182546200057d565b620007ce828285620006f3565b600060209050601f831160018114620008065760008415620007f1578287015190505b620007fd858262000770565b8655506200086d565b601f1984166200081686620005b2565b60005b82811015620008405784890151825560018201915060208501945060208101905062000819565b868310156200086057848901516200085c601f89168262000750565b8355505b6001600288020188555050505b505050505050565b600080fd5b62000885816200063a565b81146200089157600080fd5b50565b600081519050620008a5816200087a565b92915050565b600063ffffffff82169050919050565b620008c681620008ab565b8114620008d257600080fd5b50565b600081519050620008e681620008bb565b92915050565b6000806000806080858703121562000909576200090862000875565b5b6000620009198782880162000894565b94505060206200092c87828801620008d5565b93505060406200093f87828801620008d5565b92505060606200095287828801620008d5565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620009a76020836200095e565b9150620009b4826200096f565b602082019050919050565b60006020820190508181036000830152620009da8162000998565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000a3f602a836200095e565b915062000a4c82620009e1565b604082019050919050565b6000602082019050818103600083015262000a728162000a30565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000ab16019836200095e565b915062000abe8262000a79565b602082019050919050565b6000602082019050818103600083015262000ae48162000aa2565b9050919050565b60805160a05160c05160e05161512d62000b6b60003960008181610c3a0152818161184b0152611b180152600081816109fe01528181610ca50152818161176a0152611f35015260008181610d510152818161178b015281816118130152611f56015260008181610d75015281816117ed0152611b95015261512d6000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063aa073907116100ab578063d4a676231161006f578063d4a6762314610835578063dd48f07d14610860578063e985e9c51461088b578063ef6b141a146108c8578063f2fde38b146108f157610225565b8063aa0739071461073c578063b88d4fde14610767578063c23dc68f14610790578063c87b56dd146107cd578063ccd5f6a21461080a57610225565b806395d89b41116100f257806395d89b411461065257806399a2557a1461067d5780639a7cfa4f146106ba578063a22cb465146106f7578063a71bbebe1461072057610225565b8063715018a6146105aa578063750521f5146105c15780638462151c146105ea5780638da5cb5b1461062757610225565b8063235b6ea1116101b15780634df22a54116101755780634df22a541461049f5780635bbb2177146104ca5780636352211e14610507578063653a819e1461054457806370a082311461056d57610225565b8063235b6ea1146103cd57806323b872dd146103f85780632a55205a146104215780633ccfd60b1461045f57806342842e0e1461047657610225565b8063095ea7b3116101f8578063095ea7b3146102fa5780630e2351e21461032357806317a5aced1461034e57806318160ddd1461037757806322f4596f146103a257610225565b806301ffc9a71461022a5780630517431e1461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137bd565b61091a565b60405161025e9190613805565b60405180910390f35b34801561027357600080fd5b5061027c6109fc565b604051610289919061383f565b60405180910390f35b34801561029e57600080fd5b506102a7610a20565b6040516102b491906138f3565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df919061394b565b610ab2565b6040516102f191906139b9565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613a00565b610b2e565b005b34801561032f57600080fd5b50610338610c38565b604051610345919061383f565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613a6c565b610c5c565b005b34801561038357600080fd5b5061038c610d38565b6040516103999190613abb565b60405180910390f35b3480156103ae57600080fd5b506103b7610d4f565b6040516103c4919061383f565b60405180910390f35b3480156103d957600080fd5b506103e2610d73565b6040516103ef9190613abb565b60405180910390f35b34801561040457600080fd5b5061041f600480360381019061041a9190613ad6565b610d97565b005b34801561042d57600080fd5b5061044860048036038101906104439190613b29565b610da7565b604051610456929190613b69565b60405180910390f35b34801561046b57600080fd5b50610474610f91565b005b34801561048257600080fd5b5061049d60048036038101906104989190613ad6565b610fc4565b005b3480156104ab57600080fd5b506104b4610fe4565b6040516104c19190613805565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190613cda565b610ff7565b6040516104fe9190613e55565b60405180910390f35b34801561051357600080fd5b5061052e6004803603810190610529919061394b565b6110b8565b60405161053b91906139b9565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613ebb565b6110ce565b005b34801561057957600080fd5b50610594600480360381019061058f9190613ee8565b6110ea565b6040516105a19190613abb565b60405180910390f35b3480156105b657600080fd5b506105bf6111b9565b005b3480156105cd57600080fd5b506105e860048036038101906105e39190613fca565b6111cd565b005b3480156105f657600080fd5b50610611600480360381019061060c9190613ee8565b6111e8565b60405161061e91906140d1565b60405180910390f35b34801561063357600080fd5b5061063c6113e3565b60405161064991906139b9565b60405180910390f35b34801561065e57600080fd5b5061066761140d565b60405161067491906138f3565b60405180910390f35b34801561068957600080fd5b506106a4600480360381019061069f91906140f3565b61149f565b6040516106b191906140d1565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc9190613ee8565b61175e565b6040516106ee91906141f7565b60405180910390f35b34801561070357600080fd5b5061071e6004803603810190610719919061423f565b6118ca565b005b61073a6004803603810190610735919061427f565b611a41565b005b34801561074857600080fd5b50610751611c6a565b60405161075e919061383f565b60405180910390f35b34801561077357600080fd5b5061078e6004803603810190610789919061434d565b611c96565b005b34801561079c57600080fd5b506107b760048036038101906107b2919061394b565b611d12565b6040516107c49190614412565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef919061394b565b611e2f565b60405161080191906138f3565b60405180910390f35b34801561081657600080fd5b5061081f611f31565b60405161082c919061383f565b60405180910390f35b34801561084157600080fd5b5061084a611f84565b60405161085791906138f3565b60405180910390f35b34801561086c57600080fd5b50610875612012565b604051610882919061383f565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad919061442d565b612028565b6040516108bf9190613805565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea919061446d565b6120bc565b005b3480156108fd57600080fd5b5061091860048036038101906109139190613ee8565b6120e1565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f557506109f482612164565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060048054610a2f906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5b906144c9565b8015610aa85780601f10610a7d57610100808354040283529160200191610aa8565b820191906000526020600020905b815481529060010190602001808311610a8b57829003601f168201915b5050505050905090565b6000610abd82612246565b610af3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b39826110b8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ba0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbf612294565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bf15750610bef81610bea612294565b612028565b155b15610c28576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3383838361229c565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610c6461234e565b80600a60148282829054906101000a900463ffffffff16610c859190614529565b92506101000a81548163ffffffff021916908363ffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000063ffffffff16600a60149054906101000a900463ffffffff1663ffffffff161115610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b906145af565b60405180910390fd5b610d34828263ffffffff166123cc565b5050565b6000610d426123ea565b6003546002540303905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b610da28383836123ef565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610f3c5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f466128a3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f7291906145cf565b610f7c9190614658565b90508160000151819350935050509250929050565b610f9961234e565b610fc2473373ffffffffffffffffffffffffffffffffffffffff166128ad90919063ffffffff16565b565b610fdf83838360405180602001604052806000815250611c96565b505050565b600a60189054906101000a900460ff1681565b606060008251905060008167ffffffffffffffff81111561101b5761101a613b97565b5b60405190808252806020026020018201604052801561105457816020015b6110416136a7565b8152602001906001900390816110395790505b50905060005b8281146110ad5761108485828151811061107757611076614689565b5b6020026020010151611d12565b82828151811061109757611096614689565b5b602002602001018190525080600101905061105a565b508092505050919050565b60006110c3826129a1565b600001519050919050565b6110d661234e565b6110e76110e16113e3565b82612c30565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611151576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111c161234e565b6111cb6000612dc4565b565b6111d561234e565b80600b90816111e49190614864565b5050565b606060008060006111f8856110ea565b905060008167ffffffffffffffff81111561121657611215613b97565b5b6040519080825280602002602001820160405280156112445781602001602082028036833780820191505090505b50905061124f6136a7565b60006112596123ea565b90505b8386146113d557600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001516113ca57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461136f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113c957808387806001019850815181106113bc576113bb614689565b5b6020026020010181815250505b5b80600101905061125c565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606005805461141c906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611448906144c9565b80156114955780601f1061146a57610100808354040283529160200191611495565b820191906000526020600020905b81548152906001019060200180831161147857829003601f168201915b5050505050905090565b60608183106114da576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060025490506114ea6123ea565b8510156114fc576114f96123ea565b94505b80841115611508578093505b6000611513876110ea565b905084861015611536576000868603905081811015611530578091505b5061153b565b600090505b60008167ffffffffffffffff81111561155757611556613b97565b5b6040519080825280602002602001820160405280156115855781602001602082028036833780820191505090505b5090506000820361159c5780945050505050611757565b60006115a788611d12565b9050600081604001516115bc57816000015190505b60008990505b8881141580156115d25750848714155b1561174957600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015161173e57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146116e357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173d57808488806001019950815181106117305761172f614689565b5b6020026020010181815250505b5b8060010190506115c2565b508583528296505050505050505b9392505050565b6117666136ea565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006117b49190614936565b90506000600a60149054906101000a900463ffffffff166117d3612e8a565b6117dd9190614936565b90506040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000081526020017f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681526020018363ffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681526020018263ffffffff16815260200161188a86612e9d565b63ffffffff1681526020018363ffffffff168363ffffffff16101515158152602001600a60189054906101000a900460ff16151581525092505050919050565b6118d2612294565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611936576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060096000611943612294565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119f0612294565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a359190613805565b60405180910390a35050565b600a60189054906101000a900460ff16611a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a87906149b6565b60405180910390fd5b6000611a9a611c6a565b90506000611aa6611f31565b9050611ab0611f31565b63ffffffff168284611ac29190614529565b63ffffffff161115611b09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0090614a22565b60405180910390fd5b6000611b1433612e9d565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168185611b499190614529565b63ffffffff161115611b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8790614a8e565b60405180910390fd5b6000807f00000000000000000000000000000000000000000000000000000000000000008287611bc09190614936565b63ffffffff16611bd091906145cf565b905080341015611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90614afa565b60405180910390fd5b611c25338763ffffffff166123cc565b80341115611c6257611c618134611c3c9190614b1a565b3373ffffffffffffffffffffffffffffffffffffffff166128ad90919063ffffffff16565b5b505050505050565b6000600a60149054906101000a900463ffffffff16611c87612e8a565b611c919190614936565b905090565b611ca18484846123ef565b611cc08373ffffffffffffffffffffffffffffffffffffffff16612f07565b8015611cd55750611cd384848484612f2a565b155b15611d0c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d1a6136a7565b611d226136a7565b611d2a6123ea565b831080611d3957506002548310155b15611d475780915050611e2a565b600660008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e1d5780915050611e2a565b611e26836129a1565b9150505b919050565b6060611e3a82612246565b611e70576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8054611e7f906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611eab906144c9565b8015611ef85780601f10611ecd57610100808354040283529160200191611ef8565b820191906000526020600020905b815481529060010190602001808311611edb57829003601f168201915b5050505050905080611f098461307a565b604051602001611f1a929190614bd6565b604051602081830303815290604052915050919050565b60007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611f7f9190614936565b905090565b600b8054611f91906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbd906144c9565b801561200a5780601f10611fdf5761010080835404028352916020019161200a565b820191906000526020600020905b815481529060010190602001808311611fed57829003601f168201915b505050505081565b600a60149054906101000a900463ffffffff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120c461234e565b80600a60186101000a81548160ff02191690831515021790555050565b6120e961234e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214f90614c77565b60405180910390fd5b61216181612dc4565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061222f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061223f575061223e826131da565b5b9050919050565b6000816122516123ea565b11158015612260575060025482105b801561228d575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612356612294565b73ffffffffffffffffffffffffffffffffffffffff166123746113e3565b73ffffffffffffffffffffffffffffffffffffffff16146123ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c190614ce3565b60405180910390fd5b565b6123e6828260405180602001604052806000815250613254565b5050565b600090565b60006123fa826129a1565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612465576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612486612294565b73ffffffffffffffffffffffffffffffffffffffff1614806124b557506124b4856124af612294565b612028565b5b806124fa57506124c3612294565b73ffffffffffffffffffffffffffffffffffffffff166124e284610ab2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612533576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612599576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125a68585856001613266565b6125b26000848761229c565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600660008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600660008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361283157600254821461283057878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461289c858585600161326c565b5050505050565b6000612710905090565b804710156128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614d4f565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161291690614da0565b60006040518083038185875af1925050503d8060008114612953576040519150601f19603f3d011682016040523d82523d6000602084013e612958565b606091505b505090508061299c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299390614e27565b60405180910390fd5b505050565b6129a96136a7565b6000829050806129b76123ea565b111580156129c6575060025481105b15612bf9576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612bf757600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612adb578092505050612c2b565b5b600115612bf657818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612bf1578092505050612c2b565b612adc565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612c386128a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8d90614eb9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfc90614f25565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612e946123ea565b60025403905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f50612294565b8786866040518563ffffffff1660e01b8152600401612f729493929190614f9a565b6020604051808303816000875af1925050508015612fae57506040513d601f19601f82011682018060405250810190612fab9190614ffb565b60015b613027573d8060008114612fde576040519150601f19603f3d011682016040523d82523d6000602084013e612fe3565b606091505b50600081510361301f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036130c1576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131d5565b600082905060005b600082146130f35780806130dc90615028565b915050600a826130ec9190614658565b91506130c9565b60008167ffffffffffffffff81111561310f5761310e613b97565b5b6040519080825280601f01601f1916602001820160405280156131415781602001600182028036833780820191505090505b5090505b600085146131ce5760018261315a9190614b1a565b9150600a856131699190615070565b603061317591906150a1565b60f81b81838151811061318b5761318a614689565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131c79190614658565b9450613145565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061324d575061324c82613272565b5b9050919050565b61326183838360016132dc565b505050565b50505050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613349576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008403613383576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133906000868387613266565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561355a57506135598773ffffffffffffffffffffffffffffffffffffffff16612f07565b5b1561361f575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135cf6000888480600101955088612f2a565b613605576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80820361356057826002541461361a57600080fd5b61368a565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808203613620575b8160028190555050506136a0600086838761326c565b5050505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610100016040528060008152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff1681526020016000151581526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379a81613765565b81146137a557600080fd5b50565b6000813590506137b781613791565b92915050565b6000602082840312156137d3576137d261375b565b5b60006137e1848285016137a8565b91505092915050565b60008115159050919050565b6137ff816137ea565b82525050565b600060208201905061381a60008301846137f6565b92915050565b600063ffffffff82169050919050565b61383981613820565b82525050565b60006020820190506138546000830184613830565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613894578082015181840152602081019050613879565b838111156138a3576000848401525b50505050565b6000601f19601f8301169050919050565b60006138c58261385a565b6138cf8185613865565b93506138df818560208601613876565b6138e8816138a9565b840191505092915050565b6000602082019050818103600083015261390d81846138ba565b905092915050565b6000819050919050565b61392881613915565b811461393357600080fd5b50565b6000813590506139458161391f565b92915050565b6000602082840312156139615761396061375b565b5b600061396f84828501613936565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139a382613978565b9050919050565b6139b381613998565b82525050565b60006020820190506139ce60008301846139aa565b92915050565b6139dd81613998565b81146139e857600080fd5b50565b6000813590506139fa816139d4565b92915050565b60008060408385031215613a1757613a1661375b565b5b6000613a25858286016139eb565b9250506020613a3685828601613936565b9150509250929050565b613a4981613820565b8114613a5457600080fd5b50565b600081359050613a6681613a40565b92915050565b60008060408385031215613a8357613a8261375b565b5b6000613a91858286016139eb565b9250506020613aa285828601613a57565b9150509250929050565b613ab581613915565b82525050565b6000602082019050613ad06000830184613aac565b92915050565b600080600060608486031215613aef57613aee61375b565b5b6000613afd868287016139eb565b9350506020613b0e868287016139eb565b9250506040613b1f86828701613936565b9150509250925092565b60008060408385031215613b4057613b3f61375b565b5b6000613b4e85828601613936565b9250506020613b5f85828601613936565b9150509250929050565b6000604082019050613b7e60008301856139aa565b613b8b6020830184613aac565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bcf826138a9565b810181811067ffffffffffffffff82111715613bee57613bed613b97565b5b80604052505050565b6000613c01613751565b9050613c0d8282613bc6565b919050565b600067ffffffffffffffff821115613c2d57613c2c613b97565b5b602082029050602081019050919050565b600080fd5b6000613c56613c5184613c12565b613bf7565b90508083825260208201905060208402830185811115613c7957613c78613c3e565b5b835b81811015613ca25780613c8e8882613936565b845260208401935050602081019050613c7b565b5050509392505050565b600082601f830112613cc157613cc0613b92565b5b8135613cd1848260208601613c43565b91505092915050565b600060208284031215613cf057613cef61375b565b5b600082013567ffffffffffffffff811115613d0e57613d0d613760565b5b613d1a84828501613cac565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d5881613998565b82525050565b600067ffffffffffffffff82169050919050565b613d7b81613d5e565b82525050565b613d8a816137ea565b82525050565b606082016000820151613da66000850182613d4f565b506020820151613db96020850182613d72565b506040820151613dcc6040850182613d81565b50505050565b6000613dde8383613d90565b60608301905092915050565b6000602082019050919050565b6000613e0282613d23565b613e0c8185613d2e565b9350613e1783613d3f565b8060005b83811015613e48578151613e2f8882613dd2565b9750613e3a83613dea565b925050600181019050613e1b565b5085935050505092915050565b60006020820190508181036000830152613e6f8184613df7565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b613e9881613e77565b8114613ea357600080fd5b50565b600081359050613eb581613e8f565b92915050565b600060208284031215613ed157613ed061375b565b5b6000613edf84828501613ea6565b91505092915050565b600060208284031215613efe57613efd61375b565b5b6000613f0c848285016139eb565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f3557613f34613b97565b5b613f3e826138a9565b9050602081019050919050565b82818337600083830152505050565b6000613f6d613f6884613f1a565b613bf7565b905082815260208101848484011115613f8957613f88613f15565b5b613f94848285613f4b565b509392505050565b600082601f830112613fb157613fb0613b92565b5b8135613fc1848260208601613f5a565b91505092915050565b600060208284031215613fe057613fdf61375b565b5b600082013567ffffffffffffffff811115613ffe57613ffd613760565b5b61400a84828501613f9c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61404881613915565b82525050565b600061405a838361403f565b60208301905092915050565b6000602082019050919050565b600061407e82614013565b614088818561401e565b93506140938361402f565b8060005b838110156140c45781516140ab888261404e565b97506140b683614066565b925050600181019050614097565b5085935050505092915050565b600060208201905081810360008301526140eb8184614073565b905092915050565b60008060006060848603121561410c5761410b61375b565b5b600061411a868287016139eb565b935050602061412b86828701613936565b925050604061413c86828701613936565b9150509250925092565b61414f81613820565b82525050565b6101008201600082015161416c600085018261403f565b50602082015161417f6020850182614146565b5060408201516141926040850182614146565b5060608201516141a56060850182614146565b5060808201516141b86080850182614146565b5060a08201516141cb60a0850182614146565b5060c08201516141de60c0850182613d81565b5060e08201516141f160e0850182613d81565b50505050565b60006101008201905061420d6000830184614155565b92915050565b61421c816137ea565b811461422757600080fd5b50565b60008135905061423981614213565b92915050565b600080604083850312156142565761425561375b565b5b6000614264858286016139eb565b92505060206142758582860161422a565b9150509250929050565b6000602082840312156142955761429461375b565b5b60006142a384828501613a57565b91505092915050565b600067ffffffffffffffff8211156142c7576142c6613b97565b5b6142d0826138a9565b9050602081019050919050565b60006142f06142eb846142ac565b613bf7565b90508281526020810184848401111561430c5761430b613f15565b5b614317848285613f4b565b509392505050565b600082601f83011261433457614333613b92565b5b81356143448482602086016142dd565b91505092915050565b600080600080608085870312156143675761436661375b565b5b6000614375878288016139eb565b9450506020614386878288016139eb565b935050604061439787828801613936565b925050606085013567ffffffffffffffff8111156143b8576143b7613760565b5b6143c48782880161431f565b91505092959194509250565b6060820160008201516143e66000850182613d4f565b5060208201516143f96020850182613d72565b50604082015161440c6040850182613d81565b50505050565b600060608201905061442760008301846143d0565b92915050565b600080604083850312156144445761444361375b565b5b6000614452858286016139eb565b9250506020614463858286016139eb565b9150509250929050565b6000602082840312156144835761448261375b565b5b60006144918482850161422a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144e157607f821691505b6020821081036144f4576144f361449a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061453482613820565b915061453f83613820565b92508263ffffffff03821115614558576145576144fa565b5b828201905092915050565b7f4f7574206f6620737570706c7900000000000000000000000000000000000000600082015250565b6000614599600d83613865565b91506145a482614563565b602082019050919050565b600060208201905081810360008301526145c88161458c565b9050919050565b60006145da82613915565b91506145e583613915565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561461e5761461d6144fa565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061466382613915565b915061466e83613915565b92508261467e5761467d614629565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261471a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146dd565b61472486836146dd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061476161475c61475784613915565b61473c565b613915565b9050919050565b6000819050919050565b61477b83614746565b61478f61478782614768565b8484546146ea565b825550505050565b600090565b6147a4614797565b6147af818484614772565b505050565b5b818110156147d3576147c860008261479c565b6001810190506147b5565b5050565b601f821115614818576147e9816146b8565b6147f2846146cd565b81016020851015614801578190505b61481561480d856146cd565b8301826147b4565b50505b505050565b600082821c905092915050565b600061483b6000198460080261481d565b1980831691505092915050565b6000614854838361482a565b9150826002028217905092915050565b61486d8261385a565b67ffffffffffffffff81111561488657614885613b97565b5b61489082546144c9565b61489b8282856147d7565b600060209050601f8311600181146148ce57600084156148bc578287015190505b6148c68582614848565b86555061492e565b601f1984166148dc866146b8565b60005b82811015614904578489015182556001820191506020850194506020810190506148df565b86831015614921578489015161491d601f89168261482a565b8355505b6001600288020188555050505b505050505050565b600061494182613820565b915061494c83613820565b92508282101561495f5761495e6144fa565b5b828203905092915050565b7f53746f6e65206973206e6f742072656164790000000000000000000000000000600082015250565b60006149a0601283613865565b91506149ab8261496a565b602082019050919050565b600060208201905081810360008301526149cf81614993565b9050919050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b6000614a0c600883613865565b9150614a17826149d6565b602082019050919050565b60006020820190508181036000830152614a3b816149ff565b9050919050565b7f332053746f6e65207065722077616c6c65740000000000000000000000000000600082015250565b6000614a78601283613865565b9150614a8382614a42565b602082019050919050565b60006020820190508181036000830152614aa781614a6b565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614ae4600e83613865565b9150614aef82614aae565b602082019050919050565b60006020820190508181036000830152614b1381614ad7565b9050919050565b6000614b2582613915565b9150614b3083613915565b925082821015614b4357614b426144fa565b5b828203905092915050565b600081905092915050565b6000614b648261385a565b614b6e8185614b4e565b9350614b7e818560208601613876565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614bc0600583614b4e565b9150614bcb82614b8a565b600582019050919050565b6000614be28285614b59565b9150614bee8284614b59565b9150614bf982614bb3565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c61602683613865565b9150614c6c82614c05565b604082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ccd602083613865565b9150614cd882614c97565b602082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614d39601d83613865565b9150614d4482614d03565b602082019050919050565b60006020820190508181036000830152614d6881614d2c565b9050919050565b600081905092915050565b50565b6000614d8a600083614d6f565b9150614d9582614d7a565b600082019050919050565b6000614dab82614d7d565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614e11603a83613865565b9150614e1c82614db5565b604082019050919050565b60006020820190508181036000830152614e4081614e04565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614ea3602a83613865565b9150614eae82614e47565b604082019050919050565b60006020820190508181036000830152614ed281614e96565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f0f601983613865565b9150614f1a82614ed9565b602082019050919050565b60006020820190508181036000830152614f3e81614f02565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614f6c82614f45565b614f768185614f50565b9350614f86818560208601613876565b614f8f816138a9565b840191505092915050565b6000608082019050614faf60008301876139aa565b614fbc60208301866139aa565b614fc96040830185613aac565b8181036060830152614fdb8184614f61565b905095945050505050565b600081519050614ff581613791565b92915050565b6000602082840312156150115761501061375b565b5b600061501f84828501614fe6565b91505092915050565b600061503382613915565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615065576150646144fa565b5b600182019050919050565b600061507b82613915565b915061508683613915565b92508261509657615095614629565b5b828206905092915050565b60006150ac82613915565b91506150b783613915565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150ec576150eb6144fa565b5b82820190509291505056fea26469706673582212206f87d9465c2c4a5ee5f30612f4c15919c27aa0d6f3085e8cbed67fdb11fa7e4d64736f6c634300080f003368747470733a2f2f6d6574612e73746f6e652d6e66742e78797a2f73746f6e652f6a736f6e2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000960000000000000000000000000000000000000000000000000000000000000003
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063715018a611610123578063aa073907116100ab578063d4a676231161006f578063d4a6762314610835578063dd48f07d14610860578063e985e9c51461088b578063ef6b141a146108c8578063f2fde38b146108f157610225565b8063aa0739071461073c578063b88d4fde14610767578063c23dc68f14610790578063c87b56dd146107cd578063ccd5f6a21461080a57610225565b806395d89b41116100f257806395d89b411461065257806399a2557a1461067d5780639a7cfa4f146106ba578063a22cb465146106f7578063a71bbebe1461072057610225565b8063715018a6146105aa578063750521f5146105c15780638462151c146105ea5780638da5cb5b1461062757610225565b8063235b6ea1116101b15780634df22a54116101755780634df22a541461049f5780635bbb2177146104ca5780636352211e14610507578063653a819e1461054457806370a082311461056d57610225565b8063235b6ea1146103cd57806323b872dd146103f85780632a55205a146104215780633ccfd60b1461045f57806342842e0e1461047657610225565b8063095ea7b3116101f8578063095ea7b3146102fa5780630e2351e21461032357806317a5aced1461034e57806318160ddd1461037757806322f4596f146103a257610225565b806301ffc9a71461022a5780630517431e1461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137bd565b61091a565b60405161025e9190613805565b60405180910390f35b34801561027357600080fd5b5061027c6109fc565b604051610289919061383f565b60405180910390f35b34801561029e57600080fd5b506102a7610a20565b6040516102b491906138f3565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df919061394b565b610ab2565b6040516102f191906139b9565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613a00565b610b2e565b005b34801561032f57600080fd5b50610338610c38565b604051610345919061383f565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613a6c565b610c5c565b005b34801561038357600080fd5b5061038c610d38565b6040516103999190613abb565b60405180910390f35b3480156103ae57600080fd5b506103b7610d4f565b6040516103c4919061383f565b60405180910390f35b3480156103d957600080fd5b506103e2610d73565b6040516103ef9190613abb565b60405180910390f35b34801561040457600080fd5b5061041f600480360381019061041a9190613ad6565b610d97565b005b34801561042d57600080fd5b5061044860048036038101906104439190613b29565b610da7565b604051610456929190613b69565b60405180910390f35b34801561046b57600080fd5b50610474610f91565b005b34801561048257600080fd5b5061049d60048036038101906104989190613ad6565b610fc4565b005b3480156104ab57600080fd5b506104b4610fe4565b6040516104c19190613805565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190613cda565b610ff7565b6040516104fe9190613e55565b60405180910390f35b34801561051357600080fd5b5061052e6004803603810190610529919061394b565b6110b8565b60405161053b91906139b9565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613ebb565b6110ce565b005b34801561057957600080fd5b50610594600480360381019061058f9190613ee8565b6110ea565b6040516105a19190613abb565b60405180910390f35b3480156105b657600080fd5b506105bf6111b9565b005b3480156105cd57600080fd5b506105e860048036038101906105e39190613fca565b6111cd565b005b3480156105f657600080fd5b50610611600480360381019061060c9190613ee8565b6111e8565b60405161061e91906140d1565b60405180910390f35b34801561063357600080fd5b5061063c6113e3565b60405161064991906139b9565b60405180910390f35b34801561065e57600080fd5b5061066761140d565b60405161067491906138f3565b60405180910390f35b34801561068957600080fd5b506106a4600480360381019061069f91906140f3565b61149f565b6040516106b191906140d1565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc9190613ee8565b61175e565b6040516106ee91906141f7565b60405180910390f35b34801561070357600080fd5b5061071e6004803603810190610719919061423f565b6118ca565b005b61073a6004803603810190610735919061427f565b611a41565b005b34801561074857600080fd5b50610751611c6a565b60405161075e919061383f565b60405180910390f35b34801561077357600080fd5b5061078e6004803603810190610789919061434d565b611c96565b005b34801561079c57600080fd5b506107b760048036038101906107b2919061394b565b611d12565b6040516107c49190614412565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef919061394b565b611e2f565b60405161080191906138f3565b60405180910390f35b34801561081657600080fd5b5061081f611f31565b60405161082c919061383f565b60405180910390f35b34801561084157600080fd5b5061084a611f84565b60405161085791906138f3565b60405180910390f35b34801561086c57600080fd5b50610875612012565b604051610882919061383f565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad919061442d565b612028565b6040516108bf9190613805565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea919061446d565b6120bc565b005b3480156108fd57600080fd5b5061091860048036038101906109139190613ee8565b6120e1565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f557506109f482612164565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000009681565b606060048054610a2f906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5b906144c9565b8015610aa85780601f10610a7d57610100808354040283529160200191610aa8565b820191906000526020600020905b815481529060010190602001808311610a8b57829003601f168201915b5050505050905090565b6000610abd82612246565b610af3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b39826110b8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ba0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbf612294565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bf15750610bef81610bea612294565b612028565b155b15610c28576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3383838361229c565b505050565b7f000000000000000000000000000000000000000000000000000000000000000381565b610c6461234e565b80600a60148282829054906101000a900463ffffffff16610c859190614529565b92506101000a81548163ffffffff021916908363ffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000009663ffffffff16600a60149054906101000a900463ffffffff1663ffffffff161115610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b906145af565b60405180910390fd5b610d34828263ffffffff166123cc565b5050565b6000610d426123ea565b6003546002540303905090565b7f000000000000000000000000000000000000000000000000000000000000271081565b7f000000000000000000000000000000000000000000000000000000000000000081565b610da28383836123ef565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610f3c5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f466128a3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f7291906145cf565b610f7c9190614658565b90508160000151819350935050509250929050565b610f9961234e565b610fc2473373ffffffffffffffffffffffffffffffffffffffff166128ad90919063ffffffff16565b565b610fdf83838360405180602001604052806000815250611c96565b505050565b600a60189054906101000a900460ff1681565b606060008251905060008167ffffffffffffffff81111561101b5761101a613b97565b5b60405190808252806020026020018201604052801561105457816020015b6110416136a7565b8152602001906001900390816110395790505b50905060005b8281146110ad5761108485828151811061107757611076614689565b5b6020026020010151611d12565b82828151811061109757611096614689565b5b602002602001018190525080600101905061105a565b508092505050919050565b60006110c3826129a1565b600001519050919050565b6110d661234e565b6110e76110e16113e3565b82612c30565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611151576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111c161234e565b6111cb6000612dc4565b565b6111d561234e565b80600b90816111e49190614864565b5050565b606060008060006111f8856110ea565b905060008167ffffffffffffffff81111561121657611215613b97565b5b6040519080825280602002602001820160405280156112445781602001602082028036833780820191505090505b50905061124f6136a7565b60006112596123ea565b90505b8386146113d557600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001516113ca57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461136f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113c957808387806001019850815181106113bc576113bb614689565b5b6020026020010181815250505b5b80600101905061125c565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606005805461141c906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611448906144c9565b80156114955780601f1061146a57610100808354040283529160200191611495565b820191906000526020600020905b81548152906001019060200180831161147857829003601f168201915b5050505050905090565b60608183106114da576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060025490506114ea6123ea565b8510156114fc576114f96123ea565b94505b80841115611508578093505b6000611513876110ea565b905084861015611536576000868603905081811015611530578091505b5061153b565b600090505b60008167ffffffffffffffff81111561155757611556613b97565b5b6040519080825280602002602001820160405280156115855781602001602082028036833780820191505090505b5090506000820361159c5780945050505050611757565b60006115a788611d12565b9050600081604001516115bc57816000015190505b60008990505b8881141580156115d25750848714155b1561174957600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015161173e57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146116e357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173d57808488806001019950815181106117305761172f614689565b5b6020026020010181815250505b5b8060010190506115c2565b508583528296505050505050505b9392505050565b6117666136ea565b60007f00000000000000000000000000000000000000000000000000000000000000967f00000000000000000000000000000000000000000000000000000000000027106117b49190614936565b90506000600a60149054906101000a900463ffffffff166117d3612e8a565b6117dd9190614936565b90506040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000081526020017f000000000000000000000000000000000000000000000000000000000000271063ffffffff1681526020018363ffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000363ffffffff1681526020018263ffffffff16815260200161188a86612e9d565b63ffffffff1681526020018363ffffffff168363ffffffff16101515158152602001600a60189054906101000a900460ff16151581525092505050919050565b6118d2612294565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611936576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060096000611943612294565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119f0612294565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a359190613805565b60405180910390a35050565b600a60189054906101000a900460ff16611a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a87906149b6565b60405180910390fd5b6000611a9a611c6a565b90506000611aa6611f31565b9050611ab0611f31565b63ffffffff168284611ac29190614529565b63ffffffff161115611b09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0090614a22565b60405180910390fd5b6000611b1433612e9d565b90507f000000000000000000000000000000000000000000000000000000000000000363ffffffff168185611b499190614529565b63ffffffff161115611b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8790614a8e565b60405180910390fd5b6000807f00000000000000000000000000000000000000000000000000000000000000008287611bc09190614936565b63ffffffff16611bd091906145cf565b905080341015611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90614afa565b60405180910390fd5b611c25338763ffffffff166123cc565b80341115611c6257611c618134611c3c9190614b1a565b3373ffffffffffffffffffffffffffffffffffffffff166128ad90919063ffffffff16565b5b505050505050565b6000600a60149054906101000a900463ffffffff16611c87612e8a565b611c919190614936565b905090565b611ca18484846123ef565b611cc08373ffffffffffffffffffffffffffffffffffffffff16612f07565b8015611cd55750611cd384848484612f2a565b155b15611d0c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d1a6136a7565b611d226136a7565b611d2a6123ea565b831080611d3957506002548310155b15611d475780915050611e2a565b600660008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e1d5780915050611e2a565b611e26836129a1565b9150505b919050565b6060611e3a82612246565b611e70576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8054611e7f906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611eab906144c9565b8015611ef85780601f10611ecd57610100808354040283529160200191611ef8565b820191906000526020600020905b815481529060010190602001808311611edb57829003601f168201915b5050505050905080611f098461307a565b604051602001611f1a929190614bd6565b604051602081830303815290604052915050919050565b60007f00000000000000000000000000000000000000000000000000000000000000967f0000000000000000000000000000000000000000000000000000000000002710611f7f9190614936565b905090565b600b8054611f91906144c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbd906144c9565b801561200a5780601f10611fdf5761010080835404028352916020019161200a565b820191906000526020600020905b815481529060010190602001808311611fed57829003601f168201915b505050505081565b600a60149054906101000a900463ffffffff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120c461234e565b80600a60186101000a81548160ff02191690831515021790555050565b6120e961234e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214f90614c77565b60405180910390fd5b61216181612dc4565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061222f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061223f575061223e826131da565b5b9050919050565b6000816122516123ea565b11158015612260575060025482105b801561228d575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612356612294565b73ffffffffffffffffffffffffffffffffffffffff166123746113e3565b73ffffffffffffffffffffffffffffffffffffffff16146123ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c190614ce3565b60405180910390fd5b565b6123e6828260405180602001604052806000815250613254565b5050565b600090565b60006123fa826129a1565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612465576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612486612294565b73ffffffffffffffffffffffffffffffffffffffff1614806124b557506124b4856124af612294565b612028565b5b806124fa57506124c3612294565b73ffffffffffffffffffffffffffffffffffffffff166124e284610ab2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612533576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612599576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125a68585856001613266565b6125b26000848761229c565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600660008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600660008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361283157600254821461283057878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461289c858585600161326c565b5050505050565b6000612710905090565b804710156128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614d4f565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161291690614da0565b60006040518083038185875af1925050503d8060008114612953576040519150601f19603f3d011682016040523d82523d6000602084013e612958565b606091505b505090508061299c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299390614e27565b60405180910390fd5b505050565b6129a96136a7565b6000829050806129b76123ea565b111580156129c6575060025481105b15612bf9576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612bf757600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612adb578092505050612c2b565b5b600115612bf657818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612bf1578092505050612c2b565b612adc565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612c386128a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8d90614eb9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfc90614f25565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612e946123ea565b60025403905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f50612294565b8786866040518563ffffffff1660e01b8152600401612f729493929190614f9a565b6020604051808303816000875af1925050508015612fae57506040513d601f19601f82011682018060405250810190612fab9190614ffb565b60015b613027573d8060008114612fde576040519150601f19603f3d011682016040523d82523d6000602084013e612fe3565b606091505b50600081510361301f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036130c1576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131d5565b600082905060005b600082146130f35780806130dc90615028565b915050600a826130ec9190614658565b91506130c9565b60008167ffffffffffffffff81111561310f5761310e613b97565b5b6040519080825280601f01601f1916602001820160405280156131415781602001600182028036833780820191505090505b5090505b600085146131ce5760018261315a9190614b1a565b9150600a856131699190615070565b603061317591906150a1565b60f81b81838151811061318b5761318a614689565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131c79190614658565b9450613145565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061324d575061324c82613272565b5b9050919050565b61326183838360016132dc565b505050565b50505050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613349576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008403613383576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133906000868387613266565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561355a57506135598773ffffffffffffffffffffffffffffffffffffffff16612f07565b5b1561361f575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135cf6000888480600101955088612f2a565b613605576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80820361356057826002541461361a57600080fd5b61368a565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808203613620575b8160028190555050506136a0600086838761326c565b5050505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610100016040528060008152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff1681526020016000151581526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379a81613765565b81146137a557600080fd5b50565b6000813590506137b781613791565b92915050565b6000602082840312156137d3576137d261375b565b5b60006137e1848285016137a8565b91505092915050565b60008115159050919050565b6137ff816137ea565b82525050565b600060208201905061381a60008301846137f6565b92915050565b600063ffffffff82169050919050565b61383981613820565b82525050565b60006020820190506138546000830184613830565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613894578082015181840152602081019050613879565b838111156138a3576000848401525b50505050565b6000601f19601f8301169050919050565b60006138c58261385a565b6138cf8185613865565b93506138df818560208601613876565b6138e8816138a9565b840191505092915050565b6000602082019050818103600083015261390d81846138ba565b905092915050565b6000819050919050565b61392881613915565b811461393357600080fd5b50565b6000813590506139458161391f565b92915050565b6000602082840312156139615761396061375b565b5b600061396f84828501613936565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139a382613978565b9050919050565b6139b381613998565b82525050565b60006020820190506139ce60008301846139aa565b92915050565b6139dd81613998565b81146139e857600080fd5b50565b6000813590506139fa816139d4565b92915050565b60008060408385031215613a1757613a1661375b565b5b6000613a25858286016139eb565b9250506020613a3685828601613936565b9150509250929050565b613a4981613820565b8114613a5457600080fd5b50565b600081359050613a6681613a40565b92915050565b60008060408385031215613a8357613a8261375b565b5b6000613a91858286016139eb565b9250506020613aa285828601613a57565b9150509250929050565b613ab581613915565b82525050565b6000602082019050613ad06000830184613aac565b92915050565b600080600060608486031215613aef57613aee61375b565b5b6000613afd868287016139eb565b9350506020613b0e868287016139eb565b9250506040613b1f86828701613936565b9150509250925092565b60008060408385031215613b4057613b3f61375b565b5b6000613b4e85828601613936565b9250506020613b5f85828601613936565b9150509250929050565b6000604082019050613b7e60008301856139aa565b613b8b6020830184613aac565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bcf826138a9565b810181811067ffffffffffffffff82111715613bee57613bed613b97565b5b80604052505050565b6000613c01613751565b9050613c0d8282613bc6565b919050565b600067ffffffffffffffff821115613c2d57613c2c613b97565b5b602082029050602081019050919050565b600080fd5b6000613c56613c5184613c12565b613bf7565b90508083825260208201905060208402830185811115613c7957613c78613c3e565b5b835b81811015613ca25780613c8e8882613936565b845260208401935050602081019050613c7b565b5050509392505050565b600082601f830112613cc157613cc0613b92565b5b8135613cd1848260208601613c43565b91505092915050565b600060208284031215613cf057613cef61375b565b5b600082013567ffffffffffffffff811115613d0e57613d0d613760565b5b613d1a84828501613cac565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d5881613998565b82525050565b600067ffffffffffffffff82169050919050565b613d7b81613d5e565b82525050565b613d8a816137ea565b82525050565b606082016000820151613da66000850182613d4f565b506020820151613db96020850182613d72565b506040820151613dcc6040850182613d81565b50505050565b6000613dde8383613d90565b60608301905092915050565b6000602082019050919050565b6000613e0282613d23565b613e0c8185613d2e565b9350613e1783613d3f565b8060005b83811015613e48578151613e2f8882613dd2565b9750613e3a83613dea565b925050600181019050613e1b565b5085935050505092915050565b60006020820190508181036000830152613e6f8184613df7565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b613e9881613e77565b8114613ea357600080fd5b50565b600081359050613eb581613e8f565b92915050565b600060208284031215613ed157613ed061375b565b5b6000613edf84828501613ea6565b91505092915050565b600060208284031215613efe57613efd61375b565b5b6000613f0c848285016139eb565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f3557613f34613b97565b5b613f3e826138a9565b9050602081019050919050565b82818337600083830152505050565b6000613f6d613f6884613f1a565b613bf7565b905082815260208101848484011115613f8957613f88613f15565b5b613f94848285613f4b565b509392505050565b600082601f830112613fb157613fb0613b92565b5b8135613fc1848260208601613f5a565b91505092915050565b600060208284031215613fe057613fdf61375b565b5b600082013567ffffffffffffffff811115613ffe57613ffd613760565b5b61400a84828501613f9c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61404881613915565b82525050565b600061405a838361403f565b60208301905092915050565b6000602082019050919050565b600061407e82614013565b614088818561401e565b93506140938361402f565b8060005b838110156140c45781516140ab888261404e565b97506140b683614066565b925050600181019050614097565b5085935050505092915050565b600060208201905081810360008301526140eb8184614073565b905092915050565b60008060006060848603121561410c5761410b61375b565b5b600061411a868287016139eb565b935050602061412b86828701613936565b925050604061413c86828701613936565b9150509250925092565b61414f81613820565b82525050565b6101008201600082015161416c600085018261403f565b50602082015161417f6020850182614146565b5060408201516141926040850182614146565b5060608201516141a56060850182614146565b5060808201516141b86080850182614146565b5060a08201516141cb60a0850182614146565b5060c08201516141de60c0850182613d81565b5060e08201516141f160e0850182613d81565b50505050565b60006101008201905061420d6000830184614155565b92915050565b61421c816137ea565b811461422757600080fd5b50565b60008135905061423981614213565b92915050565b600080604083850312156142565761425561375b565b5b6000614264858286016139eb565b92505060206142758582860161422a565b9150509250929050565b6000602082840312156142955761429461375b565b5b60006142a384828501613a57565b91505092915050565b600067ffffffffffffffff8211156142c7576142c6613b97565b5b6142d0826138a9565b9050602081019050919050565b60006142f06142eb846142ac565b613bf7565b90508281526020810184848401111561430c5761430b613f15565b5b614317848285613f4b565b509392505050565b600082601f83011261433457614333613b92565b5b81356143448482602086016142dd565b91505092915050565b600080600080608085870312156143675761436661375b565b5b6000614375878288016139eb565b9450506020614386878288016139eb565b935050604061439787828801613936565b925050606085013567ffffffffffffffff8111156143b8576143b7613760565b5b6143c48782880161431f565b91505092959194509250565b6060820160008201516143e66000850182613d4f565b5060208201516143f96020850182613d72565b50604082015161440c6040850182613d81565b50505050565b600060608201905061442760008301846143d0565b92915050565b600080604083850312156144445761444361375b565b5b6000614452858286016139eb565b9250506020614463858286016139eb565b9150509250929050565b6000602082840312156144835761448261375b565b5b60006144918482850161422a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144e157607f821691505b6020821081036144f4576144f361449a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061453482613820565b915061453f83613820565b92508263ffffffff03821115614558576145576144fa565b5b828201905092915050565b7f4f7574206f6620737570706c7900000000000000000000000000000000000000600082015250565b6000614599600d83613865565b91506145a482614563565b602082019050919050565b600060208201905081810360008301526145c88161458c565b9050919050565b60006145da82613915565b91506145e583613915565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561461e5761461d6144fa565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061466382613915565b915061466e83613915565b92508261467e5761467d614629565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261471a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146dd565b61472486836146dd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061476161475c61475784613915565b61473c565b613915565b9050919050565b6000819050919050565b61477b83614746565b61478f61478782614768565b8484546146ea565b825550505050565b600090565b6147a4614797565b6147af818484614772565b505050565b5b818110156147d3576147c860008261479c565b6001810190506147b5565b5050565b601f821115614818576147e9816146b8565b6147f2846146cd565b81016020851015614801578190505b61481561480d856146cd565b8301826147b4565b50505b505050565b600082821c905092915050565b600061483b6000198460080261481d565b1980831691505092915050565b6000614854838361482a565b9150826002028217905092915050565b61486d8261385a565b67ffffffffffffffff81111561488657614885613b97565b5b61489082546144c9565b61489b8282856147d7565b600060209050601f8311600181146148ce57600084156148bc578287015190505b6148c68582614848565b86555061492e565b601f1984166148dc866146b8565b60005b82811015614904578489015182556001820191506020850194506020810190506148df565b86831015614921578489015161491d601f89168261482a565b8355505b6001600288020188555050505b505050505050565b600061494182613820565b915061494c83613820565b92508282101561495f5761495e6144fa565b5b828203905092915050565b7f53746f6e65206973206e6f742072656164790000000000000000000000000000600082015250565b60006149a0601283613865565b91506149ab8261496a565b602082019050919050565b600060208201905081810360008301526149cf81614993565b9050919050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b6000614a0c600883613865565b9150614a17826149d6565b602082019050919050565b60006020820190508181036000830152614a3b816149ff565b9050919050565b7f332053746f6e65207065722077616c6c65740000000000000000000000000000600082015250565b6000614a78601283613865565b9150614a8382614a42565b602082019050919050565b60006020820190508181036000830152614aa781614a6b565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614ae4600e83613865565b9150614aef82614aae565b602082019050919050565b60006020820190508181036000830152614b1381614ad7565b9050919050565b6000614b2582613915565b9150614b3083613915565b925082821015614b4357614b426144fa565b5b828203905092915050565b600081905092915050565b6000614b648261385a565b614b6e8185614b4e565b9350614b7e818560208601613876565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614bc0600583614b4e565b9150614bcb82614b8a565b600582019050919050565b6000614be28285614b59565b9150614bee8284614b59565b9150614bf982614bb3565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c61602683613865565b9150614c6c82614c05565b604082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ccd602083613865565b9150614cd882614c97565b602082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614d39601d83613865565b9150614d4482614d03565b602082019050919050565b60006020820190508181036000830152614d6881614d2c565b9050919050565b600081905092915050565b50565b6000614d8a600083614d6f565b9150614d9582614d7a565b600082019050919050565b6000614dab82614d7d565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614e11603a83613865565b9150614e1c82614db5565b604082019050919050565b60006020820190508181036000830152614e4081614e04565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614ea3602a83613865565b9150614eae82614e47565b604082019050919050565b60006020820190508181036000830152614ed281614e96565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f0f601983613865565b9150614f1a82614ed9565b602082019050919050565b60006020820190508181036000830152614f3e81614f02565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614f6c82614f45565b614f768185614f50565b9350614f86818560208601613876565b614f8f816138a9565b840191505092915050565b6000608082019050614faf60008301876139aa565b614fbc60208301866139aa565b614fc96040830185613aac565b8181036060830152614fdb8184614f61565b905095945050505050565b600081519050614ff581613791565b92915050565b6000602082840312156150115761501061375b565b5b600061501f84828501614fe6565b91505092915050565b600061503382613915565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615065576150646144fa565b5b600182019050919050565b600061507b82613915565b915061508683613915565b92508261509657615095614629565b5b828206905092915050565b60006150ac82613915565b91506150b783613915565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150ec576150eb6144fa565b5b82820190509291505056fea26469706673582212206f87d9465c2c4a5ee5f30612f4c15919c27aa0d6f3085e8cbed67fdb11fa7e4d64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000960000000000000000000000000000000000000000000000000000000000000003
-----Decoded View---------------
Arg [0] : price (uint256): 0
Arg [1] : maxSupply (uint32): 10000
Arg [2] : teamSupply (uint32): 150
Arg [3] : walletLimit (uint32): 3
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.