Token
Piggy (PIG)
ERC-721
Overview
Max Total Supply
0 PIG
Holders
1
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
1 PIGLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
NFT
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; contract NFT is ERC721, Ownable { uint private rndCounter; uint public tokenCount; string public tokenName; string public tokenSymbol; IERC20 public productToken; mapping (uint => Details) public tokenDetails; struct Details { string name; bool sex; uint bodyID; uint eyesID; uint noseID; uint mouthID; uint earsID; uint tailID; uint level; uint created; } constructor(string memory _tokenName, string memory _tokenSymbol, address _productAddress) ERC721(_tokenName, _tokenSymbol) { tokenName = _tokenName; tokenSymbol = _tokenSymbol; productToken = IERC20(_productAddress); } function mint(address _recipient, string memory _name) public onlyOwner returns (uint) { _safeMint(_recipient, tokenCount); tokenDetails[tokenCount] = Details( _name, getRandomNumber(2) == 1 ? true : false, getRandomNumber(3), getRandomNumber(5), getRandomNumber(5), getRandomNumber(5), getRandomNumber(5), getRandomNumber(5), 1, block.timestamp ); tokenCount++; return tokenCount - 1; } function getRandomNumber(uint _num) private returns (uint) { rndCounter = rndCounter >= 10 ? 0 : rndCounter++; return uint(uint(keccak256(abi.encodePacked(block.timestamp, rndCounter))) % _num); } function setTokenName(uint _tokenID, string memory _newName) public { require(ownerOf(_tokenID) == msg.sender, 'setTokenName: You are not the owner of this token'); require(getUTFStrLen(_newName) <= 16, 'setTokenName: Name is too long. Maximum: 16 characters'); require(charMatch(_newName), 'setTokenName: Name can contain only a-z, A-Z, 0-9, space and dot'); tokenDetails[_tokenID].name = _newName; } function getUTFStrLen(string memory str) pure internal returns (uint) { uint length = 0; uint i = 0; bytes memory string_rep = bytes(str); while (i < string_rep.length) { if (string_rep[i] >> 7 == 0) i++; else if (string_rep[i] >> 5 == bytes1(uint8(0x6))) i += 2; else if (string_rep[i] >> 4 == bytes1(uint8(0xE))) i += 3; else if (string_rep[i] >> 3 == bytes1(uint8(0x1E))) i += 4; else i++; length++; } return length; } function charMatch(string memory str) pure internal returns (bool) { // ASCII table: https://www.asciitable.com/ bytes memory b = bytes(str); for (uint i; i < b.length; i++) { bytes1 char = b[i]; if (!(char >= 0x61 && char <= 0x7A) && // a-z !(char >= 0x41 && char <= 0x5A) && // A-Z !(char >= 0x30 && char <= 0x39) && // 0-9 !(char == 0x20) && // Space !(char == 0x2E) // Dot ) return false; } return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_productAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"productToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"setTokenName","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":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenDetails","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"bool","name":"sex","type":"bool"},{"internalType":"uint256","name":"bodyID","type":"uint256"},{"internalType":"uint256","name":"eyesID","type":"uint256"},{"internalType":"uint256","name":"noseID","type":"uint256"},{"internalType":"uint256","name":"mouthID","type":"uint256"},{"internalType":"uint256","name":"earsID","type":"uint256"},{"internalType":"uint256","name":"tailID","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"created","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200414438038062004144833981810160405281019062000037919062000489565b8282816000908051906020019062000051929190620001d7565b5080600190805190602001906200006a929190620001d7565b5050506200008d620000816200010960201b60201c565b6200011160201b60201c565b8260099080519060200190620000a5929190620001d7565b5081600a9080519060200190620000be929190620001d7565b5080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000588565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001e59062000552565b90600052602060002090601f01602090048101928262000209576000855562000255565b82601f106200022457805160ff191683800117855562000255565b8280016001018555821562000255579182015b828111156200025457825182559160200191906001019062000237565b5b50905062000264919062000268565b5090565b5b808211156200028357600081600090555060010162000269565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002f082620002a5565b810181811067ffffffffffffffff82111715620003125762000311620002b6565b5b80604052505050565b60006200032762000287565b9050620003358282620002e5565b919050565b600067ffffffffffffffff821115620003585762000357620002b6565b5b6200036382620002a5565b9050602081019050919050565b60005b838110156200039057808201518184015260208101905062000373565b83811115620003a0576000848401525b50505050565b6000620003bd620003b7846200033a565b6200031b565b905082815260208101848484011115620003dc57620003db620002a0565b5b620003e984828562000370565b509392505050565b600082601f8301126200040957620004086200029b565b5b81516200041b848260208601620003a6565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004518262000424565b9050919050565b620004638162000444565b81146200046f57600080fd5b50565b600081519050620004838162000458565b92915050565b600080600060608486031215620004a557620004a462000291565b5b600084015167ffffffffffffffff811115620004c657620004c562000296565b5b620004d486828701620003f1565b935050602084015167ffffffffffffffff811115620004f857620004f762000296565b5b6200050686828701620003f1565b9250506040620005198682870162000472565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200056b57607f821691505b6020821081141562000582576200058162000523565b5b50919050565b613bac80620005986000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b61c320116100c3578063c87b56dd1161007c578063c87b56dd1461037a578063cdb0e89e146103aa578063d0def521146103c6578063e985e9c5146103f6578063f2fde38b14610426578063fc314e31146104425761014d565b80637b61c320146102ca5780638da5cb5b146102e857806395d89b41146103065780639f181b5e14610324578063a22cb46514610342578063b88d4fde1461035e5761014d565b806325b4f65f1161011557806325b4f65f1461020857806342842e0e146102265780636352211e146102425780636c02a9311461027257806370a0823114610290578063715018a6146102c05761014d565b806301ffc9a71461015257806306fdde0314610182578063081812fc146101a0578063095ea7b3146101d057806323b872dd146101ec575b600080fd5b61016c600480360381019061016791906125b8565b61047b565b6040516101799190612600565b60405180910390f35b61018a61055d565b60405161019791906126b4565b60405180910390f35b6101ba60048036038101906101b5919061270c565b6105ef565b6040516101c7919061277a565b60405180910390f35b6101ea60048036038101906101e591906127c1565b610674565b005b61020660048036038101906102019190612801565b61078c565b005b6102106107ec565b60405161021d91906128b3565b60405180910390f35b610240600480360381019061023b9190612801565b610812565b005b61025c6004803603810190610257919061270c565b610832565b604051610269919061277a565b60405180910390f35b61027a6108e4565b60405161028791906126b4565b60405180910390f35b6102aa60048036038101906102a591906128ce565b610972565b6040516102b7919061290a565b60405180910390f35b6102c8610a2a565b005b6102d2610ab2565b6040516102df91906126b4565b60405180910390f35b6102f0610b40565b6040516102fd919061277a565b60405180910390f35b61030e610b6a565b60405161031b91906126b4565b60405180910390f35b61032c610bfc565b604051610339919061290a565b60405180910390f35b61035c60048036038101906103579190612951565b610c02565b005b61037860048036038101906103739190612ac6565b610c18565b005b610394600480360381019061038f919061270c565b610c7a565b6040516103a191906126b4565b60405180910390f35b6103c460048036038101906103bf9190612bea565b610d21565b005b6103e060048036038101906103db9190612c46565b610e5a565b6040516103ed919061290a565b60405180910390f35b610410600480360381019061040b9190612ca2565b611053565b60405161041d9190612600565b60405180910390f35b610440600480360381019061043b91906128ce565b6110e7565b005b61045c6004803603810190610457919061270c565b6111df565b6040516104729a99989796959493929190612ce2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061054657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105565750610555826112c8565b5b9050919050565b60606000805461056c90612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461059890612db4565b80156105e55780601f106105ba576101008083540402835291602001916105e5565b820191906000526020600020905b8154815290600101906020018083116105c857829003601f168201915b5050505050905090565b60006105fa82611332565b610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063090612e58565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067f82610832565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e790612eea565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661070f61139e565b73ffffffffffffffffffffffffffffffffffffffff16148061073e575061073d8161073861139e565b611053565b5b61077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490612f7c565b60405180910390fd5b61078783836113a6565b505050565b61079d61079761139e565b8261145f565b6107dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d39061300e565b60405180910390fd5b6107e783838361153d565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61082d83838360405180602001604052806000815250610c18565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d2906130a0565b60405180910390fd5b80915050919050565b600980546108f190612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461091d90612db4565b801561096a5780601f1061093f5761010080835404028352916020019161096a565b820191906000526020600020905b81548152906001019060200180831161094d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da90613132565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610a3261139e565b73ffffffffffffffffffffffffffffffffffffffff16610a50610b40565b73ffffffffffffffffffffffffffffffffffffffff1614610aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9d9061319e565b60405180910390fd5b610ab06000611799565b565b600a8054610abf90612db4565b80601f0160208091040260200160405190810160405280929190818152602001828054610aeb90612db4565b8015610b385780601f10610b0d57610100808354040283529160200191610b38565b820191906000526020600020905b815481529060010190602001808311610b1b57829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610b7990612db4565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba590612db4565b8015610bf25780601f10610bc757610100808354040283529160200191610bf2565b820191906000526020600020905b815481529060010190602001808311610bd557829003601f168201915b5050505050905090565b60085481565b610c14610c0d61139e565b838361185f565b5050565b610c29610c2361139e565b8361145f565b610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061300e565b60405180910390fd5b610c74848484846119cc565b50505050565b6060610c8582611332565b610cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbb90613230565b60405180910390fd5b6000610cce611a28565b90506000815111610cee5760405180602001604052806000815250610d19565b80610cf884611a3f565b604051602001610d0992919061328c565b6040516020818303038152906040525b915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610d4183610832565b73ffffffffffffffffffffffffffffffffffffffff1614610d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8e90613322565b60405180910390fd5b6010610da282611ba0565b1115610de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dda906133b4565b60405180910390fd5b610dec81611e60565b610e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2290613446565b60405180910390fd5b80600c60008481526020019081526020016000206000019080519060200190610e559291906124a9565b505050565b6000610e6461139e565b73ffffffffffffffffffffffffffffffffffffffff16610e82610b40565b73ffffffffffffffffffffffffffffffffffffffff1614610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf9061319e565b60405180910390fd5b610ee483600854612050565b6040518061014001604052808381526020016001610f02600261206e565b14610f0e576000610f11565b60015b15158152602001610f22600361206e565b8152602001610f31600561206e565b8152602001610f40600561206e565b8152602001610f4f600561206e565b8152602001610f5e600561206e565b8152602001610f6d600561206e565b81526020016001815260200142815250600c600060085481526020019081526020016000206000820151816000019080519060200190610fae9291906124a9565b5060208201518160010160006101000a81548160ff02191690831515021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155610100820151816008015561012082015181600901559050506008600081548092919061103790613495565b9190505550600160085461104b91906134de565b905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6110ef61139e565b73ffffffffffffffffffffffffffffffffffffffff1661110d610b40565b73ffffffffffffffffffffffffffffffffffffffff1614611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a9061319e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca90613584565b60405180910390fd5b6111dc81611799565b50565b600c60205280600052604060002060009150905080600001805461120290612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461122e90612db4565b801561127b5780601f106112505761010080835404028352916020019161127b565b820191906000526020600020905b81548152906001019060200180831161125e57829003601f168201915b5050505050908060010160009054906101000a900460ff1690806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661141983610832565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061146a82611332565b6114a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a090613616565b60405180910390fd5b60006114b483610832565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061152357508373ffffffffffffffffffffffffffffffffffffffff1661150b846105ef565b73ffffffffffffffffffffffffffffffffffffffff16145b8061153457506115338185611053565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661155d82610832565b73ffffffffffffffffffffffffffffffffffffffff16146115b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115aa906136a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a9061373a565b60405180910390fd5b61162e8383836120e0565b6116396000826113a6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168991906134de565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116e0919061375a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c5906137fc565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119bf9190612600565b60405180910390a3505050565b6119d784848461153d565b6119e3848484846120e5565b611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a199061388e565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415611a87576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b9b565b600082905060005b60008214611ab9578080611aa290613495565b915050600a82611ab291906138dd565b9150611a8f565b60008167ffffffffffffffff811115611ad557611ad461299b565b5b6040519080825280601f01601f191660200182016040528015611b075781602001600182028036833780820191505090505b5090505b60008514611b9457600182611b2091906134de565b9150600a85611b2f919061390e565b6030611b3b919061375a565b60f81b818381518110611b5157611b5061393f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b8d91906138dd565b9450611b0b565b8093505050505b919050565b600080600090506000808490505b8051821015611e5557600060f81b6007828481518110611bd157611bd061393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611c3b578180611c3390613495565b925050611e42565b600660f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166005828481518110611c7757611c7661393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611ce257600282611cdb919061375a565b9150611e41565b600e60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166004828481518110611d1e57611d1d61393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611d8957600382611d82919061375a565b9150611e40565b601e60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166003828481518110611dc557611dc461393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611e3057600482611e29919061375a565b9150611e3f565b8180611e3b90613495565b9250505b5b5b5b8280611e4d90613495565b935050611bae565b829350505050919050565b60008082905060005b8151811015612044576000828281518110611e8757611e8661393f565b5b602001015160f81c60f81b9050606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611ef05750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611f565750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611f545750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611fbb5750603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611fb95750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611fed5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b801561201f5750602e60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15612030576000935050505061204b565b50808061203c90613495565b915050611e69565b5060019150505b919050565b61206a82826040518060200160405280600081525061226d565b5050565b6000600a6007541015612097576007600081548092919061208e90613495565b9190505561209a565b60005b60078190555081426007546040516020016120b692919061398f565b6040516020818303038152906040528051906020012060001c6120d9919061390e565b9050919050565b505050565b60006121068473ffffffffffffffffffffffffffffffffffffffff166122c8565b15612260578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261212f61139e565b8786866040518563ffffffff1660e01b81526004016121519493929190613a10565b6020604051808303816000875af192505050801561218d57506040513d601f19601f8201168201806040525081019061218a9190613a71565b60015b612210573d80600081146121bd576040519150601f19603f3d011682016040523d82523d6000602084013e6121c2565b606091505b50600081511415612208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ff9061388e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612265565b600190505b949350505050565b61227783836122db565b61228460008484846120e5565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba9061388e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561234b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234290613aea565b60405180910390fd5b61235481611332565b15612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90613b56565b60405180910390fd5b6123a0600083836120e0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f0919061375a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546124b590612db4565b90600052602060002090601f0160209004810192826124d7576000855561251e565b82601f106124f057805160ff191683800117855561251e565b8280016001018555821561251e579182015b8281111561251d578251825591602001919060010190612502565b5b50905061252b919061252f565b5090565b5b80821115612548576000816000905550600101612530565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61259581612560565b81146125a057600080fd5b50565b6000813590506125b28161258c565b92915050565b6000602082840312156125ce576125cd612556565b5b60006125dc848285016125a3565b91505092915050565b60008115159050919050565b6125fa816125e5565b82525050565b600060208201905061261560008301846125f1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561265557808201518184015260208101905061263a565b83811115612664576000848401525b50505050565b6000601f19601f8301169050919050565b60006126868261261b565b6126908185612626565b93506126a0818560208601612637565b6126a98161266a565b840191505092915050565b600060208201905081810360008301526126ce818461267b565b905092915050565b6000819050919050565b6126e9816126d6565b81146126f457600080fd5b50565b600081359050612706816126e0565b92915050565b60006020828403121561272257612721612556565b5b6000612730848285016126f7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061276482612739565b9050919050565b61277481612759565b82525050565b600060208201905061278f600083018461276b565b92915050565b61279e81612759565b81146127a957600080fd5b50565b6000813590506127bb81612795565b92915050565b600080604083850312156127d8576127d7612556565b5b60006127e6858286016127ac565b92505060206127f7858286016126f7565b9150509250929050565b60008060006060848603121561281a57612819612556565b5b6000612828868287016127ac565b9350506020612839868287016127ac565b925050604061284a868287016126f7565b9150509250925092565b6000819050919050565b600061287961287461286f84612739565b612854565b612739565b9050919050565b600061288b8261285e565b9050919050565b600061289d82612880565b9050919050565b6128ad81612892565b82525050565b60006020820190506128c860008301846128a4565b92915050565b6000602082840312156128e4576128e3612556565b5b60006128f2848285016127ac565b91505092915050565b612904816126d6565b82525050565b600060208201905061291f60008301846128fb565b92915050565b61292e816125e5565b811461293957600080fd5b50565b60008135905061294b81612925565b92915050565b6000806040838503121561296857612967612556565b5b6000612976858286016127ac565b92505060206129878582860161293c565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6129d38261266a565b810181811067ffffffffffffffff821117156129f2576129f161299b565b5b80604052505050565b6000612a0561254c565b9050612a1182826129ca565b919050565b600067ffffffffffffffff821115612a3157612a3061299b565b5b612a3a8261266a565b9050602081019050919050565b82818337600083830152505050565b6000612a69612a6484612a16565b6129fb565b905082815260208101848484011115612a8557612a84612996565b5b612a90848285612a47565b509392505050565b600082601f830112612aad57612aac612991565b5b8135612abd848260208601612a56565b91505092915050565b60008060008060808587031215612ae057612adf612556565b5b6000612aee878288016127ac565b9450506020612aff878288016127ac565b9350506040612b10878288016126f7565b925050606085013567ffffffffffffffff811115612b3157612b3061255b565b5b612b3d87828801612a98565b91505092959194509250565b600067ffffffffffffffff821115612b6457612b6361299b565b5b612b6d8261266a565b9050602081019050919050565b6000612b8d612b8884612b49565b6129fb565b905082815260208101848484011115612ba957612ba8612996565b5b612bb4848285612a47565b509392505050565b600082601f830112612bd157612bd0612991565b5b8135612be1848260208601612b7a565b91505092915050565b60008060408385031215612c0157612c00612556565b5b6000612c0f858286016126f7565b925050602083013567ffffffffffffffff811115612c3057612c2f61255b565b5b612c3c85828601612bbc565b9150509250929050565b60008060408385031215612c5d57612c5c612556565b5b6000612c6b858286016127ac565b925050602083013567ffffffffffffffff811115612c8c57612c8b61255b565b5b612c9885828601612bbc565b9150509250929050565b60008060408385031215612cb957612cb8612556565b5b6000612cc7858286016127ac565b9250506020612cd8858286016127ac565b9150509250929050565b6000610140820190508181036000830152612cfd818d61267b565b9050612d0c602083018c6125f1565b612d19604083018b6128fb565b612d26606083018a6128fb565b612d3360808301896128fb565b612d4060a08301886128fb565b612d4d60c08301876128fb565b612d5a60e08301866128fb565b612d686101008301856128fb565b612d766101208301846128fb565b9b9a5050505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612dcc57607f821691505b60208210811415612de057612ddf612d85565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000612e42602c83612626565b9150612e4d82612de6565b604082019050919050565b60006020820190508181036000830152612e7181612e35565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ed4602183612626565b9150612edf82612e78565b604082019050919050565b60006020820190508181036000830152612f0381612ec7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000612f66603883612626565b9150612f7182612f0a565b604082019050919050565b60006020820190508181036000830152612f9581612f59565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000612ff8603183612626565b915061300382612f9c565b604082019050919050565b6000602082019050818103600083015261302781612feb565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061308a602983612626565b91506130958261302e565b604082019050919050565b600060208201905081810360008301526130b98161307d565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061311c602a83612626565b9150613127826130c0565b604082019050919050565b6000602082019050818103600083015261314b8161310f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613188602083612626565b915061319382613152565b602082019050919050565b600060208201905081810360008301526131b78161317b565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061321a602f83612626565b9150613225826131be565b604082019050919050565b600060208201905081810360008301526132498161320d565b9050919050565b600081905092915050565b60006132668261261b565b6132708185613250565b9350613280818560208601612637565b80840191505092915050565b6000613298828561325b565b91506132a4828461325b565b91508190509392505050565b7f736574546f6b656e4e616d653a20596f7520617265206e6f7420746865206f7760008201527f6e6572206f66207468697320746f6b656e000000000000000000000000000000602082015250565b600061330c603183612626565b9150613317826132b0565b604082019050919050565b6000602082019050818103600083015261333b816132ff565b9050919050565b7f736574546f6b656e4e616d653a204e616d6520697320746f6f206c6f6e672e2060008201527f4d6178696d756d3a203136206368617261637465727300000000000000000000602082015250565b600061339e603683612626565b91506133a982613342565b604082019050919050565b600060208201905081810360008301526133cd81613391565b9050919050565b7f736574546f6b656e4e616d653a204e616d652063616e20636f6e7461696e206f60008201527f6e6c7920612d7a2c20412d5a2c20302d392c20737061636520616e6420646f74602082015250565b6000613430604083612626565b915061343b826133d4565b604082019050919050565b6000602082019050818103600083015261345f81613423565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134a0826126d6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134d3576134d2613466565b5b600182019050919050565b60006134e9826126d6565b91506134f4836126d6565b92508282101561350757613506613466565b5b828203905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061356e602683612626565b915061357982613512565b604082019050919050565b6000602082019050818103600083015261359d81613561565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613600602c83612626565b915061360b826135a4565b604082019050919050565b6000602082019050818103600083015261362f816135f3565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000613692602983612626565b915061369d82613636565b604082019050919050565b600060208201905081810360008301526136c181613685565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613724602483612626565b915061372f826136c8565b604082019050919050565b6000602082019050818103600083015261375381613717565b9050919050565b6000613765826126d6565b9150613770836126d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137a5576137a4613466565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006137e6601983612626565b91506137f1826137b0565b602082019050919050565b60006020820190508181036000830152613815816137d9565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613878603283612626565b91506138838261381c565b604082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138e8826126d6565b91506138f3836126d6565b925082613903576139026138ae565b5b828204905092915050565b6000613919826126d6565b9150613924836126d6565b925082613934576139336138ae565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b613989613984826126d6565b61396e565b82525050565b600061399b8285613978565b6020820191506139ab8284613978565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006139e2826139bb565b6139ec81856139c6565b93506139fc818560208601612637565b613a058161266a565b840191505092915050565b6000608082019050613a25600083018761276b565b613a32602083018661276b565b613a3f60408301856128fb565b8181036060830152613a5181846139d7565b905095945050505050565b600081519050613a6b8161258c565b92915050565b600060208284031215613a8757613a86612556565b5b6000613a9584828501613a5c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613ad4602083612626565b9150613adf82613a9e565b602082019050919050565b60006020820190508181036000830152613b0381613ac7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613b40601c83612626565b9150613b4b82613b0a565b602082019050919050565b60006020820190508181036000830152613b6f81613b33565b905091905056fea26469706673582212206c70e60a0f80842eee0cd5b04683f9e58eb08b1c1412be0609b3fe107ad4c6b964736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d2f727b1b47adc7e2fbe6dd05c91ab006199a4570000000000000000000000000000000000000000000000000000000000000005506967677900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035049470000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b61c320116100c3578063c87b56dd1161007c578063c87b56dd1461037a578063cdb0e89e146103aa578063d0def521146103c6578063e985e9c5146103f6578063f2fde38b14610426578063fc314e31146104425761014d565b80637b61c320146102ca5780638da5cb5b146102e857806395d89b41146103065780639f181b5e14610324578063a22cb46514610342578063b88d4fde1461035e5761014d565b806325b4f65f1161011557806325b4f65f1461020857806342842e0e146102265780636352211e146102425780636c02a9311461027257806370a0823114610290578063715018a6146102c05761014d565b806301ffc9a71461015257806306fdde0314610182578063081812fc146101a0578063095ea7b3146101d057806323b872dd146101ec575b600080fd5b61016c600480360381019061016791906125b8565b61047b565b6040516101799190612600565b60405180910390f35b61018a61055d565b60405161019791906126b4565b60405180910390f35b6101ba60048036038101906101b5919061270c565b6105ef565b6040516101c7919061277a565b60405180910390f35b6101ea60048036038101906101e591906127c1565b610674565b005b61020660048036038101906102019190612801565b61078c565b005b6102106107ec565b60405161021d91906128b3565b60405180910390f35b610240600480360381019061023b9190612801565b610812565b005b61025c6004803603810190610257919061270c565b610832565b604051610269919061277a565b60405180910390f35b61027a6108e4565b60405161028791906126b4565b60405180910390f35b6102aa60048036038101906102a591906128ce565b610972565b6040516102b7919061290a565b60405180910390f35b6102c8610a2a565b005b6102d2610ab2565b6040516102df91906126b4565b60405180910390f35b6102f0610b40565b6040516102fd919061277a565b60405180910390f35b61030e610b6a565b60405161031b91906126b4565b60405180910390f35b61032c610bfc565b604051610339919061290a565b60405180910390f35b61035c60048036038101906103579190612951565b610c02565b005b61037860048036038101906103739190612ac6565b610c18565b005b610394600480360381019061038f919061270c565b610c7a565b6040516103a191906126b4565b60405180910390f35b6103c460048036038101906103bf9190612bea565b610d21565b005b6103e060048036038101906103db9190612c46565b610e5a565b6040516103ed919061290a565b60405180910390f35b610410600480360381019061040b9190612ca2565b611053565b60405161041d9190612600565b60405180910390f35b610440600480360381019061043b91906128ce565b6110e7565b005b61045c6004803603810190610457919061270c565b6111df565b6040516104729a99989796959493929190612ce2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061054657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105565750610555826112c8565b5b9050919050565b60606000805461056c90612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461059890612db4565b80156105e55780601f106105ba576101008083540402835291602001916105e5565b820191906000526020600020905b8154815290600101906020018083116105c857829003601f168201915b5050505050905090565b60006105fa82611332565b610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063090612e58565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067f82610832565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e790612eea565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661070f61139e565b73ffffffffffffffffffffffffffffffffffffffff16148061073e575061073d8161073861139e565b611053565b5b61077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490612f7c565b60405180910390fd5b61078783836113a6565b505050565b61079d61079761139e565b8261145f565b6107dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d39061300e565b60405180910390fd5b6107e783838361153d565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61082d83838360405180602001604052806000815250610c18565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d2906130a0565b60405180910390fd5b80915050919050565b600980546108f190612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461091d90612db4565b801561096a5780601f1061093f5761010080835404028352916020019161096a565b820191906000526020600020905b81548152906001019060200180831161094d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da90613132565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610a3261139e565b73ffffffffffffffffffffffffffffffffffffffff16610a50610b40565b73ffffffffffffffffffffffffffffffffffffffff1614610aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9d9061319e565b60405180910390fd5b610ab06000611799565b565b600a8054610abf90612db4565b80601f0160208091040260200160405190810160405280929190818152602001828054610aeb90612db4565b8015610b385780601f10610b0d57610100808354040283529160200191610b38565b820191906000526020600020905b815481529060010190602001808311610b1b57829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610b7990612db4565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba590612db4565b8015610bf25780601f10610bc757610100808354040283529160200191610bf2565b820191906000526020600020905b815481529060010190602001808311610bd557829003601f168201915b5050505050905090565b60085481565b610c14610c0d61139e565b838361185f565b5050565b610c29610c2361139e565b8361145f565b610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061300e565b60405180910390fd5b610c74848484846119cc565b50505050565b6060610c8582611332565b610cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbb90613230565b60405180910390fd5b6000610cce611a28565b90506000815111610cee5760405180602001604052806000815250610d19565b80610cf884611a3f565b604051602001610d0992919061328c565b6040516020818303038152906040525b915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610d4183610832565b73ffffffffffffffffffffffffffffffffffffffff1614610d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8e90613322565b60405180910390fd5b6010610da282611ba0565b1115610de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dda906133b4565b60405180910390fd5b610dec81611e60565b610e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2290613446565b60405180910390fd5b80600c60008481526020019081526020016000206000019080519060200190610e559291906124a9565b505050565b6000610e6461139e565b73ffffffffffffffffffffffffffffffffffffffff16610e82610b40565b73ffffffffffffffffffffffffffffffffffffffff1614610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf9061319e565b60405180910390fd5b610ee483600854612050565b6040518061014001604052808381526020016001610f02600261206e565b14610f0e576000610f11565b60015b15158152602001610f22600361206e565b8152602001610f31600561206e565b8152602001610f40600561206e565b8152602001610f4f600561206e565b8152602001610f5e600561206e565b8152602001610f6d600561206e565b81526020016001815260200142815250600c600060085481526020019081526020016000206000820151816000019080519060200190610fae9291906124a9565b5060208201518160010160006101000a81548160ff02191690831515021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155610100820151816008015561012082015181600901559050506008600081548092919061103790613495565b9190505550600160085461104b91906134de565b905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6110ef61139e565b73ffffffffffffffffffffffffffffffffffffffff1661110d610b40565b73ffffffffffffffffffffffffffffffffffffffff1614611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a9061319e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca90613584565b60405180910390fd5b6111dc81611799565b50565b600c60205280600052604060002060009150905080600001805461120290612db4565b80601f016020809104026020016040519081016040528092919081815260200182805461122e90612db4565b801561127b5780601f106112505761010080835404028352916020019161127b565b820191906000526020600020905b81548152906001019060200180831161125e57829003601f168201915b5050505050908060010160009054906101000a900460ff1690806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661141983610832565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061146a82611332565b6114a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a090613616565b60405180910390fd5b60006114b483610832565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061152357508373ffffffffffffffffffffffffffffffffffffffff1661150b846105ef565b73ffffffffffffffffffffffffffffffffffffffff16145b8061153457506115338185611053565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661155d82610832565b73ffffffffffffffffffffffffffffffffffffffff16146115b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115aa906136a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a9061373a565b60405180910390fd5b61162e8383836120e0565b6116396000826113a6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168991906134de565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116e0919061375a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c5906137fc565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119bf9190612600565b60405180910390a3505050565b6119d784848461153d565b6119e3848484846120e5565b611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a199061388e565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606000821415611a87576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b9b565b600082905060005b60008214611ab9578080611aa290613495565b915050600a82611ab291906138dd565b9150611a8f565b60008167ffffffffffffffff811115611ad557611ad461299b565b5b6040519080825280601f01601f191660200182016040528015611b075781602001600182028036833780820191505090505b5090505b60008514611b9457600182611b2091906134de565b9150600a85611b2f919061390e565b6030611b3b919061375a565b60f81b818381518110611b5157611b5061393f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b8d91906138dd565b9450611b0b565b8093505050505b919050565b600080600090506000808490505b8051821015611e5557600060f81b6007828481518110611bd157611bd061393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611c3b578180611c3390613495565b925050611e42565b600660f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166005828481518110611c7757611c7661393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611ce257600282611cdb919061375a565b9150611e41565b600e60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166004828481518110611d1e57611d1d61393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611d8957600382611d82919061375a565b9150611e40565b601e60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166003828481518110611dc557611dc461393f565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611e3057600482611e29919061375a565b9150611e3f565b8180611e3b90613495565b9250505b5b5b5b8280611e4d90613495565b935050611bae565b829350505050919050565b60008082905060005b8151811015612044576000828281518110611e8757611e8661393f565b5b602001015160f81c60f81b9050606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611ef05750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611f565750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611f545750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611fbb5750603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611fb95750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611fed5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b801561201f5750602e60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15612030576000935050505061204b565b50808061203c90613495565b915050611e69565b5060019150505b919050565b61206a82826040518060200160405280600081525061226d565b5050565b6000600a6007541015612097576007600081548092919061208e90613495565b9190505561209a565b60005b60078190555081426007546040516020016120b692919061398f565b6040516020818303038152906040528051906020012060001c6120d9919061390e565b9050919050565b505050565b60006121068473ffffffffffffffffffffffffffffffffffffffff166122c8565b15612260578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261212f61139e565b8786866040518563ffffffff1660e01b81526004016121519493929190613a10565b6020604051808303816000875af192505050801561218d57506040513d601f19601f8201168201806040525081019061218a9190613a71565b60015b612210573d80600081146121bd576040519150601f19603f3d011682016040523d82523d6000602084013e6121c2565b606091505b50600081511415612208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ff9061388e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612265565b600190505b949350505050565b61227783836122db565b61228460008484846120e5565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba9061388e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561234b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234290613aea565b60405180910390fd5b61235481611332565b15612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90613b56565b60405180910390fd5b6123a0600083836120e0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f0919061375a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546124b590612db4565b90600052602060002090601f0160209004810192826124d7576000855561251e565b82601f106124f057805160ff191683800117855561251e565b8280016001018555821561251e579182015b8281111561251d578251825591602001919060010190612502565b5b50905061252b919061252f565b5090565b5b80821115612548576000816000905550600101612530565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61259581612560565b81146125a057600080fd5b50565b6000813590506125b28161258c565b92915050565b6000602082840312156125ce576125cd612556565b5b60006125dc848285016125a3565b91505092915050565b60008115159050919050565b6125fa816125e5565b82525050565b600060208201905061261560008301846125f1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561265557808201518184015260208101905061263a565b83811115612664576000848401525b50505050565b6000601f19601f8301169050919050565b60006126868261261b565b6126908185612626565b93506126a0818560208601612637565b6126a98161266a565b840191505092915050565b600060208201905081810360008301526126ce818461267b565b905092915050565b6000819050919050565b6126e9816126d6565b81146126f457600080fd5b50565b600081359050612706816126e0565b92915050565b60006020828403121561272257612721612556565b5b6000612730848285016126f7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061276482612739565b9050919050565b61277481612759565b82525050565b600060208201905061278f600083018461276b565b92915050565b61279e81612759565b81146127a957600080fd5b50565b6000813590506127bb81612795565b92915050565b600080604083850312156127d8576127d7612556565b5b60006127e6858286016127ac565b92505060206127f7858286016126f7565b9150509250929050565b60008060006060848603121561281a57612819612556565b5b6000612828868287016127ac565b9350506020612839868287016127ac565b925050604061284a868287016126f7565b9150509250925092565b6000819050919050565b600061287961287461286f84612739565b612854565b612739565b9050919050565b600061288b8261285e565b9050919050565b600061289d82612880565b9050919050565b6128ad81612892565b82525050565b60006020820190506128c860008301846128a4565b92915050565b6000602082840312156128e4576128e3612556565b5b60006128f2848285016127ac565b91505092915050565b612904816126d6565b82525050565b600060208201905061291f60008301846128fb565b92915050565b61292e816125e5565b811461293957600080fd5b50565b60008135905061294b81612925565b92915050565b6000806040838503121561296857612967612556565b5b6000612976858286016127ac565b92505060206129878582860161293c565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6129d38261266a565b810181811067ffffffffffffffff821117156129f2576129f161299b565b5b80604052505050565b6000612a0561254c565b9050612a1182826129ca565b919050565b600067ffffffffffffffff821115612a3157612a3061299b565b5b612a3a8261266a565b9050602081019050919050565b82818337600083830152505050565b6000612a69612a6484612a16565b6129fb565b905082815260208101848484011115612a8557612a84612996565b5b612a90848285612a47565b509392505050565b600082601f830112612aad57612aac612991565b5b8135612abd848260208601612a56565b91505092915050565b60008060008060808587031215612ae057612adf612556565b5b6000612aee878288016127ac565b9450506020612aff878288016127ac565b9350506040612b10878288016126f7565b925050606085013567ffffffffffffffff811115612b3157612b3061255b565b5b612b3d87828801612a98565b91505092959194509250565b600067ffffffffffffffff821115612b6457612b6361299b565b5b612b6d8261266a565b9050602081019050919050565b6000612b8d612b8884612b49565b6129fb565b905082815260208101848484011115612ba957612ba8612996565b5b612bb4848285612a47565b509392505050565b600082601f830112612bd157612bd0612991565b5b8135612be1848260208601612b7a565b91505092915050565b60008060408385031215612c0157612c00612556565b5b6000612c0f858286016126f7565b925050602083013567ffffffffffffffff811115612c3057612c2f61255b565b5b612c3c85828601612bbc565b9150509250929050565b60008060408385031215612c5d57612c5c612556565b5b6000612c6b858286016127ac565b925050602083013567ffffffffffffffff811115612c8c57612c8b61255b565b5b612c9885828601612bbc565b9150509250929050565b60008060408385031215612cb957612cb8612556565b5b6000612cc7858286016127ac565b9250506020612cd8858286016127ac565b9150509250929050565b6000610140820190508181036000830152612cfd818d61267b565b9050612d0c602083018c6125f1565b612d19604083018b6128fb565b612d26606083018a6128fb565b612d3360808301896128fb565b612d4060a08301886128fb565b612d4d60c08301876128fb565b612d5a60e08301866128fb565b612d686101008301856128fb565b612d766101208301846128fb565b9b9a5050505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612dcc57607f821691505b60208210811415612de057612ddf612d85565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000612e42602c83612626565b9150612e4d82612de6565b604082019050919050565b60006020820190508181036000830152612e7181612e35565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ed4602183612626565b9150612edf82612e78565b604082019050919050565b60006020820190508181036000830152612f0381612ec7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000612f66603883612626565b9150612f7182612f0a565b604082019050919050565b60006020820190508181036000830152612f9581612f59565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000612ff8603183612626565b915061300382612f9c565b604082019050919050565b6000602082019050818103600083015261302781612feb565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061308a602983612626565b91506130958261302e565b604082019050919050565b600060208201905081810360008301526130b98161307d565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061311c602a83612626565b9150613127826130c0565b604082019050919050565b6000602082019050818103600083015261314b8161310f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613188602083612626565b915061319382613152565b602082019050919050565b600060208201905081810360008301526131b78161317b565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061321a602f83612626565b9150613225826131be565b604082019050919050565b600060208201905081810360008301526132498161320d565b9050919050565b600081905092915050565b60006132668261261b565b6132708185613250565b9350613280818560208601612637565b80840191505092915050565b6000613298828561325b565b91506132a4828461325b565b91508190509392505050565b7f736574546f6b656e4e616d653a20596f7520617265206e6f7420746865206f7760008201527f6e6572206f66207468697320746f6b656e000000000000000000000000000000602082015250565b600061330c603183612626565b9150613317826132b0565b604082019050919050565b6000602082019050818103600083015261333b816132ff565b9050919050565b7f736574546f6b656e4e616d653a204e616d6520697320746f6f206c6f6e672e2060008201527f4d6178696d756d3a203136206368617261637465727300000000000000000000602082015250565b600061339e603683612626565b91506133a982613342565b604082019050919050565b600060208201905081810360008301526133cd81613391565b9050919050565b7f736574546f6b656e4e616d653a204e616d652063616e20636f6e7461696e206f60008201527f6e6c7920612d7a2c20412d5a2c20302d392c20737061636520616e6420646f74602082015250565b6000613430604083612626565b915061343b826133d4565b604082019050919050565b6000602082019050818103600083015261345f81613423565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134a0826126d6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134d3576134d2613466565b5b600182019050919050565b60006134e9826126d6565b91506134f4836126d6565b92508282101561350757613506613466565b5b828203905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061356e602683612626565b915061357982613512565b604082019050919050565b6000602082019050818103600083015261359d81613561565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613600602c83612626565b915061360b826135a4565b604082019050919050565b6000602082019050818103600083015261362f816135f3565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000613692602983612626565b915061369d82613636565b604082019050919050565b600060208201905081810360008301526136c181613685565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613724602483612626565b915061372f826136c8565b604082019050919050565b6000602082019050818103600083015261375381613717565b9050919050565b6000613765826126d6565b9150613770836126d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137a5576137a4613466565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006137e6601983612626565b91506137f1826137b0565b602082019050919050565b60006020820190508181036000830152613815816137d9565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613878603283612626565b91506138838261381c565b604082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138e8826126d6565b91506138f3836126d6565b925082613903576139026138ae565b5b828204905092915050565b6000613919826126d6565b9150613924836126d6565b925082613934576139336138ae565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b613989613984826126d6565b61396e565b82525050565b600061399b8285613978565b6020820191506139ab8284613978565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006139e2826139bb565b6139ec81856139c6565b93506139fc818560208601612637565b613a058161266a565b840191505092915050565b6000608082019050613a25600083018761276b565b613a32602083018661276b565b613a3f60408301856128fb565b8181036060830152613a5181846139d7565b905095945050505050565b600081519050613a6b8161258c565b92915050565b600060208284031215613a8757613a86612556565b5b6000613a9584828501613a5c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613ad4602083612626565b9150613adf82613a9e565b602082019050919050565b60006020820190508181036000830152613b0381613ac7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613b40601c83612626565b9150613b4b82613b0a565b602082019050919050565b60006020820190508181036000830152613b6f81613b33565b905091905056fea26469706673582212206c70e60a0f80842eee0cd5b04683f9e58eb08b1c1412be0609b3fe107ad4c6b964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d2f727b1b47adc7e2fbe6dd05c91ab006199a4570000000000000000000000000000000000000000000000000000000000000005506967677900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035049470000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Piggy
Arg [1] : _tokenSymbol (string): PIG
Arg [2] : _productAddress (address): 0xd2f727B1b47AdC7E2fbE6Dd05C91aB006199A457
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000d2f727b1b47adc7e2fbe6dd05c91ab006199a457
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 5069676779000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5049470000000000000000000000000000000000000000000000000000000000
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.