ETH Price: $3,268.69 (+4.96%)
 

Overview

Max Total Supply

0 NQB8

Holders

75

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
friendofdurutti.eth
Balance
1 NQB8
0x66a1e1772b53895c8c4edcacf2ebbc10f8ea0f57
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Incubator

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Incubator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import {Farmable} from "./Farmable.sol";
import {Chicken, Egg} from "./Farm.sol";

import {ERC721} from "openzeppelin/token/ERC721/ERC721.sol";
import {Strings} from "openzeppelin/utils/Strings.sol";
import {Base64} from "openzeppelin/utils/Base64.sol";

//
// ┌┬┐┬ ┬┌─┐  ┬┌┐┌┌─┐┬ ┬┌┐ ┌─┐┌┬┐┌─┐┬─┐
//  │ ├─┤├┤   │││││  │ │├┴┐├─┤ │ │ │├┬┘
//  ┴ ┴ ┴└─┘  ┴┘└┘└─┘└─┘└─┘┴ ┴ ┴ └─┘┴└─
//
//       Farmhand - Malone Hedges
//
contract Incubator is ERC721, Farmable {
    event ChickenAdded(address indexed farmer, uint256 indexed chicken);
    event IncubatorOpen();
    event EggAdded(address indexed holder, uint256 indexed egg);
    event IncubatorSealed();
    event ChickenHatched(
        uint256 indexed egg,
        uint256 indexed chicken,
        address indexed hatcher
    );
    event EggRemoved(address indexed holder, uint256 indexed egg);

    uint256 public chicken;
    uint256[] public incubatedEggs;
    address public hatcher;

    uint256 public incubatorOpenTime;
    uint256 public constant incubatorOpenDuration = 3 days;
    uint256 public incubatorSealedTime;
    uint256 public constant incubationDuration = 7 days;
    uint256 public chickenHatchedTime;

    Chicken public immutable chickenContract;
    Egg public immutable eggContract;

    constructor(address _chicken, address _egg)
        ERC721("The Incubator", "NQB8")
    {
        chickenContract = Chicken(_chicken);
        eggContract = Egg(_egg);
    }

    function addChicken(uint256 _chicken) public onlyFarmer {
        require(chicken == 0, "already have a chicken");
        require(incubatorOpenTime == 0, "only one chicken");

        chickenContract.transferFrom(msg.sender, address(this), _chicken);
        chicken = _chicken;
        emit ChickenAdded(farmer, chicken);

        incubatorOpenTime = block.timestamp;
        emit IncubatorOpen();
    }

    function incubateEgg(uint256 _eggId) external {
        // chicken comes before the egg
        require(chicken != 0, "no chicken");
        require(
            block.timestamp < incubatorOpenTime + incubatorOpenDuration,
            "you can't incubate your egg anymore"
        );

        eggContract.transferFrom(msg.sender, address(this), _eggId);
        _mint(msg.sender, _eggId);
        incubatedEggs.push(_eggId);
        emit EggAdded(msg.sender, _eggId);
    }

    function sealIncubator() external {
        require(chicken != 0, "no chicken");
        require(
            block.timestamp >= incubatorOpenTime + incubatorOpenDuration,
            "you can't seal the incubator yet"
        );
        require(incubatorSealedTime == 0, "incubator already sealed");

        incubatorSealedTime = block.timestamp;
        emit IncubatorSealed();
    }

    function hatchChicken() external {
        require(incubatorSealedTime != 0, "incubator not sealed yet");
        require(
            block.timestamp > incubatorSealedTime + incubationDuration,
            "incubation isn't finished yet"
        );
        require(incubatedEggs.length > 0, "no eggs to hatch");
        require(chicken != 0, "the chicken already hatched");

        uint256 fertilizedEggIndex = _getWinningEgg();
        uint256 fertilizedEgg = incubatedEggs[fertilizedEggIndex];
        address incubatedEggHolder = ownerOf(fertilizedEgg);

        eggContract.burn(fertilizedEgg);
        _burn(fertilizedEgg);
        uint256 _chicken = chicken;
        chickenContract.transferFrom(
            address(this),
            incubatedEggHolder,
            _chicken
        );
        hatcher = incubatedEggHolder;
        chicken = 0;

        chickenHatchedTime = block.timestamp;
        emit ChickenHatched(fertilizedEgg, _chicken, incubatedEggHolder);
    }

    function removeEgg(uint256 _eggId) external {
        require(incubatorSealedTime != 0, "incubator not sealed yet");
        require(
            block.timestamp > incubatorSealedTime + incubationDuration,
            "incubation period is not over"
        );
        require(ownerOf(_eggId) == msg.sender, "not your egg");

        _burn(_eggId);
        eggContract.transferFrom(address(this), msg.sender, _eggId);

        emit EggRemoved(msg.sender, _eggId);
    }

    function eggCount() external view returns (uint256) {
        return incubatedEggs.length;
    }

    function _getWinningEgg() internal view returns (uint256) {
        return
            uint256(
                keccak256(
                    abi.encodePacked(chicken, block.timestamp, block.basefee)
                )
            ) % incubatedEggs.length;
    }

    // farmer functions

    function rescueChicken() external onlyFarmer {
        require(chicken != 0, "no chicken");
        require(incubatorSealedTime != 0, "incubator not sealed yet");
        require(
            block.timestamp > incubatorSealedTime + incubationDuration,
            "incubation isn't finished yet"
        );
        require(
            incubatedEggs.length == 0,
            "can't rescue if any eggs were incubated"
        );

        chickenContract.transferFrom(address(this), msg.sender, chicken);
        chicken = 0;
    }

    // token

    string[3] public uris;

    function setURIs(string[3] memory _uris) external onlyFarmer {
        uris = _uris;
    }

    function imageURI() public view virtual returns (string memory) {
        if (incubatorSealedTime == 0) {
            return uris[0];
        }

        if (chicken != 0) {
            return uris[1];
        }

        return uris[2];
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        _requireMinted(tokenId);

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        "{",
                        '"name": "The Incubator ',
                        Strings.toString(tokenId),
                        '",',
                        '"description": "Just wait.",',
                        '"image": "',
                        imageURI(),
                        '"}'
                    )
                )
            )
        );

        return string(abi.encodePacked("data:application/json;base64,", json));
    }
}

File 2 of 13 : Farmable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

abstract contract Farmable {
    event NewFarmer(address indexed _farmer);
    event FarmAbandoned(address indexed _farmer);

    address public farmer;

    constructor() {
        _setFarmer(msg.sender);
    }

    function setFarmer(address _farmer) public onlyFarmer {
        require(_farmer != address(0), "abandon your farm");
        _setFarmer(_farmer);
    }

    function abandonFarm() public onlyFarmer {
        farmer = address(0);
        emit FarmAbandoned(msg.sender);
    }

    function _setFarmer(address _farmer) internal {
        farmer = _farmer;
        emit NewFarmer(_farmer);
    }

    modifier onlyFarmer() {
        require(msg.sender == farmer, "you are not the farmer");
        _;
    }

    // for the city folk

    function owner() public view virtual returns (address) {
        return farmer;
    }
}

File 3 of 13 : Farm.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import {IERC721} from "openzeppelin/token/ERC721/IERC721.sol";

interface Chicken is IERC721 {}

interface Egg is IERC721 {
    function burn(uint256 tokenId) external;
}

File 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * 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
        delete _tokenApprovals[tokenId];

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(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 from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 6 of 13 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 8 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "script/=script/",
    "solmate/=lib/solmate/src/",
    "src/=src/",
    "test/=test/",
    "src/=src/",
    "test/=test/",
    "script/=script/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_chicken","type":"address"},{"internalType":"address","name":"_egg","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"farmer","type":"address"},{"indexed":true,"internalType":"uint256","name":"chicken","type":"uint256"}],"name":"ChickenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"egg","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"chicken","type":"uint256"},{"indexed":true,"internalType":"address","name":"hatcher","type":"address"}],"name":"ChickenHatched","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":true,"internalType":"uint256","name":"egg","type":"uint256"}],"name":"EggAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":true,"internalType":"uint256","name":"egg","type":"uint256"}],"name":"EggRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_farmer","type":"address"}],"name":"FarmAbandoned","type":"event"},{"anonymous":false,"inputs":[],"name":"IncubatorOpen","type":"event"},{"anonymous":false,"inputs":[],"name":"IncubatorSealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_farmer","type":"address"}],"name":"NewFarmer","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":"abandonFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chicken","type":"uint256"}],"name":"addChicken","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":[],"name":"chicken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chickenContract","outputs":[{"internalType":"contract Chicken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chickenHatchedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eggContract","outputs":[{"internalType":"contract Egg","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eggCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmer","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"hatchChicken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hatcher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eggId","type":"uint256"}],"name":"incubateEgg","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"incubatedEggs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubationDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubatorOpenDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubatorOpenTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubatorSealedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uint256","name":"_eggId","type":"uint256"}],"name":"removeEgg","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueChicken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sealIncubator","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":"address","name":"_farmer","type":"address"}],"name":"setFarmer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[3]","name":"_uris","type":"string[3]"}],"name":"setURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uris","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b5060405162002b9738038062002b9783398101604081905262000034916200012a565b6040518060400160405280600d81526020016c2a34329024b731bab130ba37b960991b8152506040518060400160405280600481526020016309ca284760e31b815250816000908162000088919062000207565b50600162000097828262000207565b505050620000ab33620000c360201b60201c565b6001600160a01b039182166080521660a052620002d3565b600680546001600160a01b0319166001600160a01b0383169081179091556040517f33d5070212891a13a09744996fe2be73b077c455cd9ad8453a7dec84495b7d3a90600090a250565b80516001600160a01b03811681146200012557600080fd5b919050565b600080604083850312156200013e57600080fd5b62000149836200010d565b915062000159602084016200010d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018d57607f821691505b602082108103620001ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020257600081815260208120601f850160051c81016020861015620001dd5750805b601f850160051c820191505b81811015620001fe57828155600101620001e9565b5050505b505050565b81516001600160401b0381111562000223576200022362000162565b6200023b8162000234845462000178565b84620001b4565b602080601f8311600181146200027357600084156200025a5750858301515b600019600386901b1c1916600185901b178555620001fe565b600085815260208120601f198616915b82811015620002a45788860151825594840194600190910190840162000283565b5085821015620002c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516128746200032360003960008181610346015281816106cd015281816109f80152610d0301526000818161046e01528181610d8a0152818161107301526113c101526128746000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c8063664f2fc011610130578063b88d4fde116100b8578063d83e69ea1161007c578063d83e69ea14610456578063dd22da4614610469578063e2ed781c14610490578063e985e9c5146104a3578063ecdadda3146104b657600080fd5b8063b88d4fde1461040d578063c0ac776714610420578063c87b56dd14610428578063d55390641461043b578063d811fcf01461044357600080fd5b806395d89b41116100ff57806395d89b41146103d75780639e166bdf146103df5780639e51acab146103e8578063a22cb465146103f2578063affb840e1461040557600080fd5b8063664f2fc01461039857806370a08231146103a05780638da5cb5b146103b35780638e341503146103c457600080fd5b806323b872dd116101b357806345ee80401161018257806345ee80401461033857806349f2ae75146103415780635c5f8bc51461036857806360bdf4df146103725780636352211e1461038557600080fd5b806323b872dd146103015780632e60bdca1461031457806342842e0e1461031c578063448099291461032f57600080fd5b806308a76830116101fa57806308a76830146102ab578063095ea7b3146102c05780631253c546146102d3578063135d088d146102e657806319b72818146102ee57600080fd5b806301ffc9a71461022c57806306fdde03146102545780630788376414610269578063081812fc14610280575b600080fd5b61023f61023a366004611fbc565b6104c9565b60405190151581526020015b60405180910390f35b61025c61051b565b60405161024b9190612030565b610272600c5481565b60405190815260200161024b565b61029361028e366004612043565b6105ad565b6040516001600160a01b03909116815260200161024b565b6102be6102b9366004612043565b6105d4565b005b6102be6102ce366004612078565b610768565b61025c6102e1366004612043565b61087d565b61025c61091d565b6102be6102fc366004612043565b610954565b6102be61030f3660046120a2565b610acf565b600854610272565b6102be61032a3660046120a2565b610b00565b610272600b5481565b610272600a5481565b6102937f000000000000000000000000000000000000000000000000000000000000000081565b61027262093a8081565b610272610380366004612043565b610b1b565b610293610393366004612043565b610b3c565b6102be610b9c565b6102726103ae3660046120de565b610e51565b6006546001600160a01b0316610293565b6102be6103d23660046121ae565b610ed7565b61025c610f12565b61027260075481565b6102726203f48081565b6102be61040036600461225e565b610f21565b6102be610f2c565b6102be61041b36600461229a565b6110e4565b6102be61111c565b61025c610436366004612043565b611183565b6102be6111f3565b600654610293906001600160a01b031681565b6102be610464366004612043565b6112f4565b6102937f000000000000000000000000000000000000000000000000000000000000000081565b6102be61049e3660046120de565b611499565b61023f6104b1366004612316565b611519565b600954610293906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806104fa57506001600160e01b03198216635b5e139f60e01b145b8061051557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461052a90612349565b80601f016020809104026020016040519081016040528092919081815260200182805461055690612349565b80156105a35780601f10610578576101008083540402835291602001916105a3565b820191906000526020600020905b81548152906001019060200180831161058657829003601f168201915b5050505050905090565b60006105b882611547565b506000908152600460205260409020546001600160a01b031690565b600b546000036105ff5760405162461bcd60e51b81526004016105f690612383565b60405180910390fd5b62093a80600b5461061091906123d0565b421161065e5760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e20706572696f64206973206e6f74206f76657200000060448201526064016105f6565b3361066882610b3c565b6001600160a01b0316146106ad5760405162461bcd60e51b815260206004820152600c60248201526b6e6f7420796f75722065676760a01b60448201526064016105f6565b6106b6816115a6565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610706903090339086906004016123e3565b600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b50506040518392503391507f6ff84e5259abd0cb1c1eb0e598bd579799042d2957d74fa76f4e2b8f5dd31b3290600090a350565b600061077382610b3c565b9050806001600160a01b0316836001600160a01b0316036107e05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105f6565b336001600160a01b03821614806107fc57506107fc8133611519565b61086e5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105f6565b6108788383611650565b505050565b600d816003811061088d57600080fd5b01805490915061089c90612349565b80601f01602080910402602001604051908101604052809291908181526020018280546108c890612349565b80156109155780601f106108ea57610100808354040283529160200191610915565b820191906000526020600020905b8154815290600101906020018083116108f857829003601f168201915b505050505081565b6060600b5460000361093a57600d60005b01805461052a90612349565b6007541561094b57600d600161092e565b600d600261092e565b6007546000036109765760405162461bcd60e51b81526004016105f69061241d565b6203f480600a5461098791906123d0565b42106109e15760405162461bcd60e51b815260206004820152602360248201527f796f752063616e277420696e63756261746520796f75722065676720616e796d6044820152626f726560e81b60648201526084016105f6565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610a31903390309086906004016123e3565b600060405180830381600087803b158015610a4b57600080fd5b505af1158015610a5f573d6000803e3d6000fd5b50505050610a6d33826116be565b6008805460018101825560009182527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301829055604051829133917f9af01baab9b6b9985ccda20fa8e528e6c91c03603f77e0338eccb1b07fe656e19190a350565b610ad93382611800565b610af55760405162461bcd60e51b81526004016105f690612441565b61087883838361185f565b610878838383604051806020016040528060008152506110e4565b60088181548110610b2b57600080fd5b600091825260209091200154905081565b6000818152600260205260408120546001600160a01b0316806105155760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105f6565b600b54600003610bbe5760405162461bcd60e51b81526004016105f690612383565b62093a80600b54610bcf91906123d0565b4211610c1d5760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e2069736e27742066696e69736865642079657400000060448201526064016105f6565b600854610c5f5760405162461bcd60e51b815260206004820152601060248201526f0dcde40cacecee640e8de40d0c2e8c6d60831b60448201526064016105f6565b600754600003610cb15760405162461bcd60e51b815260206004820152601b60248201527f74686520636869636b656e20616c72656164792068617463686564000000000060448201526064016105f6565b6000610cbb611a0a565b9050600060088281548110610cd257610cd2612407565b906000526020600020015490506000610cea82610b3c565b604051630852cd8d60e31b8152600481018490529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b50505050610d70826115a6565b6007546040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610dc3903090869086906004016123e3565b600060405180830381600087803b158015610ddd57600080fd5b505af1158015610df1573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b0386169081179091556000600781905542600c5560405191935084925086917f3b2d337813cf54dbac948b5870ee003442258cfe9b604f0cabf39e58c934ba819190a450505050565b60006001600160a01b038216610ebb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105f6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f015760405162461bcd60e51b81526004016105f69061248e565b610f0e600d826003611ef6565b5050565b60606001805461052a90612349565b610f0e338383611a56565b6006546001600160a01b03163314610f565760405162461bcd60e51b81526004016105f69061248e565b600754600003610f785760405162461bcd60e51b81526004016105f69061241d565b600b54600003610f9a5760405162461bcd60e51b81526004016105f690612383565b62093a80600b54610fab91906123d0565b4211610ff95760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e2069736e27742066696e69736865642079657400000060448201526064016105f6565b600854156110595760405162461bcd60e51b815260206004820152602760248201527f63616e27742072657363756520696620616e792065676773207765726520696e60448201526618dd58985d195960ca1b60648201526084016105f6565b6007546040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd916110ab9130913391906004016123e3565b600060405180830381600087803b1580156110c557600080fd5b505af11580156110d9573d6000803e3d6000fd5b505060006007555050565b6110ee3383611800565b61110a5760405162461bcd60e51b81526004016105f690612441565b61111684848484611b24565b50505050565b6006546001600160a01b031633146111465760405162461bcd60e51b81526004016105f69061248e565b600680546001600160a01b031916905560405133907f784377080eac525f3a61f4710b62a7f67d26b7716f97df55e4a007d06eaf4abe90600090a2565b606061118e82611547565b60006111c961119c84611b57565b6111a461091d565b6040516020016111b59291906124be565b604051602081830303815290604052611c58565b9050806040516020016111dc9190612576565b604051602081830303815290604052915050919050565b6007546000036112155760405162461bcd60e51b81526004016105f69061241d565b6203f480600a5461122691906123d0565b4210156112755760405162461bcd60e51b815260206004820181905260248201527f796f752063616e2774207365616c2074686520696e63756261746f722079657460448201526064016105f6565b600b54156112c55760405162461bcd60e51b815260206004820152601860248201527f696e63756261746f7220616c7265616479207365616c6564000000000000000060448201526064016105f6565b42600b556040517ff75ee427a6265c4c57a1b263f312b2f185e92a621211a68df73894ac9f02a6d090600090a1565b6006546001600160a01b0316331461131e5760405162461bcd60e51b81526004016105f69061248e565b600754156113675760405162461bcd60e51b815260206004820152601660248201527530b63932b0b23c903430bb3290309031b434b1b5b2b760511b60448201526064016105f6565b600a54156113aa5760405162461bcd60e51b815260206004820152601060248201526f37b7363c9037b7329031b434b1b5b2b760811b60448201526064016105f6565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906113fa903390309086906004016123e3565b600060405180830381600087803b15801561141457600080fd5b505af1158015611428573d6000803e3d6000fd5b50505060078290555060065460405182916001600160a01b0316907fdd4f29e803410a3969ae38ecde4f3b354e34ff41a84da86f8a6ac6df607c4e7790600090a342600a556040517f3a36c1e3b4c13f8fd5f1d4bcc8414ba36c3fd885db4edb0af5223a3595aff78690600090a150565b6006546001600160a01b031633146114c35760405162461bcd60e51b81526004016105f69061248e565b6001600160a01b03811661150d5760405162461bcd60e51b81526020600482015260116024820152706162616e646f6e20796f7572206661726d60781b60448201526064016105f6565b61151681611dab565b50565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166115165760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105f6565b60006115b182610b3c565b9050600082815260046020908152604080832080546001600160a01b03191690556001600160a01b0384168352600390915281208054600192906115f69084906125bb565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061168582610b3c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166117145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f6565b6000818152600260205260409020546001600160a01b0316156117795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f6565b6001600160a01b03821660009081526003602052604081208054600192906117a29084906123d0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008061180c83610b3c565b9050806001600160a01b0316846001600160a01b0316148061183357506118338185611519565b806118575750836001600160a01b031661184c846105ad565b6001600160a01b0316145b949350505050565b826001600160a01b031661187282610b3c565b6001600160a01b0316146118d65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105f6565b6001600160a01b0382166119385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105f6565b600081815260046020908152604080832080546001600160a01b03191690556001600160a01b03861683526003909152812080546001929061197b9084906125bb565b90915550506001600160a01b03821660009081526003602052604081208054600192906119a99084906123d0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546007546040805160208101929092524290820152486060820152600091906080016040516020818303038152906040528051906020012060001c611a5191906125e4565b905090565b816001600160a01b0316836001600160a01b031603611ab75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b2f84848461185f565b611b3b84848484611df5565b6111165760405162461bcd60e51b81526004016105f6906125f8565b606081600003611b7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ba85780611b928161264a565b9150611ba19050600a83612663565b9150611b82565b60008167ffffffffffffffff811115611bc357611bc36120f9565b6040519080825280601f01601f191660200182016040528015611bed576020820181803683370190505b5090505b841561185757611c026001836125bb565b9150611c0f600a866125e4565b611c1a9060306123d0565b60f81b818381518110611c2f57611c2f612407565b60200101906001600160f81b031916908160001a905350611c51600a86612663565b9450611bf1565b60608151600003611c7757505060408051602081019091526000815290565b60006040518060600160405280604081526020016127ff6040913990506000600384516002611ca691906123d0565b611cb09190612663565b611cbb906004612677565b67ffffffffffffffff811115611cd357611cd36120f9565b6040519080825280601f01601f191660200182016040528015611cfd576020820181803683370190505b509050600182016020820185865187015b80821015611d69576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d0e565b5050600386510660018114611d855760028114611d9857611da0565b603d6001830353603d6002830353611da0565b603d60018303535b509195945050505050565b600680546001600160a01b0319166001600160a01b0383169081179091556040517f33d5070212891a13a09744996fe2be73b077c455cd9ad8453a7dec84495b7d3a90600090a250565b60006001600160a01b0384163b15611eeb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e39903390899088908890600401612696565b6020604051808303816000875af1925050508015611e74575060408051601f3d908101601f19168201909252611e71918101906126d3565b60015b611ed1573d808015611ea2576040519150601f19603f3d011682016040523d82523d6000602084013e611ea7565b606091505b508051600003611ec95760405162461bcd60e51b81526004016105f6906125f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611857565b506001949350505050565b8260038101928215611f2f579160200282015b82811115611f2f5782518290611f1f908261273e565b5091602001919060010190611f09565b50611f3b929150611f3f565b5090565b80821115611f3b576000611f538282611f5c565b50600101611f3f565b508054611f6890612349565b6000825580601f10611f78575050565b601f01602090049060005260206000209081019061151691905b80821115611f3b5760008155600101611f92565b6001600160e01b03198116811461151657600080fd5b600060208284031215611fce57600080fd5b8135611fd981611fa6565b9392505050565b60005b83811015611ffb578181015183820152602001611fe3565b50506000910152565b6000815180845261201c816020860160208601611fe0565b601f01601f19169290920160200192915050565b602081526000611fd96020830184612004565b60006020828403121561205557600080fd5b5035919050565b80356001600160a01b038116811461207357600080fd5b919050565b6000806040838503121561208b57600080fd5b6120948361205c565b946020939093013593505050565b6000806000606084860312156120b757600080fd5b6120c08461205c565b92506120ce6020850161205c565b9150604084013590509250925092565b6000602082840312156120f057600080fd5b611fd98261205c565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612132576121326120f9565b60405290565b600067ffffffffffffffff80841115612153576121536120f9565b604051601f8501601f19908116603f0116810190828211818310171561217b5761217b6120f9565b8160405280935085815286868601111561219457600080fd5b858560208301376000602087830101525050509392505050565b600060208083850312156121c157600080fd5b823567ffffffffffffffff808211156121d957600080fd5b8185019150601f86818401126121ee57600080fd5b6121f661210f565b80606085018981111561220857600080fd5b855b8181101561224f578035868111156122225760008081fd5b87018581018c136122335760008081fd5b6122418c82358b8401612138565b85525092870192870161220a565b50909998505050505050505050565b6000806040838503121561227157600080fd5b61227a8361205c565b91506020830135801515811461228f57600080fd5b809150509250929050565b600080600080608085870312156122b057600080fd5b6122b98561205c565b93506122c76020860161205c565b925060408501359150606085013567ffffffffffffffff8111156122ea57600080fd5b8501601f810187136122fb57600080fd5b61230a87823560208401612138565b91505092959194509250565b6000806040838503121561232957600080fd5b6123328361205c565b91506123406020840161205c565b90509250929050565b600181811c9082168061235d57607f821691505b60208210810361237d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f696e63756261746f72206e6f74207365616c6564207965740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610515576105156123ba565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252600a908201526937379031b434b1b5b2b760b11b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6020808252601690820152753cb7ba9030b932903737ba103a3432903330b936b2b960511b604082015260600190565b607b60f81b81527f226e616d65223a202254686520496e63756261746f7220000000000000000000600182015260008351612500816018850160208801611fe0565b61088b60f21b6018918401918201527f226465736372697074696f6e223a20224a75737420776169742e222c00000000601a820152691134b6b0b3b2911d101160b11b6036820152835161255b816040840160208801611fe0565b61227d60f01b60409290910191820152604201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516125ae81601d850160208701611fe0565b91909101601d0192915050565b81810381811115610515576105156123ba565b634e487b7160e01b600052601260045260246000fd5b6000826125f3576125f36125ce565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161265c5761265c6123ba565b5060010190565b600082612672576126726125ce565b500490565b6000816000190483118215151615612691576126916123ba565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c990830184612004565b9695505050505050565b6000602082840312156126e557600080fd5b8151611fd981611fa6565b601f82111561087857600081815260208120601f850160051c810160208610156127175750805b601f850160051c820191505b8181101561273657828155600101612723565b505050505050565b815167ffffffffffffffff811115612758576127586120f9565b61276c816127668454612349565b846126f0565b602080601f8311600181146127a157600084156127895750858301515b600019600386901b1c1916600185901b178555612736565b600085815260208120601f198616915b828110156127d0578886015182559484019460019091019084016127b1565b50858210156127ee5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122079f0a8bf0b41962f353811bfcdebf12fc571f5e00489d6b28ef9128630af291364736f6c634300081000330000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c8063664f2fc011610130578063b88d4fde116100b8578063d83e69ea1161007c578063d83e69ea14610456578063dd22da4614610469578063e2ed781c14610490578063e985e9c5146104a3578063ecdadda3146104b657600080fd5b8063b88d4fde1461040d578063c0ac776714610420578063c87b56dd14610428578063d55390641461043b578063d811fcf01461044357600080fd5b806395d89b41116100ff57806395d89b41146103d75780639e166bdf146103df5780639e51acab146103e8578063a22cb465146103f2578063affb840e1461040557600080fd5b8063664f2fc01461039857806370a08231146103a05780638da5cb5b146103b35780638e341503146103c457600080fd5b806323b872dd116101b357806345ee80401161018257806345ee80401461033857806349f2ae75146103415780635c5f8bc51461036857806360bdf4df146103725780636352211e1461038557600080fd5b806323b872dd146103015780632e60bdca1461031457806342842e0e1461031c578063448099291461032f57600080fd5b806308a76830116101fa57806308a76830146102ab578063095ea7b3146102c05780631253c546146102d3578063135d088d146102e657806319b72818146102ee57600080fd5b806301ffc9a71461022c57806306fdde03146102545780630788376414610269578063081812fc14610280575b600080fd5b61023f61023a366004611fbc565b6104c9565b60405190151581526020015b60405180910390f35b61025c61051b565b60405161024b9190612030565b610272600c5481565b60405190815260200161024b565b61029361028e366004612043565b6105ad565b6040516001600160a01b03909116815260200161024b565b6102be6102b9366004612043565b6105d4565b005b6102be6102ce366004612078565b610768565b61025c6102e1366004612043565b61087d565b61025c61091d565b6102be6102fc366004612043565b610954565b6102be61030f3660046120a2565b610acf565b600854610272565b6102be61032a3660046120a2565b610b00565b610272600b5481565b610272600a5481565b6102937f00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee81565b61027262093a8081565b610272610380366004612043565b610b1b565b610293610393366004612043565b610b3c565b6102be610b9c565b6102726103ae3660046120de565b610e51565b6006546001600160a01b0316610293565b6102be6103d23660046121ae565b610ed7565b61025c610f12565b61027260075481565b6102726203f48081565b6102be61040036600461225e565b610f21565b6102be610f2c565b6102be61041b36600461229a565b6110e4565b6102be61111c565b61025c610436366004612043565b611183565b6102be6111f3565b600654610293906001600160a01b031681565b6102be610464366004612043565b6112f4565b6102937f0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a81565b6102be61049e3660046120de565b611499565b61023f6104b1366004612316565b611519565b600954610293906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806104fa57506001600160e01b03198216635b5e139f60e01b145b8061051557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461052a90612349565b80601f016020809104026020016040519081016040528092919081815260200182805461055690612349565b80156105a35780601f10610578576101008083540402835291602001916105a3565b820191906000526020600020905b81548152906001019060200180831161058657829003601f168201915b5050505050905090565b60006105b882611547565b506000908152600460205260409020546001600160a01b031690565b600b546000036105ff5760405162461bcd60e51b81526004016105f690612383565b60405180910390fd5b62093a80600b5461061091906123d0565b421161065e5760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e20706572696f64206973206e6f74206f76657200000060448201526064016105f6565b3361066882610b3c565b6001600160a01b0316146106ad5760405162461bcd60e51b815260206004820152600c60248201526b6e6f7420796f75722065676760a01b60448201526064016105f6565b6106b6816115a6565b6040516323b872dd60e01b81526001600160a01b037f00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee16906323b872dd90610706903090339086906004016123e3565b600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b50506040518392503391507f6ff84e5259abd0cb1c1eb0e598bd579799042d2957d74fa76f4e2b8f5dd31b3290600090a350565b600061077382610b3c565b9050806001600160a01b0316836001600160a01b0316036107e05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105f6565b336001600160a01b03821614806107fc57506107fc8133611519565b61086e5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105f6565b6108788383611650565b505050565b600d816003811061088d57600080fd5b01805490915061089c90612349565b80601f01602080910402602001604051908101604052809291908181526020018280546108c890612349565b80156109155780601f106108ea57610100808354040283529160200191610915565b820191906000526020600020905b8154815290600101906020018083116108f857829003601f168201915b505050505081565b6060600b5460000361093a57600d60005b01805461052a90612349565b6007541561094b57600d600161092e565b600d600261092e565b6007546000036109765760405162461bcd60e51b81526004016105f69061241d565b6203f480600a5461098791906123d0565b42106109e15760405162461bcd60e51b815260206004820152602360248201527f796f752063616e277420696e63756261746520796f75722065676720616e796d6044820152626f726560e81b60648201526084016105f6565b6040516323b872dd60e01b81526001600160a01b037f00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee16906323b872dd90610a31903390309086906004016123e3565b600060405180830381600087803b158015610a4b57600080fd5b505af1158015610a5f573d6000803e3d6000fd5b50505050610a6d33826116be565b6008805460018101825560009182527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301829055604051829133917f9af01baab9b6b9985ccda20fa8e528e6c91c03603f77e0338eccb1b07fe656e19190a350565b610ad93382611800565b610af55760405162461bcd60e51b81526004016105f690612441565b61087883838361185f565b610878838383604051806020016040528060008152506110e4565b60088181548110610b2b57600080fd5b600091825260209091200154905081565b6000818152600260205260408120546001600160a01b0316806105155760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105f6565b600b54600003610bbe5760405162461bcd60e51b81526004016105f690612383565b62093a80600b54610bcf91906123d0565b4211610c1d5760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e2069736e27742066696e69736865642079657400000060448201526064016105f6565b600854610c5f5760405162461bcd60e51b815260206004820152601060248201526f0dcde40cacecee640e8de40d0c2e8c6d60831b60448201526064016105f6565b600754600003610cb15760405162461bcd60e51b815260206004820152601b60248201527f74686520636869636b656e20616c72656164792068617463686564000000000060448201526064016105f6565b6000610cbb611a0a565b9050600060088281548110610cd257610cd2612407565b906000526020600020015490506000610cea82610b3c565b604051630852cd8d60e31b8152600481018490529091507f00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee6001600160a01b0316906342966c6890602401600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b50505050610d70826115a6565b6007546040516323b872dd60e01b81526001600160a01b037f0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a16906323b872dd90610dc3903090869086906004016123e3565b600060405180830381600087803b158015610ddd57600080fd5b505af1158015610df1573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b0386169081179091556000600781905542600c5560405191935084925086917f3b2d337813cf54dbac948b5870ee003442258cfe9b604f0cabf39e58c934ba819190a450505050565b60006001600160a01b038216610ebb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105f6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f015760405162461bcd60e51b81526004016105f69061248e565b610f0e600d826003611ef6565b5050565b60606001805461052a90612349565b610f0e338383611a56565b6006546001600160a01b03163314610f565760405162461bcd60e51b81526004016105f69061248e565b600754600003610f785760405162461bcd60e51b81526004016105f69061241d565b600b54600003610f9a5760405162461bcd60e51b81526004016105f690612383565b62093a80600b54610fab91906123d0565b4211610ff95760405162461bcd60e51b815260206004820152601d60248201527f696e6375626174696f6e2069736e27742066696e69736865642079657400000060448201526064016105f6565b600854156110595760405162461bcd60e51b815260206004820152602760248201527f63616e27742072657363756520696620616e792065676773207765726520696e60448201526618dd58985d195960ca1b60648201526084016105f6565b6007546040516323b872dd60e01b81526001600160a01b037f0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a16916323b872dd916110ab9130913391906004016123e3565b600060405180830381600087803b1580156110c557600080fd5b505af11580156110d9573d6000803e3d6000fd5b505060006007555050565b6110ee3383611800565b61110a5760405162461bcd60e51b81526004016105f690612441565b61111684848484611b24565b50505050565b6006546001600160a01b031633146111465760405162461bcd60e51b81526004016105f69061248e565b600680546001600160a01b031916905560405133907f784377080eac525f3a61f4710b62a7f67d26b7716f97df55e4a007d06eaf4abe90600090a2565b606061118e82611547565b60006111c961119c84611b57565b6111a461091d565b6040516020016111b59291906124be565b604051602081830303815290604052611c58565b9050806040516020016111dc9190612576565b604051602081830303815290604052915050919050565b6007546000036112155760405162461bcd60e51b81526004016105f69061241d565b6203f480600a5461122691906123d0565b4210156112755760405162461bcd60e51b815260206004820181905260248201527f796f752063616e2774207365616c2074686520696e63756261746f722079657460448201526064016105f6565b600b54156112c55760405162461bcd60e51b815260206004820152601860248201527f696e63756261746f7220616c7265616479207365616c6564000000000000000060448201526064016105f6565b42600b556040517ff75ee427a6265c4c57a1b263f312b2f185e92a621211a68df73894ac9f02a6d090600090a1565b6006546001600160a01b0316331461131e5760405162461bcd60e51b81526004016105f69061248e565b600754156113675760405162461bcd60e51b815260206004820152601660248201527530b63932b0b23c903430bb3290309031b434b1b5b2b760511b60448201526064016105f6565b600a54156113aa5760405162461bcd60e51b815260206004820152601060248201526f37b7363c9037b7329031b434b1b5b2b760811b60448201526064016105f6565b6040516323b872dd60e01b81526001600160a01b037f0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a16906323b872dd906113fa903390309086906004016123e3565b600060405180830381600087803b15801561141457600080fd5b505af1158015611428573d6000803e3d6000fd5b50505060078290555060065460405182916001600160a01b0316907fdd4f29e803410a3969ae38ecde4f3b354e34ff41a84da86f8a6ac6df607c4e7790600090a342600a556040517f3a36c1e3b4c13f8fd5f1d4bcc8414ba36c3fd885db4edb0af5223a3595aff78690600090a150565b6006546001600160a01b031633146114c35760405162461bcd60e51b81526004016105f69061248e565b6001600160a01b03811661150d5760405162461bcd60e51b81526020600482015260116024820152706162616e646f6e20796f7572206661726d60781b60448201526064016105f6565b61151681611dab565b50565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166115165760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105f6565b60006115b182610b3c565b9050600082815260046020908152604080832080546001600160a01b03191690556001600160a01b0384168352600390915281208054600192906115f69084906125bb565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061168582610b3c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166117145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f6565b6000818152600260205260409020546001600160a01b0316156117795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f6565b6001600160a01b03821660009081526003602052604081208054600192906117a29084906123d0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008061180c83610b3c565b9050806001600160a01b0316846001600160a01b0316148061183357506118338185611519565b806118575750836001600160a01b031661184c846105ad565b6001600160a01b0316145b949350505050565b826001600160a01b031661187282610b3c565b6001600160a01b0316146118d65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105f6565b6001600160a01b0382166119385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105f6565b600081815260046020908152604080832080546001600160a01b03191690556001600160a01b03861683526003909152812080546001929061197b9084906125bb565b90915550506001600160a01b03821660009081526003602052604081208054600192906119a99084906123d0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546007546040805160208101929092524290820152486060820152600091906080016040516020818303038152906040528051906020012060001c611a5191906125e4565b905090565b816001600160a01b0316836001600160a01b031603611ab75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b2f84848461185f565b611b3b84848484611df5565b6111165760405162461bcd60e51b81526004016105f6906125f8565b606081600003611b7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ba85780611b928161264a565b9150611ba19050600a83612663565b9150611b82565b60008167ffffffffffffffff811115611bc357611bc36120f9565b6040519080825280601f01601f191660200182016040528015611bed576020820181803683370190505b5090505b841561185757611c026001836125bb565b9150611c0f600a866125e4565b611c1a9060306123d0565b60f81b818381518110611c2f57611c2f612407565b60200101906001600160f81b031916908160001a905350611c51600a86612663565b9450611bf1565b60608151600003611c7757505060408051602081019091526000815290565b60006040518060600160405280604081526020016127ff6040913990506000600384516002611ca691906123d0565b611cb09190612663565b611cbb906004612677565b67ffffffffffffffff811115611cd357611cd36120f9565b6040519080825280601f01601f191660200182016040528015611cfd576020820181803683370190505b509050600182016020820185865187015b80821015611d69576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d0e565b5050600386510660018114611d855760028114611d9857611da0565b603d6001830353603d6002830353611da0565b603d60018303535b509195945050505050565b600680546001600160a01b0319166001600160a01b0383169081179091556040517f33d5070212891a13a09744996fe2be73b077c455cd9ad8453a7dec84495b7d3a90600090a250565b60006001600160a01b0384163b15611eeb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e39903390899088908890600401612696565b6020604051808303816000875af1925050508015611e74575060408051601f3d908101601f19168201909252611e71918101906126d3565b60015b611ed1573d808015611ea2576040519150601f19603f3d011682016040523d82523d6000602084013e611ea7565b606091505b508051600003611ec95760405162461bcd60e51b81526004016105f6906125f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611857565b506001949350505050565b8260038101928215611f2f579160200282015b82811115611f2f5782518290611f1f908261273e565b5091602001919060010190611f09565b50611f3b929150611f3f565b5090565b80821115611f3b576000611f538282611f5c565b50600101611f3f565b508054611f6890612349565b6000825580601f10611f78575050565b601f01602090049060005260206000209081019061151691905b80821115611f3b5760008155600101611f92565b6001600160e01b03198116811461151657600080fd5b600060208284031215611fce57600080fd5b8135611fd981611fa6565b9392505050565b60005b83811015611ffb578181015183820152602001611fe3565b50506000910152565b6000815180845261201c816020860160208601611fe0565b601f01601f19169290920160200192915050565b602081526000611fd96020830184612004565b60006020828403121561205557600080fd5b5035919050565b80356001600160a01b038116811461207357600080fd5b919050565b6000806040838503121561208b57600080fd5b6120948361205c565b946020939093013593505050565b6000806000606084860312156120b757600080fd5b6120c08461205c565b92506120ce6020850161205c565b9150604084013590509250925092565b6000602082840312156120f057600080fd5b611fd98261205c565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612132576121326120f9565b60405290565b600067ffffffffffffffff80841115612153576121536120f9565b604051601f8501601f19908116603f0116810190828211818310171561217b5761217b6120f9565b8160405280935085815286868601111561219457600080fd5b858560208301376000602087830101525050509392505050565b600060208083850312156121c157600080fd5b823567ffffffffffffffff808211156121d957600080fd5b8185019150601f86818401126121ee57600080fd5b6121f661210f565b80606085018981111561220857600080fd5b855b8181101561224f578035868111156122225760008081fd5b87018581018c136122335760008081fd5b6122418c82358b8401612138565b85525092870192870161220a565b50909998505050505050505050565b6000806040838503121561227157600080fd5b61227a8361205c565b91506020830135801515811461228f57600080fd5b809150509250929050565b600080600080608085870312156122b057600080fd5b6122b98561205c565b93506122c76020860161205c565b925060408501359150606085013567ffffffffffffffff8111156122ea57600080fd5b8501601f810187136122fb57600080fd5b61230a87823560208401612138565b91505092959194509250565b6000806040838503121561232957600080fd5b6123328361205c565b91506123406020840161205c565b90509250929050565b600181811c9082168061235d57607f821691505b60208210810361237d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f696e63756261746f72206e6f74207365616c6564207965740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610515576105156123ba565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252600a908201526937379031b434b1b5b2b760b11b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6020808252601690820152753cb7ba9030b932903737ba103a3432903330b936b2b960511b604082015260600190565b607b60f81b81527f226e616d65223a202254686520496e63756261746f7220000000000000000000600182015260008351612500816018850160208801611fe0565b61088b60f21b6018918401918201527f226465736372697074696f6e223a20224a75737420776169742e222c00000000601a820152691134b6b0b3b2911d101160b11b6036820152835161255b816040840160208801611fe0565b61227d60f01b60409290910191820152604201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516125ae81601d850160208701611fe0565b91909101601d0192915050565b81810381811115610515576105156123ba565b634e487b7160e01b600052601260045260246000fd5b6000826125f3576125f36125ce565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161265c5761265c6123ba565b5060010190565b600082612672576126726125ce565b500490565b6000816000190483118215151615612691576126916123ba565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c990830184612004565b9695505050505050565b6000602082840312156126e557600080fd5b8151611fd981611fa6565b601f82111561087857600081815260208120601f850160051c810160208610156127175750805b601f850160051c820191505b8181101561273657828155600101612723565b505050505050565b815167ffffffffffffffff811115612758576127586120f9565b61276c816127668454612349565b846126f0565b602080601f8311600181146127a157600084156127895750858301515b600019600386901b1c1916600185901b178555612736565b600085815260208120601f198616915b828110156127d0578886015182559484019460019091019084016127b1565b50858210156127ee5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122079f0a8bf0b41962f353811bfcdebf12fc571f5e00489d6b28ef9128630af291364736f6c63430008100033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee

-----Decoded View---------------
Arg [0] : _chicken (address): 0x5bf377cA07e6F6DB4b2E927f78eCAE89846AF70a
Arg [1] : _egg (address): 0x60dFaEc9f9f9357d7b09768ce0cA1e7a8cc434EE

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005bf377ca07e6f6db4b2e927f78ecae89846af70a
Arg [1] : 00000000000000000000000060dfaec9f9f9357d7b09768ce0ca1e7a8cc434ee


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.