ERC-721
Overview
Max Total Supply
5,000 SAY
Holders
371
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
19 SAYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Sayonara
Compiler Version
v0.8.16+commit.07a7930e
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 Sayonara is ERC2981, ERC721AQueryable, Ownable { using Address for address payable; using Strings for uint256; uint256 public _price; uint32 public immutable _maxSupply; uint32 public immutable _teamSupply; uint32 public immutable _walletLimit; uint32 public _teamMinted; bool public _started; string public _metadataURI = "https://meta.sayonara-nft.xyz/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("Sayonara", "SAY") { require(maxSupply >= teamSupply); _price = price; _maxSupply = maxSupply; _teamSupply = teamSupply; _walletLimit = walletLimit; setFeeNumerator(750); } function mint(uint32 amount) external payable { require(_started, "Mint 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, "max per wallet reached"); 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 setPrice(uint256 price) external onlyOwner { _price = price; } 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 Sayonara.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":"uint256","name":"price","type":"uint256"}],"name":"setPrice","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
60e060405260405180606001604052806023815260200162005c4060239139600d90816200002e91906200078c565b503480156200003c57600080fd5b5060405162005c6338038062005c638339818101604052810190620000629190620008ea565b6040518060400160405280600881526020017f5361796f6e6172610000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f53415900000000000000000000000000000000000000000000000000000000008152508160049081620000df91906200078c565b508060059081620000f191906200078c565b5062000102620001a460201b60201c565b60028190555050506200012a6200011e620001a960201b60201c565b620001b160201b60201c565b8163ffffffff168363ffffffff1610156200014457600080fd5b83600b819055508263ffffffff1660808163ffffffff16815250508163ffffffff1660a08163ffffffff16815250508063ffffffff1660c08163ffffffff16815250506200019a6102ee6200027760201b60201c565b5050505062000ae9565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000287620002ab60201b60201c565b620002a86200029b6200033c60201b60201c565b826200036660201b60201c565b50565b620002bb620001a960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002e16200033c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200033a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200033190620009bd565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620003766200050860201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620003d7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003ce9062000a55565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000449576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004409062000ac7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059457607f821691505b602082108103620005aa57620005a96200054c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005d5565b620006208683620005d5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200066d62000667620006618462000638565b62000642565b62000638565b9050919050565b6000819050919050565b62000689836200064c565b620006a1620006988262000674565b848454620005e2565b825550505050565b600090565b620006b8620006a9565b620006c58184846200067e565b505050565b5b81811015620006ed57620006e1600082620006ae565b600181019050620006cb565b5050565b601f8211156200073c576200070681620005b0565b6200071184620005c5565b8101602085101562000721578190505b620007396200073085620005c5565b830182620006ca565b50505b505050565b600082821c905092915050565b6000620007616000198460080262000741565b1980831691505092915050565b60006200077c83836200074e565b9150826002028217905092915050565b620007978262000512565b67ffffffffffffffff811115620007b357620007b26200051d565b5b620007bf82546200057b565b620007cc828285620006f1565b600060209050601f831160018114620008045760008415620007ef578287015190505b620007fb85826200076e565b8655506200086b565b601f1984166200081486620005b0565b60005b828110156200083e5784890151825560018201915060208501945060208101905062000817565b868310156200085e57848901516200085a601f8916826200074e565b8355505b6001600288020188555050505b505050505050565b600080fd5b620008838162000638565b81146200088f57600080fd5b50565b600081519050620008a38162000878565b92915050565b600063ffffffff82169050919050565b620008c481620008a9565b8114620008d057600080fd5b50565b600081519050620008e481620008b9565b92915050565b6000806000806080858703121562000907576200090662000873565b5b6000620009178782880162000892565b94505060206200092a87828801620008d3565b93505060406200093d87828801620008d3565b92505060606200095087828801620008d3565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620009a56020836200095c565b9150620009b2826200096d565b602082019050919050565b60006020820190508181036000830152620009d88162000996565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000a3d602a836200095c565b915062000a4a82620009df565b604082019050919050565b6000602082019050818103600083015262000a708162000a2e565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000aaf6019836200095c565b915062000abc8262000a77565b602082019050919050565b6000602082019050818103600083015262000ae28162000aa0565b9050919050565b60805160a05160c0516150ef62000b5160003960008181610c6e015281816118550152611b22015260008181610a3201528181610cd9015281816117920152611f20015260008181610d85015281816117b30152818161181d0152611f4101526150ef6000f3fe6080604052600436106102305760003560e01c8063715018a61161012e578063aa073907116100ab578063d4a676231161006f578063d4a6762314610869578063dd48f07d14610894578063e985e9c5146108bf578063ef6b141a146108fc578063f2fde38b1461092557610230565b8063aa07390714610770578063b88d4fde1461079b578063c23dc68f146107c4578063c87b56dd14610801578063ccd5f6a21461083e57610230565b806395d89b41116100f257806395d89b411461068657806399a2557a146106b15780639a7cfa4f146106ee578063a22cb4651461072b578063a71bbebe1461075457610230565b8063715018a6146105b5578063750521f5146105cc5780638462151c146105f55780638da5cb5b1461063257806391b7f5ed1461065d57610230565b8063235b6ea1116101bc5780634df22a54116101805780634df22a54146104aa5780635bbb2177146104d55780636352211e14610512578063653a819e1461054f57806370a082311461057857610230565b8063235b6ea1146103d857806323b872dd146104035780632a55205a1461042c5780633ccfd60b1461046a57806342842e0e1461048157610230565b8063095ea7b311610203578063095ea7b3146103055780630e2351e21461032e57806317a5aced1461035957806318160ddd1461038257806322f4596f146103ad57610230565b806301ffc9a7146102355780630517431e1461027257806306fdde031461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906137a8565b61094e565b60405161026991906137f0565b60405180910390f35b34801561027e57600080fd5b50610287610a30565b604051610294919061382a565b60405180910390f35b3480156102a957600080fd5b506102b2610a54565b6040516102bf91906138d5565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea919061392d565b610ae6565b6040516102fc919061399b565b60405180910390f35b34801561031157600080fd5b5061032c600480360381019061032791906139e2565b610b62565b005b34801561033a57600080fd5b50610343610c6c565b604051610350919061382a565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b9190613a4e565b610c90565b005b34801561038e57600080fd5b50610397610d6c565b6040516103a49190613a9d565b60405180910390f35b3480156103b957600080fd5b506103c2610d83565b6040516103cf919061382a565b60405180910390f35b3480156103e457600080fd5b506103ed610da7565b6040516103fa9190613a9d565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613ab8565b610dad565b005b34801561043857600080fd5b50610453600480360381019061044e9190613b0b565b610dbd565b604051610461929190613b4b565b60405180910390f35b34801561047657600080fd5b5061047f610fa7565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613ab8565b610fda565b005b3480156104b657600080fd5b506104bf610ffa565b6040516104cc91906137f0565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613cbc565b61100d565b6040516105099190613e37565b60405180910390f35b34801561051e57600080fd5b506105396004803603810190610534919061392d565b6110ce565b604051610546919061399b565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190613e9d565b6110e4565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613eca565b611100565b6040516105ac9190613a9d565b60405180910390f35b3480156105c157600080fd5b506105ca6111cf565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190613fac565b6111e3565b005b34801561060157600080fd5b5061061c60048036038101906106179190613eca565b6111fe565b60405161062991906140b3565b60405180910390f35b34801561063e57600080fd5b506106476113f9565b604051610654919061399b565b60405180910390f35b34801561066957600080fd5b50610684600480360381019061067f919061392d565b611423565b005b34801561069257600080fd5b5061069b611435565b6040516106a891906138d5565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d391906140d5565b6114c7565b6040516106e591906140b3565b60405180910390f35b3480156106fa57600080fd5b5061071560048036038101906107109190613eca565b611786565b60405161072291906141d9565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190614221565b6118d4565b005b61076e60048036038101906107699190614261565b611a4b565b005b34801561077c57600080fd5b50610785611c55565b604051610792919061382a565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd919061432f565b611c81565b005b3480156107d057600080fd5b506107eb60048036038101906107e6919061392d565b611cfd565b6040516107f891906143f4565b60405180910390f35b34801561080d57600080fd5b506108286004803603810190610823919061392d565b611e1a565b60405161083591906138d5565b60405180910390f35b34801561084a57600080fd5b50610853611f1c565b604051610860919061382a565b60405180910390f35b34801561087557600080fd5b5061087e611f6f565b60405161088b91906138d5565b60405180910390f35b3480156108a057600080fd5b506108a9611ffd565b6040516108b6919061382a565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e1919061440f565b612013565b6040516108f391906137f0565b60405180910390f35b34801561090857600080fd5b50610923600480360381019061091e919061444f565b6120a7565b005b34801561093157600080fd5b5061094c60048036038101906109479190613eca565b6120cc565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1957507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a295750610a288261214f565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060048054610a63906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f906144ab565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182612231565b610b27576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b6d826110ce565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bd4576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bf361227f565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c255750610c2381610c1e61227f565b612013565b155b15610c5c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c67838383612287565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610c98612339565b80600c60008282829054906101000a900463ffffffff16610cb9919061450b565b92506101000a81548163ffffffff021916908363ffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000063ffffffff16600c60009054906101000a900463ffffffff1663ffffffff161115610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f9061458f565b60405180910390fd5b610d68828263ffffffff166123b7565b5050565b6000610d766123d5565b6003546002540303905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600b5481565b610db88383836123da565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610f525760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f5c61288e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f8891906145af565b610f929190614638565b90508160000151819350935050509250929050565b610faf612339565b610fd8473373ffffffffffffffffffffffffffffffffffffffff1661289890919063ffffffff16565b565b610ff583838360405180602001604052806000815250611c81565b505050565b600c60049054906101000a900460ff1681565b606060008251905060008167ffffffffffffffff81111561103157611030613b79565b5b60405190808252806020026020018201604052801561106a57816020015b611057613692565b81526020019060019003908161104f5790505b50905060005b8281146110c35761109a85828151811061108d5761108c614669565b5b6020026020010151611cfd565b8282815181106110ad576110ac614669565b5b6020026020010181905250806001019050611070565b508092505050919050565b60006110d98261298c565b600001519050919050565b6110ec612339565b6110fd6110f76113f9565b82612c1b565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611167576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111d7612339565b6111e16000612daf565b565b6111eb612339565b80600d90816111fa9190614844565b5050565b6060600080600061120e85611100565b905060008167ffffffffffffffff81111561122c5761122b613b79565b5b60405190808252806020026020018201604052801561125a5781602001602082028036833780820191505090505b509050611265613692565b600061126f6123d5565b90505b8386146113eb57600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001516113e057600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461138557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113df57808387806001019850815181106113d2576113d1614669565b5b6020026020010181815250505b5b806001019050611272565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61142b612339565b80600b8190555050565b606060058054611444906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611470906144ab565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050505050905090565b6060818310611502576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060025490506115126123d5565b851015611524576115216123d5565b94505b80841115611530578093505b600061153b87611100565b90508486101561155e576000868603905081811015611558578091505b50611563565b600090505b60008167ffffffffffffffff81111561157f5761157e613b79565b5b6040519080825280602002602001820160405280156115ad5781602001602082028036833780820191505090505b509050600082036115c4578094505050505061177f565b60006115cf88611cfd565b9050600081604001516115e457816000015190505b60008990505b8881141580156115fa5750848714155b1561177157600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015161176657600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461170b57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611765578084888060010199508151811061175857611757614669565b5b6020026020010181815250505b5b8060010190506115ea565b508583528296505050505050505b9392505050565b61178e6136d5565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006117dc9190614916565b90506000600c60009054906101000a900463ffffffff166117fb612e75565b6118059190614916565b9050604051806101000160405280600b5481526020017f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681526020018363ffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000063ffffffff1681526020018263ffffffff16815260200161189486612e88565b63ffffffff1681526020018363ffffffff168363ffffffff16101515158152602001600c60049054906101000a900460ff16151581525092505050919050565b6118dc61227f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611940576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806009600061194d61227f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119fa61227f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a3f91906137f0565b60405180910390a35050565b600c60049054906101000a900460ff16611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a919061499a565b60405180910390fd5b6000611aa4611c55565b90506000611ab0611f1c565b9050611aba611f1c565b63ffffffff168284611acc919061450b565b63ffffffff161115611b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0a90614a06565b60405180910390fd5b6000611b1e33612e88565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168185611b53919061450b565b63ffffffff161115611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190614a72565b60405180910390fd5b600080600b548287611bac9190614916565b63ffffffff16611bbc91906145af565b905080341015611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890614ade565b60405180910390fd5b611c11338763ffffffff166123b7565b803410611c4d57611c4c8134611c279190614afe565b3373ffffffffffffffffffffffffffffffffffffffff1661289890919063ffffffff16565b5b505050505050565b6000600c60009054906101000a900463ffffffff16611c72612e75565b611c7c9190614916565b905090565b611c8c8484846123da565b611cab8373ffffffffffffffffffffffffffffffffffffffff16612ef2565b8015611cc05750611cbe84848484612f15565b155b15611cf7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d05613692565b611d0d613692565b611d156123d5565b831080611d2457506002548310155b15611d325780915050611e15565b600660008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e085780915050611e15565b611e118361298c565b9150505b919050565b6060611e2582612231565b611e5b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d8054611e6a906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611e96906144ab565b8015611ee35780601f10611eb857610100808354040283529160200191611ee3565b820191906000526020600020905b815481529060010190602001808311611ec657829003601f168201915b5050505050905080611ef484613065565b604051602001611f05929190614bba565b604051602081830303815290604052915050919050565b60007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611f6a9190614916565b905090565b600d8054611f7c906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa8906144ab565b8015611ff55780601f10611fca57610100808354040283529160200191611ff5565b820191906000526020600020905b815481529060010190602001808311611fd857829003601f168201915b505050505081565b600c60009054906101000a900463ffffffff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120af612339565b80600c60046101000a81548160ff02191690831515021790555050565b6120d4612339565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213a90614c5b565b60405180910390fd5b61214c81612daf565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061221a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061222a5750612229826131c5565b5b9050919050565b60008161223c6123d5565b1115801561224b575060025482105b8015612278575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61234161227f565b73ffffffffffffffffffffffffffffffffffffffff1661235f6113f9565b73ffffffffffffffffffffffffffffffffffffffff16146123b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ac90614cc7565b60405180910390fd5b565b6123d182826040518060200160405280600081525061323f565b5050565b600090565b60006123e58261298c565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612450576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661247161227f565b73ffffffffffffffffffffffffffffffffffffffff1614806124a0575061249f8561249a61227f565b612013565b5b806124e557506124ae61227f565b73ffffffffffffffffffffffffffffffffffffffff166124cd84610ae6565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061251e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612584576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125918585856001613251565b61259d60008487612287565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600660008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600660008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361281c57600254821461281b57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128878585856001613257565b5050505050565b6000612710905090565b804710156128db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d290614d33565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161290190614d84565b60006040518083038185875af1925050503d806000811461293e576040519150601f19603f3d011682016040523d82523d6000602084013e612943565b606091505b5050905080612987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297e90614e0b565b60405180910390fd5b505050565b612994613692565b6000829050806129a26123d5565b111580156129b1575060025481105b15612be4576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612be257600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ac6578092505050612c16565b5b600115612be157818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612bdc578092505050612c16565b612ac7565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612c2361288e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7890614e9d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce790614f09565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612e7f6123d5565b60025403905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f3b61227f565b8786866040518563ffffffff1660e01b8152600401612f5d9493929190614f7e565b6020604051808303816000875af1925050508015612f9957506040513d601f19601f82011682018060405250810190612f969190614fdf565b60015b613012573d8060008114612fc9576040519150601f19603f3d011682016040523d82523d6000602084013e612fce565b606091505b50600081510361300a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036130ac576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131c0565b600082905060005b600082146130de5780806130c79061500c565b915050600a826130d79190614638565b91506130b4565b60008167ffffffffffffffff8111156130fa576130f9613b79565b5b6040519080825280601f01601f19166020018201604052801561312c5781602001600182028036833780820191505090505b5090505b600085146131b9576001826131459190614afe565b9150600a856131549190615054565b60306131609190615085565b60f81b81838151811061317657613175614669565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131b29190614638565b9450613130565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061323857506132378261325d565b5b9050919050565b61324c83838360016132c7565b505050565b50505050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613334576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000840361336e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61337b6000868387613251565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561354557506135448773ffffffffffffffffffffffffffffffffffffffff16612ef2565b5b1561360a575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135ba6000888480600101955088612f15565b6135f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80820361354b57826002541461360557600080fd5b613675565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480820361360b575b81600281905550505061368b6000868387613257565b5050505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610100016040528060008152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff1681526020016000151581526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61378581613750565b811461379057600080fd5b50565b6000813590506137a28161377c565b92915050565b6000602082840312156137be576137bd613746565b5b60006137cc84828501613793565b91505092915050565b60008115159050919050565b6137ea816137d5565b82525050565b600060208201905061380560008301846137e1565b92915050565b600063ffffffff82169050919050565b6138248161380b565b82525050565b600060208201905061383f600083018461381b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561387f578082015181840152602081019050613864565b60008484015250505050565b6000601f19601f8301169050919050565b60006138a782613845565b6138b18185613850565b93506138c1818560208601613861565b6138ca8161388b565b840191505092915050565b600060208201905081810360008301526138ef818461389c565b905092915050565b6000819050919050565b61390a816138f7565b811461391557600080fd5b50565b60008135905061392781613901565b92915050565b60006020828403121561394357613942613746565b5b600061395184828501613918565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139858261395a565b9050919050565b6139958161397a565b82525050565b60006020820190506139b0600083018461398c565b92915050565b6139bf8161397a565b81146139ca57600080fd5b50565b6000813590506139dc816139b6565b92915050565b600080604083850312156139f9576139f8613746565b5b6000613a07858286016139cd565b9250506020613a1885828601613918565b9150509250929050565b613a2b8161380b565b8114613a3657600080fd5b50565b600081359050613a4881613a22565b92915050565b60008060408385031215613a6557613a64613746565b5b6000613a73858286016139cd565b9250506020613a8485828601613a39565b9150509250929050565b613a97816138f7565b82525050565b6000602082019050613ab26000830184613a8e565b92915050565b600080600060608486031215613ad157613ad0613746565b5b6000613adf868287016139cd565b9350506020613af0868287016139cd565b9250506040613b0186828701613918565b9150509250925092565b60008060408385031215613b2257613b21613746565b5b6000613b3085828601613918565b9250506020613b4185828601613918565b9150509250929050565b6000604082019050613b60600083018561398c565b613b6d6020830184613a8e565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bb18261388b565b810181811067ffffffffffffffff82111715613bd057613bcf613b79565b5b80604052505050565b6000613be361373c565b9050613bef8282613ba8565b919050565b600067ffffffffffffffff821115613c0f57613c0e613b79565b5b602082029050602081019050919050565b600080fd5b6000613c38613c3384613bf4565b613bd9565b90508083825260208201905060208402830185811115613c5b57613c5a613c20565b5b835b81811015613c845780613c708882613918565b845260208401935050602081019050613c5d565b5050509392505050565b600082601f830112613ca357613ca2613b74565b5b8135613cb3848260208601613c25565b91505092915050565b600060208284031215613cd257613cd1613746565b5b600082013567ffffffffffffffff811115613cf057613cef61374b565b5b613cfc84828501613c8e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d3a8161397a565b82525050565b600067ffffffffffffffff82169050919050565b613d5d81613d40565b82525050565b613d6c816137d5565b82525050565b606082016000820151613d886000850182613d31565b506020820151613d9b6020850182613d54565b506040820151613dae6040850182613d63565b50505050565b6000613dc08383613d72565b60608301905092915050565b6000602082019050919050565b6000613de482613d05565b613dee8185613d10565b9350613df983613d21565b8060005b83811015613e2a578151613e118882613db4565b9750613e1c83613dcc565b925050600181019050613dfd565b5085935050505092915050565b60006020820190508181036000830152613e518184613dd9565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b613e7a81613e59565b8114613e8557600080fd5b50565b600081359050613e9781613e71565b92915050565b600060208284031215613eb357613eb2613746565b5b6000613ec184828501613e88565b91505092915050565b600060208284031215613ee057613edf613746565b5b6000613eee848285016139cd565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f1757613f16613b79565b5b613f208261388b565b9050602081019050919050565b82818337600083830152505050565b6000613f4f613f4a84613efc565b613bd9565b905082815260208101848484011115613f6b57613f6a613ef7565b5b613f76848285613f2d565b509392505050565b600082601f830112613f9357613f92613b74565b5b8135613fa3848260208601613f3c565b91505092915050565b600060208284031215613fc257613fc1613746565b5b600082013567ffffffffffffffff811115613fe057613fdf61374b565b5b613fec84828501613f7e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61402a816138f7565b82525050565b600061403c8383614021565b60208301905092915050565b6000602082019050919050565b600061406082613ff5565b61406a8185614000565b935061407583614011565b8060005b838110156140a657815161408d8882614030565b975061409883614048565b925050600181019050614079565b5085935050505092915050565b600060208201905081810360008301526140cd8184614055565b905092915050565b6000806000606084860312156140ee576140ed613746565b5b60006140fc868287016139cd565b935050602061410d86828701613918565b925050604061411e86828701613918565b9150509250925092565b6141318161380b565b82525050565b6101008201600082015161414e6000850182614021565b5060208201516141616020850182614128565b5060408201516141746040850182614128565b5060608201516141876060850182614128565b50608082015161419a6080850182614128565b5060a08201516141ad60a0850182614128565b5060c08201516141c060c0850182613d63565b5060e08201516141d360e0850182613d63565b50505050565b6000610100820190506141ef6000830184614137565b92915050565b6141fe816137d5565b811461420957600080fd5b50565b60008135905061421b816141f5565b92915050565b6000806040838503121561423857614237613746565b5b6000614246858286016139cd565b92505060206142578582860161420c565b9150509250929050565b60006020828403121561427757614276613746565b5b600061428584828501613a39565b91505092915050565b600067ffffffffffffffff8211156142a9576142a8613b79565b5b6142b28261388b565b9050602081019050919050565b60006142d26142cd8461428e565b613bd9565b9050828152602081018484840111156142ee576142ed613ef7565b5b6142f9848285613f2d565b509392505050565b600082601f83011261431657614315613b74565b5b81356143268482602086016142bf565b91505092915050565b6000806000806080858703121561434957614348613746565b5b6000614357878288016139cd565b9450506020614368878288016139cd565b935050604061437987828801613918565b925050606085013567ffffffffffffffff81111561439a5761439961374b565b5b6143a687828801614301565b91505092959194509250565b6060820160008201516143c86000850182613d31565b5060208201516143db6020850182613d54565b5060408201516143ee6040850182613d63565b50505050565b600060608201905061440960008301846143b2565b92915050565b6000806040838503121561442657614425613746565b5b6000614434858286016139cd565b9250506020614445858286016139cd565b9150509250929050565b60006020828403121561446557614464613746565b5b60006144738482850161420c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144c357607f821691505b6020821081036144d6576144d561447c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145168261380b565b91506145218361380b565b9250828201905063ffffffff81111561453d5761453c6144dc565b5b92915050565b7f4f7574206f6620737570706c7900000000000000000000000000000000000000600082015250565b6000614579600d83613850565b915061458482614543565b602082019050919050565b600060208201905081810360008301526145a88161456c565b9050919050565b60006145ba826138f7565b91506145c5836138f7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145fe576145fd6144dc565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614643826138f7565b915061464e836138f7565b92508261465e5761465d614609565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146fa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146bd565b61470486836146bd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061474161473c614737846138f7565b61471c565b6138f7565b9050919050565b6000819050919050565b61475b83614726565b61476f61476782614748565b8484546146ca565b825550505050565b600090565b614784614777565b61478f818484614752565b505050565b5b818110156147b3576147a860008261477c565b600181019050614795565b5050565b601f8211156147f8576147c981614698565b6147d2846146ad565b810160208510156147e1578190505b6147f56147ed856146ad565b830182614794565b50505b505050565b600082821c905092915050565b600061481b600019846008026147fd565b1980831691505092915050565b6000614834838361480a565b9150826002028217905092915050565b61484d82613845565b67ffffffffffffffff81111561486657614865613b79565b5b61487082546144ab565b61487b8282856147b7565b600060209050601f8311600181146148ae576000841561489c578287015190505b6148a68582614828565b86555061490e565b601f1984166148bc86614698565b60005b828110156148e4578489015182556001820191506020850194506020810190506148bf565b8683101561490157848901516148fd601f89168261480a565b8355505b6001600288020188555050505b505050505050565b60006149218261380b565b915061492c8361380b565b9250828203905063ffffffff811115614948576149476144dc565b5b92915050565b7f4d696e74206973206e6f74207265616479000000000000000000000000000000600082015250565b6000614984601183613850565b915061498f8261494e565b602082019050919050565b600060208201905081810360008301526149b381614977565b9050919050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b60006149f0600883613850565b91506149fb826149ba565b602082019050919050565b60006020820190508181036000830152614a1f816149e3565b9050919050565b7f6d6178207065722077616c6c6574207265616368656400000000000000000000600082015250565b6000614a5c601683613850565b9150614a6782614a26565b602082019050919050565b60006020820190508181036000830152614a8b81614a4f565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614ac8600e83613850565b9150614ad382614a92565b602082019050919050565b60006020820190508181036000830152614af781614abb565b9050919050565b6000614b09826138f7565b9150614b14836138f7565b9250828203905081811115614b2c57614b2b6144dc565b5b92915050565b600081905092915050565b6000614b4882613845565b614b528185614b32565b9350614b62818560208601613861565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ba4600583614b32565b9150614baf82614b6e565b600582019050919050565b6000614bc68285614b3d565b9150614bd28284614b3d565b9150614bdd82614b97565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c45602683613850565b9150614c5082614be9565b604082019050919050565b60006020820190508181036000830152614c7481614c38565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cb1602083613850565b9150614cbc82614c7b565b602082019050919050565b60006020820190508181036000830152614ce081614ca4565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614d1d601d83613850565b9150614d2882614ce7565b602082019050919050565b60006020820190508181036000830152614d4c81614d10565b9050919050565b600081905092915050565b50565b6000614d6e600083614d53565b9150614d7982614d5e565b600082019050919050565b6000614d8f82614d61565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614df5603a83613850565b9150614e0082614d99565b604082019050919050565b60006020820190508181036000830152614e2481614de8565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614e87602a83613850565b9150614e9282614e2b565b604082019050919050565b60006020820190508181036000830152614eb681614e7a565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614ef3601983613850565b9150614efe82614ebd565b602082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614f5082614f29565b614f5a8185614f34565b9350614f6a818560208601613861565b614f738161388b565b840191505092915050565b6000608082019050614f93600083018761398c565b614fa0602083018661398c565b614fad6040830185613a8e565b8181036060830152614fbf8184614f45565b905095945050505050565b600081519050614fd98161377c565b92915050565b600060208284031215614ff557614ff4613746565b5b600061500384828501614fca565b91505092915050565b6000615017826138f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615049576150486144dc565b5b600182019050919050565b600061505f826138f7565b915061506a836138f7565b92508261507a57615079614609565b5b828206905092915050565b6000615090826138f7565b915061509b836138f7565b92508282019050808211156150b3576150b26144dc565b5b9291505056fea2646970667358221220c64baeb30fd54639f4b8c368e9d2f8d84b0369ea3659696964864cb30b67ed4f64736f6c6343000810003368747470733a2f2f6d6574612e7361796f6e6172612d6e66742e78797a2f6a736f6e2f00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000014
Deployed Bytecode
0x6080604052600436106102305760003560e01c8063715018a61161012e578063aa073907116100ab578063d4a676231161006f578063d4a6762314610869578063dd48f07d14610894578063e985e9c5146108bf578063ef6b141a146108fc578063f2fde38b1461092557610230565b8063aa07390714610770578063b88d4fde1461079b578063c23dc68f146107c4578063c87b56dd14610801578063ccd5f6a21461083e57610230565b806395d89b41116100f257806395d89b411461068657806399a2557a146106b15780639a7cfa4f146106ee578063a22cb4651461072b578063a71bbebe1461075457610230565b8063715018a6146105b5578063750521f5146105cc5780638462151c146105f55780638da5cb5b1461063257806391b7f5ed1461065d57610230565b8063235b6ea1116101bc5780634df22a54116101805780634df22a54146104aa5780635bbb2177146104d55780636352211e14610512578063653a819e1461054f57806370a082311461057857610230565b8063235b6ea1146103d857806323b872dd146104035780632a55205a1461042c5780633ccfd60b1461046a57806342842e0e1461048157610230565b8063095ea7b311610203578063095ea7b3146103055780630e2351e21461032e57806317a5aced1461035957806318160ddd1461038257806322f4596f146103ad57610230565b806301ffc9a7146102355780630517431e1461027257806306fdde031461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906137a8565b61094e565b60405161026991906137f0565b60405180910390f35b34801561027e57600080fd5b50610287610a30565b604051610294919061382a565b60405180910390f35b3480156102a957600080fd5b506102b2610a54565b6040516102bf91906138d5565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea919061392d565b610ae6565b6040516102fc919061399b565b60405180910390f35b34801561031157600080fd5b5061032c600480360381019061032791906139e2565b610b62565b005b34801561033a57600080fd5b50610343610c6c565b604051610350919061382a565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b9190613a4e565b610c90565b005b34801561038e57600080fd5b50610397610d6c565b6040516103a49190613a9d565b60405180910390f35b3480156103b957600080fd5b506103c2610d83565b6040516103cf919061382a565b60405180910390f35b3480156103e457600080fd5b506103ed610da7565b6040516103fa9190613a9d565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613ab8565b610dad565b005b34801561043857600080fd5b50610453600480360381019061044e9190613b0b565b610dbd565b604051610461929190613b4b565b60405180910390f35b34801561047657600080fd5b5061047f610fa7565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613ab8565b610fda565b005b3480156104b657600080fd5b506104bf610ffa565b6040516104cc91906137f0565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613cbc565b61100d565b6040516105099190613e37565b60405180910390f35b34801561051e57600080fd5b506105396004803603810190610534919061392d565b6110ce565b604051610546919061399b565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190613e9d565b6110e4565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613eca565b611100565b6040516105ac9190613a9d565b60405180910390f35b3480156105c157600080fd5b506105ca6111cf565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190613fac565b6111e3565b005b34801561060157600080fd5b5061061c60048036038101906106179190613eca565b6111fe565b60405161062991906140b3565b60405180910390f35b34801561063e57600080fd5b506106476113f9565b604051610654919061399b565b60405180910390f35b34801561066957600080fd5b50610684600480360381019061067f919061392d565b611423565b005b34801561069257600080fd5b5061069b611435565b6040516106a891906138d5565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d391906140d5565b6114c7565b6040516106e591906140b3565b60405180910390f35b3480156106fa57600080fd5b5061071560048036038101906107109190613eca565b611786565b60405161072291906141d9565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190614221565b6118d4565b005b61076e60048036038101906107699190614261565b611a4b565b005b34801561077c57600080fd5b50610785611c55565b604051610792919061382a565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd919061432f565b611c81565b005b3480156107d057600080fd5b506107eb60048036038101906107e6919061392d565b611cfd565b6040516107f891906143f4565b60405180910390f35b34801561080d57600080fd5b506108286004803603810190610823919061392d565b611e1a565b60405161083591906138d5565b60405180910390f35b34801561084a57600080fd5b50610853611f1c565b604051610860919061382a565b60405180910390f35b34801561087557600080fd5b5061087e611f6f565b60405161088b91906138d5565b60405180910390f35b3480156108a057600080fd5b506108a9611ffd565b6040516108b6919061382a565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e1919061440f565b612013565b6040516108f391906137f0565b60405180910390f35b34801561090857600080fd5b50610923600480360381019061091e919061444f565b6120a7565b005b34801561093157600080fd5b5061094c60048036038101906109479190613eca565b6120cc565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1957507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a295750610a288261214f565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000012c81565b606060048054610a63906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f906144ab565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182612231565b610b27576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b6d826110ce565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bd4576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bf361227f565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c255750610c2381610c1e61227f565b612013565b155b15610c5c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c67838383612287565b505050565b7f000000000000000000000000000000000000000000000000000000000000001481565b610c98612339565b80600c60008282829054906101000a900463ffffffff16610cb9919061450b565b92506101000a81548163ffffffff021916908363ffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000012c63ffffffff16600c60009054906101000a900463ffffffff1663ffffffff161115610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f9061458f565b60405180910390fd5b610d68828263ffffffff166123b7565b5050565b6000610d766123d5565b6003546002540303905090565b7f000000000000000000000000000000000000000000000000000000000000138881565b600b5481565b610db88383836123da565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610f525760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f5c61288e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f8891906145af565b610f929190614638565b90508160000151819350935050509250929050565b610faf612339565b610fd8473373ffffffffffffffffffffffffffffffffffffffff1661289890919063ffffffff16565b565b610ff583838360405180602001604052806000815250611c81565b505050565b600c60049054906101000a900460ff1681565b606060008251905060008167ffffffffffffffff81111561103157611030613b79565b5b60405190808252806020026020018201604052801561106a57816020015b611057613692565b81526020019060019003908161104f5790505b50905060005b8281146110c35761109a85828151811061108d5761108c614669565b5b6020026020010151611cfd565b8282815181106110ad576110ac614669565b5b6020026020010181905250806001019050611070565b508092505050919050565b60006110d98261298c565b600001519050919050565b6110ec612339565b6110fd6110f76113f9565b82612c1b565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611167576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111d7612339565b6111e16000612daf565b565b6111eb612339565b80600d90816111fa9190614844565b5050565b6060600080600061120e85611100565b905060008167ffffffffffffffff81111561122c5761122b613b79565b5b60405190808252806020026020018201604052801561125a5781602001602082028036833780820191505090505b509050611265613692565b600061126f6123d5565b90505b8386146113eb57600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001516113e057600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461138557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113df57808387806001019850815181106113d2576113d1614669565b5b6020026020010181815250505b5b806001019050611272565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61142b612339565b80600b8190555050565b606060058054611444906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611470906144ab565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050505050905090565b6060818310611502576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060025490506115126123d5565b851015611524576115216123d5565b94505b80841115611530578093505b600061153b87611100565b90508486101561155e576000868603905081811015611558578091505b50611563565b600090505b60008167ffffffffffffffff81111561157f5761157e613b79565b5b6040519080825280602002602001820160405280156115ad5781602001602082028036833780820191505090505b509050600082036115c4578094505050505061177f565b60006115cf88611cfd565b9050600081604001516115e457816000015190505b60008990505b8881141580156115fa5750848714155b1561177157600660008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015161176657600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461170b57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611765578084888060010199508151811061175857611757614669565b5b6020026020010181815250505b5b8060010190506115ea565b508583528296505050505050505b9392505050565b61178e6136d5565b60007f000000000000000000000000000000000000000000000000000000000000012c7f00000000000000000000000000000000000000000000000000000000000013886117dc9190614916565b90506000600c60009054906101000a900463ffffffff166117fb612e75565b6118059190614916565b9050604051806101000160405280600b5481526020017f000000000000000000000000000000000000000000000000000000000000138863ffffffff1681526020018363ffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000001463ffffffff1681526020018263ffffffff16815260200161189486612e88565b63ffffffff1681526020018363ffffffff168363ffffffff16101515158152602001600c60049054906101000a900460ff16151581525092505050919050565b6118dc61227f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611940576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806009600061194d61227f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119fa61227f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a3f91906137f0565b60405180910390a35050565b600c60049054906101000a900460ff16611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a919061499a565b60405180910390fd5b6000611aa4611c55565b90506000611ab0611f1c565b9050611aba611f1c565b63ffffffff168284611acc919061450b565b63ffffffff161115611b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0a90614a06565b60405180910390fd5b6000611b1e33612e88565b90507f000000000000000000000000000000000000000000000000000000000000001463ffffffff168185611b53919061450b565b63ffffffff161115611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190614a72565b60405180910390fd5b600080600b548287611bac9190614916565b63ffffffff16611bbc91906145af565b905080341015611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890614ade565b60405180910390fd5b611c11338763ffffffff166123b7565b803410611c4d57611c4c8134611c279190614afe565b3373ffffffffffffffffffffffffffffffffffffffff1661289890919063ffffffff16565b5b505050505050565b6000600c60009054906101000a900463ffffffff16611c72612e75565b611c7c9190614916565b905090565b611c8c8484846123da565b611cab8373ffffffffffffffffffffffffffffffffffffffff16612ef2565b8015611cc05750611cbe84848484612f15565b155b15611cf7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611d05613692565b611d0d613692565b611d156123d5565b831080611d2457506002548310155b15611d325780915050611e15565b600660008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e085780915050611e15565b611e118361298c565b9150505b919050565b6060611e2582612231565b611e5b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d8054611e6a906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611e96906144ab565b8015611ee35780601f10611eb857610100808354040283529160200191611ee3565b820191906000526020600020905b815481529060010190602001808311611ec657829003601f168201915b5050505050905080611ef484613065565b604051602001611f05929190614bba565b604051602081830303815290604052915050919050565b60007f000000000000000000000000000000000000000000000000000000000000012c7f0000000000000000000000000000000000000000000000000000000000001388611f6a9190614916565b905090565b600d8054611f7c906144ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa8906144ab565b8015611ff55780601f10611fca57610100808354040283529160200191611ff5565b820191906000526020600020905b815481529060010190602001808311611fd857829003601f168201915b505050505081565b600c60009054906101000a900463ffffffff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120af612339565b80600c60046101000a81548160ff02191690831515021790555050565b6120d4612339565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213a90614c5b565b60405180910390fd5b61214c81612daf565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061221a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061222a5750612229826131c5565b5b9050919050565b60008161223c6123d5565b1115801561224b575060025482105b8015612278575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61234161227f565b73ffffffffffffffffffffffffffffffffffffffff1661235f6113f9565b73ffffffffffffffffffffffffffffffffffffffff16146123b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ac90614cc7565b60405180910390fd5b565b6123d182826040518060200160405280600081525061323f565b5050565b600090565b60006123e58261298c565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612450576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661247161227f565b73ffffffffffffffffffffffffffffffffffffffff1614806124a0575061249f8561249a61227f565b612013565b5b806124e557506124ae61227f565b73ffffffffffffffffffffffffffffffffffffffff166124cd84610ae6565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061251e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612584576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125918585856001613251565b61259d60008487612287565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600660008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600660008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361281c57600254821461281b57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128878585856001613257565b5050505050565b6000612710905090565b804710156128db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d290614d33565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161290190614d84565b60006040518083038185875af1925050503d806000811461293e576040519150601f19603f3d011682016040523d82523d6000602084013e612943565b606091505b5050905080612987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297e90614e0b565b60405180910390fd5b505050565b612994613692565b6000829050806129a26123d5565b111580156129b1575060025481105b15612be4576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612be257600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ac6578092505050612c16565b5b600115612be157818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612bdc578092505050612c16565b612ac7565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612c2361288e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7890614e9d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce790614f09565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612e7f6123d5565b60025403905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f3b61227f565b8786866040518563ffffffff1660e01b8152600401612f5d9493929190614f7e565b6020604051808303816000875af1925050508015612f9957506040513d601f19601f82011682018060405250810190612f969190614fdf565b60015b613012573d8060008114612fc9576040519150601f19603f3d011682016040523d82523d6000602084013e612fce565b606091505b50600081510361300a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036130ac576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131c0565b600082905060005b600082146130de5780806130c79061500c565b915050600a826130d79190614638565b91506130b4565b60008167ffffffffffffffff8111156130fa576130f9613b79565b5b6040519080825280601f01601f19166020018201604052801561312c5781602001600182028036833780820191505090505b5090505b600085146131b9576001826131459190614afe565b9150600a856131549190615054565b60306131609190615085565b60f81b81838151811061317657613175614669565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131b29190614638565b9450613130565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061323857506132378261325d565b5b9050919050565b61324c83838360016132c7565b505050565b50505050565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613334576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000840361336e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61337b6000868387613251565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561354557506135448773ffffffffffffffffffffffffffffffffffffffff16612ef2565b5b1561360a575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135ba6000888480600101955088612f15565b6135f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80820361354b57826002541461360557600080fd5b613675565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480820361360b575b81600281905550505061368b6000868387613257565b5050505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610100016040528060008152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff168152602001600063ffffffff1681526020016000151581526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61378581613750565b811461379057600080fd5b50565b6000813590506137a28161377c565b92915050565b6000602082840312156137be576137bd613746565b5b60006137cc84828501613793565b91505092915050565b60008115159050919050565b6137ea816137d5565b82525050565b600060208201905061380560008301846137e1565b92915050565b600063ffffffff82169050919050565b6138248161380b565b82525050565b600060208201905061383f600083018461381b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561387f578082015181840152602081019050613864565b60008484015250505050565b6000601f19601f8301169050919050565b60006138a782613845565b6138b18185613850565b93506138c1818560208601613861565b6138ca8161388b565b840191505092915050565b600060208201905081810360008301526138ef818461389c565b905092915050565b6000819050919050565b61390a816138f7565b811461391557600080fd5b50565b60008135905061392781613901565b92915050565b60006020828403121561394357613942613746565b5b600061395184828501613918565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139858261395a565b9050919050565b6139958161397a565b82525050565b60006020820190506139b0600083018461398c565b92915050565b6139bf8161397a565b81146139ca57600080fd5b50565b6000813590506139dc816139b6565b92915050565b600080604083850312156139f9576139f8613746565b5b6000613a07858286016139cd565b9250506020613a1885828601613918565b9150509250929050565b613a2b8161380b565b8114613a3657600080fd5b50565b600081359050613a4881613a22565b92915050565b60008060408385031215613a6557613a64613746565b5b6000613a73858286016139cd565b9250506020613a8485828601613a39565b9150509250929050565b613a97816138f7565b82525050565b6000602082019050613ab26000830184613a8e565b92915050565b600080600060608486031215613ad157613ad0613746565b5b6000613adf868287016139cd565b9350506020613af0868287016139cd565b9250506040613b0186828701613918565b9150509250925092565b60008060408385031215613b2257613b21613746565b5b6000613b3085828601613918565b9250506020613b4185828601613918565b9150509250929050565b6000604082019050613b60600083018561398c565b613b6d6020830184613a8e565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bb18261388b565b810181811067ffffffffffffffff82111715613bd057613bcf613b79565b5b80604052505050565b6000613be361373c565b9050613bef8282613ba8565b919050565b600067ffffffffffffffff821115613c0f57613c0e613b79565b5b602082029050602081019050919050565b600080fd5b6000613c38613c3384613bf4565b613bd9565b90508083825260208201905060208402830185811115613c5b57613c5a613c20565b5b835b81811015613c845780613c708882613918565b845260208401935050602081019050613c5d565b5050509392505050565b600082601f830112613ca357613ca2613b74565b5b8135613cb3848260208601613c25565b91505092915050565b600060208284031215613cd257613cd1613746565b5b600082013567ffffffffffffffff811115613cf057613cef61374b565b5b613cfc84828501613c8e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d3a8161397a565b82525050565b600067ffffffffffffffff82169050919050565b613d5d81613d40565b82525050565b613d6c816137d5565b82525050565b606082016000820151613d886000850182613d31565b506020820151613d9b6020850182613d54565b506040820151613dae6040850182613d63565b50505050565b6000613dc08383613d72565b60608301905092915050565b6000602082019050919050565b6000613de482613d05565b613dee8185613d10565b9350613df983613d21565b8060005b83811015613e2a578151613e118882613db4565b9750613e1c83613dcc565b925050600181019050613dfd565b5085935050505092915050565b60006020820190508181036000830152613e518184613dd9565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b613e7a81613e59565b8114613e8557600080fd5b50565b600081359050613e9781613e71565b92915050565b600060208284031215613eb357613eb2613746565b5b6000613ec184828501613e88565b91505092915050565b600060208284031215613ee057613edf613746565b5b6000613eee848285016139cd565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f1757613f16613b79565b5b613f208261388b565b9050602081019050919050565b82818337600083830152505050565b6000613f4f613f4a84613efc565b613bd9565b905082815260208101848484011115613f6b57613f6a613ef7565b5b613f76848285613f2d565b509392505050565b600082601f830112613f9357613f92613b74565b5b8135613fa3848260208601613f3c565b91505092915050565b600060208284031215613fc257613fc1613746565b5b600082013567ffffffffffffffff811115613fe057613fdf61374b565b5b613fec84828501613f7e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61402a816138f7565b82525050565b600061403c8383614021565b60208301905092915050565b6000602082019050919050565b600061406082613ff5565b61406a8185614000565b935061407583614011565b8060005b838110156140a657815161408d8882614030565b975061409883614048565b925050600181019050614079565b5085935050505092915050565b600060208201905081810360008301526140cd8184614055565b905092915050565b6000806000606084860312156140ee576140ed613746565b5b60006140fc868287016139cd565b935050602061410d86828701613918565b925050604061411e86828701613918565b9150509250925092565b6141318161380b565b82525050565b6101008201600082015161414e6000850182614021565b5060208201516141616020850182614128565b5060408201516141746040850182614128565b5060608201516141876060850182614128565b50608082015161419a6080850182614128565b5060a08201516141ad60a0850182614128565b5060c08201516141c060c0850182613d63565b5060e08201516141d360e0850182613d63565b50505050565b6000610100820190506141ef6000830184614137565b92915050565b6141fe816137d5565b811461420957600080fd5b50565b60008135905061421b816141f5565b92915050565b6000806040838503121561423857614237613746565b5b6000614246858286016139cd565b92505060206142578582860161420c565b9150509250929050565b60006020828403121561427757614276613746565b5b600061428584828501613a39565b91505092915050565b600067ffffffffffffffff8211156142a9576142a8613b79565b5b6142b28261388b565b9050602081019050919050565b60006142d26142cd8461428e565b613bd9565b9050828152602081018484840111156142ee576142ed613ef7565b5b6142f9848285613f2d565b509392505050565b600082601f83011261431657614315613b74565b5b81356143268482602086016142bf565b91505092915050565b6000806000806080858703121561434957614348613746565b5b6000614357878288016139cd565b9450506020614368878288016139cd565b935050604061437987828801613918565b925050606085013567ffffffffffffffff81111561439a5761439961374b565b5b6143a687828801614301565b91505092959194509250565b6060820160008201516143c86000850182613d31565b5060208201516143db6020850182613d54565b5060408201516143ee6040850182613d63565b50505050565b600060608201905061440960008301846143b2565b92915050565b6000806040838503121561442657614425613746565b5b6000614434858286016139cd565b9250506020614445858286016139cd565b9150509250929050565b60006020828403121561446557614464613746565b5b60006144738482850161420c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144c357607f821691505b6020821081036144d6576144d561447c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145168261380b565b91506145218361380b565b9250828201905063ffffffff81111561453d5761453c6144dc565b5b92915050565b7f4f7574206f6620737570706c7900000000000000000000000000000000000000600082015250565b6000614579600d83613850565b915061458482614543565b602082019050919050565b600060208201905081810360008301526145a88161456c565b9050919050565b60006145ba826138f7565b91506145c5836138f7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145fe576145fd6144dc565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614643826138f7565b915061464e836138f7565b92508261465e5761465d614609565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146fa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826146bd565b61470486836146bd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061474161473c614737846138f7565b61471c565b6138f7565b9050919050565b6000819050919050565b61475b83614726565b61476f61476782614748565b8484546146ca565b825550505050565b600090565b614784614777565b61478f818484614752565b505050565b5b818110156147b3576147a860008261477c565b600181019050614795565b5050565b601f8211156147f8576147c981614698565b6147d2846146ad565b810160208510156147e1578190505b6147f56147ed856146ad565b830182614794565b50505b505050565b600082821c905092915050565b600061481b600019846008026147fd565b1980831691505092915050565b6000614834838361480a565b9150826002028217905092915050565b61484d82613845565b67ffffffffffffffff81111561486657614865613b79565b5b61487082546144ab565b61487b8282856147b7565b600060209050601f8311600181146148ae576000841561489c578287015190505b6148a68582614828565b86555061490e565b601f1984166148bc86614698565b60005b828110156148e4578489015182556001820191506020850194506020810190506148bf565b8683101561490157848901516148fd601f89168261480a565b8355505b6001600288020188555050505b505050505050565b60006149218261380b565b915061492c8361380b565b9250828203905063ffffffff811115614948576149476144dc565b5b92915050565b7f4d696e74206973206e6f74207265616479000000000000000000000000000000600082015250565b6000614984601183613850565b915061498f8261494e565b602082019050919050565b600060208201905081810360008301526149b381614977565b9050919050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b60006149f0600883613850565b91506149fb826149ba565b602082019050919050565b60006020820190508181036000830152614a1f816149e3565b9050919050565b7f6d6178207065722077616c6c6574207265616368656400000000000000000000600082015250565b6000614a5c601683613850565b9150614a6782614a26565b602082019050919050565b60006020820190508181036000830152614a8b81614a4f565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614ac8600e83613850565b9150614ad382614a92565b602082019050919050565b60006020820190508181036000830152614af781614abb565b9050919050565b6000614b09826138f7565b9150614b14836138f7565b9250828203905081811115614b2c57614b2b6144dc565b5b92915050565b600081905092915050565b6000614b4882613845565b614b528185614b32565b9350614b62818560208601613861565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ba4600583614b32565b9150614baf82614b6e565b600582019050919050565b6000614bc68285614b3d565b9150614bd28284614b3d565b9150614bdd82614b97565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c45602683613850565b9150614c5082614be9565b604082019050919050565b60006020820190508181036000830152614c7481614c38565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cb1602083613850565b9150614cbc82614c7b565b602082019050919050565b60006020820190508181036000830152614ce081614ca4565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614d1d601d83613850565b9150614d2882614ce7565b602082019050919050565b60006020820190508181036000830152614d4c81614d10565b9050919050565b600081905092915050565b50565b6000614d6e600083614d53565b9150614d7982614d5e565b600082019050919050565b6000614d8f82614d61565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614df5603a83613850565b9150614e0082614d99565b604082019050919050565b60006020820190508181036000830152614e2481614de8565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614e87602a83613850565b9150614e9282614e2b565b604082019050919050565b60006020820190508181036000830152614eb681614e7a565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614ef3601983613850565b9150614efe82614ebd565b602082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614f5082614f29565b614f5a8185614f34565b9350614f6a818560208601613861565b614f738161388b565b840191505092915050565b6000608082019050614f93600083018761398c565b614fa0602083018661398c565b614fad6040830185613a8e565b8181036060830152614fbf8184614f45565b905095945050505050565b600081519050614fd98161377c565b92915050565b600060208284031215614ff557614ff4613746565b5b600061500384828501614fca565b91505092915050565b6000615017826138f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615049576150486144dc565b5b600182019050919050565b600061505f826138f7565b915061506a836138f7565b92508261507a57615079614609565b5b828206905092915050565b6000615090826138f7565b915061509b836138f7565b92508282019050808211156150b3576150b26144dc565b5b9291505056fea2646970667358221220c64baeb30fd54639f4b8c368e9d2f8d84b0369ea3659696964864cb30b67ed4f64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000014
-----Decoded View---------------
Arg [0] : price (uint256): 1000000000000000
Arg [1] : maxSupply (uint32): 5000
Arg [2] : teamSupply (uint32): 300
Arg [3] : walletLimit (uint32): 20
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.