Source Code
Overview
MATIC Balance
0 MATIC
More Info
ContractCreator:
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60c06040 | 23911822 | 803 days ago | IN | Create: GameTheory | 0 MATIC | 0.00746539 |
Loading...
Loading
Contract Name:
GameTheory
Compiler Version
v0.8.10+commit.fc410830
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.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; //import "@openzeppelin/contracts/access/Ownable.sol"; //import "@openzeppelin/contracts/utils/Counters.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; contract GameTheory is ERC721, ERC721URIStorage, VRFConsumerBase { // using Counters for Counters.Counter; bytes32 internal keyHash; uint256 public fee; struct Dude { uint256 background; uint256 head; uint256 body; } Dude[] public dudes; //mappings will go here mapping(bytes32 => address) requestToSender; mapping(bytes32 => uint256) requestToTokenId; // Counters.Counter private _tokenIdCounter; constructor(address _VRFCoordinator, address _LinkToken, bytes32 _keyHash) VRFConsumerBase(_VRFCoordinator, _LinkToken) ERC721("GameTheory", "GT") { keyHash = _keyHash; fee = 0.0001 * 10 ** 18; // 0.1 LINK } // function safeMint(address to, string memory uri) public onlyOwner { // uint256 tokenId = _tokenIdCounter.current(); // _tokenIdCounter.increment(); // _safeMint(to, tokenId); // _setTokenURI(tokenId, uri); // } function requestRandomDude () public returns (bytes32) { bytes32 requestId = requestRandomness(keyHash, fee); requestToSender[requestId] = msg.sender; return requestId; } function fulfillRandomness(bytes32 requestId, uint256 randomNumber) internal override { // uint256 tokenId = _tokenIdCounter.current(); uint256 tokenId = dudes.length; uint256 background = (randomNumber % 100); uint256 head = ((randomNumber % 10000) / 100); uint256 body = ((randomNumber % 1000000) / 10000); dudes.push( Dude( background, head, body) ); // _tokenIdCounter.increment(); _safeMint(requestToSender[requestId], tokenId); } /* function requestNonRandomDude (uint256 nonRandomNumber) public returns (bytes32) { uint256 background = (nonRandomNumber % 100); uint256 head = ((nonRandomNumber % 10000) / 100); uint256 body = ((nonRandomNumber % 1000000) / 10000); // uint256 tokenId = _tokenIdCounter.current(); dudes.push( Dude(background,head,body) ); // _tokenIdCounter.increment(); _safeMint(msg.sender, tokenId); } */ function setTokenURI(uint256 tokenId, string memory _tokenURI) public { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _setTokenURI(tokenId, _tokenURI); } // The following functions are overrides required by Solidity. function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } }
// 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/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // 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 pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
[{"inputs":[{"internalType":"address","name":"_VRFCoordinator","type":"address"},{"internalType":"address","name":"_LinkToken","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"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":"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":"","type":"uint256"}],"name":"dudes","outputs":[{"internalType":"uint256","name":"background","type":"uint256"},{"internalType":"uint256","name":"head","type":"uint256"},{"internalType":"uint256","name":"body","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomDude","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162003715380380620037158339818101604052810190620000379190620002b5565b82826040518060400160405280600a81526020017f47616d655468656f7279000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f47540000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bd92919062000160565b508060019080519060200190620000d692919062000160565b5050508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050505080600881905550655af3107a400060098190555050505062000376565b8280546200016e9062000340565b90600052602060002090601f016020900481019282620001925760008555620001de565b82601f10620001ad57805160ff1916838001178555620001de565b82800160010185558215620001de579182015b82811115620001dd578251825591602001919060010190620001c0565b5b509050620001ed9190620001f1565b5090565b5b808211156200020c576000816000905550600101620001f2565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002428262000215565b9050919050565b620002548162000235565b81146200026057600080fd5b50565b600081519050620002748162000249565b92915050565b6000819050919050565b6200028f816200027a565b81146200029b57600080fd5b50565b600081519050620002af8162000284565b92915050565b600080600060608486031215620002d157620002d062000210565b5b6000620002e18682870162000263565b9350506020620002f48682870162000263565b925050604062000307868287016200029e565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200035957607f821691505b6020821081141562000370576200036f62000311565b5b50919050565b60805160a051613372620003a3600039600081816109aa015261117f0152600061114301526133726000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806368633620116100a2578063a22cb46511610071578063a22cb465146102f3578063b88d4fde1461030f578063c87b56dd1461032b578063ddca3f431461035b578063e985e9c51461037957610116565b8063686336201461025757806370a082311461028957806394985ddd146102b957806395d89b41146102d557610116565b8063162094c4116100e9578063162094c4146101b557806323b872dd146101d157806342842e0e146101ed5780634ddfc696146102095780636352211e1461022757610116565b806301ffc9a71461011b57806306fdde031461014b578063081812fc14610169578063095ea7b314610199575b600080fd5b61013560048036038101906101309190611e35565b6103a9565b6040516101429190611e7d565b60405180910390f35b61015361048b565b6040516101609190611f31565b60405180910390f35b610183600480360381019061017e9190611f89565b61051d565b6040516101909190611ff7565b60405180910390f35b6101b360048036038101906101ae919061203e565b6105a2565b005b6101cf60048036038101906101ca91906121b3565b6106ba565b005b6101eb60048036038101906101e6919061220f565b610718565b005b6102076004803603810190610202919061220f565b610778565b005b610211610798565b60405161021e919061227b565b60405180910390f35b610241600480360381019061023c9190611f89565b610804565b60405161024e9190611ff7565b60405180910390f35b610271600480360381019061026c9190611f89565b6108b6565b604051610280939291906122a5565b60405180910390f35b6102a3600480360381019061029e91906122dc565b6108f0565b6040516102b09190612309565b60405180910390f35b6102d360048036038101906102ce9190612350565b6109a8565b005b6102dd610a44565b6040516102ea9190611f31565b60405180910390f35b61030d600480360381019061030891906123bc565b610ad6565b005b6103296004803603810190610324919061249d565b610aec565b005b61034560048036038101906103409190611f89565b610b4e565b6040516103529190611f31565b60405180910390f35b610363610b60565b6040516103709190612309565b60405180910390f35b610393600480360381019061038e9190612520565b610b66565b6040516103a09190611e7d565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061047457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610484575061048382610bfa565b5b9050919050565b60606000805461049a9061258f565b80601f01602080910402602001604051908101604052809291908181526020018280546104c69061258f565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b600061052882610c64565b610567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055e90612633565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006105ad82610804565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561061e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610615906126c5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661063d610cd0565b73ffffffffffffffffffffffffffffffffffffffff16148061066c575061066b81610666610cd0565b610b66565b5b6106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612757565b60405180910390fd5b6106b58383610cd8565b505050565b6106cb6106c5610cd0565b83610d91565b61070a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610701906127e9565b60405180910390fd5b6107148282610e6f565b5050565b610729610723610cd0565b82610d91565b610768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075f906127e9565b60405180910390fd5b610773838383610ee3565b505050565b61079383838360405180602001604052806000815250610aec565b505050565b6000806107a960085460095461113f565b905033600b600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508091505090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a49061287b565b60405180910390fd5b80915050919050565b600a81815481106108c657600080fd5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610961576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109589061290d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2d90612979565b60405180910390fd5b610a408282611292565b5050565b606060018054610a539061258f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f9061258f565b8015610acc5780601f10610aa157610100808354040283529160200191610acc565b820191906000526020600020905b815481529060010190602001808311610aaf57829003601f168201915b5050505050905090565b610ae8610ae1610cd0565b8383611396565b5050565b610afd610af7610cd0565b83610d91565b610b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b33906127e9565b60405180910390fd5b610b4884848484611503565b50505050565b6060610b598261155f565b9050919050565b60095481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610d4b83610804565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610d9c82610c64565b610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612a0b565b60405180910390fd5b6000610de683610804565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610e5557508373ffffffffffffffffffffffffffffffffffffffff16610e3d8461051d565b73ffffffffffffffffffffffffffffffffffffffff16145b80610e665750610e658185610b66565b5b91505092915050565b610e7882610c64565b610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae90612a9d565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190610ede929190611d26565b505050565b8273ffffffffffffffffffffffffffffffffffffffff16610f0382610804565b73ffffffffffffffffffffffffffffffffffffffff1614610f59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5090612b2f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090612bc1565b60405180910390fd5b610fd48383836116b1565b610fdf600082610cd8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461102f9190612c10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110869190612c44565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016111b3929190612c9a565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016111e093929190612d18565b6020604051808303816000875af11580156111ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112239190612d6b565b5060006112468460003060076000898152602001908152602001600020546116b6565b9050600160076000868152602001908152602001600020546112689190612c44565b600760008681526020019081526020016000208190555061128984826116f2565b91505092915050565b6000600a80549050905060006064836112ab9190612dc7565b905060006064612710856112bf9190612dc7565b6112c99190612df8565b90506000612710620f4240866112df9190612dc7565b6112e99190612df8565b9050600a6040518060600160405280858152602001848152602001838152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505061138e600b600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685611725565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fc90612e75565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114f69190611e7d565b60405180910390a3505050565b61150e848484610ee3565b61151a84848484611743565b611559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155090612f07565b60405180910390fd5b50505050565b606061156a82610c64565b6115a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a090612f99565b60405180910390fd5b60006006600084815260200190815260200160002080546115c99061258f565b80601f01602080910402602001604051908101604052809291908181526020018280546115f59061258f565b80156116425780601f1061161757610100808354040283529160200191611642565b820191906000526020600020905b81548152906001019060200180831161162557829003601f168201915b5050505050905060006116536118cb565b90506000815114156116695781925050506116ac565b60008251111561169e578082604051602001611686929190612ff5565b604051602081830303815290604052925050506116ac565b6116a7846118e2565b925050505b919050565b505050565b6000848484846040516020016116cf9493929190613019565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016117079291906130a0565b60405160208183030381529060405280519060200120905092915050565b61173f828260405180602001604052806000815250611989565b5050565b60006117648473ffffffffffffffffffffffffffffffffffffffff166119e4565b156118be578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261178d610cd0565b8786866040518563ffffffff1660e01b81526004016117af94939291906130cc565b6020604051808303816000875af19250505080156117eb57506040513d601f19601f820116820180604052508101906117e8919061312d565b60015b61186e573d806000811461181b576040519150601f19603f3d011682016040523d82523d6000602084013e611820565b606091505b50600081511415611866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185d90612f07565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506118c3565b600190505b949350505050565b606060405180602001604052806000815250905090565b60606118ed82610c64565b61192c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611923906131cc565b60405180910390fd5b60006119366118cb565b905060008151116119565760405180602001604052806000815250611981565b80611960846119f7565b604051602001611971929190612ff5565b6040516020818303038152906040525b915050919050565b6119938383611b58565b6119a06000848484611743565b6119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d690612f07565b60405180910390fd5b505050565b600080823b905060008111915050919050565b60606000821415611a3f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b53565b600082905060005b60008214611a71578080611a5a906131ec565b915050600a82611a6a9190612df8565b9150611a47565b60008167ffffffffffffffff811115611a8d57611a8c612088565b5b6040519080825280601f01601f191660200182016040528015611abf5781602001600182028036833780820191505090505b5090505b60008514611b4c57600182611ad89190612c10565b9150600a85611ae79190612dc7565b6030611af39190612c44565b60f81b818381518110611b0957611b08613235565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b459190612df8565b9450611ac3565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbf906132b0565b60405180910390fd5b611bd181610c64565b15611c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c089061331c565b60405180910390fd5b611c1d600083836116b1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c6d9190612c44565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054611d329061258f565b90600052602060002090601f016020900481019282611d545760008555611d9b565b82601f10611d6d57805160ff1916838001178555611d9b565b82800160010185558215611d9b579182015b82811115611d9a578251825591602001919060010190611d7f565b5b509050611da89190611dac565b5090565b5b80821115611dc5576000816000905550600101611dad565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611e1281611ddd565b8114611e1d57600080fd5b50565b600081359050611e2f81611e09565b92915050565b600060208284031215611e4b57611e4a611dd3565b5b6000611e5984828501611e20565b91505092915050565b60008115159050919050565b611e7781611e62565b82525050565b6000602082019050611e926000830184611e6e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ed2578082015181840152602081019050611eb7565b83811115611ee1576000848401525b50505050565b6000601f19601f8301169050919050565b6000611f0382611e98565b611f0d8185611ea3565b9350611f1d818560208601611eb4565b611f2681611ee7565b840191505092915050565b60006020820190508181036000830152611f4b8184611ef8565b905092915050565b6000819050919050565b611f6681611f53565b8114611f7157600080fd5b50565b600081359050611f8381611f5d565b92915050565b600060208284031215611f9f57611f9e611dd3565b5b6000611fad84828501611f74565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611fe182611fb6565b9050919050565b611ff181611fd6565b82525050565b600060208201905061200c6000830184611fe8565b92915050565b61201b81611fd6565b811461202657600080fd5b50565b60008135905061203881612012565b92915050565b6000806040838503121561205557612054611dd3565b5b600061206385828601612029565b925050602061207485828601611f74565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120c082611ee7565b810181811067ffffffffffffffff821117156120df576120de612088565b5b80604052505050565b60006120f2611dc9565b90506120fe82826120b7565b919050565b600067ffffffffffffffff82111561211e5761211d612088565b5b61212782611ee7565b9050602081019050919050565b82818337600083830152505050565b600061215661215184612103565b6120e8565b90508281526020810184848401111561217257612171612083565b5b61217d848285612134565b509392505050565b600082601f83011261219a5761219961207e565b5b81356121aa848260208601612143565b91505092915050565b600080604083850312156121ca576121c9611dd3565b5b60006121d885828601611f74565b925050602083013567ffffffffffffffff8111156121f9576121f8611dd8565b5b61220585828601612185565b9150509250929050565b60008060006060848603121561222857612227611dd3565b5b600061223686828701612029565b935050602061224786828701612029565b925050604061225886828701611f74565b9150509250925092565b6000819050919050565b61227581612262565b82525050565b6000602082019050612290600083018461226c565b92915050565b61229f81611f53565b82525050565b60006060820190506122ba6000830186612296565b6122c76020830185612296565b6122d46040830184612296565b949350505050565b6000602082840312156122f2576122f1611dd3565b5b600061230084828501612029565b91505092915050565b600060208201905061231e6000830184612296565b92915050565b61232d81612262565b811461233857600080fd5b50565b60008135905061234a81612324565b92915050565b6000806040838503121561236757612366611dd3565b5b60006123758582860161233b565b925050602061238685828601611f74565b9150509250929050565b61239981611e62565b81146123a457600080fd5b50565b6000813590506123b681612390565b92915050565b600080604083850312156123d3576123d2611dd3565b5b60006123e185828601612029565b92505060206123f2858286016123a7565b9150509250929050565b600067ffffffffffffffff82111561241757612416612088565b5b61242082611ee7565b9050602081019050919050565b600061244061243b846123fc565b6120e8565b90508281526020810184848401111561245c5761245b612083565b5b612467848285612134565b509392505050565b600082601f8301126124845761248361207e565b5b813561249484826020860161242d565b91505092915050565b600080600080608085870312156124b7576124b6611dd3565b5b60006124c587828801612029565b94505060206124d687828801612029565b93505060406124e787828801611f74565b925050606085013567ffffffffffffffff81111561250857612507611dd8565b5b6125148782880161246f565b91505092959194509250565b6000806040838503121561253757612536611dd3565b5b600061254585828601612029565b925050602061255685828601612029565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806125a757607f821691505b602082108114156125bb576125ba612560565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061261d602c83611ea3565b9150612628826125c1565b604082019050919050565b6000602082019050818103600083015261264c81612610565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006126af602183611ea3565b91506126ba82612653565b604082019050919050565b600060208201905081810360008301526126de816126a2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000612741603883611ea3565b915061274c826126e5565b604082019050919050565b6000602082019050818103600083015261277081612734565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006127d3603183611ea3565b91506127de82612777565b604082019050919050565b60006020820190508181036000830152612802816127c6565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000612865602983611ea3565b915061287082612809565b604082019050919050565b6000602082019050818103600083015261289481612858565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006128f7602a83611ea3565b91506129028261289b565b604082019050919050565b60006020820190508181036000830152612926816128ea565b9050919050565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b6000612963601f83611ea3565b915061296e8261292d565b602082019050919050565b6000602082019050818103600083015261299281612956565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006129f5602c83611ea3565b9150612a0082612999565b604082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000612a87602e83611ea3565b9150612a9282612a2b565b604082019050919050565b60006020820190508181036000830152612ab681612a7a565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000612b19602983611ea3565b9150612b2482612abd565b604082019050919050565b60006020820190508181036000830152612b4881612b0c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612bab602483611ea3565b9150612bb682612b4f565b604082019050919050565b60006020820190508181036000830152612bda81612b9e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c1b82611f53565b9150612c2683611f53565b925082821015612c3957612c38612be1565b5b828203905092915050565b6000612c4f82611f53565b9150612c5a83611f53565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612c8f57612c8e612be1565b5b828201905092915050565b6000604082019050612caf600083018561226c565b612cbc6020830184612296565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000612cea82612cc3565b612cf48185612cce565b9350612d04818560208601611eb4565b612d0d81611ee7565b840191505092915050565b6000606082019050612d2d6000830186611fe8565b612d3a6020830185612296565b8181036040830152612d4c8184612cdf565b9050949350505050565b600081519050612d6581612390565b92915050565b600060208284031215612d8157612d80611dd3565b5b6000612d8f84828501612d56565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612dd282611f53565b9150612ddd83611f53565b925082612ded57612dec612d98565b5b828206905092915050565b6000612e0382611f53565b9150612e0e83611f53565b925082612e1e57612e1d612d98565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000612e5f601983611ea3565b9150612e6a82612e29565b602082019050919050565b60006020820190508181036000830152612e8e81612e52565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000612ef1603283611ea3565b9150612efc82612e95565b604082019050919050565b60006020820190508181036000830152612f2081612ee4565b9050919050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b6000612f83603183611ea3565b9150612f8e82612f27565b604082019050919050565b60006020820190508181036000830152612fb281612f76565b9050919050565b600081905092915050565b6000612fcf82611e98565b612fd98185612fb9565b9350612fe9818560208601611eb4565b80840191505092915050565b60006130018285612fc4565b915061300d8284612fc4565b91508190509392505050565b600060808201905061302e600083018761226c565b61303b6020830186612296565b6130486040830185611fe8565b6130556060830184612296565b95945050505050565b6000819050919050565b61307961307482612262565b61305e565b82525050565b6000819050919050565b61309a61309582611f53565b61307f565b82525050565b60006130ac8285613068565b6020820191506130bc8284613089565b6020820191508190509392505050565b60006080820190506130e16000830187611fe8565b6130ee6020830186611fe8565b6130fb6040830185612296565b818103606083015261310d8184612cdf565b905095945050505050565b60008151905061312781611e09565b92915050565b60006020828403121561314357613142611dd3565b5b600061315184828501613118565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006131b6602f83611ea3565b91506131c18261315a565b604082019050919050565b600060208201905081810360008301526131e5816131a9565b9050919050565b60006131f782611f53565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561322a57613229612be1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061329a602083611ea3565b91506132a582613264565b602082019050919050565b600060208201905081810360008301526132c98161328d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613306601c83611ea3565b9150613311826132d0565b602082019050919050565b60006020820190508181036000830152613335816132f9565b905091905056fea26469706673582212202d278ede3cb06f3923c84706ecca4b4978f0dddaaa515f893e5b44ad34dfb3b364736f6c634300080a00330000000000000000000000008c7382f9d8f56b33781fe506e897a4f1e2d17255000000000000000000000000326c977e6efc84e512bb9c30f76e30c160ed06fb6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c806368633620116100a2578063a22cb46511610071578063a22cb465146102f3578063b88d4fde1461030f578063c87b56dd1461032b578063ddca3f431461035b578063e985e9c51461037957610116565b8063686336201461025757806370a082311461028957806394985ddd146102b957806395d89b41146102d557610116565b8063162094c4116100e9578063162094c4146101b557806323b872dd146101d157806342842e0e146101ed5780634ddfc696146102095780636352211e1461022757610116565b806301ffc9a71461011b57806306fdde031461014b578063081812fc14610169578063095ea7b314610199575b600080fd5b61013560048036038101906101309190611e35565b6103a9565b6040516101429190611e7d565b60405180910390f35b61015361048b565b6040516101609190611f31565b60405180910390f35b610183600480360381019061017e9190611f89565b61051d565b6040516101909190611ff7565b60405180910390f35b6101b360048036038101906101ae919061203e565b6105a2565b005b6101cf60048036038101906101ca91906121b3565b6106ba565b005b6101eb60048036038101906101e6919061220f565b610718565b005b6102076004803603810190610202919061220f565b610778565b005b610211610798565b60405161021e919061227b565b60405180910390f35b610241600480360381019061023c9190611f89565b610804565b60405161024e9190611ff7565b60405180910390f35b610271600480360381019061026c9190611f89565b6108b6565b604051610280939291906122a5565b60405180910390f35b6102a3600480360381019061029e91906122dc565b6108f0565b6040516102b09190612309565b60405180910390f35b6102d360048036038101906102ce9190612350565b6109a8565b005b6102dd610a44565b6040516102ea9190611f31565b60405180910390f35b61030d600480360381019061030891906123bc565b610ad6565b005b6103296004803603810190610324919061249d565b610aec565b005b61034560048036038101906103409190611f89565b610b4e565b6040516103529190611f31565b60405180910390f35b610363610b60565b6040516103709190612309565b60405180910390f35b610393600480360381019061038e9190612520565b610b66565b6040516103a09190611e7d565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061047457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610484575061048382610bfa565b5b9050919050565b60606000805461049a9061258f565b80601f01602080910402602001604051908101604052809291908181526020018280546104c69061258f565b80156105135780601f106104e857610100808354040283529160200191610513565b820191906000526020600020905b8154815290600101906020018083116104f657829003601f168201915b5050505050905090565b600061052882610c64565b610567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055e90612633565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006105ad82610804565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561061e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610615906126c5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661063d610cd0565b73ffffffffffffffffffffffffffffffffffffffff16148061066c575061066b81610666610cd0565b610b66565b5b6106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290612757565b60405180910390fd5b6106b58383610cd8565b505050565b6106cb6106c5610cd0565b83610d91565b61070a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610701906127e9565b60405180910390fd5b6107148282610e6f565b5050565b610729610723610cd0565b82610d91565b610768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075f906127e9565b60405180910390fd5b610773838383610ee3565b505050565b61079383838360405180602001604052806000815250610aec565b505050565b6000806107a960085460095461113f565b905033600b600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508091505090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a49061287b565b60405180910390fd5b80915050919050565b600a81815481106108c657600080fd5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610961576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109589061290d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f0000000000000000000000008c7382f9d8f56b33781fe506e897a4f1e2d1725573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2d90612979565b60405180910390fd5b610a408282611292565b5050565b606060018054610a539061258f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f9061258f565b8015610acc5780601f10610aa157610100808354040283529160200191610acc565b820191906000526020600020905b815481529060010190602001808311610aaf57829003601f168201915b5050505050905090565b610ae8610ae1610cd0565b8383611396565b5050565b610afd610af7610cd0565b83610d91565b610b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b33906127e9565b60405180910390fd5b610b4884848484611503565b50505050565b6060610b598261155f565b9050919050565b60095481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610d4b83610804565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610d9c82610c64565b610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612a0b565b60405180910390fd5b6000610de683610804565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610e5557508373ffffffffffffffffffffffffffffffffffffffff16610e3d8461051d565b73ffffffffffffffffffffffffffffffffffffffff16145b80610e665750610e658185610b66565b5b91505092915050565b610e7882610c64565b610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae90612a9d565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190610ede929190611d26565b505050565b8273ffffffffffffffffffffffffffffffffffffffff16610f0382610804565b73ffffffffffffffffffffffffffffffffffffffff1614610f59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5090612b2f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090612bc1565b60405180910390fd5b610fd48383836116b1565b610fdf600082610cd8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461102f9190612c10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110869190612c44565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60007f000000000000000000000000326c977e6efc84e512bb9c30f76e30c160ed06fb73ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000008c7382f9d8f56b33781fe506e897a4f1e2d17255848660006040516020016111b3929190612c9a565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016111e093929190612d18565b6020604051808303816000875af11580156111ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112239190612d6b565b5060006112468460003060076000898152602001908152602001600020546116b6565b9050600160076000868152602001908152602001600020546112689190612c44565b600760008681526020019081526020016000208190555061128984826116f2565b91505092915050565b6000600a80549050905060006064836112ab9190612dc7565b905060006064612710856112bf9190612dc7565b6112c99190612df8565b90506000612710620f4240866112df9190612dc7565b6112e99190612df8565b9050600a6040518060600160405280858152602001848152602001838152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505061138e600b600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685611725565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fc90612e75565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114f69190611e7d565b60405180910390a3505050565b61150e848484610ee3565b61151a84848484611743565b611559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155090612f07565b60405180910390fd5b50505050565b606061156a82610c64565b6115a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a090612f99565b60405180910390fd5b60006006600084815260200190815260200160002080546115c99061258f565b80601f01602080910402602001604051908101604052809291908181526020018280546115f59061258f565b80156116425780601f1061161757610100808354040283529160200191611642565b820191906000526020600020905b81548152906001019060200180831161162557829003601f168201915b5050505050905060006116536118cb565b90506000815114156116695781925050506116ac565b60008251111561169e578082604051602001611686929190612ff5565b604051602081830303815290604052925050506116ac565b6116a7846118e2565b925050505b919050565b505050565b6000848484846040516020016116cf9493929190613019565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016117079291906130a0565b60405160208183030381529060405280519060200120905092915050565b61173f828260405180602001604052806000815250611989565b5050565b60006117648473ffffffffffffffffffffffffffffffffffffffff166119e4565b156118be578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261178d610cd0565b8786866040518563ffffffff1660e01b81526004016117af94939291906130cc565b6020604051808303816000875af19250505080156117eb57506040513d601f19601f820116820180604052508101906117e8919061312d565b60015b61186e573d806000811461181b576040519150601f19603f3d011682016040523d82523d6000602084013e611820565b606091505b50600081511415611866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185d90612f07565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506118c3565b600190505b949350505050565b606060405180602001604052806000815250905090565b60606118ed82610c64565b61192c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611923906131cc565b60405180910390fd5b60006119366118cb565b905060008151116119565760405180602001604052806000815250611981565b80611960846119f7565b604051602001611971929190612ff5565b6040516020818303038152906040525b915050919050565b6119938383611b58565b6119a06000848484611743565b6119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d690612f07565b60405180910390fd5b505050565b600080823b905060008111915050919050565b60606000821415611a3f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b53565b600082905060005b60008214611a71578080611a5a906131ec565b915050600a82611a6a9190612df8565b9150611a47565b60008167ffffffffffffffff811115611a8d57611a8c612088565b5b6040519080825280601f01601f191660200182016040528015611abf5781602001600182028036833780820191505090505b5090505b60008514611b4c57600182611ad89190612c10565b9150600a85611ae79190612dc7565b6030611af39190612c44565b60f81b818381518110611b0957611b08613235565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b459190612df8565b9450611ac3565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbf906132b0565b60405180910390fd5b611bd181610c64565b15611c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c089061331c565b60405180910390fd5b611c1d600083836116b1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c6d9190612c44565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054611d329061258f565b90600052602060002090601f016020900481019282611d545760008555611d9b565b82601f10611d6d57805160ff1916838001178555611d9b565b82800160010185558215611d9b579182015b82811115611d9a578251825591602001919060010190611d7f565b5b509050611da89190611dac565b5090565b5b80821115611dc5576000816000905550600101611dad565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611e1281611ddd565b8114611e1d57600080fd5b50565b600081359050611e2f81611e09565b92915050565b600060208284031215611e4b57611e4a611dd3565b5b6000611e5984828501611e20565b91505092915050565b60008115159050919050565b611e7781611e62565b82525050565b6000602082019050611e926000830184611e6e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ed2578082015181840152602081019050611eb7565b83811115611ee1576000848401525b50505050565b6000601f19601f8301169050919050565b6000611f0382611e98565b611f0d8185611ea3565b9350611f1d818560208601611eb4565b611f2681611ee7565b840191505092915050565b60006020820190508181036000830152611f4b8184611ef8565b905092915050565b6000819050919050565b611f6681611f53565b8114611f7157600080fd5b50565b600081359050611f8381611f5d565b92915050565b600060208284031215611f9f57611f9e611dd3565b5b6000611fad84828501611f74565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611fe182611fb6565b9050919050565b611ff181611fd6565b82525050565b600060208201905061200c6000830184611fe8565b92915050565b61201b81611fd6565b811461202657600080fd5b50565b60008135905061203881612012565b92915050565b6000806040838503121561205557612054611dd3565b5b600061206385828601612029565b925050602061207485828601611f74565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120c082611ee7565b810181811067ffffffffffffffff821117156120df576120de612088565b5b80604052505050565b60006120f2611dc9565b90506120fe82826120b7565b919050565b600067ffffffffffffffff82111561211e5761211d612088565b5b61212782611ee7565b9050602081019050919050565b82818337600083830152505050565b600061215661215184612103565b6120e8565b90508281526020810184848401111561217257612171612083565b5b61217d848285612134565b509392505050565b600082601f83011261219a5761219961207e565b5b81356121aa848260208601612143565b91505092915050565b600080604083850312156121ca576121c9611dd3565b5b60006121d885828601611f74565b925050602083013567ffffffffffffffff8111156121f9576121f8611dd8565b5b61220585828601612185565b9150509250929050565b60008060006060848603121561222857612227611dd3565b5b600061223686828701612029565b935050602061224786828701612029565b925050604061225886828701611f74565b9150509250925092565b6000819050919050565b61227581612262565b82525050565b6000602082019050612290600083018461226c565b92915050565b61229f81611f53565b82525050565b60006060820190506122ba6000830186612296565b6122c76020830185612296565b6122d46040830184612296565b949350505050565b6000602082840312156122f2576122f1611dd3565b5b600061230084828501612029565b91505092915050565b600060208201905061231e6000830184612296565b92915050565b61232d81612262565b811461233857600080fd5b50565b60008135905061234a81612324565b92915050565b6000806040838503121561236757612366611dd3565b5b60006123758582860161233b565b925050602061238685828601611f74565b9150509250929050565b61239981611e62565b81146123a457600080fd5b50565b6000813590506123b681612390565b92915050565b600080604083850312156123d3576123d2611dd3565b5b60006123e185828601612029565b92505060206123f2858286016123a7565b9150509250929050565b600067ffffffffffffffff82111561241757612416612088565b5b61242082611ee7565b9050602081019050919050565b600061244061243b846123fc565b6120e8565b90508281526020810184848401111561245c5761245b612083565b5b612467848285612134565b509392505050565b600082601f8301126124845761248361207e565b5b813561249484826020860161242d565b91505092915050565b600080600080608085870312156124b7576124b6611dd3565b5b60006124c587828801612029565b94505060206124d687828801612029565b93505060406124e787828801611f74565b925050606085013567ffffffffffffffff81111561250857612507611dd8565b5b6125148782880161246f565b91505092959194509250565b6000806040838503121561253757612536611dd3565b5b600061254585828601612029565b925050602061255685828601612029565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806125a757607f821691505b602082108114156125bb576125ba612560565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061261d602c83611ea3565b9150612628826125c1565b604082019050919050565b6000602082019050818103600083015261264c81612610565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006126af602183611ea3565b91506126ba82612653565b604082019050919050565b600060208201905081810360008301526126de816126a2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000612741603883611ea3565b915061274c826126e5565b604082019050919050565b6000602082019050818103600083015261277081612734565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006127d3603183611ea3565b91506127de82612777565b604082019050919050565b60006020820190508181036000830152612802816127c6565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000612865602983611ea3565b915061287082612809565b604082019050919050565b6000602082019050818103600083015261289481612858565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006128f7602a83611ea3565b91506129028261289b565b604082019050919050565b60006020820190508181036000830152612926816128ea565b9050919050565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b6000612963601f83611ea3565b915061296e8261292d565b602082019050919050565b6000602082019050818103600083015261299281612956565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006129f5602c83611ea3565b9150612a0082612999565b604082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000612a87602e83611ea3565b9150612a9282612a2b565b604082019050919050565b60006020820190508181036000830152612ab681612a7a565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000612b19602983611ea3565b9150612b2482612abd565b604082019050919050565b60006020820190508181036000830152612b4881612b0c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612bab602483611ea3565b9150612bb682612b4f565b604082019050919050565b60006020820190508181036000830152612bda81612b9e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c1b82611f53565b9150612c2683611f53565b925082821015612c3957612c38612be1565b5b828203905092915050565b6000612c4f82611f53565b9150612c5a83611f53565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612c8f57612c8e612be1565b5b828201905092915050565b6000604082019050612caf600083018561226c565b612cbc6020830184612296565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000612cea82612cc3565b612cf48185612cce565b9350612d04818560208601611eb4565b612d0d81611ee7565b840191505092915050565b6000606082019050612d2d6000830186611fe8565b612d3a6020830185612296565b8181036040830152612d4c8184612cdf565b9050949350505050565b600081519050612d6581612390565b92915050565b600060208284031215612d8157612d80611dd3565b5b6000612d8f84828501612d56565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612dd282611f53565b9150612ddd83611f53565b925082612ded57612dec612d98565b5b828206905092915050565b6000612e0382611f53565b9150612e0e83611f53565b925082612e1e57612e1d612d98565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000612e5f601983611ea3565b9150612e6a82612e29565b602082019050919050565b60006020820190508181036000830152612e8e81612e52565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000612ef1603283611ea3565b9150612efc82612e95565b604082019050919050565b60006020820190508181036000830152612f2081612ee4565b9050919050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b6000612f83603183611ea3565b9150612f8e82612f27565b604082019050919050565b60006020820190508181036000830152612fb281612f76565b9050919050565b600081905092915050565b6000612fcf82611e98565b612fd98185612fb9565b9350612fe9818560208601611eb4565b80840191505092915050565b60006130018285612fc4565b915061300d8284612fc4565b91508190509392505050565b600060808201905061302e600083018761226c565b61303b6020830186612296565b6130486040830185611fe8565b6130556060830184612296565b95945050505050565b6000819050919050565b61307961307482612262565b61305e565b82525050565b6000819050919050565b61309a61309582611f53565b61307f565b82525050565b60006130ac8285613068565b6020820191506130bc8284613089565b6020820191508190509392505050565b60006080820190506130e16000830187611fe8565b6130ee6020830186611fe8565b6130fb6040830185612296565b818103606083015261310d8184612cdf565b905095945050505050565b60008151905061312781611e09565b92915050565b60006020828403121561314357613142611dd3565b5b600061315184828501613118565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006131b6602f83611ea3565b91506131c18261315a565b604082019050919050565b600060208201905081810360008301526131e5816131a9565b9050919050565b60006131f782611f53565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561322a57613229612be1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061329a602083611ea3565b91506132a582613264565b602082019050919050565b600060208201905081810360008301526132c98161328d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613306601c83611ea3565b9150613311826132d0565b602082019050919050565b60006020820190508181036000830152613335816132f9565b905091905056fea26469706673582212202d278ede3cb06f3923c84706ecca4b4978f0dddaaa515f893e5b44ad34dfb3b364736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008c7382f9d8f56b33781fe506e897a4f1e2d17255000000000000000000000000326c977e6efc84e512bb9c30f76e30c160ed06fb6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4
-----Decoded View---------------
Arg [0] : _VRFCoordinator (address): 0x8C7382F9D8f56b33781fE506E897a4F1e2d17255
Arg [1] : _LinkToken (address): 0x326C977E6efc84E512bB9C30f76E30c160eD06FB
Arg [2] : _keyHash (bytes32): 0x6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008c7382f9d8f56b33781fe506e897a4f1e2d17255
Arg [1] : 000000000000000000000000326c977e6efc84e512bb9c30f76e30c160ed06fb
Arg [2] : 6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.