Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1478821560676559018484031529196840593717...
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
EKotketNFT
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "./extensions/ERC721Enumerable.sol"; import "./EGovernanceBase.sol"; import "./EKotketNFTBase.sol"; contract EKotketNFT is EGovernanceBase, EKotketNFTBase, ERC721URIStorage, ERC721Enumerable { string public baseTokenURI; struct KotketInfo { KOTKET_GENES gene; uint256 birthTime; string name; } mapping(uint=>KotketInfo) public kotketInfoMap; mapping (KOTKET_GENES => uint256) public winrateMap; event WinRateChanged(uint8 indexed gene, uint256 winrate, address setter); constructor(address _governanceAdress, string memory name, string memory symbol, string memory _baseTokenURI) EGovernanceBase(_governanceAdress) ERC721(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(SC_MINTER_ROLE, _msgSender()); baseTokenURI = _baseTokenURI; winrateMap[KOTKET_GENES.KITI] = 950; winrateMap[KOTKET_GENES.RED] = 955; winrateMap[KOTKET_GENES.BLUE] = 960; winrateMap[KOTKET_GENES.LUCI] = 965; winrateMap[KOTKET_GENES.TOM] = 970; winrateMap[KOTKET_GENES.KOTKET] = 975; winrateMap[KOTKET_GENES.KING] = 980; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory _baseTokenURI) public onlyAdminPermission{ baseTokenURI = _baseTokenURI; } function updateWinRate(uint8 _gene, uint256 _winrate) public onlyAdminPermission{ require(_gene <= uint8(KOTKET_GENES.KING), "Invalid Gene"); require(_winrate <= 1000, "Invalid Win Rate"); KOTKET_GENES gene = KOTKET_GENES(_gene); winrateMap[gene] = _winrate; emit WinRateChanged(_gene, _winrate, _msgSender()); } function getGene(uint256 _tokenId) public view returns (uint8){ return uint8(kotketInfoMap[_tokenId].gene); } function tokenExisted(uint256 _tokenId) public view returns (bool){ return _exists(_tokenId); } function kotketBred(address _beneficiary, uint256 _tokenId, uint8 _gene, string memory _name, string memory _metadataURI) public onlyMinterPermission{ require(!tokenExisted(_tokenId), "TokenId Existed"); require(_gene <= uint8(KOTKET_GENES.KING), "Invalid Gene"); KOTKET_GENES gene = KOTKET_GENES(_gene); _safeMint(_beneficiary, _tokenId); kotketInfoMap[_tokenId].gene = gene; kotketInfoMap[_tokenId].birthTime = block.timestamp; kotketInfoMap[_tokenId].name = _name; _setTokenURI(_tokenId, _metadataURI); } function burn(uint256 tokenId) public virtual { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); delete kotketInfoMap[tokenId]; _burn(tokenId); } function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// 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 "./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; /** * @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; /* * @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 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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; 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; 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"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// 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 "../../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; 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(to).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 "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable { function getRoleMember(bytes32 role, uint256 index) external view returns (address); function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; interface EGovernanceInterface { function kotketWallet() external view returns (address); function kotketFundWallet() external view returns (address); function kotketTokenAddress() external view returns (address); function kotketNFTAddress() external view returns (address); function kotketGatewayOracleAddress() external view returns (address); function kotketNFTFactoryAddress() external view returns (address); function kotketNFTMarketPlaceAddress() external view returns (address); function kotketNFTRentalMarketAddress() external view returns (address); function kotketNFTPlatformRentingAddress() external view returns (address); function usdtAddress() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/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(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; 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]; } function tokensOwned(address owner) public view returns (uint256[] memory ids) { uint256 length = balanceOf(owner); uint256[] memory coverIds = new uint256[](length); if (length > 0){ for (uint256 i = 0; i < length; i++) { uint256 id = tokenOfOwnerByIndex(owner, i); coverIds[i] = id; } } return coverIds; } function allTokens() public view returns (uint256[] memory ids) { return _allTokens; } /** * @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 { uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; _ownedTokensIndex[lastTokenId] = tokenIndex; } 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 { uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; _allTokensIndex[lastTokenId] = tokenIndex; delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; contract EKotketNFTBase{ enum KOTKET_GENES { KITI, RED, BLUE, LUCI, TOM, KOTKET, KING } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; import "openzeppelin-solidity/contracts/access/AccessControlEnumerable.sol"; import "openzeppelin-solidity/contracts/utils/Context.sol"; contract EKotketAccessControl is Context, AccessControlEnumerable { bytes32 public constant SC_MINTER_ROLE = keccak256("SC_MINTER_ROLE"); bytes32 public constant SC_GATEWAY_ORACLE_ROLE = keccak256("SC_GATEWAY_ORACLE_ROLE"); modifier onlyGatewayOraclePermission() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) || hasRole(SC_GATEWAY_ORACLE_ROLE, _msgSender()), "Dont have Gateway Oracle permission!"); _; } modifier onlyMinterPermission() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) || hasRole(SC_MINTER_ROLE, _msgSender()), "Dont have Minter permission!"); _; } modifier onlyAdminPermission() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Dont have Admin permission!"); _; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; import "./interfaces/EGovernanceInterface.sol"; import "./EKotketAccessControl.sol"; contract EGovernanceBase is EKotketAccessControl{ EGovernanceInterface internal governance; constructor (address _governanceAdress) { require(_governanceAdress != address(0), "Governance is the zero address"); governance = EGovernanceInterface(_governanceAdress); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governanceAdress","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"gene","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"winrate","type":"uint256"},{"indexed":false,"internalType":"address","name":"setter","type":"address"}],"name":"WinRateChanged","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SC_GATEWAY_ORACLE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SC_MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allTokens","outputs":[{"internalType":"uint256[]","name":"ids","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getGene","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint8","name":"_gene","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_metadataURI","type":"string"}],"name":"kotketBred","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"kotketInfoMap","outputs":[{"internalType":"enum EKotketNFTBase.KOTKET_GENES","name":"gene","type":"uint8"},{"internalType":"uint256","name":"birthTime","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenExisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOwned","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_gene","type":"uint8"},{"internalType":"uint256","name":"_winrate","type":"uint256"}],"name":"updateWinRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum EKotketNFTBase.KOTKET_GENES","name":"","type":"uint8"}],"name":"winrateMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005fe838038062005fe8833981810160405281019062000037919062000767565b828285600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000ad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a4906200085d565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505081600390805190602001906200010792919062000622565b5080600490805190602001906200012092919062000622565b505050620001476000801b6200013b6200038c60201b60201c565b6200039460201b60201c565b620001887fb49ea64ca9363ee24557fab3bed24140051b27b150a6658dd9436859666b28056200017c6200038c60201b60201c565b6200039460201b60201c565b80600e9080519060200190620001a092919062000622565b506103b660106000806006811115620001be57620001bd620009c5565b5b6006811115620001d357620001d2620009c5565b5b8152602001908152602001600020819055506103bb6010600060016006811115620002035762000202620009c5565b5b6006811115620002185762000217620009c5565b5b8152602001908152602001600020819055506103c06010600060026006811115620002485762000247620009c5565b5b60068111156200025d576200025c620009c5565b5b8152602001908152602001600020819055506103c560106000600360068111156200028d576200028c620009c5565b5b6006811115620002a257620002a1620009c5565b5b8152602001908152602001600020819055506103ca6010600060046006811115620002d257620002d1620009c5565b5b6006811115620002e757620002e6620009c5565b5b8152602001908152602001600020819055506103cf6010600060056006811115620003175762000316620009c5565b5b60068111156200032c576200032b620009c5565b5b8152602001908152602001600020819055506103d4601060006006808111156200035b576200035a620009c5565b5b600681111562000370576200036f620009c5565b5b8152602001908152602001600020819055505050505062000aba565b600033905090565b620003ab8282620003dc60201b620019201760201c565b620003d78160016000858152602001908152602001600020620003f260201b6200192e1790919060201c565b505050565b620003ee82826200042a60201b60201c565b5050565b600062000422836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200051b60201b60201c565b905092915050565b6200043c82826200059560201b60201c565b6200051757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004bc6200038c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006200052f8383620005ff60201b60201c565b6200058a5782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200058f565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054620006309062000959565b90600052602060002090601f016020900481019282620006545760008555620006a0565b82601f106200066f57805160ff1916838001178555620006a0565b82800160010185558215620006a0579182015b828111156200069f57825182559160200191906001019062000682565b5b509050620006af9190620006b3565b5090565b5b80821115620006ce576000816000905550600101620006b4565b5090565b6000620006e9620006e384620008a8565b6200087f565b90508281526020810184848401111562000708576200070762000a57565b5b6200071584828562000923565b509392505050565b6000815190506200072e8162000aa0565b92915050565b600082601f8301126200074c576200074b62000a52565b5b81516200075e848260208601620006d2565b91505092915050565b6000806000806080858703121562000784576200078362000a61565b5b600062000794878288016200071d565b945050602085015167ffffffffffffffff811115620007b857620007b762000a5c565b5b620007c68782880162000734565b935050604085015167ffffffffffffffff811115620007ea57620007e962000a5c565b5b620007f88782880162000734565b925050606085015167ffffffffffffffff8111156200081c576200081b62000a5c565b5b6200082a8782880162000734565b91505092959194509250565b600062000845601e83620008de565b9150620008528262000a77565b602082019050919050565b60006020820190508181036000830152620008788162000836565b9050919050565b60006200088b6200089e565b90506200089982826200098f565b919050565b6000604051905090565b600067ffffffffffffffff821115620008c657620008c562000a23565b5b620008d18262000a66565b9050602081019050919050565b600082825260208201905092915050565b6000620008fc8262000903565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200094357808201518184015260208101905062000926565b8381111562000953576000848401525b50505050565b600060028204905060018216806200097257607f821691505b60208210811415620009895762000988620009f4565b5b50919050565b6200099a8262000a66565b810181811067ffffffffffffffff82111715620009bc57620009bb62000a23565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f476f7665726e616e636520697320746865207a65726f20616464726573730000600082015250565b62000aab81620008ef565b811462000ab757600080fd5b50565b61551e8062000aca6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636352211e11610130578063a217fddf116100b8578063d0db0d2f1161007c578063d0db0d2f146106e4578063d547741f14610716578063d547cfb714610732578063e22cb7c914610750578063e985e9c51461076e57610227565b8063a217fddf1461062e578063a22cb4651461064c578063b88d4fde14610668578063c87b56dd14610684578063ca15c873146106b457610227565b806377f5ca71116100ff57806377f5ca71146105645780639010d07c1461058057806391d14854146105b0578063945454ea146105e057806395d89b411461061057610227565b80636352211e146104c85780636ff97f1d146104f857806370a082311461051657806370f9f4571461054657610227565b8063248a9ca3116101b357806342842e0e1161018257806342842e0e1461041457806342966c68146104305780634f6ccce71461044c57806355f804b31461047c5780635cb135d21461049857610227565b8063248a9ca31461037c5780632f2ff15d146103ac5780632f745c59146103c857806336568abe146103f857610227565b80630c557937116101fa5780630c557937146102c657806318160ddd146102f6578063201eb8091461031457806321cda7901461033057806323b872dd1461036057610227565b806301ffc9a71461022c57806306fdde031461025c578063081812fc1461027a578063095ea7b3146102aa575b600080fd5b61024660048036038101906102419190613c0a565b61079e565b6040516102539190614384565b60405180910390f35b6102646107b0565b60405161027191906143f8565b60405180910390f35b610294600480360381019061028f9190613cda565b610842565b6040516102a191906142fb565b60405180910390f35b6102c460048036038101906102bf9190613a6a565b6108c7565b005b6102e060048036038101906102db9190613cda565b6109df565b6040516102ed919061479e565b60405180910390f35b6102fe610a1e565b60405161030b919061475a565b60405180910390f35b61032e60048036038101906103299190613d07565b610a2b565b005b61034a600480360381019061034591906138e7565b610bbd565b6040516103579190614362565b60405180910390f35b61037a60048036038101906103759190613954565b610c7b565b005b61039660048036038101906103919190613b5d565b610cdb565b6040516103a3919061439f565b60405180910390f35b6103c660048036038101906103c19190613b8a565b610cfa565b005b6103e260048036038101906103dd9190613a6a565b610d2e565b6040516103ef919061475a565b60405180910390f35b610412600480360381019061040d9190613b8a565b610dd3565b005b61042e60048036038101906104299190613954565b610e07565b005b61044a60048036038101906104459190613cda565b610e27565b005b61046660048036038101906104619190613cda565b610ec5565b604051610473919061475a565b60405180910390f35b61049660048036038101906104919190613c91565b610f36565b005b6104b260048036038101906104ad9190613c64565b610fa3565b6040516104bf919061475a565b60405180910390f35b6104e260048036038101906104dd9190613cda565b610fbb565b6040516104ef91906142fb565b60405180910390f35b61050061106d565b60405161050d9190614362565b60405180910390f35b610530600480360381019061052b91906138e7565b6110c5565b60405161053d919061475a565b60405180910390f35b61054e61117d565b60405161055b919061439f565b60405180910390f35b61057e60048036038101906105799190613aaa565b6111a1565b005b61059a60048036038101906105959190613bca565b61138a565b6040516105a791906142fb565b60405180910390f35b6105ca60048036038101906105c59190613b8a565b6113b9565b6040516105d79190614384565b60405180910390f35b6105fa60048036038101906105f59190613cda565b611423565b6040516106079190614384565b60405180910390f35b610618611435565b60405161062591906143f8565b60405180910390f35b6106366114c7565b604051610643919061439f565b60405180910390f35b61066660048036038101906106619190613a2a565b6114ce565b005b610682600480360381019061067d91906139a7565b61164f565b005b61069e60048036038101906106999190613cda565b6116b1565b6040516106ab91906143f8565b60405180910390f35b6106ce60048036038101906106c99190613b5d565b6116c3565b6040516106db919061475a565b60405180910390f35b6106fe60048036038101906106f99190613cda565b6116e7565b60405161070d939291906143ba565b60405180910390f35b610730600480360381019061072b9190613b8a565b6117a6565b005b61073a6117da565b60405161074791906143f8565b60405180910390f35b610758611868565b604051610765919061439f565b60405180910390f35b61078860048036038101906107839190613914565b61188c565b6040516107959190614384565b60405180910390f35b60006107a98261195e565b9050919050565b6060600380546107bf90614aed565b80601f01602080910402602001604051908101604052809291908181526020018280546107eb90614aed565b80156108385780601f1061080d57610100808354040283529160200191610838565b820191906000526020600020905b81548152906001019060200180831161081b57829003601f168201915b5050505050905090565b600061084d826119d8565b61088c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610883906145fa565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d282610fbb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610943576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093a9061467a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610962611a44565b73ffffffffffffffffffffffffffffffffffffffff16148061099157506109908161098b611a44565b61188c565b5b6109d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c79061453a565b60405180910390fd5b6109da8383611a4c565b505050565b6000600f600083815260200190815260200160002060000160009054906101000a900460ff166006811115610a1757610a16614c28565b5b9050919050565b6000600c80549050905090565b610a3f6000801b610a3a611a44565b6113b9565b610a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a75906146da565b60405180910390fd5b600680811115610a9157610a90614c28565b5b60ff168260ff161115610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad09061443a565b60405180910390fd5b6103e8811115610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b159061471a565b60405180910390fd5b60008260ff166006811115610b3657610b35614c28565b5b90508160106000836006811115610b5057610b4f614c28565b5b6006811115610b6257610b61614c28565b5b8152602001908152602001600020819055508260ff167fdc88c4e01ac2382124491f54109dc41f949ba157eaa06bcc65bca0412ced1e7c83610ba2611a44565b604051610bb0929190614775565b60405180910390a2505050565b60606000610bca836110c5565b905060008167ffffffffffffffff811115610be857610be7614ce4565b5b604051908082528060200260200182016040528015610c165781602001602082028036833780820191505090505b5090506000821115610c715760005b82811015610c6f576000610c398683610d2e565b905080838381518110610c4f57610c4e614cb5565b5b602002602001018181525050508080610c6790614b50565b915050610c25565b505b8092505050919050565b610c8c610c86611a44565b82611b05565b610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc29061469a565b60405180910390fd5b610cd6838383611be3565b505050565b6000806000838152602001908152602001600020600101549050919050565b610d048282611e3f565b610d29816001600085815260200190815260200160002061192e90919063ffffffff16565b505050565b6000610d39836110c5565b8210610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d719061445a565b60405180910390fd5b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ddd8282611e68565b610e028160016000858152602001908152602001600020611eeb90919063ffffffff16565b505050565b610e228383836040518060200160405280600081525061164f565b505050565b610e38610e32611a44565b82611b05565b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e906146fa565b60405180910390fd5b600f6000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000610eb7919061367c565b5050610ec281611f1b565b50565b6000610ecf610a1e565b8210610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f07906146ba565b60405180910390fd5b600c8281548110610f2457610f23614cb5565b5b90600052602060002001549050919050565b610f4a6000801b610f45611a44565b6113b9565b610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906146da565b60405180910390fd5b80600e9080519060200190610f9f9291906136bc565b5050565b60106020528060005260406000206000915090505481565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b9061457a565b60405180910390fd5b80915050919050565b6060600c8054806020026020016040519081016040528092919081815260200182805480156110bb57602002820191906000526020600020905b8154815260200190600101908083116110a7575b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d9061455a565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fb49ea64ca9363ee24557fab3bed24140051b27b150a6658dd9436859666b280581565b6111b56000801b6111b0611a44565b6113b9565b806111ed57506111ec7fb49ea64ca9363ee24557fab3bed24140051b27b150a6658dd9436859666b28056111e7611a44565b6113b9565b5b61122c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239061451a565b60405180910390fd5b61123584611423565b15611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c9061463a565b60405180910390fd5b60068081111561128857611287614c28565b5b60ff168360ff1611156112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c79061443a565b60405180910390fd5b60008360ff1660068111156112e8576112e7614c28565b5b90506112f48686611f27565b80600f600087815260200190815260200160002060000160006101000a81548160ff0219169083600681111561132d5761132c614c28565b5b021790555042600f60008781526020019081526020016000206001018190555082600f600087815260200190815260200160002060020190805190602001906113779291906136bc565b506113828583611f45565b505050505050565b60006113b18260016000868152602001908152602001600020611fb990919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061142e826119d8565b9050919050565b60606004805461144490614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461147090614aed565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050505050905090565b6000801b81565b6114d6611a44565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b906144da565b60405180910390fd5b8060086000611551611a44565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115fe611a44565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116439190614384565b60405180910390a35050565b61166061165a611a44565b83611b05565b61169f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116969061469a565b60405180910390fd5b6116ab84848484611fd3565b50505050565b60606116bc8261202f565b9050919050565b60006116e060016000848152602001908152602001600020612181565b9050919050565b600f6020528060005260406000206000915090508060000160009054906101000a900460ff169080600101549080600201805461172390614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461174f90614aed565b801561179c5780601f106117715761010080835404028352916020019161179c565b820191906000526020600020905b81548152906001019060200180831161177f57829003601f168201915b5050505050905083565b6117b08282612196565b6117d58160016000858152602001908152602001600020611eeb90919063ffffffff16565b505050565b600e80546117e790614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461181390614aed565b80156118605780601f1061183557610100808354040283529160200191611860565b820191906000526020600020905b81548152906001019060200180831161184357829003601f168201915b505050505081565b7f1b29449712117a54a2a96c49e8068b0f884e4ce02b861028ef54f23e90ecdcd281565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61192a82826121bf565b5050565b6000611956836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61229f565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119d157506119d08261230f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611abf83610fbb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b10826119d8565b611b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b46906144fa565b60405180910390fd5b6000611b5a83610fbb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611bc957508373ffffffffffffffffffffffffffffffffffffffff16611bb184610842565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bda5750611bd9818561188c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c0382610fbb565b73ffffffffffffffffffffffffffffffffffffffff1614611c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c509061461a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc0906144ba565b60405180910390fd5b611cd48383836123f1565b611cdf600082611a4c565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d2f919061499d565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d8691906148bc565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e4882610cdb565b611e5981611e54611a44565b612401565b611e6383836121bf565b505050565b611e70611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed49061473a565b60405180910390fd5b611ee7828261249e565b5050565b6000611f13836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61257f565b905092915050565b611f2481612693565b50565b611f418282604051806020016040528060008152506126e6565b5050565b611f4e826119d8565b611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f849061459a565b60405180910390fd5b80600960008481526020019081526020016000209080519060200190611fb49291906136bc565b505050565b6000611fc88360000183612741565b60001c905092915050565b611fde848484611be3565b611fea8484848461276c565b612029576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120209061447a565b60405180910390fd5b50505050565b606061203a826119d8565b612079576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612070906145da565b60405180910390fd5b600060096000848152602001908152602001600020805461209990614aed565b80601f01602080910402602001604051908101604052809291908181526020018280546120c590614aed565b80156121125780601f106120e757610100808354040283529160200191612112565b820191906000526020600020905b8154815290600101906020018083116120f557829003601f168201915b505050505090506000612123612903565b905060008151141561213957819250505061217c565b60008251111561216e57808260405160200161215692919061429d565b6040516020818303038152906040529250505061217c565b61217784612995565b925050505b919050565b600061218f82600001612a3c565b9050919050565b61219f82610cdb565b6121b0816121ab611a44565b612401565b6121ba838361249e565b505050565b6121c982826113b9565b61229b57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612240611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006122ab8383612a4d565b612304578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612309565b600090505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123da57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123ea57506123e982612a70565b5b9050919050565b6123fc838383612aea565b505050565b61240b82826113b9565b61249a576124308173ffffffffffffffffffffffffffffffffffffffff166014612bfe565b61243e8360001c6020612bfe565b60405160200161244f9291906142c1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249191906143f8565b60405180910390fd5b5050565b6124a882826113b9565b1561257b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612520611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080836001016000848152602001908152602001600020549050600081146126875760006001826125b1919061499d565b90506000600186600001805490506125c9919061499d565b90508181146126385760008660000182815481106125ea576125e9614cb5565b5b906000526020600020015490508087600001848154811061260e5761260d614cb5565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061264c5761264b614c86565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061268d565b60009150505b92915050565b61269c81612e3a565b60006009600083815260200190815260200160002080546126bc90614aed565b9050146126e3576009600082815260200190815260200160002060006126e2919061367c565b5b50565b6126f08383612f4b565b6126fd600084848461276c565b61273c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127339061447a565b60405180910390fd5b505050565b600082600001828154811061275957612758614cb5565b5b9060005260206000200154905092915050565b600061278d8473ffffffffffffffffffffffffffffffffffffffff16613119565b156128f6578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127b6611a44565b8786866040518563ffffffff1660e01b81526004016127d89493929190614316565b602060405180830381600087803b1580156127f257600080fd5b505af192505050801561282357506040513d601f19601f820116820180604052508101906128209190613c37565b60015b6128a6573d8060008114612853576040519150601f19603f3d011682016040523d82523d6000602084013e612858565b606091505b5060008151141561289e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128959061447a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128fb565b600190505b949350505050565b6060600e805461291290614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461293e90614aed565b801561298b5780601f106129605761010080835404028352916020019161298b565b820191906000526020600020905b81548152906001019060200180831161296e57829003601f168201915b5050505050905090565b60606129a0826119d8565b6129df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d69061465a565b60405180910390fd5b60006129e9612903565b90506000815111612a095760405180602001604052806000815250612a34565b80612a138461312c565b604051602001612a2492919061429d565b6040516020818303038152906040525b915050919050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ae35750612ae28261328d565b5b9050919050565b612af5838383613307565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b3857612b338161330c565b612b77565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b7657612b758382613355565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bba57612bb5816134c2565b612bf9565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612bf857612bf78282613593565b5b5b505050565b606060006002836002612c119190614943565b612c1b91906148bc565b67ffffffffffffffff811115612c3457612c33614ce4565b5b6040519080825280601f01601f191660200182016040528015612c665781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c9e57612c9d614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d0257612d01614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612d429190614943565b612d4c91906148bc565b90505b6001811115612dec577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d8e57612d8d614cb5565b5b1a60f81b828281518110612da557612da4614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612de590614ac3565b9050612d4f565b5060008414612e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e279061441a565b60405180910390fd5b8091505092915050565b6000612e4582610fbb565b9050612e53816000846123f1565b612e5e600083611a4c565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eae919061499d565b925050819055506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb2906145ba565b60405180910390fd5b612fc4816119d8565b15613004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffb9061449a565b60405180910390fd5b613010600083836123f1565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461306091906148bc565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415613174576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613288565b600082905060005b600082146131a657808061318f90614b50565b915050600a8261319f9190614912565b915061317c565b60008167ffffffffffffffff8111156131c2576131c1614ce4565b5b6040519080825280601f01601f1916602001820160405280156131f45781602001600182028036833780820191505090505b5090505b600085146132815760018261320d919061499d565b9150600a8561321c9190614b99565b603061322891906148bc565b60f81b81838151811061323e5761323d614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561327a9190614912565b94506131f8565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061330057506132ff82613612565b5b9050919050565b505050565b600c80549050600d600083815260200190815260200160002081905550600c81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613362846110c5565b61336c919061499d565b90506000600b6000848152602001908152602001600020549050818114613451576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600b600083815260200190815260200160002081905550505b600b600084815260200190815260200160002060009055600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600c805490506134d6919061499d565b90506000600d60008481526020019081526020016000205490506000600c838154811061350657613505614cb5565b5b9060005260206000200154905080600c838154811061352857613527614cb5565b5b906000526020600020018190555081600d600083815260200190815260200160002081905550600d600085815260200190815260200160002060009055600c80548061357757613576614c86565b5b6001900381819060005260206000200160009055905550505050565b600061359e836110c5565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600b600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50805461368890614aed565b6000825580601f1061369a57506136b9565b601f0160209004906000526020600020908101906136b89190613742565b5b50565b8280546136c890614aed565b90600052602060002090601f0160209004810192826136ea5760008555613731565b82601f1061370357805160ff1916838001178555613731565b82800160010185558215613731579182015b82811115613730578251825591602001919060010190613715565b5b50905061373e9190613742565b5090565b5b8082111561375b576000816000905550600101613743565b5090565b600061377261376d846147de565b6147b9565b90508281526020810184848401111561378e5761378d614d18565b5b613799848285614a81565b509392505050565b60006137b46137af8461480f565b6147b9565b9050828152602081018484840111156137d0576137cf614d18565b5b6137db848285614a81565b509392505050565b6000813590506137f28161544e565b92915050565b60008135905061380781615465565b92915050565b60008135905061381c8161547c565b92915050565b60008135905061383181615493565b92915050565b60008151905061384681615493565b92915050565b600082601f83011261386157613860614d13565b5b813561387184826020860161375f565b91505092915050565b600081359050613889816154aa565b92915050565b600082601f8301126138a4576138a3614d13565b5b81356138b48482602086016137a1565b91505092915050565b6000813590506138cc816154ba565b92915050565b6000813590506138e1816154d1565b92915050565b6000602082840312156138fd576138fc614d22565b5b600061390b848285016137e3565b91505092915050565b6000806040838503121561392b5761392a614d22565b5b6000613939858286016137e3565b925050602061394a858286016137e3565b9150509250929050565b60008060006060848603121561396d5761396c614d22565b5b600061397b868287016137e3565b935050602061398c868287016137e3565b925050604061399d868287016138bd565b9150509250925092565b600080600080608085870312156139c1576139c0614d22565b5b60006139cf878288016137e3565b94505060206139e0878288016137e3565b93505060406139f1878288016138bd565b925050606085013567ffffffffffffffff811115613a1257613a11614d1d565b5b613a1e8782880161384c565b91505092959194509250565b60008060408385031215613a4157613a40614d22565b5b6000613a4f858286016137e3565b9250506020613a60858286016137f8565b9150509250929050565b60008060408385031215613a8157613a80614d22565b5b6000613a8f858286016137e3565b9250506020613aa0858286016138bd565b9150509250929050565b600080600080600060a08688031215613ac657613ac5614d22565b5b6000613ad4888289016137e3565b9550506020613ae5888289016138bd565b9450506040613af6888289016138d2565b935050606086013567ffffffffffffffff811115613b1757613b16614d1d565b5b613b238882890161388f565b925050608086013567ffffffffffffffff811115613b4457613b43614d1d565b5b613b508882890161388f565b9150509295509295909350565b600060208284031215613b7357613b72614d22565b5b6000613b818482850161380d565b91505092915050565b60008060408385031215613ba157613ba0614d22565b5b6000613baf8582860161380d565b9250506020613bc0858286016137e3565b9150509250929050565b60008060408385031215613be157613be0614d22565b5b6000613bef8582860161380d565b9250506020613c00858286016138bd565b9150509250929050565b600060208284031215613c2057613c1f614d22565b5b6000613c2e84828501613822565b91505092915050565b600060208284031215613c4d57613c4c614d22565b5b6000613c5b84828501613837565b91505092915050565b600060208284031215613c7a57613c79614d22565b5b6000613c888482850161387a565b91505092915050565b600060208284031215613ca757613ca6614d22565b5b600082013567ffffffffffffffff811115613cc557613cc4614d1d565b5b613cd18482850161388f565b91505092915050565b600060208284031215613cf057613cef614d22565b5b6000613cfe848285016138bd565b91505092915050565b60008060408385031215613d1e57613d1d614d22565b5b6000613d2c858286016138d2565b9250506020613d3d858286016138bd565b9150509250929050565b6000613d538383614270565b60208301905092915050565b613d68816149d1565b82525050565b6000613d7982614850565b613d83818561487e565b9350613d8e83614840565b8060005b83811015613dbf578151613da68882613d47565b9750613db183614871565b925050600181019050613d92565b5085935050505092915050565b613dd5816149e3565b82525050565b613de4816149ef565b82525050565b6000613df58261485b565b613dff818561488f565b9350613e0f818560208601614a90565b613e1881614d27565b840191505092915050565b613e2c81614a6f565b82525050565b6000613e3d82614866565b613e4781856148a0565b9350613e57818560208601614a90565b613e6081614d27565b840191505092915050565b6000613e7682614866565b613e8081856148b1565b9350613e90818560208601614a90565b80840191505092915050565b6000613ea96020836148a0565b9150613eb482614d38565b602082019050919050565b6000613ecc600c836148a0565b9150613ed782614d61565b602082019050919050565b6000613eef602b836148a0565b9150613efa82614d8a565b604082019050919050565b6000613f126032836148a0565b9150613f1d82614dd9565b604082019050919050565b6000613f35601c836148a0565b9150613f4082614e28565b602082019050919050565b6000613f586024836148a0565b9150613f6382614e51565b604082019050919050565b6000613f7b6019836148a0565b9150613f8682614ea0565b602082019050919050565b6000613f9e602c836148a0565b9150613fa982614ec9565b604082019050919050565b6000613fc1601c836148a0565b9150613fcc82614f18565b602082019050919050565b6000613fe46038836148a0565b9150613fef82614f41565b604082019050919050565b6000614007602a836148a0565b915061401282614f90565b604082019050919050565b600061402a6029836148a0565b915061403582614fdf565b604082019050919050565b600061404d602e836148a0565b91506140588261502e565b604082019050919050565b60006140706020836148a0565b915061407b8261507d565b602082019050919050565b60006140936031836148a0565b915061409e826150a6565b604082019050919050565b60006140b6602c836148a0565b91506140c1826150f5565b604082019050919050565b60006140d96029836148a0565b91506140e482615144565b604082019050919050565b60006140fc600f836148a0565b915061410782615193565b602082019050919050565b600061411f602f836148a0565b915061412a826151bc565b604082019050919050565b60006141426021836148a0565b915061414d8261520b565b604082019050919050565b60006141656031836148a0565b91506141708261525a565b604082019050919050565b6000614188602c836148a0565b9150614193826152a9565b604082019050919050565b60006141ab6017836148b1565b91506141b6826152f8565b601782019050919050565b60006141ce601b836148a0565b91506141d982615321565b602082019050919050565b60006141f16030836148a0565b91506141fc8261534a565b604082019050919050565b60006142146010836148a0565b915061421f82615399565b602082019050919050565b60006142376011836148b1565b9150614242826153c2565b601182019050919050565b600061425a602f836148a0565b9150614265826153eb565b604082019050919050565b61427981614a58565b82525050565b61428881614a58565b82525050565b61429781614a62565b82525050565b60006142a98285613e6b565b91506142b58284613e6b565b91508190509392505050565b60006142cc8261419e565b91506142d88285613e6b565b91506142e38261422a565b91506142ef8284613e6b565b91508190509392505050565b60006020820190506143106000830184613d5f565b92915050565b600060808201905061432b6000830187613d5f565b6143386020830186613d5f565b614345604083018561427f565b81810360608301526143578184613dea565b905095945050505050565b6000602082019050818103600083015261437c8184613d6e565b905092915050565b60006020820190506143996000830184613dcc565b92915050565b60006020820190506143b46000830184613ddb565b92915050565b60006060820190506143cf6000830186613e23565b6143dc602083018561427f565b81810360408301526143ee8184613e32565b9050949350505050565b600060208201905081810360008301526144128184613e32565b905092915050565b6000602082019050818103600083015261443381613e9c565b9050919050565b6000602082019050818103600083015261445381613ebf565b9050919050565b6000602082019050818103600083015261447381613ee2565b9050919050565b6000602082019050818103600083015261449381613f05565b9050919050565b600060208201905081810360008301526144b381613f28565b9050919050565b600060208201905081810360008301526144d381613f4b565b9050919050565b600060208201905081810360008301526144f381613f6e565b9050919050565b6000602082019050818103600083015261451381613f91565b9050919050565b6000602082019050818103600083015261453381613fb4565b9050919050565b6000602082019050818103600083015261455381613fd7565b9050919050565b6000602082019050818103600083015261457381613ffa565b9050919050565b600060208201905081810360008301526145938161401d565b9050919050565b600060208201905081810360008301526145b381614040565b9050919050565b600060208201905081810360008301526145d381614063565b9050919050565b600060208201905081810360008301526145f381614086565b9050919050565b60006020820190508181036000830152614613816140a9565b9050919050565b60006020820190508181036000830152614633816140cc565b9050919050565b60006020820190508181036000830152614653816140ef565b9050919050565b6000602082019050818103600083015261467381614112565b9050919050565b6000602082019050818103600083015261469381614135565b9050919050565b600060208201905081810360008301526146b381614158565b9050919050565b600060208201905081810360008301526146d38161417b565b9050919050565b600060208201905081810360008301526146f3816141c1565b9050919050565b60006020820190508181036000830152614713816141e4565b9050919050565b6000602082019050818103600083015261473381614207565b9050919050565b600060208201905081810360008301526147538161424d565b9050919050565b600060208201905061476f600083018461427f565b92915050565b600060408201905061478a600083018561427f565b6147976020830184613d5f565b9392505050565b60006020820190506147b3600083018461428e565b92915050565b60006147c36147d4565b90506147cf8282614b1f565b919050565b6000604051905090565b600067ffffffffffffffff8211156147f9576147f8614ce4565b5b61480282614d27565b9050602081019050919050565b600067ffffffffffffffff82111561482a57614829614ce4565b5b61483382614d27565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006148c782614a58565b91506148d283614a58565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561490757614906614bca565b5b828201905092915050565b600061491d82614a58565b915061492883614a58565b92508261493857614937614bf9565b5b828204905092915050565b600061494e82614a58565b915061495983614a58565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561499257614991614bca565b5b828202905092915050565b60006149a882614a58565b91506149b383614a58565b9250828210156149c6576149c5614bca565b5b828203905092915050565b60006149dc82614a38565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614a338261543a565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614a7a82614a25565b9050919050565b82818337600083830152505050565b60005b83811015614aae578082015181840152602081019050614a93565b83811115614abd576000848401525b50505050565b6000614ace82614a58565b91506000821415614ae257614ae1614bca565b5b600182039050919050565b60006002820490506001821680614b0557607f821691505b60208210811415614b1957614b18614c57565b5b50919050565b614b2882614d27565b810181811067ffffffffffffffff82111715614b4757614b46614ce4565b5b80604052505050565b6000614b5b82614a58565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8e57614b8d614bca565b5b600182019050919050565b6000614ba482614a58565b9150614baf83614a58565b925082614bbf57614bbe614bf9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f496e76616c69642047656e650000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f446f6e742068617665204d696e746572207065726d697373696f6e2100000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f546f6b656e496420457869737465640000000000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f446f6e7420686176652041646d696e207065726d697373696f6e210000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f496e76616c69642057696e205261746500000000000000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6007811061544b5761544a614c28565b5b50565b615457816149d1565b811461546257600080fd5b50565b61546e816149e3565b811461547957600080fd5b50565b615485816149ef565b811461549057600080fd5b50565b61549c816149f9565b81146154a757600080fd5b50565b600781106154b757600080fd5b50565b6154c381614a58565b81146154ce57600080fd5b50565b6154da81614a62565b81146154e557600080fd5b5056fea2646970667358221220a4b06c2078afa5a53468917df896dc83564e1dd8a62f1b95915c1d5025fe20fa64736f6c63430008060033000000000000000000000000f3ad02357fa97a7835c6643269af7f2094b02fed000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000064b4f544b4554000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f4b4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f636f72652e6b6f746b65742e6c616e642f6b6f746b65742f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c80636352211e11610130578063a217fddf116100b8578063d0db0d2f1161007c578063d0db0d2f146106e4578063d547741f14610716578063d547cfb714610732578063e22cb7c914610750578063e985e9c51461076e57610227565b8063a217fddf1461062e578063a22cb4651461064c578063b88d4fde14610668578063c87b56dd14610684578063ca15c873146106b457610227565b806377f5ca71116100ff57806377f5ca71146105645780639010d07c1461058057806391d14854146105b0578063945454ea146105e057806395d89b411461061057610227565b80636352211e146104c85780636ff97f1d146104f857806370a082311461051657806370f9f4571461054657610227565b8063248a9ca3116101b357806342842e0e1161018257806342842e0e1461041457806342966c68146104305780634f6ccce71461044c57806355f804b31461047c5780635cb135d21461049857610227565b8063248a9ca31461037c5780632f2ff15d146103ac5780632f745c59146103c857806336568abe146103f857610227565b80630c557937116101fa5780630c557937146102c657806318160ddd146102f6578063201eb8091461031457806321cda7901461033057806323b872dd1461036057610227565b806301ffc9a71461022c57806306fdde031461025c578063081812fc1461027a578063095ea7b3146102aa575b600080fd5b61024660048036038101906102419190613c0a565b61079e565b6040516102539190614384565b60405180910390f35b6102646107b0565b60405161027191906143f8565b60405180910390f35b610294600480360381019061028f9190613cda565b610842565b6040516102a191906142fb565b60405180910390f35b6102c460048036038101906102bf9190613a6a565b6108c7565b005b6102e060048036038101906102db9190613cda565b6109df565b6040516102ed919061479e565b60405180910390f35b6102fe610a1e565b60405161030b919061475a565b60405180910390f35b61032e60048036038101906103299190613d07565b610a2b565b005b61034a600480360381019061034591906138e7565b610bbd565b6040516103579190614362565b60405180910390f35b61037a60048036038101906103759190613954565b610c7b565b005b61039660048036038101906103919190613b5d565b610cdb565b6040516103a3919061439f565b60405180910390f35b6103c660048036038101906103c19190613b8a565b610cfa565b005b6103e260048036038101906103dd9190613a6a565b610d2e565b6040516103ef919061475a565b60405180910390f35b610412600480360381019061040d9190613b8a565b610dd3565b005b61042e60048036038101906104299190613954565b610e07565b005b61044a60048036038101906104459190613cda565b610e27565b005b61046660048036038101906104619190613cda565b610ec5565b604051610473919061475a565b60405180910390f35b61049660048036038101906104919190613c91565b610f36565b005b6104b260048036038101906104ad9190613c64565b610fa3565b6040516104bf919061475a565b60405180910390f35b6104e260048036038101906104dd9190613cda565b610fbb565b6040516104ef91906142fb565b60405180910390f35b61050061106d565b60405161050d9190614362565b60405180910390f35b610530600480360381019061052b91906138e7565b6110c5565b60405161053d919061475a565b60405180910390f35b61054e61117d565b60405161055b919061439f565b60405180910390f35b61057e60048036038101906105799190613aaa565b6111a1565b005b61059a60048036038101906105959190613bca565b61138a565b6040516105a791906142fb565b60405180910390f35b6105ca60048036038101906105c59190613b8a565b6113b9565b6040516105d79190614384565b60405180910390f35b6105fa60048036038101906105f59190613cda565b611423565b6040516106079190614384565b60405180910390f35b610618611435565b60405161062591906143f8565b60405180910390f35b6106366114c7565b604051610643919061439f565b60405180910390f35b61066660048036038101906106619190613a2a565b6114ce565b005b610682600480360381019061067d91906139a7565b61164f565b005b61069e60048036038101906106999190613cda565b6116b1565b6040516106ab91906143f8565b60405180910390f35b6106ce60048036038101906106c99190613b5d565b6116c3565b6040516106db919061475a565b60405180910390f35b6106fe60048036038101906106f99190613cda565b6116e7565b60405161070d939291906143ba565b60405180910390f35b610730600480360381019061072b9190613b8a565b6117a6565b005b61073a6117da565b60405161074791906143f8565b60405180910390f35b610758611868565b604051610765919061439f565b60405180910390f35b61078860048036038101906107839190613914565b61188c565b6040516107959190614384565b60405180910390f35b60006107a98261195e565b9050919050565b6060600380546107bf90614aed565b80601f01602080910402602001604051908101604052809291908181526020018280546107eb90614aed565b80156108385780601f1061080d57610100808354040283529160200191610838565b820191906000526020600020905b81548152906001019060200180831161081b57829003601f168201915b5050505050905090565b600061084d826119d8565b61088c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610883906145fa565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d282610fbb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610943576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093a9061467a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610962611a44565b73ffffffffffffffffffffffffffffffffffffffff16148061099157506109908161098b611a44565b61188c565b5b6109d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c79061453a565b60405180910390fd5b6109da8383611a4c565b505050565b6000600f600083815260200190815260200160002060000160009054906101000a900460ff166006811115610a1757610a16614c28565b5b9050919050565b6000600c80549050905090565b610a3f6000801b610a3a611a44565b6113b9565b610a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a75906146da565b60405180910390fd5b600680811115610a9157610a90614c28565b5b60ff168260ff161115610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad09061443a565b60405180910390fd5b6103e8811115610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b159061471a565b60405180910390fd5b60008260ff166006811115610b3657610b35614c28565b5b90508160106000836006811115610b5057610b4f614c28565b5b6006811115610b6257610b61614c28565b5b8152602001908152602001600020819055508260ff167fdc88c4e01ac2382124491f54109dc41f949ba157eaa06bcc65bca0412ced1e7c83610ba2611a44565b604051610bb0929190614775565b60405180910390a2505050565b60606000610bca836110c5565b905060008167ffffffffffffffff811115610be857610be7614ce4565b5b604051908082528060200260200182016040528015610c165781602001602082028036833780820191505090505b5090506000821115610c715760005b82811015610c6f576000610c398683610d2e565b905080838381518110610c4f57610c4e614cb5565b5b602002602001018181525050508080610c6790614b50565b915050610c25565b505b8092505050919050565b610c8c610c86611a44565b82611b05565b610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc29061469a565b60405180910390fd5b610cd6838383611be3565b505050565b6000806000838152602001908152602001600020600101549050919050565b610d048282611e3f565b610d29816001600085815260200190815260200160002061192e90919063ffffffff16565b505050565b6000610d39836110c5565b8210610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d719061445a565b60405180910390fd5b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ddd8282611e68565b610e028160016000858152602001908152602001600020611eeb90919063ffffffff16565b505050565b610e228383836040518060200160405280600081525061164f565b505050565b610e38610e32611a44565b82611b05565b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e906146fa565b60405180910390fd5b600f6000828152602001908152602001600020600080820160006101000a81549060ff02191690556001820160009055600282016000610eb7919061367c565b5050610ec281611f1b565b50565b6000610ecf610a1e565b8210610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f07906146ba565b60405180910390fd5b600c8281548110610f2457610f23614cb5565b5b90600052602060002001549050919050565b610f4a6000801b610f45611a44565b6113b9565b610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906146da565b60405180910390fd5b80600e9080519060200190610f9f9291906136bc565b5050565b60106020528060005260406000206000915090505481565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b9061457a565b60405180910390fd5b80915050919050565b6060600c8054806020026020016040519081016040528092919081815260200182805480156110bb57602002820191906000526020600020905b8154815260200190600101908083116110a7575b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d9061455a565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fb49ea64ca9363ee24557fab3bed24140051b27b150a6658dd9436859666b280581565b6111b56000801b6111b0611a44565b6113b9565b806111ed57506111ec7fb49ea64ca9363ee24557fab3bed24140051b27b150a6658dd9436859666b28056111e7611a44565b6113b9565b5b61122c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239061451a565b60405180910390fd5b61123584611423565b15611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126c9061463a565b60405180910390fd5b60068081111561128857611287614c28565b5b60ff168360ff1611156112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c79061443a565b60405180910390fd5b60008360ff1660068111156112e8576112e7614c28565b5b90506112f48686611f27565b80600f600087815260200190815260200160002060000160006101000a81548160ff0219169083600681111561132d5761132c614c28565b5b021790555042600f60008781526020019081526020016000206001018190555082600f600087815260200190815260200160002060020190805190602001906113779291906136bc565b506113828583611f45565b505050505050565b60006113b18260016000868152602001908152602001600020611fb990919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061142e826119d8565b9050919050565b60606004805461144490614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461147090614aed565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b5050505050905090565b6000801b81565b6114d6611a44565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b906144da565b60405180910390fd5b8060086000611551611a44565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115fe611a44565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116439190614384565b60405180910390a35050565b61166061165a611a44565b83611b05565b61169f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116969061469a565b60405180910390fd5b6116ab84848484611fd3565b50505050565b60606116bc8261202f565b9050919050565b60006116e060016000848152602001908152602001600020612181565b9050919050565b600f6020528060005260406000206000915090508060000160009054906101000a900460ff169080600101549080600201805461172390614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461174f90614aed565b801561179c5780601f106117715761010080835404028352916020019161179c565b820191906000526020600020905b81548152906001019060200180831161177f57829003601f168201915b5050505050905083565b6117b08282612196565b6117d58160016000858152602001908152602001600020611eeb90919063ffffffff16565b505050565b600e80546117e790614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461181390614aed565b80156118605780601f1061183557610100808354040283529160200191611860565b820191906000526020600020905b81548152906001019060200180831161184357829003601f168201915b505050505081565b7f1b29449712117a54a2a96c49e8068b0f884e4ce02b861028ef54f23e90ecdcd281565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61192a82826121bf565b5050565b6000611956836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61229f565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119d157506119d08261230f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611abf83610fbb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b10826119d8565b611b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b46906144fa565b60405180910390fd5b6000611b5a83610fbb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611bc957508373ffffffffffffffffffffffffffffffffffffffff16611bb184610842565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bda5750611bd9818561188c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c0382610fbb565b73ffffffffffffffffffffffffffffffffffffffff1614611c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c509061461a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc0906144ba565b60405180910390fd5b611cd48383836123f1565b611cdf600082611a4c565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d2f919061499d565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d8691906148bc565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e4882610cdb565b611e5981611e54611a44565b612401565b611e6383836121bf565b505050565b611e70611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed49061473a565b60405180910390fd5b611ee7828261249e565b5050565b6000611f13836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61257f565b905092915050565b611f2481612693565b50565b611f418282604051806020016040528060008152506126e6565b5050565b611f4e826119d8565b611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f849061459a565b60405180910390fd5b80600960008481526020019081526020016000209080519060200190611fb49291906136bc565b505050565b6000611fc88360000183612741565b60001c905092915050565b611fde848484611be3565b611fea8484848461276c565b612029576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120209061447a565b60405180910390fd5b50505050565b606061203a826119d8565b612079576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612070906145da565b60405180910390fd5b600060096000848152602001908152602001600020805461209990614aed565b80601f01602080910402602001604051908101604052809291908181526020018280546120c590614aed565b80156121125780601f106120e757610100808354040283529160200191612112565b820191906000526020600020905b8154815290600101906020018083116120f557829003601f168201915b505050505090506000612123612903565b905060008151141561213957819250505061217c565b60008251111561216e57808260405160200161215692919061429d565b6040516020818303038152906040529250505061217c565b61217784612995565b925050505b919050565b600061218f82600001612a3c565b9050919050565b61219f82610cdb565b6121b0816121ab611a44565b612401565b6121ba838361249e565b505050565b6121c982826113b9565b61229b57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612240611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006122ab8383612a4d565b612304578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612309565b600090505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123da57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123ea57506123e982612a70565b5b9050919050565b6123fc838383612aea565b505050565b61240b82826113b9565b61249a576124308173ffffffffffffffffffffffffffffffffffffffff166014612bfe565b61243e8360001c6020612bfe565b60405160200161244f9291906142c1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249191906143f8565b60405180910390fd5b5050565b6124a882826113b9565b1561257b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612520611a44565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080836001016000848152602001908152602001600020549050600081146126875760006001826125b1919061499d565b90506000600186600001805490506125c9919061499d565b90508181146126385760008660000182815481106125ea576125e9614cb5565b5b906000526020600020015490508087600001848154811061260e5761260d614cb5565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061264c5761264b614c86565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061268d565b60009150505b92915050565b61269c81612e3a565b60006009600083815260200190815260200160002080546126bc90614aed565b9050146126e3576009600082815260200190815260200160002060006126e2919061367c565b5b50565b6126f08383612f4b565b6126fd600084848461276c565b61273c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127339061447a565b60405180910390fd5b505050565b600082600001828154811061275957612758614cb5565b5b9060005260206000200154905092915050565b600061278d8473ffffffffffffffffffffffffffffffffffffffff16613119565b156128f6578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127b6611a44565b8786866040518563ffffffff1660e01b81526004016127d89493929190614316565b602060405180830381600087803b1580156127f257600080fd5b505af192505050801561282357506040513d601f19601f820116820180604052508101906128209190613c37565b60015b6128a6573d8060008114612853576040519150601f19603f3d011682016040523d82523d6000602084013e612858565b606091505b5060008151141561289e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128959061447a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128fb565b600190505b949350505050565b6060600e805461291290614aed565b80601f016020809104026020016040519081016040528092919081815260200182805461293e90614aed565b801561298b5780601f106129605761010080835404028352916020019161298b565b820191906000526020600020905b81548152906001019060200180831161296e57829003601f168201915b5050505050905090565b60606129a0826119d8565b6129df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d69061465a565b60405180910390fd5b60006129e9612903565b90506000815111612a095760405180602001604052806000815250612a34565b80612a138461312c565b604051602001612a2492919061429d565b6040516020818303038152906040525b915050919050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ae35750612ae28261328d565b5b9050919050565b612af5838383613307565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b3857612b338161330c565b612b77565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b7657612b758382613355565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bba57612bb5816134c2565b612bf9565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612bf857612bf78282613593565b5b5b505050565b606060006002836002612c119190614943565b612c1b91906148bc565b67ffffffffffffffff811115612c3457612c33614ce4565b5b6040519080825280601f01601f191660200182016040528015612c665781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c9e57612c9d614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d0257612d01614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612d429190614943565b612d4c91906148bc565b90505b6001811115612dec577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d8e57612d8d614cb5565b5b1a60f81b828281518110612da557612da4614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612de590614ac3565b9050612d4f565b5060008414612e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e279061441a565b60405180910390fd5b8091505092915050565b6000612e4582610fbb565b9050612e53816000846123f1565b612e5e600083611a4c565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eae919061499d565b925050819055506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb2906145ba565b60405180910390fd5b612fc4816119d8565b15613004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffb9061449a565b60405180910390fd5b613010600083836123f1565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461306091906148bc565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415613174576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613288565b600082905060005b600082146131a657808061318f90614b50565b915050600a8261319f9190614912565b915061317c565b60008167ffffffffffffffff8111156131c2576131c1614ce4565b5b6040519080825280601f01601f1916602001820160405280156131f45781602001600182028036833780820191505090505b5090505b600085146132815760018261320d919061499d565b9150600a8561321c9190614b99565b603061322891906148bc565b60f81b81838151811061323e5761323d614cb5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561327a9190614912565b94506131f8565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061330057506132ff82613612565b5b9050919050565b505050565b600c80549050600d600083815260200190815260200160002081905550600c81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613362846110c5565b61336c919061499d565b90506000600b6000848152602001908152602001600020549050818114613451576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600b600083815260200190815260200160002081905550505b600b600084815260200190815260200160002060009055600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600c805490506134d6919061499d565b90506000600d60008481526020019081526020016000205490506000600c838154811061350657613505614cb5565b5b9060005260206000200154905080600c838154811061352857613527614cb5565b5b906000526020600020018190555081600d600083815260200190815260200160002081905550600d600085815260200190815260200160002060009055600c80548061357757613576614c86565b5b6001900381819060005260206000200160009055905550505050565b600061359e836110c5565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600b600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50805461368890614aed565b6000825580601f1061369a57506136b9565b601f0160209004906000526020600020908101906136b89190613742565b5b50565b8280546136c890614aed565b90600052602060002090601f0160209004810192826136ea5760008555613731565b82601f1061370357805160ff1916838001178555613731565b82800160010185558215613731579182015b82811115613730578251825591602001919060010190613715565b5b50905061373e9190613742565b5090565b5b8082111561375b576000816000905550600101613743565b5090565b600061377261376d846147de565b6147b9565b90508281526020810184848401111561378e5761378d614d18565b5b613799848285614a81565b509392505050565b60006137b46137af8461480f565b6147b9565b9050828152602081018484840111156137d0576137cf614d18565b5b6137db848285614a81565b509392505050565b6000813590506137f28161544e565b92915050565b60008135905061380781615465565b92915050565b60008135905061381c8161547c565b92915050565b60008135905061383181615493565b92915050565b60008151905061384681615493565b92915050565b600082601f83011261386157613860614d13565b5b813561387184826020860161375f565b91505092915050565b600081359050613889816154aa565b92915050565b600082601f8301126138a4576138a3614d13565b5b81356138b48482602086016137a1565b91505092915050565b6000813590506138cc816154ba565b92915050565b6000813590506138e1816154d1565b92915050565b6000602082840312156138fd576138fc614d22565b5b600061390b848285016137e3565b91505092915050565b6000806040838503121561392b5761392a614d22565b5b6000613939858286016137e3565b925050602061394a858286016137e3565b9150509250929050565b60008060006060848603121561396d5761396c614d22565b5b600061397b868287016137e3565b935050602061398c868287016137e3565b925050604061399d868287016138bd565b9150509250925092565b600080600080608085870312156139c1576139c0614d22565b5b60006139cf878288016137e3565b94505060206139e0878288016137e3565b93505060406139f1878288016138bd565b925050606085013567ffffffffffffffff811115613a1257613a11614d1d565b5b613a1e8782880161384c565b91505092959194509250565b60008060408385031215613a4157613a40614d22565b5b6000613a4f858286016137e3565b9250506020613a60858286016137f8565b9150509250929050565b60008060408385031215613a8157613a80614d22565b5b6000613a8f858286016137e3565b9250506020613aa0858286016138bd565b9150509250929050565b600080600080600060a08688031215613ac657613ac5614d22565b5b6000613ad4888289016137e3565b9550506020613ae5888289016138bd565b9450506040613af6888289016138d2565b935050606086013567ffffffffffffffff811115613b1757613b16614d1d565b5b613b238882890161388f565b925050608086013567ffffffffffffffff811115613b4457613b43614d1d565b5b613b508882890161388f565b9150509295509295909350565b600060208284031215613b7357613b72614d22565b5b6000613b818482850161380d565b91505092915050565b60008060408385031215613ba157613ba0614d22565b5b6000613baf8582860161380d565b9250506020613bc0858286016137e3565b9150509250929050565b60008060408385031215613be157613be0614d22565b5b6000613bef8582860161380d565b9250506020613c00858286016138bd565b9150509250929050565b600060208284031215613c2057613c1f614d22565b5b6000613c2e84828501613822565b91505092915050565b600060208284031215613c4d57613c4c614d22565b5b6000613c5b84828501613837565b91505092915050565b600060208284031215613c7a57613c79614d22565b5b6000613c888482850161387a565b91505092915050565b600060208284031215613ca757613ca6614d22565b5b600082013567ffffffffffffffff811115613cc557613cc4614d1d565b5b613cd18482850161388f565b91505092915050565b600060208284031215613cf057613cef614d22565b5b6000613cfe848285016138bd565b91505092915050565b60008060408385031215613d1e57613d1d614d22565b5b6000613d2c858286016138d2565b9250506020613d3d858286016138bd565b9150509250929050565b6000613d538383614270565b60208301905092915050565b613d68816149d1565b82525050565b6000613d7982614850565b613d83818561487e565b9350613d8e83614840565b8060005b83811015613dbf578151613da68882613d47565b9750613db183614871565b925050600181019050613d92565b5085935050505092915050565b613dd5816149e3565b82525050565b613de4816149ef565b82525050565b6000613df58261485b565b613dff818561488f565b9350613e0f818560208601614a90565b613e1881614d27565b840191505092915050565b613e2c81614a6f565b82525050565b6000613e3d82614866565b613e4781856148a0565b9350613e57818560208601614a90565b613e6081614d27565b840191505092915050565b6000613e7682614866565b613e8081856148b1565b9350613e90818560208601614a90565b80840191505092915050565b6000613ea96020836148a0565b9150613eb482614d38565b602082019050919050565b6000613ecc600c836148a0565b9150613ed782614d61565b602082019050919050565b6000613eef602b836148a0565b9150613efa82614d8a565b604082019050919050565b6000613f126032836148a0565b9150613f1d82614dd9565b604082019050919050565b6000613f35601c836148a0565b9150613f4082614e28565b602082019050919050565b6000613f586024836148a0565b9150613f6382614e51565b604082019050919050565b6000613f7b6019836148a0565b9150613f8682614ea0565b602082019050919050565b6000613f9e602c836148a0565b9150613fa982614ec9565b604082019050919050565b6000613fc1601c836148a0565b9150613fcc82614f18565b602082019050919050565b6000613fe46038836148a0565b9150613fef82614f41565b604082019050919050565b6000614007602a836148a0565b915061401282614f90565b604082019050919050565b600061402a6029836148a0565b915061403582614fdf565b604082019050919050565b600061404d602e836148a0565b91506140588261502e565b604082019050919050565b60006140706020836148a0565b915061407b8261507d565b602082019050919050565b60006140936031836148a0565b915061409e826150a6565b604082019050919050565b60006140b6602c836148a0565b91506140c1826150f5565b604082019050919050565b60006140d96029836148a0565b91506140e482615144565b604082019050919050565b60006140fc600f836148a0565b915061410782615193565b602082019050919050565b600061411f602f836148a0565b915061412a826151bc565b604082019050919050565b60006141426021836148a0565b915061414d8261520b565b604082019050919050565b60006141656031836148a0565b91506141708261525a565b604082019050919050565b6000614188602c836148a0565b9150614193826152a9565b604082019050919050565b60006141ab6017836148b1565b91506141b6826152f8565b601782019050919050565b60006141ce601b836148a0565b91506141d982615321565b602082019050919050565b60006141f16030836148a0565b91506141fc8261534a565b604082019050919050565b60006142146010836148a0565b915061421f82615399565b602082019050919050565b60006142376011836148b1565b9150614242826153c2565b601182019050919050565b600061425a602f836148a0565b9150614265826153eb565b604082019050919050565b61427981614a58565b82525050565b61428881614a58565b82525050565b61429781614a62565b82525050565b60006142a98285613e6b565b91506142b58284613e6b565b91508190509392505050565b60006142cc8261419e565b91506142d88285613e6b565b91506142e38261422a565b91506142ef8284613e6b565b91508190509392505050565b60006020820190506143106000830184613d5f565b92915050565b600060808201905061432b6000830187613d5f565b6143386020830186613d5f565b614345604083018561427f565b81810360608301526143578184613dea565b905095945050505050565b6000602082019050818103600083015261437c8184613d6e565b905092915050565b60006020820190506143996000830184613dcc565b92915050565b60006020820190506143b46000830184613ddb565b92915050565b60006060820190506143cf6000830186613e23565b6143dc602083018561427f565b81810360408301526143ee8184613e32565b9050949350505050565b600060208201905081810360008301526144128184613e32565b905092915050565b6000602082019050818103600083015261443381613e9c565b9050919050565b6000602082019050818103600083015261445381613ebf565b9050919050565b6000602082019050818103600083015261447381613ee2565b9050919050565b6000602082019050818103600083015261449381613f05565b9050919050565b600060208201905081810360008301526144b381613f28565b9050919050565b600060208201905081810360008301526144d381613f4b565b9050919050565b600060208201905081810360008301526144f381613f6e565b9050919050565b6000602082019050818103600083015261451381613f91565b9050919050565b6000602082019050818103600083015261453381613fb4565b9050919050565b6000602082019050818103600083015261455381613fd7565b9050919050565b6000602082019050818103600083015261457381613ffa565b9050919050565b600060208201905081810360008301526145938161401d565b9050919050565b600060208201905081810360008301526145b381614040565b9050919050565b600060208201905081810360008301526145d381614063565b9050919050565b600060208201905081810360008301526145f381614086565b9050919050565b60006020820190508181036000830152614613816140a9565b9050919050565b60006020820190508181036000830152614633816140cc565b9050919050565b60006020820190508181036000830152614653816140ef565b9050919050565b6000602082019050818103600083015261467381614112565b9050919050565b6000602082019050818103600083015261469381614135565b9050919050565b600060208201905081810360008301526146b381614158565b9050919050565b600060208201905081810360008301526146d38161417b565b9050919050565b600060208201905081810360008301526146f3816141c1565b9050919050565b60006020820190508181036000830152614713816141e4565b9050919050565b6000602082019050818103600083015261473381614207565b9050919050565b600060208201905081810360008301526147538161424d565b9050919050565b600060208201905061476f600083018461427f565b92915050565b600060408201905061478a600083018561427f565b6147976020830184613d5f565b9392505050565b60006020820190506147b3600083018461428e565b92915050565b60006147c36147d4565b90506147cf8282614b1f565b919050565b6000604051905090565b600067ffffffffffffffff8211156147f9576147f8614ce4565b5b61480282614d27565b9050602081019050919050565b600067ffffffffffffffff82111561482a57614829614ce4565b5b61483382614d27565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006148c782614a58565b91506148d283614a58565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561490757614906614bca565b5b828201905092915050565b600061491d82614a58565b915061492883614a58565b92508261493857614937614bf9565b5b828204905092915050565b600061494e82614a58565b915061495983614a58565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561499257614991614bca565b5b828202905092915050565b60006149a882614a58565b91506149b383614a58565b9250828210156149c6576149c5614bca565b5b828203905092915050565b60006149dc82614a38565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614a338261543a565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614a7a82614a25565b9050919050565b82818337600083830152505050565b60005b83811015614aae578082015181840152602081019050614a93565b83811115614abd576000848401525b50505050565b6000614ace82614a58565b91506000821415614ae257614ae1614bca565b5b600182039050919050565b60006002820490506001821680614b0557607f821691505b60208210811415614b1957614b18614c57565b5b50919050565b614b2882614d27565b810181811067ffffffffffffffff82111715614b4757614b46614ce4565b5b80604052505050565b6000614b5b82614a58565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8e57614b8d614bca565b5b600182019050919050565b6000614ba482614a58565b9150614baf83614a58565b925082614bbf57614bbe614bf9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f496e76616c69642047656e650000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f446f6e742068617665204d696e746572207065726d697373696f6e2100000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f546f6b656e496420457869737465640000000000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f446f6e7420686176652041646d696e207065726d697373696f6e210000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f496e76616c69642057696e205261746500000000000000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6007811061544b5761544a614c28565b5b50565b615457816149d1565b811461546257600080fd5b50565b61546e816149e3565b811461547957600080fd5b50565b615485816149ef565b811461549057600080fd5b50565b61549c816149f9565b81146154a757600080fd5b50565b600781106154b757600080fd5b50565b6154c381614a58565b81146154ce57600080fd5b50565b6154da81614a62565b81146154e557600080fd5b5056fea2646970667358221220a4b06c2078afa5a53468917df896dc83564e1dd8a62f1b95915c1d5025fe20fa64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3ad02357fa97a7835c6643269af7f2094b02fed000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000064b4f544b4554000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f4b4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f636f72652e6b6f746b65742e6c616e642f6b6f746b65742f
-----Decoded View---------------
Arg [0] : _governanceAdress (address): 0xF3ad02357fa97a7835c6643269af7f2094b02Fed
Arg [1] : name (string): KOTKET
Arg [2] : symbol (string): KOKE
Arg [3] : _baseTokenURI (string): https://core.kotket.land/kotket/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3ad02357fa97a7835c6643269af7f2094b02fed
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 4b4f544b45540000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4b4f4b4500000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [9] : 68747470733a2f2f636f72652e6b6f746b65742e6c616e642f6b6f746b65742f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.