Contract Address Details
contract
token

0xc6a592ED792de33e6CBBF7ce04Dd9D3884B46B9A

Token
CryptoKitties (CK)
Creator
0xe50cc2–d8dc07 at 0x68d4a1–f2a7ec
Balance
0 SPOA
Tokens
Fetching tokens...
Transactions
5 Transactions
Transfers
0 Transfers
Gas Used
186,437
Last Balance Update
27180545
Contract name:
SimpleBridgeKitty




Optimization enabled
true
Compiler version
v0.4.24+commit.e67f0147




Optimization runs
200
EVM Version
default




Verified at
2019-10-04T15:02:28.813029Z

Contract source code

// File: contracts/simpleKitty/SimpleKittyBase.sol

pragma solidity 0.4.24;

contract SimpleKittyBase {
    /// @dev The Birth event is fired whenever a new kitten comes into existence. This obviously
    ///  includes any time a cat is created through the giveBirth method, but it is also called
    ///  when a new gen0 cat is created.
    event Birth(address owner, uint256 kittyId, uint256 matronId, uint256 sireId, uint256 genes);

    /// @dev Transfer event as defined in current draft of ERC721. Emitted every time a kitten
    ///  ownership is assigned, including births.
    event Transfer(address from, address to, uint256 tokenId);

    /*** DATA TYPES ***/

    /// @dev The main Kitty struct. Every cat in CryptoKitties is represented by a copy
    ///  of this structure, so great care was taken to ensure that it fits neatly into
    ///  exactly two 256-bit words. Note that the order of the members in this structure
    ///  is important because of the byte-packing rules used by Ethereum.
    ///  Ref: http://solidity.readthedocs.io/en/develop/miscellaneous.html
    struct Kitty {
        // The Kitty's genetic code is packed into these 256-bits, the format is
        // sooper-sekret! A cat's genes never change.
        uint256 genes;
        // The timestamp from the block when this cat came into existence.
        uint64 birthTime;
        // The minimum timestamp after which this cat can engage in breeding
        // activities again. This same timestamp is used for the pregnancy
        // timer (for matrons) as well as the siring cooldown.
        uint64 cooldownEndBlock;
        // The ID of the parents of this kitty, set to 0 for gen0 cats.
        // Note that using 32-bit unsigned integers limits us to a "mere"
        // 4 billion cats. This number might seem small until you realize
        // that Ethereum currently has a limit of about 500 million
        // transactions per year! So, this definitely won't be a problem
        // for several years (even as Ethereum learns to scale).
        uint32 matronId;
        uint32 sireId;
        // Set to the ID of the sire cat for matrons that are pregnant,
        // zero otherwise. A non-zero value here is how we know a cat
        // is pregnant. Used to retrieve the genetic material for the new
        // kitten when the birth transpires.
        uint32 siringWithId;
        // Set to the index in the cooldown array (see below) that represents
        // the current cooldown duration for this Kitty. This starts at zero
        // for gen0 cats, and is initialized to floor(generation/2) for others.
        // Incremented by one for each successful breeding action, regardless
        // of whether this cat is acting as matron or sire.
        uint16 cooldownIndex;
        // The "generation number" of this cat. Cats minted by the CK contract
        // for sale are called "gen0" and have a generation number of 0. The
        // generation number of all other cats is the larger of the two generation
        // numbers of their parents, plus one.
        // (i.e. max(matron.generation, sire.generation) + 1)
        uint16 generation;
        bool isReady;
    }

    /*** STORAGE ***/

    mapping(uint256 => Kitty) internal kitties;

    uint256 internal kittyTotalSupply;

    /// @dev A mapping from cat IDs to the address that owns them. All cats have
    ///  some valid owner address, even gen0 cats are created with a non-zero owner.
    mapping(uint256 => address) public kittyIndexToOwner;

    // @dev A mapping from owner address to count of tokens that address owns.
    //  Used internally inside balanceOf() to resolve ownership count.
    mapping(address => uint256) internal ownershipTokenCount;

    /// @dev A mapping from KittyIDs to an address that has been approved to call
    ///  transferFrom(). Each Kitty can only have one approved address for transfer
    ///  at any time. A zero value means no approval is outstanding.
    mapping(uint256 => address) public kittyIndexToApproved;

    /// @dev Assigns ownership of a specific Kitty to an address.
    function _transfer(address _from, address _to, uint256 _tokenId) internal {
        // Since the number of kittens is capped to 2^32 we can't overflow this
        ownershipTokenCount[_to]++;
        // transfer ownership
        kittyIndexToOwner[_tokenId] = _to;
        // When creating new kittens _from is 0x0, but we can't account that address.
        if (_from != address(0)) {
            ownershipTokenCount[_from]--;
            // clear any previously approved ownership exchange
            delete kittyIndexToApproved[_tokenId];
        }
        // Emit the transfer event.
        emit Transfer(_from, _to, _tokenId);
    }

    /// @dev An internal method that creates a new kitty and stores it.
    /// Receives all the data from getKitty method that was generated on Cryptokitties contract.
    /// Will generate both a Birth event and a Transfer event.
    /// @param _owner The inital owner of this cat, must be non-zero (except for the unKitty, ID 0)
    function _createKitty(
        uint256 _tokenId,
        bool _isReady,
        uint256 _cooldownIndex,
        uint256 _nextActionAt,
        uint256 _siringWithId,
        uint256 _birthTime,
        uint256 _matronId,
        uint256 _sireId,
        uint256 _generation,
        uint256 _genes,
        address _owner
    ) internal returns (uint256) {
        // These requires are not strictly necessary, our calling code should make
        // sure that these conditions are never broken. However! _createKitty() is already
        // an expensive call (for storage), and it doesn't hurt to be especially careful
        // to ensure our data structures are always valid.
        require(_matronId == uint256(uint32(_matronId)));
        require(_sireId == uint256(uint32(_sireId)));
        require(_generation == uint256(uint16(_generation)));

        Kitty memory _kitty = Kitty({
            genes: _genes,
            birthTime: uint64(_birthTime),
            cooldownEndBlock: uint64(_nextActionAt),
            matronId: uint32(_matronId),
            sireId: uint32(_sireId),
            siringWithId: uint32(_siringWithId),
            cooldownIndex: uint16(_cooldownIndex),
            generation: uint16(_generation),
            isReady: _isReady
        });
        kitties[_tokenId] = _kitty;
        kittyTotalSupply++;

        // emit the birth event
        emit Birth(_owner, _tokenId, uint256(_kitty.matronId), uint256(_kitty.sireId), _kitty.genes);

        // This will assign ownership, and also emit the Transfer event as
        // per ERC721 draft
        _transfer(0, _owner, _tokenId);

        return _tokenId;
    }

    function _exists(uint256 _tokenId) internal view returns (bool) {
        return kittyIndexToOwner[_tokenId] != address(0);
    }
}

// File: contracts/kitty/ERC721.sol

pragma solidity 0.4.24;
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <[email protected]> (https://github.com/dete)

contract ERC721 {
    // Required methods
    function totalSupply() public view returns (uint256 total);
    function balanceOf(address _owner) public view returns (uint256 balance);
    function ownerOf(uint256 _tokenId) external view returns (address owner);
    function approve(address _to, uint256 _tokenId) external;
    function transfer(address _to, uint256 _tokenId) external;
    function transferFrom(address _from, address _to, uint256 _tokenId) external;

    // Events
    event Transfer(address from, address to, uint256 tokenId);
    event Approval(address owner, address approved, uint256 tokenId);

    // Optional
    // function name() public view returns (string name);
    // function symbol() public view returns (string symbol);
    // function tokensOfOwner(address _owner) external view returns (uint256[] tokenIds);
    // function tokenMetadata(uint256 _tokenId, string _preferredTransport) public view returns (string infoUrl);

    // ERC-165 Compatibility (https://github.com/ethereum/EIPs/issues/165)
    function supportsInterface(bytes4 _interfaceID) external view returns (bool);
}

// File: contracts/simpleKitty/SimpleKittyOwnership.sol

pragma solidity 0.4.24;



contract SimpleKittyOwnership is SimpleKittyBase, ERC721 {
    /// @notice Name and symbol of the non fungible token, as defined in ERC721.
    string public constant name = "CryptoKitties";
    string public constant symbol = "CK";

    bytes4 internal constant InterfaceSignature_ERC165 = bytes4(keccak256("supportsInterface(bytes4)"));

    bytes4 internal constant InterfaceSignature_ERC721 = bytes4(keccak256("name()")) ^
        bytes4(keccak256("symbol()")) ^
        bytes4(keccak256("totalSupply()")) ^
        bytes4(keccak256("balanceOf(address)")) ^
        bytes4(keccak256("ownerOf(uint256)")) ^
        bytes4(keccak256("approve(address,uint256)")) ^
        bytes4(keccak256("transfer(address,uint256)")) ^
        bytes4(keccak256("transferFrom(address,address,uint256)")) ^
        bytes4(keccak256("tokensOfOwner(address)")) ^
        bytes4(keccak256("tokenMetadata(uint256,string)"));

    /// @notice Introspection interface as per ERC-165 (https://github.com/ethereum/EIPs/issues/165).
    ///  Returns true for any standardized interfaces implemented by this contract. We implement
    ///  ERC-165 (obviously!) and ERC-721.
    function supportsInterface(bytes4 _interfaceID) external view returns (bool) {
        // DEBUG ONLY
        //require((InterfaceSignature_ERC165 == 0x01ffc9a7) && (InterfaceSignature_ERC721 == 0x9a20483d));

        return ((_interfaceID == InterfaceSignature_ERC165) || (_interfaceID == InterfaceSignature_ERC721));
    }

    // Internal utility functions: These functions all assume that their input arguments
    // are valid. We leave it to public methods to sanitize their inputs and follow
    // the required logic.

    /// @dev Checks if a given address is the current owner of a particular Kitty.
    /// @param _claimant the address we are validating against.
    /// @param _tokenId kitten id, only valid when > 0
    function _owns(address _claimant, uint256 _tokenId) internal view returns (bool) {
        return kittyIndexToOwner[_tokenId] == _claimant;
    }

    /// @dev Checks if a given address currently has transferApproval for a particular Kitty.
    /// @param _claimant the address we are confirming kitten is approved for.
    /// @param _tokenId kitten id, only valid when > 0
    function _approvedFor(address _claimant, uint256 _tokenId) internal view returns (bool) {
        return kittyIndexToApproved[_tokenId] == _claimant;
    }

    /// @dev Marks an address as being approved for transferFrom(), overwriting any previous
    ///  approval. Setting _approved to address(0) clears all transfer approval.
    ///  NOTE: _approve() does NOT send the Approval event. This is intentional because
    ///  _approve() and transferFrom() are used together for putting Kitties on auction, and
    ///  there is no value in spamming the log with Approval events in that case.
    function _approve(uint256 _tokenId, address _approved) internal {
        kittyIndexToApproved[_tokenId] = _approved;
    }

    /// @notice Returns the number of Kitties owned by a specific address.
    /// @param _owner The owner address to check.
    /// @dev Required for ERC-721 compliance
    function balanceOf(address _owner) public view returns (uint256 count) {
        return ownershipTokenCount[_owner];
    }

    /// @notice Transfers a Kitty to another address. If transferring to a smart
    ///  contract be VERY CAREFUL to ensure that it is aware of ERC-721 (or
    ///  CryptoKitties specifically) or your Kitty may be lost forever. Seriously.
    /// @param _to The address of the recipient, can be a user or contract.
    /// @param _tokenId The ID of the Kitty to transfer.
    /// @dev Required for ERC-721 compliance.
    function transfer(address _to, uint256 _tokenId) external {
        // Safety check to prevent against an unexpected 0x0 default.
        require(_to != address(0));
        // Disallow transfers to this contract to prevent accidental misuse.
        // The contract should never own any kitties (except very briefly
        // after a gen0 cat is created and before it goes on auction).
        require(_to != address(this));

        // You can only send your own cat.
        require(_owns(msg.sender, _tokenId));

        // Reassign ownership, clear pending approvals, emit Transfer event.
        _transfer(msg.sender, _to, _tokenId);
    }

    /// @notice Grant another address the right to transfer a specific Kitty via
    ///  transferFrom(). This is the preferred flow for transfering NFTs to contracts.
    /// @param _to The address to be granted transfer approval. Pass address(0) to
    ///  clear all approvals.
    /// @param _tokenId The ID of the Kitty that can be transferred if this call succeeds.
    /// @dev Required for ERC-721 compliance.
    function approve(address _to, uint256 _tokenId) external {
        // Only an owner can grant transfer approval.
        require(_owns(msg.sender, _tokenId));

        // Register the approval (replacing any previous approval).
        _approve(_tokenId, _to);

        // Emit approval event.
        emit Approval(msg.sender, _to, _tokenId);
    }

    /// @notice Transfer a Kitty owned by another address, for which the calling address
    ///  has previously been granted transfer approval by the owner.
    /// @param _from The address that owns the Kitty to be transfered.
    /// @param _to The address that should take ownership of the Kitty. Can be any address,
    ///  including the caller.
    /// @param _tokenId The ID of the Kitty to be transferred.
    /// @dev Required for ERC-721 compliance.
    function transferFrom(address _from, address _to, uint256 _tokenId) external {
        // Safety check to prevent against an unexpected 0x0 default.
        require(_to != address(0));
        // Disallow transfers to this contract to prevent accidental misuse.
        // The contract should never own any kitties (except very briefly
        // after a gen0 cat is created and before it goes on auction).
        require(_to != address(this));
        // Check for approval and valid ownership
        require(_approvedFor(msg.sender, _tokenId));
        require(_owns(_from, _tokenId));

        // Reassign ownership (also clears pending approvals and emits Transfer event).
        _transfer(_from, _to, _tokenId);
    }

    /// @notice Returns the total number of Kitties currently in existence.
    /// @dev Required for ERC-721 compliance.
    function totalSupply() public view returns (uint256) {
        return kittyTotalSupply;
    }

    /// @notice Returns the address currently assigned ownership of a given Kitty.
    /// @dev Required for ERC-721 compliance.
    function ownerOf(uint256 _tokenId) external view returns (address owner) {
        owner = kittyIndexToOwner[_tokenId];

        require(owner != address(0));
    }

    /// @notice Returns a list of all Kitty IDs assigned to an address.
    /// @param _owner The owner whose Kitties we are interested in.
    /// @dev This method MUST NEVER be called by smart contract code. First, it's fairly
    ///  expensive (it walks the entire Kitty array looking for cats belonging to owner),
    ///  but it also returns a dynamic array, which is only supported for web3 calls, and
    ///  not contract-to-contract calls.
    function tokensOfOwner(address _owner) external view returns (uint256[] ownerTokens) {
        uint256 tokenCount = balanceOf(_owner);

        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 totalCats = totalSupply();
            uint256 resultIndex = 0;

            // We count on the fact that all cats have IDs starting at 1 and increasing
            // sequentially up to the totalCat count.
            uint256 catId;

            for (catId = 1; catId <= totalCats; catId++) {
                if (kittyIndexToOwner[catId] == _owner) {
                    result[resultIndex] = catId;
                    resultIndex++;
                }
            }

            return result;
        }
    }

    /// @notice Returns a URI pointing to a metadata package for this token conforming to
    ///  ERC-721 (https://github.com/ethereum/EIPs/issues/721)
    /// @param _tokenId The ID number of the Kitty whose metadata should be returned.
    function tokenMetadata(uint256 _tokenId, string _preferredTransport) external view returns (string) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

// File: contracts/simpleKitty/SimpleKittyCore.sol

pragma solidity 0.4.24;


contract SimpleKittyCore is SimpleKittyOwnership {
    /// @notice Returns all the relevant information about a specific kitty.
    /// @param _id The ID of the kitty of interest.
    function getKitty(uint256 _id)
        external
        view
        returns (
            bool isGestating,
            bool isReady,
            uint256 cooldownIndex,
            uint256 nextActionAt,
            uint256 siringWithId,
            uint256 birthTime,
            uint256 matronId,
            uint256 sireId,
            uint256 generation,
            uint256 genes
        )
    {
        Kitty storage kit = kitties[_id];

        // if this variable is 0 then it's not gestating
        isGestating = (kit.siringWithId != 0);
        isReady = kit.isReady;
        cooldownIndex = uint256(kit.cooldownIndex);
        nextActionAt = uint256(kit.cooldownEndBlock);
        siringWithId = uint256(kit.siringWithId);
        birthTime = uint256(kit.birthTime);
        matronId = uint256(kit.matronId);
        sireId = uint256(kit.sireId);
        generation = uint256(kit.generation);
        genes = kit.genes;
    }
}

// File: contracts/simpleKitty/BridgeRole.sol

pragma solidity 0.4.24;

contract BridgeRole {
    address public bridge;

    function BridgeRole() public {
        bridge = msg.sender;
    }

    modifier onlyBridge() {
        require(msg.sender == bridge);
        _;
    }

    function transferBridgeRole(address newBridge) external onlyBridge {
        if (newBridge != address(0)) {
            bridge = newBridge;
        }
    }
}

// File: contracts/simpleKitty/URIMetadata.sol

pragma solidity 0.4.24;

contract URIMetadata {
    function _tokenURI(uint256 _tokenId) internal pure returns (string) {
        return strConcat("https://api.cryptokitties.co/kitties/", uintToString(_tokenId));
    }

    function uintToString(uint256 i) internal pure returns (string) {
        if (i == 0) return "0";
        uint256 j = i;
        uint256 length;
        while (j != 0) {
            length++;
            j /= 10;
        }
        bytes memory bstr = new bytes(length);
        uint256 k = length - 1;
        while (i != 0) {
            bstr[k--] = bytes1(48 + (i % 10));
            i /= 10;
        }
        return string(bstr);
    }

    function strConcat(string _a, string _b) internal pure returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        string memory ab = new string(_ba.length + _bb.length);
        bytes memory bab = bytes(ab);
        uint256 k = 0;
        uint256 i = 0;
        for (i = 0; i < _ba.length; i++) {
            bab[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            bab[k++] = _bb[i];
        }
        return string(bab);
    }
}

// File: contracts/simpleKitty/SimpleBridgeKitty.sol

pragma solidity 0.4.24;




contract SimpleBridgeKitty is BridgeRole, SimpleKittyCore, URIMetadata {
    event Death(uint256 kittyId);

    function mint(
        uint256 _tokenId,
        bool _isReady,
        uint256 _cooldownIndex,
        uint256 _nextActionAt,
        uint256 _siringWithId,
        uint256 _birthTime,
        uint256 _matronId,
        uint256 _sireId,
        uint256 _generation,
        uint256 _genes,
        address _owner
    ) external onlyBridge {
        _createKitty(
            _tokenId,
            _isReady,
            _cooldownIndex,
            _nextActionAt,
            _siringWithId,
            _birthTime,
            _matronId,
            _sireId,
            _generation,
            _genes,
            _owner
        );
    }

    function burn(uint256 _tokenId) external onlyBridge {
        require(_owns(msg.sender, _tokenId));
        // remove kitty
        delete kitties[_tokenId];
        // reduce total supply
        kittyTotalSupply--;
        // remove ownership of the kitty
        delete kittyIndexToOwner[_tokenId];
        // reduce owner token account
        ownershipTokenCount[msg.sender]--;
        emit Death(_tokenId);
    }

    function tokenURI(uint256 _tokenId) external view returns (string) {
        require(_exists(_tokenId));
        return _tokenURI(_tokenId);
    }
}
        

Contract ABI

[{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"_interfaceID"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"tokenMetadata","inputs":[{"type":"uint256","name":"_tokenId"},{"type":"string","name":"_preferredTransport"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"name","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"approve","inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_tokenId"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"totalSupply","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferBridgeRole","inputs":[{"type":"address","name":"newBridge"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_tokenId"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"mint","inputs":[{"type":"uint256","name":"_tokenId"},{"type":"bool","name":"_isReady"},{"type":"uint256","name":"_cooldownIndex"},{"type":"uint256","name":"_nextActionAt"},{"type":"uint256","name":"_siringWithId"},{"type":"uint256","name":"_birthTime"},{"type":"uint256","name":"_matronId"},{"type":"uint256","name":"_sireId"},{"type":"uint256","name":"_generation"},{"type":"uint256","name":"_genes"},{"type":"address","name":"_owner"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_tokenId"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"kittyIndexToApproved","inputs":[{"type":"uint256","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"owner"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"_tokenId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"count"}],"name":"balanceOf","inputs":[{"type":"address","name":"_owner"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256[]","name":"ownerTokens"}],"name":"tokensOfOwner","inputs":[{"type":"address","name":"_owner"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"symbol","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"kittyIndexToOwner","inputs":[{"type":"uint256","name":""}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transfer","inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_tokenId"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"tokenURI","inputs":[{"type":"uint256","name":"_tokenId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"bridge","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"isGestating"},{"type":"bool","name":"isReady"},{"type":"uint256","name":"cooldownIndex"},{"type":"uint256","name":"nextActionAt"},{"type":"uint256","name":"siringWithId"},{"type":"uint256","name":"birthTime"},{"type":"uint256","name":"matronId"},{"type":"uint256","name":"sireId"},{"type":"uint256","name":"generation"},{"type":"uint256","name":"genes"}],"name":"getKitty","inputs":[{"type":"uint256","name":"_id"}],"constant":true},{"type":"event","name":"Death","inputs":[{"type":"uint256","name":"kittyId","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":false},{"type":"address","name":"to","indexed":false},{"type":"uint256","name":"tokenId","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":false},{"type":"address","name":"approved","indexed":false},{"type":"uint256","name":"tokenId","indexed":false}],"anonymous":false},{"type":"event","name":"Birth","inputs":[{"type":"address","name":"owner","indexed":false},{"type":"uint256","name":"kittyId","indexed":false},{"type":"uint256","name":"matronId","indexed":false},{"type":"uint256","name":"sireId","indexed":false},{"type":"uint256","name":"genes","indexed":false}],"anonymous":false}]
            

Contract Creation Code

0x608060405260008054600160a060020a0319163317905561141c806100256000396000f3006080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461010b5780630560ff441461015657806306fdde03146101ef578063095ea7b31461020457806318160ddd1461022a5780631dab2d091461025157806323b872dd14610272578063319346671461029c57806342966c68146102e0578063481af3d3146102f85780636352211e1461032c57806370a08231146103445780638462151c1461036557806395d89b41146103d6578063a45f4bfc146103eb578063a9059cbb14610403578063c87b56dd14610427578063e78cea921461043f578063e98b7f4d14610454575b600080fd5b34801561011757600080fd5b506101427bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166104be565b604080519115158252519081900360200190f35b34801561016257600080fd5b5061017a600480359060248035908101910135610751565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b457818101518382015260200161019c565b50505050905090810190601f1680156101e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101fb57600080fd5b5061017a61075a565b34801561021057600080fd5b50610228600160a060020a0360043516602435610791565b005b34801561023657600080fd5b5061023f6107fc565b60408051918252519081900360200190f35b34801561025d57600080fd5b50610228600160a060020a0360043516610802565b34801561027e57600080fd5b50610228600160a060020a0360043581169060243516604435610854565b3480156102a857600080fd5b50610228600435602435151560443560643560843560a43560c43560e4356101043561012435600160a060020a0361014435166108b9565b3480156102ec57600080fd5b506102286004356108f1565b34801561030457600080fd5b506103106004356109b8565b60408051600160a060020a039092168252519081900360200190f35b34801561033857600080fd5b506103106004356109d3565b34801561035057600080fd5b5061023f600160a060020a03600435166109f7565b34801561037157600080fd5b50610386600160a060020a0360043516610a12565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103c25781810151838201526020016103aa565b505050509050019250505060405180910390f35b3480156103e257600080fd5b5061017a610ae4565b3480156103f757600080fd5b50610310600435610b1b565b34801561040f57600080fd5b50610228600160a060020a0360043516602435610b36565b34801561043357600080fd5b5061017a600435610b85565b34801561044b57600080fd5b50610310610ba4565b34801561046057600080fd5b5061046c600435610bb3565b604080519a15158b5298151560208b0152898901979097526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015251908190036101400190f35b604080517f737570706f727473496e74657266616365286279746573342900000000000000815290519081900360190190206000907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19838116911614806107495750604080517f746f6b656e4d657461646174612875696e743235362c737472696e67290000008152815190819003601d0181207f746f6b656e734f664f776e657228616464726573732900000000000000000000825282519182900360160182207f7472616e7366657246726f6d28616464726573732c616464726573732c75696e83527f7432353629000000000000000000000000000000000000000000000000000000602084015283519283900360250183207f7472616e7366657228616464726573732c75696e743235362900000000000000845284519384900360190184207f617070726f766528616464726573732c75696e74323536290000000000000000855285519485900360180185207f6f776e65724f662875696e743235362900000000000000000000000000000000865286519586900360100186207f62616c616e63654f662861646472657373290000000000000000000000000000875287519687900360120187207f746f74616c537570706c792829000000000000000000000000000000000000008852885197889003600d0188207f73796d626f6c2829000000000000000000000000000000000000000000000000895289519889900360080189207f6e616d65282900000000000000000000000000000000000000000000000000008a529951988990036006019098207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff198c811691909a189098181818181818181891909116145b90505b919050565b60609392505050565b60408051808201909152600d81527f43727970746f4b69747469657300000000000000000000000000000000000000602082015281565b61079b3382610c9d565b15156107a657600080fd5b6107b08183610cbd565b60408051338152600160a060020a038416602082015280820183905290517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15050565b60025490565b600054600160a060020a0316331461081957600080fd5b600160a060020a03811615610851576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a038216151561086957600080fd5b600160a060020a03821630141561087f57600080fd5b6108893382610cf8565b151561089457600080fd5b61089e8382610c9d565b15156108a957600080fd5b6108b4838383610d18565b505050565b600054600160a060020a031633146108d057600080fd5b6108e38b8b8b8b8b8b8b8b8b8b8b610e02565b505050505050505050505050565b600054600160a060020a0316331461090857600080fd5b6109123382610c9d565b151561091d57600080fd5b60008181526001602081815260408084208481559283018490556002928301805460ff19169055825460001990810190935560038252808420805473ffffffffffffffffffffffffffffffffffffffff1916905533845260048252928390208054909201909155815183815291517fa9fe216aa4cb184f064a3f32d75e5d26ad2e159e070218c325ae228c82fc88309281900390910190a150565b600560205260009081526040902054600160a060020a031681565b600081815260036020526040902054600160a060020a031680151561074c57600080fd5b600160a060020a031660009081526004602052604090205490565b6060600060606000806000610a26876109f7565b9450841515610a45576040805160008152602081019091529550610ada565b84604051908082528060200260200182016040528015610a6f578160200160208202803883390190505b509350610a7a6107fc565b925060009150600190505b828111610ad657600081815260036020526040902054600160a060020a0388811691161415610ace57808483815181101515610abd57fe5b602090810290910101526001909101905b600101610a85565b8395505b5050505050919050565b60408051808201909152600281527f434b000000000000000000000000000000000000000000000000000000000000602082015281565b600360205260009081526040902054600160a060020a031681565b600160a060020a0382161515610b4b57600080fd5b600160a060020a038216301415610b6157600080fd5b610b6b3382610c9d565b1515610b7657600080fd5b610b81338383610d18565b5050565b6060610b90826110be565b1515610b9b57600080fd5b610749826110db565b600054600160a060020a031681565b6000908152600160208190526040909120908101546002820154915463ffffffff7801000000000000000000000000000000000000000000000000830481168015159560ff9095169461ffff7c0100000000000000000000000000000000000000000000000000000000860481169567ffffffffffffffff6801000000000000000082048116969495908216947001000000000000000000000000000000008304821694740100000000000000000000000000000000000000008404909216937e010000000000000000000000000000000000000000000000000000000000009093049092169190565b600090815260036020526040902054600160a060020a0391821691161490565b600091825260056020526040909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600090815260056020526040902054600160a060020a0391821691161490565b600160a060020a0380831660008181526004602090815260408083208054600101905585835260039091529020805473ffffffffffffffffffffffffffffffffffffffff19169091179055831615610db357600160a060020a0383166000908152600460209081526040808320805460001901905583835260059091529020805473ffffffffffffffffffffffffffffffffffffffff191690555b60408051600160a060020a0380861682528416602082015280820183905290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360600190a1505050565b6000610e0c6113a4565b63ffffffff87168714610e1e57600080fd5b63ffffffff86168614610e3057600080fd5b61ffff85168514610e4057600080fd5b610120604051908101604052808581526020018967ffffffffffffffff1681526020018b67ffffffffffffffff1681526020018863ffffffff1681526020018763ffffffff1681526020018a63ffffffff1681526020018c61ffff1681526020018661ffff1681526020018d1515815250905080600160008f81526020019081526020016000206000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160106101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010160146101000a81548163ffffffff021916908363ffffffff16021790555060a08201518160010160186101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600101601c6101000a81548161ffff021916908361ffff16021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055506101008201518160020160006101000a81548160ff0219169083151502179055509050506002600081548092919060010191905055507f0a5311bd2a6608f08a180df2ee7c5946819a649b204b554bb8e39825b2c50ad5838e836060015163ffffffff16846080015163ffffffff1685600001516040518086600160a060020a0316600160a060020a031681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a16110ad6000848f610d18565b509a9b9a5050505050505050505050565b600090815260036020526040902054600160a060020a0316151590565b6060610749606060405190810160405280602581526020017f68747470733a2f2f6170692e63727970746f6b6974746965732e636f2f6b697481526020017f746965732f0000000000000000000000000000000000000000000000000000008152506111468461114b565b611256565b606060008082818515156111945760408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152945061124d565b8593505b83156111af57600190920191600a84049350611198565b826040519080825280601f01601f1916602001820160405280156111dd578160200160208202803883390190505b5091505060001982015b851561124957815160001982019160f860020a6030600a8a06010291849190811061120e57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a860495506111e7565b8194505b50505050919050565b606080606080606060008088955087945084518651016040519080825280601f01601f191660200182016040528015611299578160200160208202803883390190505b509350839250600091508190505b855181101561131d5785818151811015156112be57fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156112e557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016112a7565b5060005b845181101561139757848181518110151561133857fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561135f57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611321565b5090979650505050505050565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152905600a165627a7a72305820a307cf9577cb011c2896d5471806079cc96b46ce01ac07741ac8b379329206cc0029

Deployed ByteCode

0x6080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461010b5780630560ff441461015657806306fdde03146101ef578063095ea7b31461020457806318160ddd1461022a5780631dab2d091461025157806323b872dd14610272578063319346671461029c57806342966c68146102e0578063481af3d3146102f85780636352211e1461032c57806370a08231146103445780638462151c1461036557806395d89b41146103d6578063a45f4bfc146103eb578063a9059cbb14610403578063c87b56dd14610427578063e78cea921461043f578063e98b7f4d14610454575b600080fd5b34801561011757600080fd5b506101427bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166104be565b604080519115158252519081900360200190f35b34801561016257600080fd5b5061017a600480359060248035908101910135610751565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b457818101518382015260200161019c565b50505050905090810190601f1680156101e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101fb57600080fd5b5061017a61075a565b34801561021057600080fd5b50610228600160a060020a0360043516602435610791565b005b34801561023657600080fd5b5061023f6107fc565b60408051918252519081900360200190f35b34801561025d57600080fd5b50610228600160a060020a0360043516610802565b34801561027e57600080fd5b50610228600160a060020a0360043581169060243516604435610854565b3480156102a857600080fd5b50610228600435602435151560443560643560843560a43560c43560e4356101043561012435600160a060020a0361014435166108b9565b3480156102ec57600080fd5b506102286004356108f1565b34801561030457600080fd5b506103106004356109b8565b60408051600160a060020a039092168252519081900360200190f35b34801561033857600080fd5b506103106004356109d3565b34801561035057600080fd5b5061023f600160a060020a03600435166109f7565b34801561037157600080fd5b50610386600160a060020a0360043516610a12565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103c25781810151838201526020016103aa565b505050509050019250505060405180910390f35b3480156103e257600080fd5b5061017a610ae4565b3480156103f757600080fd5b50610310600435610b1b565b34801561040f57600080fd5b50610228600160a060020a0360043516602435610b36565b34801561043357600080fd5b5061017a600435610b85565b34801561044b57600080fd5b50610310610ba4565b34801561046057600080fd5b5061046c600435610bb3565b604080519a15158b5298151560208b0152898901979097526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015251908190036101400190f35b604080517f737570706f727473496e74657266616365286279746573342900000000000000815290519081900360190190206000907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19838116911614806107495750604080517f746f6b656e4d657461646174612875696e743235362c737472696e67290000008152815190819003601d0181207f746f6b656e734f664f776e657228616464726573732900000000000000000000825282519182900360160182207f7472616e7366657246726f6d28616464726573732c616464726573732c75696e83527f7432353629000000000000000000000000000000000000000000000000000000602084015283519283900360250183207f7472616e7366657228616464726573732c75696e743235362900000000000000845284519384900360190184207f617070726f766528616464726573732c75696e74323536290000000000000000855285519485900360180185207f6f776e65724f662875696e743235362900000000000000000000000000000000865286519586900360100186207f62616c616e63654f662861646472657373290000000000000000000000000000875287519687900360120187207f746f74616c537570706c792829000000000000000000000000000000000000008852885197889003600d0188207f73796d626f6c2829000000000000000000000000000000000000000000000000895289519889900360080189207f6e616d65282900000000000000000000000000000000000000000000000000008a529951988990036006019098207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff198c811691909a189098181818181818181891909116145b90505b919050565b60609392505050565b60408051808201909152600d81527f43727970746f4b69747469657300000000000000000000000000000000000000602082015281565b61079b3382610c9d565b15156107a657600080fd5b6107b08183610cbd565b60408051338152600160a060020a038416602082015280820183905290517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360600190a15050565b60025490565b600054600160a060020a0316331461081957600080fd5b600160a060020a03811615610851576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a038216151561086957600080fd5b600160a060020a03821630141561087f57600080fd5b6108893382610cf8565b151561089457600080fd5b61089e8382610c9d565b15156108a957600080fd5b6108b4838383610d18565b505050565b600054600160a060020a031633146108d057600080fd5b6108e38b8b8b8b8b8b8b8b8b8b8b610e02565b505050505050505050505050565b600054600160a060020a0316331461090857600080fd5b6109123382610c9d565b151561091d57600080fd5b60008181526001602081815260408084208481559283018490556002928301805460ff19169055825460001990810190935560038252808420805473ffffffffffffffffffffffffffffffffffffffff1916905533845260048252928390208054909201909155815183815291517fa9fe216aa4cb184f064a3f32d75e5d26ad2e159e070218c325ae228c82fc88309281900390910190a150565b600560205260009081526040902054600160a060020a031681565b600081815260036020526040902054600160a060020a031680151561074c57600080fd5b600160a060020a031660009081526004602052604090205490565b6060600060606000806000610a26876109f7565b9450841515610a45576040805160008152602081019091529550610ada565b84604051908082528060200260200182016040528015610a6f578160200160208202803883390190505b509350610a7a6107fc565b925060009150600190505b828111610ad657600081815260036020526040902054600160a060020a0388811691161415610ace57808483815181101515610abd57fe5b602090810290910101526001909101905b600101610a85565b8395505b5050505050919050565b60408051808201909152600281527f434b000000000000000000000000000000000000000000000000000000000000602082015281565b600360205260009081526040902054600160a060020a031681565b600160a060020a0382161515610b4b57600080fd5b600160a060020a038216301415610b6157600080fd5b610b6b3382610c9d565b1515610b7657600080fd5b610b81338383610d18565b5050565b6060610b90826110be565b1515610b9b57600080fd5b610749826110db565b600054600160a060020a031681565b6000908152600160208190526040909120908101546002820154915463ffffffff7801000000000000000000000000000000000000000000000000830481168015159560ff9095169461ffff7c0100000000000000000000000000000000000000000000000000000000860481169567ffffffffffffffff6801000000000000000082048116969495908216947001000000000000000000000000000000008304821694740100000000000000000000000000000000000000008404909216937e010000000000000000000000000000000000000000000000000000000000009093049092169190565b600090815260036020526040902054600160a060020a0391821691161490565b600091825260056020526040909120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600090815260056020526040902054600160a060020a0391821691161490565b600160a060020a0380831660008181526004602090815260408083208054600101905585835260039091529020805473ffffffffffffffffffffffffffffffffffffffff19169091179055831615610db357600160a060020a0383166000908152600460209081526040808320805460001901905583835260059091529020805473ffffffffffffffffffffffffffffffffffffffff191690555b60408051600160a060020a0380861682528416602082015280820183905290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360600190a1505050565b6000610e0c6113a4565b63ffffffff87168714610e1e57600080fd5b63ffffffff86168614610e3057600080fd5b61ffff85168514610e4057600080fd5b610120604051908101604052808581526020018967ffffffffffffffff1681526020018b67ffffffffffffffff1681526020018863ffffffff1681526020018763ffffffff1681526020018a63ffffffff1681526020018c61ffff1681526020018661ffff1681526020018d1515815250905080600160008f81526020019081526020016000206000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160106101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010160146101000a81548163ffffffff021916908363ffffffff16021790555060a08201518160010160186101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600101601c6101000a81548161ffff021916908361ffff16021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055506101008201518160020160006101000a81548160ff0219169083151502179055509050506002600081548092919060010191905055507f0a5311bd2a6608f08a180df2ee7c5946819a649b204b554bb8e39825b2c50ad5838e836060015163ffffffff16846080015163ffffffff1685600001516040518086600160a060020a0316600160a060020a031681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a16110ad6000848f610d18565b509a9b9a5050505050505050505050565b600090815260036020526040902054600160a060020a0316151590565b6060610749606060405190810160405280602581526020017f68747470733a2f2f6170692e63727970746f6b6974746965732e636f2f6b697481526020017f746965732f0000000000000000000000000000000000000000000000000000008152506111468461114b565b611256565b606060008082818515156111945760408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152945061124d565b8593505b83156111af57600190920191600a84049350611198565b826040519080825280601f01601f1916602001820160405280156111dd578160200160208202803883390190505b5091505060001982015b851561124957815160001982019160f860020a6030600a8a06010291849190811061120e57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a860495506111e7565b8194505b50505050919050565b606080606080606060008088955087945084518651016040519080825280601f01601f191660200182016040528015611299578160200160208202803883390190505b509350839250600091508190505b855181101561131d5785818151811015156112be57fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156112e557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016112a7565b5060005b845181101561139757848181518110151561133857fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561135f57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611321565b5090979650505050505050565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152905600a165627a7a72305820a307cf9577cb011c2896d5471806079cc96b46ce01ac07741ac8b379329206cc0029