Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 673 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20693476 | 148 days ago | IN | 0 ETH | 0.00044358 | ||||
Safe Breed | 18259218 | 489 days ago | IN | 0 ETH | 0.00231832 | ||||
Set Approval For... | 17411545 | 608 days ago | IN | 0 ETH | 0.00100517 | ||||
Safe Breed | 16707943 | 707 days ago | IN | 0 ETH | 0.00450737 | ||||
Safe Breed | 16694089 | 709 days ago | IN | 0 ETH | 0.01192795 | ||||
Set Approval For... | 16372058 | 754 days ago | IN | 0 ETH | 0.0007451 | ||||
Set Approval For... | 16342502 | 758 days ago | IN | 0 ETH | 0.00096344 | ||||
Burn Breed | 16214668 | 776 days ago | IN | 0 ETH | 0.00690828 | ||||
Safe Transfer Fr... | 15995455 | 807 days ago | IN | 0 ETH | 0.00119746 | ||||
Set Approval For... | 15750470 | 841 days ago | IN | 0 ETH | 0.00124096 | ||||
Safe Breed | 15605431 | 861 days ago | IN | 0 ETH | 0.00114614 | ||||
Safe Breed | 15603816 | 861 days ago | IN | 0 ETH | 0.00161206 | ||||
Safe Breed | 15593487 | 863 days ago | IN | 0 ETH | 0.00175832 | ||||
Safe Breed | 15593456 | 863 days ago | IN | 0 ETH | 0.00190664 | ||||
Safe Breed | 15581766 | 864 days ago | IN | 0 ETH | 0.00149058 | ||||
Safe Breed | 15538324 | 870 days ago | IN | 0 ETH | 0.00296454 | ||||
Set Approval For... | 15521615 | 873 days ago | IN | 0 ETH | 0.00115538 | ||||
Safe Breed | 15510214 | 875 days ago | IN | 0 ETH | 0.00262447 | ||||
Set Approval For... | 15427845 | 888 days ago | IN | 0 ETH | 0.00019757 | ||||
Set Approval For... | 15406668 | 892 days ago | IN | 0 ETH | 0.00039281 | ||||
Safe Breed | 15338135 | 903 days ago | IN | 0 ETH | 0.00141318 | ||||
Safe Breed | 15318808 | 906 days ago | IN | 0 ETH | 0.00275451 | ||||
Pure Breed | 15318523 | 906 days ago | IN | 0.025 ETH | 0.00536056 | ||||
Safe Breed | 15293366 | 910 days ago | IN | 0 ETH | 0.00131127 | ||||
Safe Breed | 15293362 | 910 days ago | IN | 0 ETH | 0.00130382 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FluffyButts
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; interface IKittyButts { function ownerOf(uint256 tokenId) external view returns (address); function safeTransferFrom(address from, address to, uint256 tokenId) external; function setApprovalForAll(address operator, bool approved) external; function isApprovedForAll(address owner, address operator) external view returns (bool); } contract FluffyButts is ERC721, ERC721Enumerable, ERC721Burnable, IERC721Receiver, Ownable { using Counters for Counters.Counter; enum BreedType { NONE, SAFE, PURE, BURN } address public KittyButtContractAddress = 0x18d4db77f362557563051821952C9aE32a403ab8; IKittyButts private _parentContract; Counters.Counter private _tokenIdCounter; uint256 PURE_BREED_COST = 0.025 ether; uint256 MAX_TOKENS = 2000; uint256 SUMMONS_AMOUNT = 25; bool summonsReserved = false; string finalProvenance; bool provenanceSet = false; string private baseURI; //Cooldown periods uint128 SAFE_COOLDOWN = 18 hours; uint128 PURE_COOLDOWN = 1 hours; uint128 BURN_COOLDOWN = 18 hours; struct FluffyButtData { BreedType breedType; uint128[2] parents; } struct KittyButtData { uint128 cooldownExpiresAt; uint128 cooldownPeriod; } mapping(uint256 => KittyButtData) public kittyButtData; mapping(uint256 => FluffyButtData) public fluffyButtData; uint256[] public burnedKittyButts; //Sale and Presale bool private _isPresale = true; bool private _isBreeding = false; mapping(address => bool) private _whitelist; string private _parentsError = "You do not own these parents"; string private _cooldownError = "Parents in cooldown"; constructor() ERC721("The FluffyButts", "FBUTTS") { setParentContract(KittyButtContractAddress); } //KittyButts sent to this contract when burned function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external pure override returns(bytes4){ return this.onERC721Received.selector; } function _mint() private returns (uint256) { require(totalSupply() < MAX_TOKENS, "Maximum Bred"); require(_isBreeding, "Breeding not live"); if(_isPresale){ require(_whitelist[msg.sender], "Not on whitelist"); } _safeMint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); return _tokenIdCounter.current() - 1; } function setParentContract(address parentAddress) public onlyOwner { _parentContract = IKittyButts(parentAddress); } function retrieveMintDetails(uint256 tokenId) public view returns (FluffyButtData memory) { return fluffyButtData[tokenId]; } function getPresaleState() public view returns (bool) { return _isPresale; } function setPresaleState(bool presaleState) public onlyOwner { _isPresale = presaleState; } function getBreedingState() public view returns (bool) { return _isBreeding; } function setBreedingState(bool breedingState) public onlyOwner{ _isBreeding = breedingState; } function isWhitelisted(address addr) public view returns (bool) { return _whitelist[addr]; } function addToWhitelist(address[] memory addrs) public onlyOwner { uint256 numAddr = addrs.length; for (uint256 i; i < numAddr; i++) { _whitelist[addrs[i]] = true; } } function safeBreed(uint128[2] calldata parents) public returns (uint256) { require(_verifyParents(parents), _parentsError); require( _isOutOfCooldown(parents), _cooldownError ); _saveFluffyButtData(parents, _tokenIdCounter.current(), BreedType.SAFE); _saveParentData(parents, SAFE_COOLDOWN); _mint(); return _tokenIdCounter.current() - 1; } function pureBreed(uint128[2] calldata parents) public payable returns (uint256) { require( msg.value >= PURE_BREED_COST, "< ETH" ); require(_verifyParents(parents), _parentsError); require( _isOutOfCooldown(parents), _cooldownError ); _saveFluffyButtData(parents, _tokenIdCounter.current(), BreedType.PURE); _saveParentData(parents, PURE_COOLDOWN); _mint(); return _tokenIdCounter.current() - 1; } function burnBreed(uint128[2] calldata parents) public returns (uint256) { require(_verifyParents(parents), _parentsError); require( _isOutOfCooldown(parents), _cooldownError ); require(_parentContract.isApprovedForAll(tx.origin, address(this)), "Need approval first"); //Send KittyButt tokens to this contract for(uint i = 0; i < 2; i++){ _parentContract.safeTransferFrom(tx.origin, address(this), parents[i]); burnedKittyButts.push(parents[i]); } _saveFluffyButtData(parents, _tokenIdCounter.current(), BreedType.BURN); _saveParentData(parents, BURN_COOLDOWN); _mint(); return _tokenIdCounter.current() - 1; } function _verifyParents(uint128[2] calldata parents) private view returns (bool) { for (uint256 i = 0; i < 2; i++) { if (_parentContract.ownerOf(parents[i]) != msg.sender) { return false; } } return true; } function _saveFluffyButtData(uint128[2] calldata parents, uint256 tokenId, BreedType breedType) private { FluffyButtData memory fbData = FluffyButtData(breedType, parents); fluffyButtData[tokenId] = fbData; } function _saveParentData(uint128[2] calldata parents, uint128 cooldownPeriod) private { for(uint256 i = 0; i < 2; i++){ KittyButtData memory kbData = KittyButtData(uint128(block.timestamp + cooldownPeriod), cooldownPeriod); kittyButtData[parents[i]] = kbData; } } function getCooldownFor(uint256 parentId) public view returns (KittyButtData memory){ return (kittyButtData[parentId]); } function setCooldownFor(uint256 parentId, uint128 cooldownExpiry) public view onlyOwner { KittyButtData memory kbData = kittyButtData[parentId]; kbData.cooldownExpiresAt = cooldownExpiry; } function _isOutOfCooldown(uint128[2] calldata parents) private view returns (bool) { for (uint256 i = 0; i < 2; i++) { KittyButtData memory kbData = kittyButtData[parents[i]]; //If the parent has never bred then it will be mapped to 0 if (kbData.cooldownExpiresAt == 0 || kbData.cooldownExpiresAt < block.timestamp){ return true; } } return false; } function reserveSummons() public onlyOwner { require(!summonsReserved, "Summons already reserved"); summonsReserved = true; for (uint256 i; i < SUMMONS_AMOUNT; i++){ _safeMint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); } } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function setFinalProvenanceHash(string memory provenanceHash) public onlyOwner { require(!provenanceSet, "Provenance already set"); provenanceSet = true; finalProvenance = provenanceHash; } function setPureBreedPrice (uint256 amount) public onlyOwner { PURE_BREED_COST = amount; } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory newBaseURI) public onlyOwner { baseURI = newBaseURI; } // The following functions are overrides required by Solidity. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"KittyButtContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128[2]","name":"parents","type":"uint128[2]"}],"name":"burnBreed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnedKittyButts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fluffyButtData","outputs":[{"internalType":"enum FluffyButts.BreedType","name":"breedType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBreedingState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"parentId","type":"uint256"}],"name":"getCooldownFor","outputs":[{"components":[{"internalType":"uint128","name":"cooldownExpiresAt","type":"uint128"},{"internalType":"uint128","name":"cooldownPeriod","type":"uint128"}],"internalType":"struct FluffyButts.KittyButtData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"kittyButtData","outputs":[{"internalType":"uint128","name":"cooldownExpiresAt","type":"uint128"},{"internalType":"uint128","name":"cooldownPeriod","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128[2]","name":"parents","type":"uint128[2]"}],"name":"pureBreed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSummons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"retrieveMintDetails","outputs":[{"components":[{"internalType":"enum FluffyButts.BreedType","name":"breedType","type":"uint8"},{"internalType":"uint128[2]","name":"parents","type":"uint128[2]"}],"internalType":"struct FluffyButts.FluffyButtData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128[2]","name":"parents","type":"uint128[2]"}],"name":"safeBreed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"breedingState","type":"bool"}],"name":"setBreedingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"parentId","type":"uint256"},{"internalType":"uint128","name":"cooldownExpiry","type":"uint128"}],"name":"setCooldownFor","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setFinalProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"parentAddress","type":"address"}],"name":"setParentContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"presaleState","type":"bool"}],"name":"setPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPureBreedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600b80547318d4db77f362557563051821952c9ae32a403ab8600160a060020a03199091161790556658d15e17628000600e556107d0600f5560196010556011805460ff199081169091556013805482169055601580546001608060020a0361fd206001608060020a0319928316811791909116710e100000000000000000000000000000000017909255601680549091169091179055601a805490911660011761ff001916905560c0604052601c60808190527f596f7520646f206e6f74206f776e20746865736520706172656e74730000000060a0908152620000e691908162000323565b506040805180820190915260138082527f506172656e747320696e20636f6f6c646f776e0000000000000000000000000060209092019182526200012d91601d9162000323565b503480156200013b57600080fd5b50604080518082018252600f81527f54686520466c756666794275747473000000000000000000000000000000000060208083019182528351808501909452600684527f4642555454530000000000000000000000000000000000000000000000000000908401528151919291620001b69160009162000323565b508051620001cc90600190602084019062000323565b505050620001fb620001ec62000221640100000000026401000000009004565b64010000000062000225810204565b600b546200021b90600160a060020a031664010000000062000277810204565b62000454565b3390565b600a8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200028a64010000000062000221810204565b600160a060020a0316620002a664010000000062000314810204565b600160a060020a031614620002f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e990620003c9565b60405180910390fd5b600c8054600160a060020a031916600160a060020a0392909216919091179055565b600a54600160a060020a031690565b8280546200033190620003fe565b90600052602060002090601f016020900481019282620003555760008555620003a0565b82601f106200037057805160ff1916838001178555620003a0565b82800160010185558215620003a0579182015b82811115620003a057825182559160200191906001019062000383565b50620003ae929150620003b2565b5090565b5b80821115620003ae5760008155600101620003b3565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200041357607f821691505b602082108114156200044e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6139c980620004646000396000f3fe6080604052600436106102605760003560e060020a90048063644493bc1161014857806395d89b41116100ba578063c87b56dd1161007e578063c87b56dd14610716578063e6cd73b614610736578063e985e9c51461074b578063f2fde38b1461076b578063f88d58ff1461078b578063f9fca6d3146107ab57610260565b806395d89b411461068157806396e4f73114610696578063a22cb465146106b6578063b88d4fde146106d6578063bce4d6ae146106f657610260565b806377d2929c1161010c57806377d2929c146105bd5780637f649783146105ea57806381935ca41461060a57806383b215361461063757806385ad54201461064c5780638da5cb5b1461066c57610260565b8063644493bc1461053e57806368b2841f1461055357806370a0823114610568578063715018a614610588578063765ccb6b1461059d57610260565b80633af32abf116101e15780634f6ccce7116101a55780634f6ccce71461048b57806355f804b3146104ab5780635b43edf2146104cb5780635f418839146104eb578063614b47761461050b5780636352211e1461051e57610260565b80633af32abf146103e85780633ccfd60b1461040857806342842e0e1461041d57806342966c681461043d5780634500105c1461045d57610260565b806318160ddd1161022857806318160ddd1461033957806323b872dd1461035b578063283778781461037b5780632eaf8886146103a85780632f745c59146103c857610260565b806301ffc9a71461026557806306fdde031461029b578063081812fc146102bd578063095ea7b3146102ea578063150b7a021461030c575b600080fd5b34801561027157600080fd5b50610285610280366004612caf565b6107cb565b6040516102929190612ea0565b60405180910390f35b3480156102a757600080fd5b506102b06107de565b6040516102929190612ece565b3480156102c957600080fd5b506102dd6102d8366004612d47565b610870565b6040516102929190612e0a565b3480156102f657600080fd5b5061030a610305366004612b73565b6108bf565b005b34801561031857600080fd5b5061032c610327366004612a2f565b61095d565b6040516102929190612eab565b34801561034557600080fd5b5061034e610987565b60405161029291906137fa565b34801561036757600080fd5b5061030a6103763660046129ef565b61098d565b34801561038757600080fd5b5061039b610396366004612d47565b6109c8565b604051610292919061375a565b3480156103b457600080fd5b5061030a6103c3366004612d5f565b610aa6565b3480156103d457600080fd5b5061034e6103e3366004612b73565b610b21565b3480156103f457600080fd5b5061028561040336600461297f565b610b79565b34801561041457600080fd5b5061030a610b97565b34801561042957600080fd5b5061030a6104383660046129ef565b610c0d565b34801561044957600080fd5b5061030a610458366004612d47565b610c28565b34801561046957600080fd5b5061047d610478366004612d47565b610c5e565b6040516102929291906137e0565b34801561049757600080fd5b5061034e6104a6366004612d47565b610c84565b3480156104b757600080fd5b5061030a6104c6366004612ce7565b610ce5565b3480156104d757600080fd5b5061034e6104e6366004612d47565b610d3a565b3480156104f757600080fd5b5061030a610506366004612d47565b610d5b565b61034e610519366004612c51565b610da2565b34801561052a57600080fd5b506102dd610539366004612d47565b610e75565b34801561054a57600080fd5b5061030a610ead565b34801561055f57600080fd5b506102dd610f5e565b34801561057457600080fd5b5061034e61058336600461297f565b610f6d565b34801561059457600080fd5b5061030a610fb4565b3480156105a957600080fd5b5061030a6105b836600461297f565b611002565b3480156105c957600080fd5b506105dd6105d8366004612d47565b611073565b6040516102929190612ec0565b3480156105f657600080fd5b5061030a610605366004612b9e565b611088565b34801561061657600080fd5b5061062a610625366004612d47565b611144565b60405161029291906137a9565b34801561064357600080fd5b50610285611185565b34801561065857600080fd5b5061034e610667366004612c51565b61118e565b34801561067857600080fd5b506102dd611216565b34801561068d57600080fd5b506102b0611225565b3480156106a257600080fd5b5061030a6106b1366004612ce7565b611234565b3480156106c257600080fd5b5061030a6106d1366004612b46565b6112bc565b3480156106e257600080fd5b5061030a6106f1366004612ac9565b61138d565b34801561070257600080fd5b5061030a610711366004612c77565b6113cf565b34801561072257600080fd5b506102b0610731366004612d47565b611424565b34801561074257600080fd5b506102856114aa565b34801561075757600080fd5b506102856107663660046129b7565b6114b8565b34801561077757600080fd5b5061030a61078636600461297f565b6114e6565b34801561079757600080fd5b5061030a6107a6366004612c77565b61155a565b3480156107b757600080fd5b5061034e6107c6366004612c51565b6115b6565b60006107d68261180b565b90505b919050565b6060600080546107ed906138a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610819906138a8565b80156108665780601f1061083b57610100808354040283529160200191610866565b820191906000526020600020905b81548152906001019060200180831161084957829003601f168201915b5050505050905090565b600061087b82611849565b6108a35760405160e560020a62461bcd02815260040161089a9061342c565b60405180910390fd5b50600090815260046020526040902054600160a060020a031690565b60006108ca82610e75565b905080600160a060020a031683600160a060020a031614156109015760405160e560020a62461bcd02815260040161089a906135af565b80600160a060020a0316610913611866565b600160a060020a0316148061092f575061092f81610766611866565b61094e5760405160e560020a62461bcd02815260040161089a906132e0565b610958838361186a565b505050565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b60085490565b61099e610998611866565b826118e5565b6109bd5760405160e560020a62461bcd02815260040161089a9061360c565b61095883838361196d565b6109d0612783565b6000828152601860205260409081902081518083019092528054829060ff166003811115610a115760e060020a634e487b7102600052602160045260246000fd5b6003811115610a335760e060020a634e487b7102600052602160045260246000fd5b81526040805180820191829052602090920191906001840190600290826000855b82829054906101000a90046001608060020a03166001608060020a031681526020019060100190602082600f01049283019260010382029150808411610a545790505050505050815250509050919050565b610aae611866565b600160a060020a0316610abf611216565b600160a060020a031614610ae85760405160e560020a62461bcd02815260040161089a906134c0565b600091825260176020908152604092839020835180850190945254608060020a90046001608060020a0390811691840191909152169052565b6000610b2c83610f6d565b8210610b4d5760405160e560020a62461bcd02815260040161089a90613033565b50600160a060020a03821660009081526006602090815260408083208484529091529020545b92915050565b600160a060020a03166000908152601b602052604090205460ff1690565b610b9f611866565b600160a060020a0316610bb0611216565b600160a060020a031614610bd95760405160e560020a62461bcd02815260040161089a906134c0565b604051303190339082156108fc029083906000818181858888f19350505050158015610c09573d6000803e3d6000fd5b5050565b6109588383836040518060200160405280600081525061138d565b610c33610998611866565b610c525760405160e560020a62461bcd02815260040161089a906136fd565b610c5b81611aad565b50565b6017602052600090815260409020546001608060020a0380821691608060020a90041682565b6000610c8e610987565b8210610caf5760405160e560020a62461bcd02815260040161089a90613669565b60088281548110610cd35760e060020a634e487b7102600052603260045260246000fd5b90600052602060002001549050919050565b610ced611866565b600160a060020a0316610cfe611216565b600160a060020a031614610d275760405160e560020a62461bcd02815260040161089a906134c0565b8051610c099060149060208401906127a2565b60198181548110610d4a57600080fd5b600091825260209091200154905081565b610d63611866565b600160a060020a0316610d74611216565b600160a060020a031614610d9d5760405160e560020a62461bcd02815260040161089a906134c0565b600e55565b6000600e54341015610dc95760405160e560020a62461bcd02815260040161089a90613489565b610dd282611b61565b601c90610df55760405160e560020a62461bcd02815260040161089a9190612ee1565b50610dff82611c59565b601d90610e225760405160e560020a62461bcd02815260040161089a9190612ee1565b50610e3882610e31600d611d27565b6002611d2b565b601554610e56908390608060020a90046001608060020a0316611df2565b610e5e611eda565b506001610e6b600d611d27565b6107d69190613865565b600081815260026020526040812054600160a060020a0316806107d65760405160e560020a62461bcd02815260040161089a9061339a565b610eb5611866565b600160a060020a0316610ec6611216565b600160a060020a031614610eef5760405160e560020a62461bcd02815260040161089a906134c0565b60115460ff1615610f155760405160e560020a62461bcd02815260040161089a906130ed565b6011805460ff1916600117905560005b601054811015610c5b57610f4233610f3d600d611d27565b611fa1565b610f4c600d611fbb565b80610f56816138e0565b915050610f25565b600b54600160a060020a031681565b6000600160a060020a038216610f985760405160e560020a62461bcd02815260040161089a9061333d565b50600160a060020a031660009081526003602052604090205490565b610fbc611866565b600160a060020a0316610fcd611216565b600160a060020a031614610ff65760405160e560020a62461bcd02815260040161089a906134c0565b6110006000611fc4565b565b61100a611866565b600160a060020a031661101b611216565b600160a060020a0316146110445760405160e560020a62461bcd02815260040161089a906134c0565b600c805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60186020526000908152604090205460ff1681565b611090611866565b600160a060020a03166110a1611216565b600160a060020a0316146110ca5760405160e560020a62461bcd02815260040161089a906134c0565b805160005b81811015610958576001601b60008584815181106111005760e060020a634e487b7102600052603260045260246000fd5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff19169115159190911790558061113c816138e0565b9150506110cf565b61114c612826565b506000908152601760209081526040918290208251808401909352546001608060020a038082168452608060020a909104169082015290565b601a5460ff1690565b600061119982611b61565b601c906111bc5760405160e560020a62461bcd02815260040161089a9190612ee1565b506111c682611c59565b601d906111e95760405160e560020a62461bcd02815260040161089a9190612ee1565b506111ff826111f8600d611d27565b6001611d2b565b601554610e569083906001608060020a0316611df2565b600a54600160a060020a031690565b6060600180546107ed906138a8565b61123c611866565b600160a060020a031661124d611216565b600160a060020a0316146112765760405160e560020a62461bcd02815260040161089a906134c0565b60135460ff161561129c5760405160e560020a62461bcd02815260040161089a906136c6565b6013805460ff191660011790558051610c099060129060208401906127a2565b6112c4611866565b600160a060020a031682600160a060020a031614156112f85760405160e560020a62461bcd02815260040161089a90613215565b8060056000611305611866565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611349611866565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113819190612ea0565b60405180910390a35050565b61139e611398611866565b836118e5565b6113bd5760405160e560020a62461bcd02815260040161089a9061360c565b6113c984848484612023565b50505050565b6113d7611866565b600160a060020a03166113e8611216565b600160a060020a0316146114115760405160e560020a62461bcd02815260040161089a906134c0565b601a805460ff1916911515919091179055565b606061142f82611849565b61144e5760405160e560020a62461bcd02815260040161089a90613552565b6000611458612059565b9050600081511161147857604051806020016040528060008152506114a3565b8061148284612068565b604051602001611493929190612ddb565b6040516020818303038152906040525b9392505050565b601a54610100900460ff1690565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6114ee611866565b600160a060020a03166114ff611216565b600160a060020a0316146115285760405160e560020a62461bcd02815260040161089a906134c0565b600160a060020a0381166115515760405160e560020a62461bcd02815260040161089a90613124565b610c5b81611fc4565b611562611866565b600160a060020a0316611573611216565b600160a060020a03161461159c5760405160e560020a62461bcd02815260040161089a906134c0565b601a80549115156101000261ff0019909216919091179055565b60006115c182611b61565b601c906115e45760405160e560020a62461bcd02815260040161089a9190612ee1565b506115ee82611c59565b601d906116115760405160e560020a62461bcd02815260040161089a9190612ee1565b50600c546040517fe985e9c5000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063e985e9c59061165d9032903090600401612e1e565b60206040518083038186803b15801561167557600080fd5b505afa158015611689573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ad9190612c93565b6116cc5760405160e560020a62461bcd02815260040161089a9061324c565b60005b60028110156117de57600c54600160a060020a03166342842e0e323086856002811061170e5760e060020a634e487b7102600052603260045260246000fd5b6020020160208101906117219190612d2d565b6040518463ffffffff1660e060020a02815260040161174293929190612e38565b600060405180830381600087803b15801561175c57600080fd5b505af1158015611770573d6000803e3d6000fd5b5050505060198382600281106117995760e060020a634e487b7102600052603260045260246000fd5b6020020160208101906117ac9190612d2d565b8154600181018355600092835260209092206001608060020a03909116910155806117d6816138e0565b9150506116cf565b506117f4826117ed600d611d27565b6003611d2b565b601654610e569083906001608060020a0316611df2565b6000600160e060020a031982167f780e9d630000000000000000000000000000000000000000000000000000000014806107d657506107d6826121dc565b600090815260026020526040902054600160a060020a0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841690811790915581906118ac82610e75565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118f082611849565b61190f5760405160e560020a62461bcd02815260040161089a90613283565b600061191a83610e75565b905080600160a060020a031684600160a060020a03161480611955575083600160a060020a031661194a84610870565b600160a060020a0316145b80611965575061196581856114b8565b949350505050565b82600160a060020a031661198082610e75565b600160a060020a0316146119a95760405160e560020a62461bcd02815260040161089a906134f5565b600160a060020a0382166119d25760405160e560020a62461bcd02815260040161089a906131b8565b6119dd83838361224e565b6119e860008261186a565b600160a060020a0383166000908152600360205260408120805460019290611a11908490613865565b9091555050600160a060020a0382166000908152600360205260408120805460019290611a3f908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611ab882610e75565b9050611ac68160008461224e565b611ad160008361186a565b600160a060020a0381166000908152600360205260408120805460019290611afa908490613865565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916905551839190600160a060020a038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000805b6002811015611c5057600c543390600160a060020a0316636352211e858460028110611ba45760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611bb79190612d2d565b6040518263ffffffff1660e060020a028152600401611bd691906137cc565b60206040518083038186803b158015611bee57600080fd5b505afa158015611c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c26919061299b565b600160a060020a031614611c3e5760009150506107d9565b80611c48816138e0565b915050611b65565b50600192915050565b6000805b6002811015611d1e57600060176000858460028110611c8f5760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611ca29190612d2d565b6001608060020a0390811682526020808301939093526040918201600020825180840190935254808216808452608060020a9091049091169282019290925291501580611cfb57504281600001516001608060020a0316105b15611d0b576001925050506107d9565b5080611d16816138e0565b915050611c5d565b50600092915050565b5490565b60006040518060400160405280836003811115611d5b5760e060020a634e487b7102600052602160045260246000fd5b81526020018560028060200260405190810160405280929190826002602002808284376000920182905250929093525085815260186020526040902082518154939450849391925090829060ff19166001836003811115611dcf5760e060020a634e487b7102600052602160045260246000fd5b02179055506020820151611de9906001830190600261283d565b50505050505050565b60005b60028110156109585760006040518060400160405280846001608060020a031642611e209190613839565b6001608060020a03168152602001846001608060020a031681525090508060176000868560028110611e655760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611e789190612d2d565b6001608060020a03908116825260208083019390935260409091016000208351815494909301518216608060020a029282166fffffffffffffffffffffffffffffffff1990941693909317161790555080611ed2816138e0565b915050611df5565b6000600f54611ee7610987565b10611f075760405160e560020a62461bcd02815260040161089a90612f8e565b601a54610100900460ff16611f315760405160e560020a62461bcd02815260040161089a90612ffc565b601a5460ff1615611f6e57336000908152601b602052604090205460ff16611f6e5760405160e560020a62461bcd02815260040161089a90612fc5565b611f7c33610f3d600d611d27565b611f86600d611fbb565b6001611f92600d611d27565b611f9c9190613865565b905090565b610c09828260405180602001604052806000815250612259565b80546001019055565b600a8054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61202e84848461196d565b61203a8484848461228f565b6113c95760405160e560020a62461bcd02815260040161089a90613090565b6060601480546107ed906138a8565b6060816120a9575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526107d9565b8160005b81156120d357806120bd816138e0565b91506120cc9050600a83613851565b91506120ad565b60008167ffffffffffffffff8111156120ff5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612129576020820181803683370190505b5090505b84156119655761213e600183613865565b915061214b600a866138fb565b612156906030613839565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061219b5760e060020a634e487b7102600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506121d5600a86613851565b945061212d565b6000600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061223f5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d657506107d6826123c9565b6109588383836123fb565b6122638383612484565b612270600084848461228f565b6109585760405160e560020a62461bcd02815260040161089a90613090565b60006122a384600160a060020a0316612576565b156123be5783600160a060020a031663150b7a026122bf611866565b8786866040518563ffffffff1660e060020a0281526004016122e49493929190612e64565b602060405180830381600087803b1580156122fe57600080fd5b505af192505050801561232e575060408051601f3d908101601f1916820190925261232b91810190612ccb565b60015b61238b573d80801561235c576040519150601f19603f3d011682016040523d82523d6000602084013e612361565b606091505b5080516123835760405160e560020a62461bcd02815260040161089a90613090565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611965565b506001949350505050565b600160e060020a031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b612406838383610958565b600160a060020a0383166124225761241d8161257c565b612445565b81600160a060020a031683600160a060020a0316146124455761244583826125c0565b600160a060020a0382166124615761245c8161265d565b610958565b82600160a060020a031682600160a060020a03161461095857610958828261273f565b600160a060020a0382166124ad5760405160e560020a62461bcd02815260040161089a906133f7565b6124b681611849565b156124d65760405160e560020a62461bcd02815260040161089a90613181565b6124e26000838361224e565b600160a060020a038216600090815260036020526040812080546001929061250b908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016125cd84610f6d565b6125d79190613865565b60008381526007602052604090205490915080821461262a57600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b60085460009061266f90600190613865565b600083815260096020526040812054600880549394509092849081106126a85760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200154905080600883815481106126da5760e060020a634e487b7102600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806127235760e060020a634e487b7102600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061274a83610f6d565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60408051808201909152806000815260200161279d6128dd565b905290565b8280546127ae906138a8565b90600052602060002090601f0160209004810192826127d05760008555612816565b82601f106127e957805160ff1916838001178555612816565b82800160010185558215612816579182015b828111156128165782518255916020019190600101906127fb565b506128229291506128fb565b5090565b604080518082019091526000808252602082015290565b6001830191839082156128165791602002820160005b8382111561289d57835183826101000a8154816001608060020a0302191690836001608060020a031602179055509260200192601001602081600f01049283019260010302612853565b80156128d05782816101000a8154906001608060020a030219169055601001602081600f0104928301926001030261289d565b50506128229291506128fb565b60405180604001604052806002906020820280368337509192915050565b5b8082111561282257600081556001016128fc565b600067ffffffffffffffff83111561292a5761292a613941565b61293d601f8401601f1916602001613803565b905082815283838301111561295157600080fd5b828260208301376000602084830101529392505050565b80356001608060020a03811681146107d957600080fd5b600060208284031215612990578081fd5b81356114a38161395a565b6000602082840312156129ac578081fd5b81516114a38161395a565b600080604083850312156129c9578081fd5b82356129d48161395a565b915060208301356129e48161395a565b809150509250929050565b600080600060608486031215612a03578081fd5b8335612a0e8161395a565b92506020840135612a1e8161395a565b929592945050506040919091013590565b600080600080600060808688031215612a46578081fd5b8535612a518161395a565b94506020860135612a618161395a565b935060408601359250606086013567ffffffffffffffff80821115612a84578283fd5b818801915088601f830112612a97578283fd5b813581811115612aa5578384fd5b896020828501011115612ab6578384fd5b9699959850939650602001949392505050565b60008060008060808587031215612ade578384fd5b8435612ae98161395a565b93506020850135612af98161395a565b925060408501359150606085013567ffffffffffffffff811115612b1b578182fd5b8501601f81018713612b2b578182fd5b612b3a87823560208401612910565b91505092959194509250565b60008060408385031215612b58578182fd5b8235612b638161395a565b915060208301356129e48161396f565b60008060408385031215612b85578182fd5b8235612b908161395a565b946020939093013593505050565b60006020808385031215612bb0578182fd5b823567ffffffffffffffff80821115612bc7578384fd5b818501915085601f830112612bda578384fd5b813581811115612bec57612bec613941565b8381029150612bfc848301613803565b8181528481019084860184860187018a1015612c16578788fd5b8795505b83861015612c445780359450612c2f8561395a565b84835260019590950194918601918601612c1a565b5098975050505050505050565b600060408284031215612c62578081fd5b82604083011115612c71578081fd5b50919050565b600060208284031215612c88578081fd5b81356114a38161396f565b600060208284031215612ca4578081fd5b81516114a38161396f565b600060208284031215612cc0578081fd5b81356114a38161397d565b600060208284031215612cdc578081fd5b81516114a38161397d565b600060208284031215612cf8578081fd5b813567ffffffffffffffff811115612d0e578182fd5b8201601f81018413612d1e578182fd5b61196584823560208401612910565b600060208284031215612d3e578081fd5b6114a382612968565b600060208284031215612d58578081fd5b5035919050565b60008060408385031215612d71578182fd5b82359150612d8160208401612968565b90509250929050565b60008151808452612da281602086016020860161387c565b601f01601f19169290920160200192915050565b60048110612dd75760e060020a634e487b7102600052602160045260246000fd5b9052565b60008351612ded81846020880161387c565b835190830190612e0181836020880161387c565b01949350505050565b600160a060020a0391909116815260200190565b600160a060020a0392831681529116602082015260400190565b600160a060020a0393841681529190921660208201526001608060020a03909116604082015260600190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152612e966080830184612d8a565b9695505050505050565b901515815260200190565b600160e060020a031991909116815260200190565b60208101610b738284612db6565b6000602082526114a36020830184612d8a565b6000602080835281845483600282049050600180831680612f0357607f831692505b858310811415612f245760e060020a634e487b710287526022600452602487fd5b612f3083878a016137fa565b818015612f445760018114612f5557612f7f565b60ff19861682528782019650612f7f565b612f5e8b61382d565b895b86811015612f7957815484820152908501908901612f60565b83019750505b50949998505050505050505050565b6020808252600c908201527f4d6178696d756d20427265640000000000000000000000000000000000000000604082015260600190565b60208082526010908201527f4e6f74206f6e2077686974656c69737400000000000000000000000000000000604082015260600190565b60208082526011908201527f4272656564696e67206e6f74206c697665000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526018908201527f53756d6d6f6e7320616c72656164792072657365727665640000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526013908201527f4e65656420617070726f76616c20666972737400000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526005908201527f3c20455448000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f50726f76656e616e636520616c72656164792073657400000000000000000000604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606082015260800190565b600060608201905061376d828451612db6565b60208084015181840160005b600281101561379f5782516001608060020a031682529183019190830190600101613779565b5050505092915050565b81516001608060020a039081168252602092830151169181019190915260400190565b6001608060020a0391909116815260200190565b6001608060020a0392831681529116602082015260400190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561382557613825613941565b604052919050565b60009081526020902090565b6000821982111561384c5761384c61390f565b500190565b60008261386057613860613928565b500490565b6000828210156138775761387761390f565b500390565b60005b8381101561389757818101518382015260200161387f565b838111156113c95750506000910152565b6002810460018216806138bc57607f821691505b60208210811415612c715760e060020a634e487b7102600052602260045260246000fd5b60006000198214156138f4576138f461390f565b5060010190565b60008261390a5761390a613928565b500690565b60e060020a634e487b7102600052601160045260246000fd5b60e060020a634e487b7102600052601260045260246000fd5b60e060020a634e487b7102600052604160045260246000fd5b600160a060020a0381168114610c5b57600080fd5b8015158114610c5b57600080fd5b600160e060020a031981168114610c5b57600080fdfea264697066735822122067bffe5775ebb225cf90cb157d1d081207a21e60f1ce67e0150facda7bb1041864736f6c63430008000033
Deployed Bytecode
0x6080604052600436106102605760003560e060020a90048063644493bc1161014857806395d89b41116100ba578063c87b56dd1161007e578063c87b56dd14610716578063e6cd73b614610736578063e985e9c51461074b578063f2fde38b1461076b578063f88d58ff1461078b578063f9fca6d3146107ab57610260565b806395d89b411461068157806396e4f73114610696578063a22cb465146106b6578063b88d4fde146106d6578063bce4d6ae146106f657610260565b806377d2929c1161010c57806377d2929c146105bd5780637f649783146105ea57806381935ca41461060a57806383b215361461063757806385ad54201461064c5780638da5cb5b1461066c57610260565b8063644493bc1461053e57806368b2841f1461055357806370a0823114610568578063715018a614610588578063765ccb6b1461059d57610260565b80633af32abf116101e15780634f6ccce7116101a55780634f6ccce71461048b57806355f804b3146104ab5780635b43edf2146104cb5780635f418839146104eb578063614b47761461050b5780636352211e1461051e57610260565b80633af32abf146103e85780633ccfd60b1461040857806342842e0e1461041d57806342966c681461043d5780634500105c1461045d57610260565b806318160ddd1161022857806318160ddd1461033957806323b872dd1461035b578063283778781461037b5780632eaf8886146103a85780632f745c59146103c857610260565b806301ffc9a71461026557806306fdde031461029b578063081812fc146102bd578063095ea7b3146102ea578063150b7a021461030c575b600080fd5b34801561027157600080fd5b50610285610280366004612caf565b6107cb565b6040516102929190612ea0565b60405180910390f35b3480156102a757600080fd5b506102b06107de565b6040516102929190612ece565b3480156102c957600080fd5b506102dd6102d8366004612d47565b610870565b6040516102929190612e0a565b3480156102f657600080fd5b5061030a610305366004612b73565b6108bf565b005b34801561031857600080fd5b5061032c610327366004612a2f565b61095d565b6040516102929190612eab565b34801561034557600080fd5b5061034e610987565b60405161029291906137fa565b34801561036757600080fd5b5061030a6103763660046129ef565b61098d565b34801561038757600080fd5b5061039b610396366004612d47565b6109c8565b604051610292919061375a565b3480156103b457600080fd5b5061030a6103c3366004612d5f565b610aa6565b3480156103d457600080fd5b5061034e6103e3366004612b73565b610b21565b3480156103f457600080fd5b5061028561040336600461297f565b610b79565b34801561041457600080fd5b5061030a610b97565b34801561042957600080fd5b5061030a6104383660046129ef565b610c0d565b34801561044957600080fd5b5061030a610458366004612d47565b610c28565b34801561046957600080fd5b5061047d610478366004612d47565b610c5e565b6040516102929291906137e0565b34801561049757600080fd5b5061034e6104a6366004612d47565b610c84565b3480156104b757600080fd5b5061030a6104c6366004612ce7565b610ce5565b3480156104d757600080fd5b5061034e6104e6366004612d47565b610d3a565b3480156104f757600080fd5b5061030a610506366004612d47565b610d5b565b61034e610519366004612c51565b610da2565b34801561052a57600080fd5b506102dd610539366004612d47565b610e75565b34801561054a57600080fd5b5061030a610ead565b34801561055f57600080fd5b506102dd610f5e565b34801561057457600080fd5b5061034e61058336600461297f565b610f6d565b34801561059457600080fd5b5061030a610fb4565b3480156105a957600080fd5b5061030a6105b836600461297f565b611002565b3480156105c957600080fd5b506105dd6105d8366004612d47565b611073565b6040516102929190612ec0565b3480156105f657600080fd5b5061030a610605366004612b9e565b611088565b34801561061657600080fd5b5061062a610625366004612d47565b611144565b60405161029291906137a9565b34801561064357600080fd5b50610285611185565b34801561065857600080fd5b5061034e610667366004612c51565b61118e565b34801561067857600080fd5b506102dd611216565b34801561068d57600080fd5b506102b0611225565b3480156106a257600080fd5b5061030a6106b1366004612ce7565b611234565b3480156106c257600080fd5b5061030a6106d1366004612b46565b6112bc565b3480156106e257600080fd5b5061030a6106f1366004612ac9565b61138d565b34801561070257600080fd5b5061030a610711366004612c77565b6113cf565b34801561072257600080fd5b506102b0610731366004612d47565b611424565b34801561074257600080fd5b506102856114aa565b34801561075757600080fd5b506102856107663660046129b7565b6114b8565b34801561077757600080fd5b5061030a61078636600461297f565b6114e6565b34801561079757600080fd5b5061030a6107a6366004612c77565b61155a565b3480156107b757600080fd5b5061034e6107c6366004612c51565b6115b6565b60006107d68261180b565b90505b919050565b6060600080546107ed906138a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610819906138a8565b80156108665780601f1061083b57610100808354040283529160200191610866565b820191906000526020600020905b81548152906001019060200180831161084957829003601f168201915b5050505050905090565b600061087b82611849565b6108a35760405160e560020a62461bcd02815260040161089a9061342c565b60405180910390fd5b50600090815260046020526040902054600160a060020a031690565b60006108ca82610e75565b905080600160a060020a031683600160a060020a031614156109015760405160e560020a62461bcd02815260040161089a906135af565b80600160a060020a0316610913611866565b600160a060020a0316148061092f575061092f81610766611866565b61094e5760405160e560020a62461bcd02815260040161089a906132e0565b610958838361186a565b505050565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b60085490565b61099e610998611866565b826118e5565b6109bd5760405160e560020a62461bcd02815260040161089a9061360c565b61095883838361196d565b6109d0612783565b6000828152601860205260409081902081518083019092528054829060ff166003811115610a115760e060020a634e487b7102600052602160045260246000fd5b6003811115610a335760e060020a634e487b7102600052602160045260246000fd5b81526040805180820191829052602090920191906001840190600290826000855b82829054906101000a90046001608060020a03166001608060020a031681526020019060100190602082600f01049283019260010382029150808411610a545790505050505050815250509050919050565b610aae611866565b600160a060020a0316610abf611216565b600160a060020a031614610ae85760405160e560020a62461bcd02815260040161089a906134c0565b600091825260176020908152604092839020835180850190945254608060020a90046001608060020a0390811691840191909152169052565b6000610b2c83610f6d565b8210610b4d5760405160e560020a62461bcd02815260040161089a90613033565b50600160a060020a03821660009081526006602090815260408083208484529091529020545b92915050565b600160a060020a03166000908152601b602052604090205460ff1690565b610b9f611866565b600160a060020a0316610bb0611216565b600160a060020a031614610bd95760405160e560020a62461bcd02815260040161089a906134c0565b604051303190339082156108fc029083906000818181858888f19350505050158015610c09573d6000803e3d6000fd5b5050565b6109588383836040518060200160405280600081525061138d565b610c33610998611866565b610c525760405160e560020a62461bcd02815260040161089a906136fd565b610c5b81611aad565b50565b6017602052600090815260409020546001608060020a0380821691608060020a90041682565b6000610c8e610987565b8210610caf5760405160e560020a62461bcd02815260040161089a90613669565b60088281548110610cd35760e060020a634e487b7102600052603260045260246000fd5b90600052602060002001549050919050565b610ced611866565b600160a060020a0316610cfe611216565b600160a060020a031614610d275760405160e560020a62461bcd02815260040161089a906134c0565b8051610c099060149060208401906127a2565b60198181548110610d4a57600080fd5b600091825260209091200154905081565b610d63611866565b600160a060020a0316610d74611216565b600160a060020a031614610d9d5760405160e560020a62461bcd02815260040161089a906134c0565b600e55565b6000600e54341015610dc95760405160e560020a62461bcd02815260040161089a90613489565b610dd282611b61565b601c90610df55760405160e560020a62461bcd02815260040161089a9190612ee1565b50610dff82611c59565b601d90610e225760405160e560020a62461bcd02815260040161089a9190612ee1565b50610e3882610e31600d611d27565b6002611d2b565b601554610e56908390608060020a90046001608060020a0316611df2565b610e5e611eda565b506001610e6b600d611d27565b6107d69190613865565b600081815260026020526040812054600160a060020a0316806107d65760405160e560020a62461bcd02815260040161089a9061339a565b610eb5611866565b600160a060020a0316610ec6611216565b600160a060020a031614610eef5760405160e560020a62461bcd02815260040161089a906134c0565b60115460ff1615610f155760405160e560020a62461bcd02815260040161089a906130ed565b6011805460ff1916600117905560005b601054811015610c5b57610f4233610f3d600d611d27565b611fa1565b610f4c600d611fbb565b80610f56816138e0565b915050610f25565b600b54600160a060020a031681565b6000600160a060020a038216610f985760405160e560020a62461bcd02815260040161089a9061333d565b50600160a060020a031660009081526003602052604090205490565b610fbc611866565b600160a060020a0316610fcd611216565b600160a060020a031614610ff65760405160e560020a62461bcd02815260040161089a906134c0565b6110006000611fc4565b565b61100a611866565b600160a060020a031661101b611216565b600160a060020a0316146110445760405160e560020a62461bcd02815260040161089a906134c0565b600c805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60186020526000908152604090205460ff1681565b611090611866565b600160a060020a03166110a1611216565b600160a060020a0316146110ca5760405160e560020a62461bcd02815260040161089a906134c0565b805160005b81811015610958576001601b60008584815181106111005760e060020a634e487b7102600052603260045260246000fd5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff19169115159190911790558061113c816138e0565b9150506110cf565b61114c612826565b506000908152601760209081526040918290208251808401909352546001608060020a038082168452608060020a909104169082015290565b601a5460ff1690565b600061119982611b61565b601c906111bc5760405160e560020a62461bcd02815260040161089a9190612ee1565b506111c682611c59565b601d906111e95760405160e560020a62461bcd02815260040161089a9190612ee1565b506111ff826111f8600d611d27565b6001611d2b565b601554610e569083906001608060020a0316611df2565b600a54600160a060020a031690565b6060600180546107ed906138a8565b61123c611866565b600160a060020a031661124d611216565b600160a060020a0316146112765760405160e560020a62461bcd02815260040161089a906134c0565b60135460ff161561129c5760405160e560020a62461bcd02815260040161089a906136c6565b6013805460ff191660011790558051610c099060129060208401906127a2565b6112c4611866565b600160a060020a031682600160a060020a031614156112f85760405160e560020a62461bcd02815260040161089a90613215565b8060056000611305611866565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611349611866565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113819190612ea0565b60405180910390a35050565b61139e611398611866565b836118e5565b6113bd5760405160e560020a62461bcd02815260040161089a9061360c565b6113c984848484612023565b50505050565b6113d7611866565b600160a060020a03166113e8611216565b600160a060020a0316146114115760405160e560020a62461bcd02815260040161089a906134c0565b601a805460ff1916911515919091179055565b606061142f82611849565b61144e5760405160e560020a62461bcd02815260040161089a90613552565b6000611458612059565b9050600081511161147857604051806020016040528060008152506114a3565b8061148284612068565b604051602001611493929190612ddb565b6040516020818303038152906040525b9392505050565b601a54610100900460ff1690565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6114ee611866565b600160a060020a03166114ff611216565b600160a060020a0316146115285760405160e560020a62461bcd02815260040161089a906134c0565b600160a060020a0381166115515760405160e560020a62461bcd02815260040161089a90613124565b610c5b81611fc4565b611562611866565b600160a060020a0316611573611216565b600160a060020a03161461159c5760405160e560020a62461bcd02815260040161089a906134c0565b601a80549115156101000261ff0019909216919091179055565b60006115c182611b61565b601c906115e45760405160e560020a62461bcd02815260040161089a9190612ee1565b506115ee82611c59565b601d906116115760405160e560020a62461bcd02815260040161089a9190612ee1565b50600c546040517fe985e9c5000000000000000000000000000000000000000000000000000000008152600160a060020a039091169063e985e9c59061165d9032903090600401612e1e565b60206040518083038186803b15801561167557600080fd5b505afa158015611689573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ad9190612c93565b6116cc5760405160e560020a62461bcd02815260040161089a9061324c565b60005b60028110156117de57600c54600160a060020a03166342842e0e323086856002811061170e5760e060020a634e487b7102600052603260045260246000fd5b6020020160208101906117219190612d2d565b6040518463ffffffff1660e060020a02815260040161174293929190612e38565b600060405180830381600087803b15801561175c57600080fd5b505af1158015611770573d6000803e3d6000fd5b5050505060198382600281106117995760e060020a634e487b7102600052603260045260246000fd5b6020020160208101906117ac9190612d2d565b8154600181018355600092835260209092206001608060020a03909116910155806117d6816138e0565b9150506116cf565b506117f4826117ed600d611d27565b6003611d2b565b601654610e569083906001608060020a0316611df2565b6000600160e060020a031982167f780e9d630000000000000000000000000000000000000000000000000000000014806107d657506107d6826121dc565b600090815260026020526040902054600160a060020a0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841690811790915581906118ac82610e75565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118f082611849565b61190f5760405160e560020a62461bcd02815260040161089a90613283565b600061191a83610e75565b905080600160a060020a031684600160a060020a03161480611955575083600160a060020a031661194a84610870565b600160a060020a0316145b80611965575061196581856114b8565b949350505050565b82600160a060020a031661198082610e75565b600160a060020a0316146119a95760405160e560020a62461bcd02815260040161089a906134f5565b600160a060020a0382166119d25760405160e560020a62461bcd02815260040161089a906131b8565b6119dd83838361224e565b6119e860008261186a565b600160a060020a0383166000908152600360205260408120805460019290611a11908490613865565b9091555050600160a060020a0382166000908152600360205260408120805460019290611a3f908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611ab882610e75565b9050611ac68160008461224e565b611ad160008361186a565b600160a060020a0381166000908152600360205260408120805460019290611afa908490613865565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916905551839190600160a060020a038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000805b6002811015611c5057600c543390600160a060020a0316636352211e858460028110611ba45760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611bb79190612d2d565b6040518263ffffffff1660e060020a028152600401611bd691906137cc565b60206040518083038186803b158015611bee57600080fd5b505afa158015611c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c26919061299b565b600160a060020a031614611c3e5760009150506107d9565b80611c48816138e0565b915050611b65565b50600192915050565b6000805b6002811015611d1e57600060176000858460028110611c8f5760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611ca29190612d2d565b6001608060020a0390811682526020808301939093526040918201600020825180840190935254808216808452608060020a9091049091169282019290925291501580611cfb57504281600001516001608060020a0316105b15611d0b576001925050506107d9565b5080611d16816138e0565b915050611c5d565b50600092915050565b5490565b60006040518060400160405280836003811115611d5b5760e060020a634e487b7102600052602160045260246000fd5b81526020018560028060200260405190810160405280929190826002602002808284376000920182905250929093525085815260186020526040902082518154939450849391925090829060ff19166001836003811115611dcf5760e060020a634e487b7102600052602160045260246000fd5b02179055506020820151611de9906001830190600261283d565b50505050505050565b60005b60028110156109585760006040518060400160405280846001608060020a031642611e209190613839565b6001608060020a03168152602001846001608060020a031681525090508060176000868560028110611e655760e060020a634e487b7102600052603260045260246000fd5b602002016020810190611e789190612d2d565b6001608060020a03908116825260208083019390935260409091016000208351815494909301518216608060020a029282166fffffffffffffffffffffffffffffffff1990941693909317161790555080611ed2816138e0565b915050611df5565b6000600f54611ee7610987565b10611f075760405160e560020a62461bcd02815260040161089a90612f8e565b601a54610100900460ff16611f315760405160e560020a62461bcd02815260040161089a90612ffc565b601a5460ff1615611f6e57336000908152601b602052604090205460ff16611f6e5760405160e560020a62461bcd02815260040161089a90612fc5565b611f7c33610f3d600d611d27565b611f86600d611fbb565b6001611f92600d611d27565b611f9c9190613865565b905090565b610c09828260405180602001604052806000815250612259565b80546001019055565b600a8054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61202e84848461196d565b61203a8484848461228f565b6113c95760405160e560020a62461bcd02815260040161089a90613090565b6060601480546107ed906138a8565b6060816120a9575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526107d9565b8160005b81156120d357806120bd816138e0565b91506120cc9050600a83613851565b91506120ad565b60008167ffffffffffffffff8111156120ff5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612129576020820181803683370190505b5090505b84156119655761213e600183613865565b915061214b600a866138fb565b612156906030613839565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061219b5760e060020a634e487b7102600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506121d5600a86613851565b945061212d565b6000600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061223f5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d657506107d6826123c9565b6109588383836123fb565b6122638383612484565b612270600084848461228f565b6109585760405160e560020a62461bcd02815260040161089a90613090565b60006122a384600160a060020a0316612576565b156123be5783600160a060020a031663150b7a026122bf611866565b8786866040518563ffffffff1660e060020a0281526004016122e49493929190612e64565b602060405180830381600087803b1580156122fe57600080fd5b505af192505050801561232e575060408051601f3d908101601f1916820190925261232b91810190612ccb565b60015b61238b573d80801561235c576040519150601f19603f3d011682016040523d82523d6000602084013e612361565b606091505b5080516123835760405160e560020a62461bcd02815260040161089a90613090565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611965565b506001949350505050565b600160e060020a031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b612406838383610958565b600160a060020a0383166124225761241d8161257c565b612445565b81600160a060020a031683600160a060020a0316146124455761244583826125c0565b600160a060020a0382166124615761245c8161265d565b610958565b82600160a060020a031682600160a060020a03161461095857610958828261273f565b600160a060020a0382166124ad5760405160e560020a62461bcd02815260040161089a906133f7565b6124b681611849565b156124d65760405160e560020a62461bcd02815260040161089a90613181565b6124e26000838361224e565b600160a060020a038216600090815260036020526040812080546001929061250b908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016125cd84610f6d565b6125d79190613865565b60008381526007602052604090205490915080821461262a57600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b60085460009061266f90600190613865565b600083815260096020526040812054600880549394509092849081106126a85760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200154905080600883815481106126da5760e060020a634e487b7102600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806127235760e060020a634e487b7102600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061274a83610f6d565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60408051808201909152806000815260200161279d6128dd565b905290565b8280546127ae906138a8565b90600052602060002090601f0160209004810192826127d05760008555612816565b82601f106127e957805160ff1916838001178555612816565b82800160010185558215612816579182015b828111156128165782518255916020019190600101906127fb565b506128229291506128fb565b5090565b604080518082019091526000808252602082015290565b6001830191839082156128165791602002820160005b8382111561289d57835183826101000a8154816001608060020a0302191690836001608060020a031602179055509260200192601001602081600f01049283019260010302612853565b80156128d05782816101000a8154906001608060020a030219169055601001602081600f0104928301926001030261289d565b50506128229291506128fb565b60405180604001604052806002906020820280368337509192915050565b5b8082111561282257600081556001016128fc565b600067ffffffffffffffff83111561292a5761292a613941565b61293d601f8401601f1916602001613803565b905082815283838301111561295157600080fd5b828260208301376000602084830101529392505050565b80356001608060020a03811681146107d957600080fd5b600060208284031215612990578081fd5b81356114a38161395a565b6000602082840312156129ac578081fd5b81516114a38161395a565b600080604083850312156129c9578081fd5b82356129d48161395a565b915060208301356129e48161395a565b809150509250929050565b600080600060608486031215612a03578081fd5b8335612a0e8161395a565b92506020840135612a1e8161395a565b929592945050506040919091013590565b600080600080600060808688031215612a46578081fd5b8535612a518161395a565b94506020860135612a618161395a565b935060408601359250606086013567ffffffffffffffff80821115612a84578283fd5b818801915088601f830112612a97578283fd5b813581811115612aa5578384fd5b896020828501011115612ab6578384fd5b9699959850939650602001949392505050565b60008060008060808587031215612ade578384fd5b8435612ae98161395a565b93506020850135612af98161395a565b925060408501359150606085013567ffffffffffffffff811115612b1b578182fd5b8501601f81018713612b2b578182fd5b612b3a87823560208401612910565b91505092959194509250565b60008060408385031215612b58578182fd5b8235612b638161395a565b915060208301356129e48161396f565b60008060408385031215612b85578182fd5b8235612b908161395a565b946020939093013593505050565b60006020808385031215612bb0578182fd5b823567ffffffffffffffff80821115612bc7578384fd5b818501915085601f830112612bda578384fd5b813581811115612bec57612bec613941565b8381029150612bfc848301613803565b8181528481019084860184860187018a1015612c16578788fd5b8795505b83861015612c445780359450612c2f8561395a565b84835260019590950194918601918601612c1a565b5098975050505050505050565b600060408284031215612c62578081fd5b82604083011115612c71578081fd5b50919050565b600060208284031215612c88578081fd5b81356114a38161396f565b600060208284031215612ca4578081fd5b81516114a38161396f565b600060208284031215612cc0578081fd5b81356114a38161397d565b600060208284031215612cdc578081fd5b81516114a38161397d565b600060208284031215612cf8578081fd5b813567ffffffffffffffff811115612d0e578182fd5b8201601f81018413612d1e578182fd5b61196584823560208401612910565b600060208284031215612d3e578081fd5b6114a382612968565b600060208284031215612d58578081fd5b5035919050565b60008060408385031215612d71578182fd5b82359150612d8160208401612968565b90509250929050565b60008151808452612da281602086016020860161387c565b601f01601f19169290920160200192915050565b60048110612dd75760e060020a634e487b7102600052602160045260246000fd5b9052565b60008351612ded81846020880161387c565b835190830190612e0181836020880161387c565b01949350505050565b600160a060020a0391909116815260200190565b600160a060020a0392831681529116602082015260400190565b600160a060020a0393841681529190921660208201526001608060020a03909116604082015260600190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152612e966080830184612d8a565b9695505050505050565b901515815260200190565b600160e060020a031991909116815260200190565b60208101610b738284612db6565b6000602082526114a36020830184612d8a565b6000602080835281845483600282049050600180831680612f0357607f831692505b858310811415612f245760e060020a634e487b710287526022600452602487fd5b612f3083878a016137fa565b818015612f445760018114612f5557612f7f565b60ff19861682528782019650612f7f565b612f5e8b61382d565b895b86811015612f7957815484820152908501908901612f60565b83019750505b50949998505050505050505050565b6020808252600c908201527f4d6178696d756d20427265640000000000000000000000000000000000000000604082015260600190565b60208082526010908201527f4e6f74206f6e2077686974656c69737400000000000000000000000000000000604082015260600190565b60208082526011908201527f4272656564696e67206e6f74206c697665000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526018908201527f53756d6d6f6e7320616c72656164792072657365727665640000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526013908201527f4e65656420617070726f76616c20666972737400000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526005908201527f3c20455448000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f50726f76656e616e636520616c72656164792073657400000000000000000000604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606082015260800190565b600060608201905061376d828451612db6565b60208084015181840160005b600281101561379f5782516001608060020a031682529183019190830190600101613779565b5050505092915050565b81516001608060020a039081168252602092830151169181019190915260400190565b6001608060020a0391909116815260200190565b6001608060020a0392831681529116602082015260400190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561382557613825613941565b604052919050565b60009081526020902090565b6000821982111561384c5761384c61390f565b500190565b60008261386057613860613928565b500490565b6000828210156138775761387761390f565b500390565b60005b8381101561389757818101518382015260200161387f565b838111156113c95750506000910152565b6002810460018216806138bc57607f821691505b60208210811415612c715760e060020a634e487b7102600052602260045260246000fd5b60006000198214156138f4576138f461390f565b5060010190565b60008261390a5761390a613928565b500690565b60e060020a634e487b7102600052601160045260246000fd5b60e060020a634e487b7102600052601260045260246000fd5b60e060020a634e487b7102600052604160045260246000fd5b600160a060020a0381168114610c5b57600080fd5b8015158114610c5b57600080fd5b600160e060020a031981168114610c5b57600080fdfea264697066735822122067bffe5775ebb225cf90cb157d1d081207a21e60f1ce67e0150facda7bb1041864736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,106.79 | 0.05 | $155.34 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.