ERC-721
Pass
Overview
Max Total Supply
118 KEYCARD
Holders
101
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KEYCARDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KEYCard
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; 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/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; pragma solidity >=0.7.0 <0.9.0; // KEYCard V1 (Developed by Daniel Kantor) // Ownership of this card provides exclusive access to discounts, events, and investment opportunities in both the metaverse and physical world. // This card is one of 118 verifiably unique KEYCards secured by the Ethereum blockchain, issued exclusively to KEYS Token holders. // Please visit https://keystoken.io/keycard to redeem your benefits. // Please join us on discord for any questions https://discord.gg/keystoken contract KEYCard is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; string private baseURI; string public baseExtension = ".json"; uint256 public cost = 0.18 ether; uint256 public maxSupply = 118; uint256 public maxMintAmount = 1; uint256 public nftPerAddressLimit = 1; uint256 public minKeysNeeded = 8888000000000; // KEYS Contract address constant KEYS = 0xe0a189C975e4928222978A74517442239a0b86ff; // Locked KEYS Contract address constant LOCKED_KEYS = 0x08DC692FE528fFEcF675Ab3f76981553e060Fd8A; // Tuesday, December 28, 2021 6:18:18 PM GMT-08:00 // Wednesday, December 29, 2021 2:18:18 AM UTC uint256 public publicSaleDate = 1640744298; bool public paused = false; mapping(address => uint256) public addressMintedBalance; constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) {} //MODIFIERS modifier notPaused() { require(!paused, "the contract is paused"); _; } modifier saleStarted() { require(block.timestamp >= publicSaleDate, "Sale has not started yet"); _; } modifier minimumMintAmount(uint256 _mintAmount) { require(_mintAmount > 0, "need to mint at least 1 NFT"); _; } ///////////////////////////////////////////////////////////////// ///////////////////// MINT FUNCTION /////////////////////////// ///////////////////////////////////////////////////////////////// function mint(uint256 _mintAmount) external payable notPaused saleStarted minimumMintAmount(_mintAmount) { // Validations uint256 ownerMintedCount = addressMintedBalance[msg.sender]; validations(ownerMintedCount, _mintAmount); uint256 supply = totalSupply(); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[msg.sender]++; _safeMint(msg.sender, supply + i); } } ///////////////////////////////////////////////////////////////// ///////////////////// PUBLIC FUNCTIONS //////////////////////// ///////////////////////////////////////////////////////////////// receive() external payable {} function walletOfOwner(address _owner) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function getCurrentCost() external view returns (uint256) { return cost; } function getBaseURI() external view returns (string memory) { return baseURI; } function getContractBalance() external view returns (uint256) { return address(this).balance; } ///////////////////////////////////////////////////////////////// ///////////////////// ONLY OWNER FUNCTIONS //////////////////// ///////////////////////////////////////////////////////////////// function pause(bool _state) external onlyOwner { paused = _state; } function setNftPerAddressLimit(uint256 _limit) external onlyOwner { nftPerAddressLimit = _limit; } function setCost(uint256 _newCost) external onlyOwner { cost = _newCost; } function setMaxMintAmount(uint256 _newMaxMintAmount) external onlyOwner { maxMintAmount = _newMaxMintAmount; } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) external onlyOwner { baseExtension = _newBaseExtension; } function setMaxSupply(uint256 _maxSupply) external onlyOwner { maxSupply = _maxSupply; } function setPublicSaleDate(uint256 _publicSaleDate) external onlyOwner { publicSaleDate = _publicSaleDate; } function gift(uint256 _mintAmount, address destination) external onlyOwner { require(_mintAmount > 0, "need to mint at least 1 NFT"); uint256 supply = totalSupply(); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[destination]++; _safeMint(destination, supply + i); } } function withdraw() external onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } ///////////////////////////////////////////////////////////////// ///////////////////// INTERNAL FUNCTIONS ////////////////////// ///////////////////////////////////////////////////////////////// function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function validations(uint256 _ownerMintedCount, uint256 _mintAmount) internal { uint256 amountOfKeysOwned = IERC20(KEYS).balanceOf(msg.sender); uint256 amountOfLockedKeysOwned = IERC20(LOCKED_KEYS).balanceOf(msg.sender); uint256 totalKeysOwned = amountOfKeysOwned.add(amountOfLockedKeysOwned); require(_ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded"); require(msg.value >= cost * _mintAmount, "insufficient funds"); require(_mintAmount <= maxMintAmount, "max mint amount per transaction exceeded"); require(totalKeysOwned >= minKeysNeeded); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT 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 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`, 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 be 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT 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 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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param 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 { 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minKeysNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleDate","type":"uint256"}],"name":"setPublicSaleDate","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c908051906020019062000051929190620001f9565b5067027f7d0bdb920000600d556076600e556001600f556001601055650815661530006011556361cbc56a6012556000601360006101000a81548160ff021916908315150217905550348015620000a757600080fd5b50604051620053d2380380620053d28339818101604052810190620000cd91906200031b565b81818160009080519060200190620000e7929190620001f9565b50806001908051906020019062000100929190620001f9565b50505062000123620001176200012b60201b60201c565b6200013360201b60201c565b5050620004fe565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002079062000423565b90600052602060002090601f0160209004810192826200022b576000855562000277565b82601f106200024657805160ff191683800117855562000277565b8280016001018555821562000277579182015b828111156200027657825182559160200191906001019062000259565b5b5090506200028691906200028a565b5090565b5b80821115620002a55760008160009055506001016200028b565b5090565b6000620002c0620002ba84620003b7565b6200038e565b905082815260208101848484011115620002d957600080fd5b620002e6848285620003ed565b509392505050565b600082601f8301126200030057600080fd5b815162000312848260208601620002a9565b91505092915050565b600080604083850312156200032f57600080fd5b600083015167ffffffffffffffff8111156200034a57600080fd5b6200035885828601620002ee565b925050602083015167ffffffffffffffff8111156200037657600080fd5b6200038485828601620002ee565b9150509250929050565b60006200039a620003ad565b9050620003a8828262000459565b919050565b6000604051905090565b600067ffffffffffffffff821115620003d557620003d4620004be565b5b620003e082620004ed565b9050602081019050919050565b60005b838110156200040d578082015181840152602081019050620003f0565b838111156200041d576000848401525b50505050565b600060028204905060018216806200043c57607f821691505b602082108114156200045357620004526200048f565b5b50919050565b6200046482620004ed565b810181811067ffffffffffffffff82111715620004865762000485620004be565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614ec4806200050e6000396000f3fe6080604052600436106102605760003560e01c80636f8b44b011610144578063b1e338c4116100b6578063d0eb26b01161007a578063d0eb26b0146108f6578063d5abeb011461091f578063da3ef23f1461094a578063e985e9c514610973578063eced3873146109b0578063f2fde38b146109db57610267565b8063b1e338c41461080f578063b88d4fde1461083a578063ba7d2c7614610863578063c66828621461088e578063c87b56dd146108b957610267565b8063831e60de11610108578063831e60de1461072057806383a076be1461074b5780638da5cb5b1461077457806395d89b411461079f578063a0712d68146107ca578063a22cb465146107e657610267565b80636f8b44b01461064d5780636f9fb98a1461067657806370a08231146106a1578063714c5398146106de578063715018a61461070957610267565b8063239c70ae116101dd578063438b6300116101a1578063438b63001461051957806344a0d68a146105565780634f6ccce71461057f57806355f804b3146105bc5780635c975abb146105e55780636352211e1461061057610267565b8063239c70ae1461044857806323b872dd146104735780632f745c591461049c5780633ccfd60b146104d957806342842e0e146104f057610267565b8063095ea7b311610224578063095ea7b3146103635780630e54a8831461038c57806313faede6146103b557806318160ddd146103e057806318cae2691461040b57610267565b806301ffc9a71461026c57806302329a29146102a957806306fdde03146102d2578063081812fc146102fd578063088a4ed01461033a57610267565b3661026757005b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613892565b610a04565b6040516102a09190613fe4565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190613869565b610a7e565b005b3480156102de57600080fd5b506102e7610b17565b6040516102f49190613fff565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190613925565b610ba9565b6040516103319190613f5b565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c9190613925565b610c2e565b005b34801561036f57600080fd5b5061038a6004803603810190610385919061382d565b610cb4565b005b34801561039857600080fd5b506103b360048036038101906103ae9190613925565b610dcc565b005b3480156103c157600080fd5b506103ca610e52565b6040516103d79190614341565b60405180910390f35b3480156103ec57600080fd5b506103f5610e58565b6040516104029190614341565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906136c2565b610e65565b60405161043f9190614341565b60405180910390f35b34801561045457600080fd5b5061045d610e7d565b60405161046a9190614341565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190613727565b610e83565b005b3480156104a857600080fd5b506104c360048036038101906104be919061382d565b610ee3565b6040516104d09190614341565b60405180910390f35b3480156104e557600080fd5b506104ee610f88565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613727565b61107d565b005b34801561052557600080fd5b50610540600480360381019061053b91906136c2565b61109d565b60405161054d9190613fc2565b60405180910390f35b34801561056257600080fd5b5061057d60048036038101906105789190613925565b611197565b005b34801561058b57600080fd5b506105a660048036038101906105a19190613925565b61121d565b6040516105b39190614341565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de91906138e4565b6112b4565b005b3480156105f157600080fd5b506105fa61134a565b6040516106079190613fe4565b60405180910390f35b34801561061c57600080fd5b5061063760048036038101906106329190613925565b61135d565b6040516106449190613f5b565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613925565b61140f565b005b34801561068257600080fd5b5061068b611495565b6040516106989190614341565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c391906136c2565b61149d565b6040516106d59190614341565b60405180910390f35b3480156106ea57600080fd5b506106f3611555565b6040516107009190613fff565b60405180910390f35b34801561071557600080fd5b5061071e6115e7565b005b34801561072c57600080fd5b5061073561166f565b6040516107429190614341565b60405180910390f35b34801561075757600080fd5b50610772600480360381019061076d9190613977565b611679565b005b34801561078057600080fd5b50610789611825565b6040516107969190613f5b565b60405180910390f35b3480156107ab57600080fd5b506107b461184f565b6040516107c19190613fff565b60405180910390f35b6107e460048036038101906107df9190613925565b6118e1565b005b3480156107f257600080fd5b5061080d600480360381019061080891906137f1565b611af6565b005b34801561081b57600080fd5b50610824611c77565b6040516108319190614341565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190613776565b611c7d565b005b34801561086f57600080fd5b50610878611cdf565b6040516108859190614341565b60405180910390f35b34801561089a57600080fd5b506108a3611ce5565b6040516108b09190613fff565b60405180910390f35b3480156108c557600080fd5b506108e060048036038101906108db9190613925565b611d73565b6040516108ed9190613fff565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190613925565b611e1d565b005b34801561092b57600080fd5b50610934611ea3565b6040516109419190614341565b60405180910390f35b34801561095657600080fd5b50610971600480360381019061096c91906138e4565b611ea9565b005b34801561097f57600080fd5b5061099a600480360381019061099591906136eb565b611f3f565b6040516109a79190613fe4565b60405180910390f35b3480156109bc57600080fd5b506109c5611fd3565b6040516109d29190614341565b60405180910390f35b3480156109e757600080fd5b50610a0260048036038101906109fd91906136c2565b611fd9565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a775750610a76826120d1565b5b9050919050565b610a866121b3565b73ffffffffffffffffffffffffffffffffffffffff16610aa4611825565b73ffffffffffffffffffffffffffffffffffffffff1614610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614221565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b606060008054610b269061464a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b529061464a565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b5050505050905090565b6000610bb4826121bb565b610bf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bea90614201565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c366121b3565b73ffffffffffffffffffffffffffffffffffffffff16610c54611825565b73ffffffffffffffffffffffffffffffffffffffff1614610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190614221565b60405180910390fd5b80600f8190555050565b6000610cbf8261135d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d27906142a1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d4f6121b3565b73ffffffffffffffffffffffffffffffffffffffff161480610d7e5750610d7d81610d786121b3565b611f3f565b5b610dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db490614161565b60405180910390fd5b610dc78383612227565b505050565b610dd46121b3565b73ffffffffffffffffffffffffffffffffffffffff16610df2611825565b73ffffffffffffffffffffffffffffffffffffffff1614610e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3f90614221565b60405180910390fd5b8060128190555050565b600d5481565b6000600880549050905090565b60146020528060005260406000206000915090505481565b600f5481565b610e94610e8e6121b3565b826122e0565b610ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eca906142e1565b60405180910390fd5b610ede8383836123be565b505050565b6000610eee8361149d565b8210610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690614041565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f906121b3565b73ffffffffffffffffffffffffffffffffffffffff16610fae611825565b73ffffffffffffffffffffffffffffffffffffffff1614611004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffb90614221565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161102a90613f46565b60006040518083038185875af1925050503d8060008114611067576040519150601f19603f3d011682016040523d82523d6000602084013e61106c565b606091505b505090508061107a57600080fd5b50565b61109883838360405180602001604052806000815250611c7d565b505050565b606060006110aa8361149d565b905060008167ffffffffffffffff8111156110ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561111c5781602001602082028036833780820191505090505b50905060005b8281101561118c576111348582610ee3565b82828151811061116d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611184906146ad565b915050611122565b508092505050919050565b61119f6121b3565b73ffffffffffffffffffffffffffffffffffffffff166111bd611825565b73ffffffffffffffffffffffffffffffffffffffff1614611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a90614221565b60405180910390fd5b80600d8190555050565b6000611227610e58565b8210611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f90614301565b60405180910390fd5b600882815481106112a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112bc6121b3565b73ffffffffffffffffffffffffffffffffffffffff166112da611825565b73ffffffffffffffffffffffffffffffffffffffff1614611330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132790614221565b60405180910390fd5b80600b90805190602001906113469291906134d1565b5050565b601360009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd906141a1565b60405180910390fd5b80915050919050565b6114176121b3565b73ffffffffffffffffffffffffffffffffffffffff16611435611825565b73ffffffffffffffffffffffffffffffffffffffff161461148b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148290614221565b60405180910390fd5b80600e8190555050565b600047905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590614181565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600b80546115649061464a565b80601f01602080910402602001604051908101604052809291908181526020018280546115909061464a565b80156115dd5780601f106115b2576101008083540402835291602001916115dd565b820191906000526020600020905b8154815290600101906020018083116115c057829003601f168201915b5050505050905090565b6115ef6121b3565b73ffffffffffffffffffffffffffffffffffffffff1661160d611825565b73ffffffffffffffffffffffffffffffffffffffff1614611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90614221565b60405180910390fd5b61166d600061261a565b565b6000600d54905090565b6116816121b3565b73ffffffffffffffffffffffffffffffffffffffff1661169f611825565b73ffffffffffffffffffffffffffffffffffffffff16146116f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ec90614221565b60405180910390fd5b60008211611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172f90614321565b60405180910390fd5b6000611742610e58565b9050600e548382611753919061447f565b1115611794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178b906141c1565b60405180910390fd5b6000600190505b83811161181f57601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906117f2906146ad565b919050555061180c838284611807919061447f565b6126e0565b8080611817906146ad565b91505061179b565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461185e9061464a565b80601f016020809104026020016040519081016040528092919081815260200182805461188a9061464a565b80156118d75780601f106118ac576101008083540402835291602001916118d7565b820191906000526020600020905b8154815290600101906020018083116118ba57829003601f168201915b5050505050905090565b601360009054906101000a900460ff1615611931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192890614241565b60405180910390fd5b601254421015611976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196d90614021565b60405180910390fd5b80600081116119ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b190614321565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611a0881846126fe565b6000611a12610e58565b9050600e548482611a23919061447f565b1115611a64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5b906141c1565b60405180910390fd5b6000600190505b848111611aef57601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611ac2906146ad565b9190505550611adc338284611ad7919061447f565b6126e0565b8080611ae7906146ad565b915050611a6b565b5050505050565b611afe6121b3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6390614101565b60405180910390fd5b8060056000611b796121b3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c266121b3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c6b9190613fe4565b60405180910390a35050565b60115481565b611c8e611c886121b3565b836122e0565b611ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc4906142e1565b60405180910390fd5b611cd984848484612952565b50505050565b60105481565b600c8054611cf29061464a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1e9061464a565b8015611d6b5780601f10611d4057610100808354040283529160200191611d6b565b820191906000526020600020905b815481529060010190602001808311611d4e57829003601f168201915b505050505081565b6060611d7e826121bb565b611dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db490614281565b60405180910390fd5b6000611dc76129ae565b90506000815111611de75760405180602001604052806000815250611e15565b80611df184612a40565b600c604051602001611e0593929190613f15565b6040516020818303038152906040525b915050919050565b611e256121b3565b73ffffffffffffffffffffffffffffffffffffffff16611e43611825565b73ffffffffffffffffffffffffffffffffffffffff1614611e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9090614221565b60405180910390fd5b8060108190555050565b600e5481565b611eb16121b3565b73ffffffffffffffffffffffffffffffffffffffff16611ecf611825565b73ffffffffffffffffffffffffffffffffffffffff1614611f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1c90614221565b60405180910390fd5b80600c9080519060200190611f3b9291906134d1565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60125481565b611fe16121b3565b73ffffffffffffffffffffffffffffffffffffffff16611fff611825565b73ffffffffffffffffffffffffffffffffffffffff1614612055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204c90614221565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bc90614081565b60405180910390fd5b6120ce8161261a565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121ac57506121ab82612bed565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661229a8361135d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122eb826121bb565b61232a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232190614141565b60405180910390fd5b60006123358361135d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123a457508373ffffffffffffffffffffffffffffffffffffffff1661238c84610ba9565b73ffffffffffffffffffffffffffffffffffffffff16145b806123b557506123b48185611f3f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123de8261135d565b73ffffffffffffffffffffffffffffffffffffffff1614612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90614261565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249b906140e1565b60405180910390fd5b6124af838383612c57565b6124ba600082612227565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461250a9190614560565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612561919061447f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6126fa828260405180602001604052806000815250612d6b565b5050565b600073e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161274d9190613f5b565b60206040518083038186803b15801561276557600080fd5b505afa158015612779573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061279d919061394e565b905060007308dc692fe528ffecf675ab3f76981553e060fd8a73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016127ee9190613f5b565b60206040518083038186803b15801561280657600080fd5b505afa15801561281a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283e919061394e565b905060006128558284612dc690919063ffffffff16565b90506010548486612866919061447f565b11156128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e906140c1565b60405180910390fd5b83600d546128b59190614506565b3410156128f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ee906142c1565b60405180910390fd5b600f5484111561293c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293390614121565b60405180910390fd5b60115481101561294b57600080fd5b5050505050565b61295d8484846123be565b61296984848484612ddc565b6129a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299f90614061565b60405180910390fd5b50505050565b6060600b80546129bd9061464a565b80601f01602080910402602001604051908101604052809291908181526020018280546129e99061464a565b8015612a365780601f10612a0b57610100808354040283529160200191612a36565b820191906000526020600020905b815481529060010190602001808311612a1957829003601f168201915b5050505050905090565b60606000821415612a88576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612be8565b600082905060005b60008214612aba578080612aa3906146ad565b915050600a82612ab391906144d5565b9150612a90565b60008167ffffffffffffffff811115612afc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b2e5781602001600182028036833780820191505090505b5090505b60008514612be157600182612b479190614560565b9150600a85612b5691906146f6565b6030612b62919061447f565b60f81b818381518110612b9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bda91906144d5565b9450612b32565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c62838383612f73565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ca557612ca081612f78565b612ce4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612ce357612ce28382612fc1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d2757612d228161312e565b612d66565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612d6557612d648282613271565b5b5b505050565b612d7583836132f0565b612d826000848484612ddc565b612dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db890614061565b60405180910390fd5b505050565b60008183612dd4919061447f565b905092915050565b6000612dfd8473ffffffffffffffffffffffffffffffffffffffff166134be565b15612f66578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e266121b3565b8786866040518563ffffffff1660e01b8152600401612e489493929190613f76565b602060405180830381600087803b158015612e6257600080fd5b505af1925050508015612e9357506040513d601f19601f82011682018060405250810190612e9091906138bb565b60015b612f16573d8060008114612ec3576040519150601f19603f3d011682016040523d82523d6000602084013e612ec8565b606091505b50600081511415612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614061565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f6b565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fce8461149d565b612fd89190614560565b90506000600760008481526020019081526020016000205490508181146130bd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131429190614560565b9050600060096000848152602001908152602001600020549050600060088381548110613198577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106131e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613255577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061327c8361149d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613360576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613357906141e1565b60405180910390fd5b613369816121bb565b156133a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a0906140a1565b60405180910390fd5b6133b560008383612c57565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613405919061447f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546134dd9061464a565b90600052602060002090601f0160209004810192826134ff5760008555613546565b82601f1061351857805160ff1916838001178555613546565b82800160010185558215613546579182015b8281111561354557825182559160200191906001019061352a565b5b5090506135539190613557565b5090565b5b80821115613570576000816000905550600101613558565b5090565b600061358761358284614381565b61435c565b90508281526020810184848401111561359f57600080fd5b6135aa848285614608565b509392505050565b60006135c56135c0846143b2565b61435c565b9050828152602081018484840111156135dd57600080fd5b6135e8848285614608565b509392505050565b6000813590506135ff81614e32565b92915050565b60008135905061361481614e49565b92915050565b60008135905061362981614e60565b92915050565b60008151905061363e81614e60565b92915050565b600082601f83011261365557600080fd5b8135613665848260208601613574565b91505092915050565b600082601f83011261367f57600080fd5b813561368f8482602086016135b2565b91505092915050565b6000813590506136a781614e77565b92915050565b6000815190506136bc81614e77565b92915050565b6000602082840312156136d457600080fd5b60006136e2848285016135f0565b91505092915050565b600080604083850312156136fe57600080fd5b600061370c858286016135f0565b925050602061371d858286016135f0565b9150509250929050565b60008060006060848603121561373c57600080fd5b600061374a868287016135f0565b935050602061375b868287016135f0565b925050604061376c86828701613698565b9150509250925092565b6000806000806080858703121561378c57600080fd5b600061379a878288016135f0565b94505060206137ab878288016135f0565b93505060406137bc87828801613698565b925050606085013567ffffffffffffffff8111156137d957600080fd5b6137e587828801613644565b91505092959194509250565b6000806040838503121561380457600080fd5b6000613812858286016135f0565b925050602061382385828601613605565b9150509250929050565b6000806040838503121561384057600080fd5b600061384e858286016135f0565b925050602061385f85828601613698565b9150509250929050565b60006020828403121561387b57600080fd5b600061388984828501613605565b91505092915050565b6000602082840312156138a457600080fd5b60006138b28482850161361a565b91505092915050565b6000602082840312156138cd57600080fd5b60006138db8482850161362f565b91505092915050565b6000602082840312156138f657600080fd5b600082013567ffffffffffffffff81111561391057600080fd5b61391c8482850161366e565b91505092915050565b60006020828403121561393757600080fd5b600061394584828501613698565b91505092915050565b60006020828403121561396057600080fd5b600061396e848285016136ad565b91505092915050565b6000806040838503121561398a57600080fd5b600061399885828601613698565b92505060206139a9858286016135f0565b9150509250929050565b60006139bf8383613ef7565b60208301905092915050565b6139d481614594565b82525050565b60006139e582614408565b6139ef8185614436565b93506139fa836143e3565b8060005b83811015613a2b578151613a1288826139b3565b9750613a1d83614429565b9250506001810190506139fe565b5085935050505092915050565b613a41816145a6565b82525050565b6000613a5282614413565b613a5c8185614447565b9350613a6c818560208601614617565b613a75816147e3565b840191505092915050565b6000613a8b8261441e565b613a958185614463565b9350613aa5818560208601614617565b613aae816147e3565b840191505092915050565b6000613ac48261441e565b613ace8185614474565b9350613ade818560208601614617565b80840191505092915050565b60008154613af78161464a565b613b018186614474565b94506001821660008114613b1c5760018114613b2d57613b60565b60ff19831686528186019350613b60565b613b36856143f3565b60005b83811015613b5857815481890152600182019150602081019050613b39565b838801955050505b50505092915050565b6000613b76601883614463565b9150613b81826147f4565b602082019050919050565b6000613b99602b83614463565b9150613ba48261481d565b604082019050919050565b6000613bbc603283614463565b9150613bc78261486c565b604082019050919050565b6000613bdf602683614463565b9150613bea826148bb565b604082019050919050565b6000613c02601c83614463565b9150613c0d8261490a565b602082019050919050565b6000613c25601c83614463565b9150613c3082614933565b602082019050919050565b6000613c48602483614463565b9150613c538261495c565b604082019050919050565b6000613c6b601983614463565b9150613c76826149ab565b602082019050919050565b6000613c8e602883614463565b9150613c99826149d4565b604082019050919050565b6000613cb1602c83614463565b9150613cbc82614a23565b604082019050919050565b6000613cd4603883614463565b9150613cdf82614a72565b604082019050919050565b6000613cf7602a83614463565b9150613d0282614ac1565b604082019050919050565b6000613d1a602983614463565b9150613d2582614b10565b604082019050919050565b6000613d3d601683614463565b9150613d4882614b5f565b602082019050919050565b6000613d60602083614463565b9150613d6b82614b88565b602082019050919050565b6000613d83602c83614463565b9150613d8e82614bb1565b604082019050919050565b6000613da6602083614463565b9150613db182614c00565b602082019050919050565b6000613dc9601683614463565b9150613dd482614c29565b602082019050919050565b6000613dec602983614463565b9150613df782614c52565b604082019050919050565b6000613e0f602f83614463565b9150613e1a82614ca1565b604082019050919050565b6000613e32602183614463565b9150613e3d82614cf0565b604082019050919050565b6000613e55600083614458565b9150613e6082614d3f565b600082019050919050565b6000613e78601283614463565b9150613e8382614d42565b602082019050919050565b6000613e9b603183614463565b9150613ea682614d6b565b604082019050919050565b6000613ebe602c83614463565b9150613ec982614dba565b604082019050919050565b6000613ee1601b83614463565b9150613eec82614e09565b602082019050919050565b613f00816145fe565b82525050565b613f0f816145fe565b82525050565b6000613f218286613ab9565b9150613f2d8285613ab9565b9150613f398284613aea565b9150819050949350505050565b6000613f5182613e48565b9150819050919050565b6000602082019050613f7060008301846139cb565b92915050565b6000608082019050613f8b60008301876139cb565b613f9860208301866139cb565b613fa56040830185613f06565b8181036060830152613fb78184613a47565b905095945050505050565b60006020820190508181036000830152613fdc81846139da565b905092915050565b6000602082019050613ff96000830184613a38565b92915050565b600060208201905081810360008301526140198184613a80565b905092915050565b6000602082019050818103600083015261403a81613b69565b9050919050565b6000602082019050818103600083015261405a81613b8c565b9050919050565b6000602082019050818103600083015261407a81613baf565b9050919050565b6000602082019050818103600083015261409a81613bd2565b9050919050565b600060208201905081810360008301526140ba81613bf5565b9050919050565b600060208201905081810360008301526140da81613c18565b9050919050565b600060208201905081810360008301526140fa81613c3b565b9050919050565b6000602082019050818103600083015261411a81613c5e565b9050919050565b6000602082019050818103600083015261413a81613c81565b9050919050565b6000602082019050818103600083015261415a81613ca4565b9050919050565b6000602082019050818103600083015261417a81613cc7565b9050919050565b6000602082019050818103600083015261419a81613cea565b9050919050565b600060208201905081810360008301526141ba81613d0d565b9050919050565b600060208201905081810360008301526141da81613d30565b9050919050565b600060208201905081810360008301526141fa81613d53565b9050919050565b6000602082019050818103600083015261421a81613d76565b9050919050565b6000602082019050818103600083015261423a81613d99565b9050919050565b6000602082019050818103600083015261425a81613dbc565b9050919050565b6000602082019050818103600083015261427a81613ddf565b9050919050565b6000602082019050818103600083015261429a81613e02565b9050919050565b600060208201905081810360008301526142ba81613e25565b9050919050565b600060208201905081810360008301526142da81613e6b565b9050919050565b600060208201905081810360008301526142fa81613e8e565b9050919050565b6000602082019050818103600083015261431a81613eb1565b9050919050565b6000602082019050818103600083015261433a81613ed4565b9050919050565b60006020820190506143566000830184613f06565b92915050565b6000614366614377565b9050614372828261467c565b919050565b6000604051905090565b600067ffffffffffffffff82111561439c5761439b6147b4565b5b6143a5826147e3565b9050602081019050919050565b600067ffffffffffffffff8211156143cd576143cc6147b4565b5b6143d6826147e3565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061448a826145fe565b9150614495836145fe565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144ca576144c9614727565b5b828201905092915050565b60006144e0826145fe565b91506144eb836145fe565b9250826144fb576144fa614756565b5b828204905092915050565b6000614511826145fe565b915061451c836145fe565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561455557614554614727565b5b828202905092915050565b600061456b826145fe565b9150614576836145fe565b92508282101561458957614588614727565b5b828203905092915050565b600061459f826145de565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561463557808201518184015260208101905061461a565b83811115614644576000848401525b50505050565b6000600282049050600182168061466257607f821691505b6020821081141561467657614675614785565b5b50919050565b614685826147e3565b810181811067ffffffffffffffff821117156146a4576146a36147b4565b5b80604052505050565b60006146b8826145fe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146eb576146ea614727565b5b600182019050919050565b6000614701826145fe565b915061470c836145fe565b92508261471c5761471b614756565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f53616c6520686173206e6f742073746172746564207965740000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f6d6178206d696e7420616d6f756e7420706572207472616e73616374696f6e2060008201527f6578636565646564000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b614e3b81614594565b8114614e4657600080fd5b50565b614e52816145a6565b8114614e5d57600080fd5b50565b614e69816145b2565b8114614e7457600080fd5b50565b614e80816145fe565b8114614e8b57600080fd5b5056fea2646970667358221220bd8cca4701c573a4b00f90982376b32313e7e7318e5b1db16a1d73d704d762a364736f6c634300080400330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000074b4559436172640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074b45594341524400000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102605760003560e01c80636f8b44b011610144578063b1e338c4116100b6578063d0eb26b01161007a578063d0eb26b0146108f6578063d5abeb011461091f578063da3ef23f1461094a578063e985e9c514610973578063eced3873146109b0578063f2fde38b146109db57610267565b8063b1e338c41461080f578063b88d4fde1461083a578063ba7d2c7614610863578063c66828621461088e578063c87b56dd146108b957610267565b8063831e60de11610108578063831e60de1461072057806383a076be1461074b5780638da5cb5b1461077457806395d89b411461079f578063a0712d68146107ca578063a22cb465146107e657610267565b80636f8b44b01461064d5780636f9fb98a1461067657806370a08231146106a1578063714c5398146106de578063715018a61461070957610267565b8063239c70ae116101dd578063438b6300116101a1578063438b63001461051957806344a0d68a146105565780634f6ccce71461057f57806355f804b3146105bc5780635c975abb146105e55780636352211e1461061057610267565b8063239c70ae1461044857806323b872dd146104735780632f745c591461049c5780633ccfd60b146104d957806342842e0e146104f057610267565b8063095ea7b311610224578063095ea7b3146103635780630e54a8831461038c57806313faede6146103b557806318160ddd146103e057806318cae2691461040b57610267565b806301ffc9a71461026c57806302329a29146102a957806306fdde03146102d2578063081812fc146102fd578063088a4ed01461033a57610267565b3661026757005b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613892565b610a04565b6040516102a09190613fe4565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190613869565b610a7e565b005b3480156102de57600080fd5b506102e7610b17565b6040516102f49190613fff565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190613925565b610ba9565b6040516103319190613f5b565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c9190613925565b610c2e565b005b34801561036f57600080fd5b5061038a6004803603810190610385919061382d565b610cb4565b005b34801561039857600080fd5b506103b360048036038101906103ae9190613925565b610dcc565b005b3480156103c157600080fd5b506103ca610e52565b6040516103d79190614341565b60405180910390f35b3480156103ec57600080fd5b506103f5610e58565b6040516104029190614341565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906136c2565b610e65565b60405161043f9190614341565b60405180910390f35b34801561045457600080fd5b5061045d610e7d565b60405161046a9190614341565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190613727565b610e83565b005b3480156104a857600080fd5b506104c360048036038101906104be919061382d565b610ee3565b6040516104d09190614341565b60405180910390f35b3480156104e557600080fd5b506104ee610f88565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613727565b61107d565b005b34801561052557600080fd5b50610540600480360381019061053b91906136c2565b61109d565b60405161054d9190613fc2565b60405180910390f35b34801561056257600080fd5b5061057d60048036038101906105789190613925565b611197565b005b34801561058b57600080fd5b506105a660048036038101906105a19190613925565b61121d565b6040516105b39190614341565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de91906138e4565b6112b4565b005b3480156105f157600080fd5b506105fa61134a565b6040516106079190613fe4565b60405180910390f35b34801561061c57600080fd5b5061063760048036038101906106329190613925565b61135d565b6040516106449190613f5b565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613925565b61140f565b005b34801561068257600080fd5b5061068b611495565b6040516106989190614341565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c391906136c2565b61149d565b6040516106d59190614341565b60405180910390f35b3480156106ea57600080fd5b506106f3611555565b6040516107009190613fff565b60405180910390f35b34801561071557600080fd5b5061071e6115e7565b005b34801561072c57600080fd5b5061073561166f565b6040516107429190614341565b60405180910390f35b34801561075757600080fd5b50610772600480360381019061076d9190613977565b611679565b005b34801561078057600080fd5b50610789611825565b6040516107969190613f5b565b60405180910390f35b3480156107ab57600080fd5b506107b461184f565b6040516107c19190613fff565b60405180910390f35b6107e460048036038101906107df9190613925565b6118e1565b005b3480156107f257600080fd5b5061080d600480360381019061080891906137f1565b611af6565b005b34801561081b57600080fd5b50610824611c77565b6040516108319190614341565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190613776565b611c7d565b005b34801561086f57600080fd5b50610878611cdf565b6040516108859190614341565b60405180910390f35b34801561089a57600080fd5b506108a3611ce5565b6040516108b09190613fff565b60405180910390f35b3480156108c557600080fd5b506108e060048036038101906108db9190613925565b611d73565b6040516108ed9190613fff565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190613925565b611e1d565b005b34801561092b57600080fd5b50610934611ea3565b6040516109419190614341565b60405180910390f35b34801561095657600080fd5b50610971600480360381019061096c91906138e4565b611ea9565b005b34801561097f57600080fd5b5061099a600480360381019061099591906136eb565b611f3f565b6040516109a79190613fe4565b60405180910390f35b3480156109bc57600080fd5b506109c5611fd3565b6040516109d29190614341565b60405180910390f35b3480156109e757600080fd5b50610a0260048036038101906109fd91906136c2565b611fd9565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a775750610a76826120d1565b5b9050919050565b610a866121b3565b73ffffffffffffffffffffffffffffffffffffffff16610aa4611825565b73ffffffffffffffffffffffffffffffffffffffff1614610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614221565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b606060008054610b269061464a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b529061464a565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b5050505050905090565b6000610bb4826121bb565b610bf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bea90614201565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c366121b3565b73ffffffffffffffffffffffffffffffffffffffff16610c54611825565b73ffffffffffffffffffffffffffffffffffffffff1614610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190614221565b60405180910390fd5b80600f8190555050565b6000610cbf8261135d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d27906142a1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d4f6121b3565b73ffffffffffffffffffffffffffffffffffffffff161480610d7e5750610d7d81610d786121b3565b611f3f565b5b610dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db490614161565b60405180910390fd5b610dc78383612227565b505050565b610dd46121b3565b73ffffffffffffffffffffffffffffffffffffffff16610df2611825565b73ffffffffffffffffffffffffffffffffffffffff1614610e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3f90614221565b60405180910390fd5b8060128190555050565b600d5481565b6000600880549050905090565b60146020528060005260406000206000915090505481565b600f5481565b610e94610e8e6121b3565b826122e0565b610ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eca906142e1565b60405180910390fd5b610ede8383836123be565b505050565b6000610eee8361149d565b8210610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690614041565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f906121b3565b73ffffffffffffffffffffffffffffffffffffffff16610fae611825565b73ffffffffffffffffffffffffffffffffffffffff1614611004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffb90614221565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161102a90613f46565b60006040518083038185875af1925050503d8060008114611067576040519150601f19603f3d011682016040523d82523d6000602084013e61106c565b606091505b505090508061107a57600080fd5b50565b61109883838360405180602001604052806000815250611c7d565b505050565b606060006110aa8361149d565b905060008167ffffffffffffffff8111156110ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561111c5781602001602082028036833780820191505090505b50905060005b8281101561118c576111348582610ee3565b82828151811061116d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611184906146ad565b915050611122565b508092505050919050565b61119f6121b3565b73ffffffffffffffffffffffffffffffffffffffff166111bd611825565b73ffffffffffffffffffffffffffffffffffffffff1614611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a90614221565b60405180910390fd5b80600d8190555050565b6000611227610e58565b8210611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f90614301565b60405180910390fd5b600882815481106112a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112bc6121b3565b73ffffffffffffffffffffffffffffffffffffffff166112da611825565b73ffffffffffffffffffffffffffffffffffffffff1614611330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132790614221565b60405180910390fd5b80600b90805190602001906113469291906134d1565b5050565b601360009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd906141a1565b60405180910390fd5b80915050919050565b6114176121b3565b73ffffffffffffffffffffffffffffffffffffffff16611435611825565b73ffffffffffffffffffffffffffffffffffffffff161461148b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148290614221565b60405180910390fd5b80600e8190555050565b600047905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590614181565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600b80546115649061464a565b80601f01602080910402602001604051908101604052809291908181526020018280546115909061464a565b80156115dd5780601f106115b2576101008083540402835291602001916115dd565b820191906000526020600020905b8154815290600101906020018083116115c057829003601f168201915b5050505050905090565b6115ef6121b3565b73ffffffffffffffffffffffffffffffffffffffff1661160d611825565b73ffffffffffffffffffffffffffffffffffffffff1614611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90614221565b60405180910390fd5b61166d600061261a565b565b6000600d54905090565b6116816121b3565b73ffffffffffffffffffffffffffffffffffffffff1661169f611825565b73ffffffffffffffffffffffffffffffffffffffff16146116f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ec90614221565b60405180910390fd5b60008211611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172f90614321565b60405180910390fd5b6000611742610e58565b9050600e548382611753919061447f565b1115611794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178b906141c1565b60405180910390fd5b6000600190505b83811161181f57601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906117f2906146ad565b919050555061180c838284611807919061447f565b6126e0565b8080611817906146ad565b91505061179b565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461185e9061464a565b80601f016020809104026020016040519081016040528092919081815260200182805461188a9061464a565b80156118d75780601f106118ac576101008083540402835291602001916118d7565b820191906000526020600020905b8154815290600101906020018083116118ba57829003601f168201915b5050505050905090565b601360009054906101000a900460ff1615611931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192890614241565b60405180910390fd5b601254421015611976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196d90614021565b60405180910390fd5b80600081116119ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b190614321565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611a0881846126fe565b6000611a12610e58565b9050600e548482611a23919061447f565b1115611a64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5b906141c1565b60405180910390fd5b6000600190505b848111611aef57601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611ac2906146ad565b9190505550611adc338284611ad7919061447f565b6126e0565b8080611ae7906146ad565b915050611a6b565b5050505050565b611afe6121b3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6390614101565b60405180910390fd5b8060056000611b796121b3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c266121b3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c6b9190613fe4565b60405180910390a35050565b60115481565b611c8e611c886121b3565b836122e0565b611ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc4906142e1565b60405180910390fd5b611cd984848484612952565b50505050565b60105481565b600c8054611cf29061464a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1e9061464a565b8015611d6b5780601f10611d4057610100808354040283529160200191611d6b565b820191906000526020600020905b815481529060010190602001808311611d4e57829003601f168201915b505050505081565b6060611d7e826121bb565b611dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db490614281565b60405180910390fd5b6000611dc76129ae565b90506000815111611de75760405180602001604052806000815250611e15565b80611df184612a40565b600c604051602001611e0593929190613f15565b6040516020818303038152906040525b915050919050565b611e256121b3565b73ffffffffffffffffffffffffffffffffffffffff16611e43611825565b73ffffffffffffffffffffffffffffffffffffffff1614611e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9090614221565b60405180910390fd5b8060108190555050565b600e5481565b611eb16121b3565b73ffffffffffffffffffffffffffffffffffffffff16611ecf611825565b73ffffffffffffffffffffffffffffffffffffffff1614611f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1c90614221565b60405180910390fd5b80600c9080519060200190611f3b9291906134d1565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60125481565b611fe16121b3565b73ffffffffffffffffffffffffffffffffffffffff16611fff611825565b73ffffffffffffffffffffffffffffffffffffffff1614612055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204c90614221565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bc90614081565b60405180910390fd5b6120ce8161261a565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121ac57506121ab82612bed565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661229a8361135d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122eb826121bb565b61232a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232190614141565b60405180910390fd5b60006123358361135d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123a457508373ffffffffffffffffffffffffffffffffffffffff1661238c84610ba9565b73ffffffffffffffffffffffffffffffffffffffff16145b806123b557506123b48185611f3f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123de8261135d565b73ffffffffffffffffffffffffffffffffffffffff1614612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90614261565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249b906140e1565b60405180910390fd5b6124af838383612c57565b6124ba600082612227565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461250a9190614560565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612561919061447f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6126fa828260405180602001604052806000815250612d6b565b5050565b600073e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161274d9190613f5b565b60206040518083038186803b15801561276557600080fd5b505afa158015612779573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061279d919061394e565b905060007308dc692fe528ffecf675ab3f76981553e060fd8a73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016127ee9190613f5b565b60206040518083038186803b15801561280657600080fd5b505afa15801561281a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283e919061394e565b905060006128558284612dc690919063ffffffff16565b90506010548486612866919061447f565b11156128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e906140c1565b60405180910390fd5b83600d546128b59190614506565b3410156128f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ee906142c1565b60405180910390fd5b600f5484111561293c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293390614121565b60405180910390fd5b60115481101561294b57600080fd5b5050505050565b61295d8484846123be565b61296984848484612ddc565b6129a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299f90614061565b60405180910390fd5b50505050565b6060600b80546129bd9061464a565b80601f01602080910402602001604051908101604052809291908181526020018280546129e99061464a565b8015612a365780601f10612a0b57610100808354040283529160200191612a36565b820191906000526020600020905b815481529060010190602001808311612a1957829003601f168201915b5050505050905090565b60606000821415612a88576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612be8565b600082905060005b60008214612aba578080612aa3906146ad565b915050600a82612ab391906144d5565b9150612a90565b60008167ffffffffffffffff811115612afc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b2e5781602001600182028036833780820191505090505b5090505b60008514612be157600182612b479190614560565b9150600a85612b5691906146f6565b6030612b62919061447f565b60f81b818381518110612b9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bda91906144d5565b9450612b32565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c62838383612f73565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ca557612ca081612f78565b612ce4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612ce357612ce28382612fc1565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d2757612d228161312e565b612d66565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612d6557612d648282613271565b5b5b505050565b612d7583836132f0565b612d826000848484612ddc565b612dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db890614061565b60405180910390fd5b505050565b60008183612dd4919061447f565b905092915050565b6000612dfd8473ffffffffffffffffffffffffffffffffffffffff166134be565b15612f66578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e266121b3565b8786866040518563ffffffff1660e01b8152600401612e489493929190613f76565b602060405180830381600087803b158015612e6257600080fd5b505af1925050508015612e9357506040513d601f19601f82011682018060405250810190612e9091906138bb565b60015b612f16573d8060008114612ec3576040519150601f19603f3d011682016040523d82523d6000602084013e612ec8565b606091505b50600081511415612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614061565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f6b565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fce8461149d565b612fd89190614560565b90506000600760008481526020019081526020016000205490508181146130bd576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131429190614560565b9050600060096000848152602001908152602001600020549050600060088381548110613198577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106131e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613255577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061327c8361149d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613360576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613357906141e1565b60405180910390fd5b613369816121bb565b156133a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a0906140a1565b60405180910390fd5b6133b560008383612c57565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613405919061447f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546134dd9061464a565b90600052602060002090601f0160209004810192826134ff5760008555613546565b82601f1061351857805160ff1916838001178555613546565b82800160010185558215613546579182015b8281111561354557825182559160200191906001019061352a565b5b5090506135539190613557565b5090565b5b80821115613570576000816000905550600101613558565b5090565b600061358761358284614381565b61435c565b90508281526020810184848401111561359f57600080fd5b6135aa848285614608565b509392505050565b60006135c56135c0846143b2565b61435c565b9050828152602081018484840111156135dd57600080fd5b6135e8848285614608565b509392505050565b6000813590506135ff81614e32565b92915050565b60008135905061361481614e49565b92915050565b60008135905061362981614e60565b92915050565b60008151905061363e81614e60565b92915050565b600082601f83011261365557600080fd5b8135613665848260208601613574565b91505092915050565b600082601f83011261367f57600080fd5b813561368f8482602086016135b2565b91505092915050565b6000813590506136a781614e77565b92915050565b6000815190506136bc81614e77565b92915050565b6000602082840312156136d457600080fd5b60006136e2848285016135f0565b91505092915050565b600080604083850312156136fe57600080fd5b600061370c858286016135f0565b925050602061371d858286016135f0565b9150509250929050565b60008060006060848603121561373c57600080fd5b600061374a868287016135f0565b935050602061375b868287016135f0565b925050604061376c86828701613698565b9150509250925092565b6000806000806080858703121561378c57600080fd5b600061379a878288016135f0565b94505060206137ab878288016135f0565b93505060406137bc87828801613698565b925050606085013567ffffffffffffffff8111156137d957600080fd5b6137e587828801613644565b91505092959194509250565b6000806040838503121561380457600080fd5b6000613812858286016135f0565b925050602061382385828601613605565b9150509250929050565b6000806040838503121561384057600080fd5b600061384e858286016135f0565b925050602061385f85828601613698565b9150509250929050565b60006020828403121561387b57600080fd5b600061388984828501613605565b91505092915050565b6000602082840312156138a457600080fd5b60006138b28482850161361a565b91505092915050565b6000602082840312156138cd57600080fd5b60006138db8482850161362f565b91505092915050565b6000602082840312156138f657600080fd5b600082013567ffffffffffffffff81111561391057600080fd5b61391c8482850161366e565b91505092915050565b60006020828403121561393757600080fd5b600061394584828501613698565b91505092915050565b60006020828403121561396057600080fd5b600061396e848285016136ad565b91505092915050565b6000806040838503121561398a57600080fd5b600061399885828601613698565b92505060206139a9858286016135f0565b9150509250929050565b60006139bf8383613ef7565b60208301905092915050565b6139d481614594565b82525050565b60006139e582614408565b6139ef8185614436565b93506139fa836143e3565b8060005b83811015613a2b578151613a1288826139b3565b9750613a1d83614429565b9250506001810190506139fe565b5085935050505092915050565b613a41816145a6565b82525050565b6000613a5282614413565b613a5c8185614447565b9350613a6c818560208601614617565b613a75816147e3565b840191505092915050565b6000613a8b8261441e565b613a958185614463565b9350613aa5818560208601614617565b613aae816147e3565b840191505092915050565b6000613ac48261441e565b613ace8185614474565b9350613ade818560208601614617565b80840191505092915050565b60008154613af78161464a565b613b018186614474565b94506001821660008114613b1c5760018114613b2d57613b60565b60ff19831686528186019350613b60565b613b36856143f3565b60005b83811015613b5857815481890152600182019150602081019050613b39565b838801955050505b50505092915050565b6000613b76601883614463565b9150613b81826147f4565b602082019050919050565b6000613b99602b83614463565b9150613ba48261481d565b604082019050919050565b6000613bbc603283614463565b9150613bc78261486c565b604082019050919050565b6000613bdf602683614463565b9150613bea826148bb565b604082019050919050565b6000613c02601c83614463565b9150613c0d8261490a565b602082019050919050565b6000613c25601c83614463565b9150613c3082614933565b602082019050919050565b6000613c48602483614463565b9150613c538261495c565b604082019050919050565b6000613c6b601983614463565b9150613c76826149ab565b602082019050919050565b6000613c8e602883614463565b9150613c99826149d4565b604082019050919050565b6000613cb1602c83614463565b9150613cbc82614a23565b604082019050919050565b6000613cd4603883614463565b9150613cdf82614a72565b604082019050919050565b6000613cf7602a83614463565b9150613d0282614ac1565b604082019050919050565b6000613d1a602983614463565b9150613d2582614b10565b604082019050919050565b6000613d3d601683614463565b9150613d4882614b5f565b602082019050919050565b6000613d60602083614463565b9150613d6b82614b88565b602082019050919050565b6000613d83602c83614463565b9150613d8e82614bb1565b604082019050919050565b6000613da6602083614463565b9150613db182614c00565b602082019050919050565b6000613dc9601683614463565b9150613dd482614c29565b602082019050919050565b6000613dec602983614463565b9150613df782614c52565b604082019050919050565b6000613e0f602f83614463565b9150613e1a82614ca1565b604082019050919050565b6000613e32602183614463565b9150613e3d82614cf0565b604082019050919050565b6000613e55600083614458565b9150613e6082614d3f565b600082019050919050565b6000613e78601283614463565b9150613e8382614d42565b602082019050919050565b6000613e9b603183614463565b9150613ea682614d6b565b604082019050919050565b6000613ebe602c83614463565b9150613ec982614dba565b604082019050919050565b6000613ee1601b83614463565b9150613eec82614e09565b602082019050919050565b613f00816145fe565b82525050565b613f0f816145fe565b82525050565b6000613f218286613ab9565b9150613f2d8285613ab9565b9150613f398284613aea565b9150819050949350505050565b6000613f5182613e48565b9150819050919050565b6000602082019050613f7060008301846139cb565b92915050565b6000608082019050613f8b60008301876139cb565b613f9860208301866139cb565b613fa56040830185613f06565b8181036060830152613fb78184613a47565b905095945050505050565b60006020820190508181036000830152613fdc81846139da565b905092915050565b6000602082019050613ff96000830184613a38565b92915050565b600060208201905081810360008301526140198184613a80565b905092915050565b6000602082019050818103600083015261403a81613b69565b9050919050565b6000602082019050818103600083015261405a81613b8c565b9050919050565b6000602082019050818103600083015261407a81613baf565b9050919050565b6000602082019050818103600083015261409a81613bd2565b9050919050565b600060208201905081810360008301526140ba81613bf5565b9050919050565b600060208201905081810360008301526140da81613c18565b9050919050565b600060208201905081810360008301526140fa81613c3b565b9050919050565b6000602082019050818103600083015261411a81613c5e565b9050919050565b6000602082019050818103600083015261413a81613c81565b9050919050565b6000602082019050818103600083015261415a81613ca4565b9050919050565b6000602082019050818103600083015261417a81613cc7565b9050919050565b6000602082019050818103600083015261419a81613cea565b9050919050565b600060208201905081810360008301526141ba81613d0d565b9050919050565b600060208201905081810360008301526141da81613d30565b9050919050565b600060208201905081810360008301526141fa81613d53565b9050919050565b6000602082019050818103600083015261421a81613d76565b9050919050565b6000602082019050818103600083015261423a81613d99565b9050919050565b6000602082019050818103600083015261425a81613dbc565b9050919050565b6000602082019050818103600083015261427a81613ddf565b9050919050565b6000602082019050818103600083015261429a81613e02565b9050919050565b600060208201905081810360008301526142ba81613e25565b9050919050565b600060208201905081810360008301526142da81613e6b565b9050919050565b600060208201905081810360008301526142fa81613e8e565b9050919050565b6000602082019050818103600083015261431a81613eb1565b9050919050565b6000602082019050818103600083015261433a81613ed4565b9050919050565b60006020820190506143566000830184613f06565b92915050565b6000614366614377565b9050614372828261467c565b919050565b6000604051905090565b600067ffffffffffffffff82111561439c5761439b6147b4565b5b6143a5826147e3565b9050602081019050919050565b600067ffffffffffffffff8211156143cd576143cc6147b4565b5b6143d6826147e3565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061448a826145fe565b9150614495836145fe565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144ca576144c9614727565b5b828201905092915050565b60006144e0826145fe565b91506144eb836145fe565b9250826144fb576144fa614756565b5b828204905092915050565b6000614511826145fe565b915061451c836145fe565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561455557614554614727565b5b828202905092915050565b600061456b826145fe565b9150614576836145fe565b92508282101561458957614588614727565b5b828203905092915050565b600061459f826145de565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561463557808201518184015260208101905061461a565b83811115614644576000848401525b50505050565b6000600282049050600182168061466257607f821691505b6020821081141561467657614675614785565b5b50919050565b614685826147e3565b810181811067ffffffffffffffff821117156146a4576146a36147b4565b5b80604052505050565b60006146b8826145fe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146eb576146ea614727565b5b600182019050919050565b6000614701826145fe565b915061470c836145fe565b92508261471c5761471b614756565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f53616c6520686173206e6f742073746172746564207965740000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f6d6178206d696e7420616d6f756e7420706572207472616e73616374696f6e2060008201527f6578636565646564000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b614e3b81614594565b8114614e4657600080fd5b50565b614e52816145a6565b8114614e5d57600080fd5b50565b614e69816145b2565b8114614e7457600080fd5b50565b614e80816145fe565b8114614e8b57600080fd5b5056fea2646970667358221220bd8cca4701c573a4b00f90982376b32313e7e7318e5b1db16a1d73d704d762a364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000074b4559436172640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074b45594341524400000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): KEYCard
Arg [1] : _symbol (string): KEYCARD
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [3] : 4b45594361726400000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 4b45594341524400000000000000000000000000000000000000000000000000
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.