Contract Overview
Balance: 65.696844830292371223 Ether
Transactions: 32336 txns
Token Tracker: BlockchainCuties (BC)
 Latest 25 transactions from a total of 32336 transactions

TxHash Age From To Value [TxFee]
0x16fb31d5612d17cc6628da10c3c66f819070212a534b25234c60e81ce6782445230 days 1 hr ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002658392
0x5c291bdc2e9910857b819d451166681230e7411a31a1b6b0f1196479d72607b3230 days 1 hr ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002659096
0xbff9fcd7bbea8b734dc187f3d041e6fc01a77ea1cb9e1c105473e65c7edb69aa230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002659096
0x7b290c6dcb1ea4a5af1450549deab9f8bddf8c8e029139f84cfbd9b8754a87b6230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002659096
0x5c590d82e2e06e2deeb4e45981f03e1f9933d3fd6a3a362672cede331b453ee2230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002659096
0x0f1e81c6100ec7fe5ac3e9802540bd9ac956a47f40f82677aa17f817d3573885230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002658392
0x96b4e2ef47624030ddd836607da08eb790200eec11e79a3c616afbb2d9950dd8230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002658392
0xf1abfe17d3abf60c8008872ee2a397a9ec5a2841703d5be3b67e46d9133bb580230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.00026598
0x6b8fcdea6d86c48629fd0ea00fb6f4322cefe7230f46e75f11fe30a76f6522bd230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002656984
0x87c536626b596763cc41719076bfd39a7b0e2eb2820a4e29bdf8e17a56845401230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002658392
0x19f28f66dd1d4f37d960cd40b881767f89930cbfe04ff91a93dc537c206bd378230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002659096
0x33f48f8dcc034f9b1b018e8b473c582a318863fb340b89bb4ab4eed6bc430a78230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000265628
0xa4520b89746172a9d12565e1f9b1d2193317152ae549eb245b2e74fd986433a8230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.00026598
0xafca1a38906f72b99880af368c8e62f97240f5b305b99b633bfc8d2f0f25c526230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002654168
0x5465ba7b7669b803d27cef135e95d7f065be9995c72d981da142842d5251da87230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.0002656984
0x399943c941a31c07de45a63e9948c44fc0dc74842d4456cdf0041cba8483893f230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483472
0xe884146b4dde80b9f8c68e59df524740295b6d7a5326da657090ca9cb70a3355230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483344
0x61f51bcb5150911c5a99ee7ef817868271a9440789491e3f348602e33d87fd05230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483472
0x1dc3d8c15bb6346196b0500e75010377c8fdc6782c6cc6700fd5779a85f87382230 days 2 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.00048296
0x0f5a41e3854fbefb7eeaf0404590b82356a187fe5edc165e97c0886293d59321230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483216
0x395c0d1875ccd0311a6d5c78fa7ef5af07986d9c3c9d01cad98acd42e69733b7230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.00048296
0x3ab58787a0d74d20deef37564aab1f5aca6939132aac025d6e9f3a57f3c57bf5230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483088
0x5cf80daf2af89e488b01cc4a0c8c6d096de2e6969bbba13aab5cfa6a2c40c657230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483344
0x88f07b061e22b69f8d92d03ea74424b486214e710389aabf4d677ed6a2f41982230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000483728
0xa461b2e22d7ac25e9b0ea674eb609d2442ffa6f8bef343e65abbb42e9c401b41230 days 3 hrs ago0x847800210c948b3e2b84c837cc034e232e0b36a5  IN   0x6c192d145bfa89fde7ba6006d3a322f31fa330950 Ether0.000482832
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x2f0925d4aa2fdbeafd31047c2917c28565b3aa9e7fa46979a79e4428cefa11072152425232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0xd9687a650e4c69799a7d2ed04b2cd4f4621b5dd4bf5e465cc49ed4f9f05c2a242152423232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0xe1602da0aa694a0cf14cbd9cc32b4825ad2104dcf7c53458a76913f2a7f9b70b2152420232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0x5b3dd45783f0263c604397b30649406f3830a4b0c3e238ee63944794d45ecb0a2152417232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0x29eba8174fb15dc35ecabad25f47d46aec7df166ba14a250ed1db98b3514e46f2152415232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0x62c31328dfb0f0e519fef514d38c317fe1cef2602593a1747f7837ac914d00892152413232 days 18 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0015 Ether
0xfc075d0d80ee4db81614116bb07814d6fb6da74645f55c1f45ccd6eb618a90c22151062232 days 23 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.066576809619220983 Ether
0xaac0e24538910758d8f35b7a05627b73ed1ae98a981944b5d6e0ee93a9c2184f2150810233 days 51 mins ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.020236288098178917 Ether
0xaedf37763cbff7493dc8953bbd391f5f076442a6362830a0a739a6a594f1a7712150779233 days 59 mins ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.004227469624697786 Ether
0xa0f3d0567032ce23d2f8ef3ba79d663e87ab29a2b7256cf4edb88474f16707122149654233 days 5 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000053215509697785 Ether
0x1d831485ae994f374aa9b074955b267b3a8612f9564838e1885ccd2d9bd46bf52148117233 days 12 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.002 Ether
0xf1314bcdd7378a2a7e12775296bcee735fe6e33c8223c51ca752050e843083aa2147804233 days 13 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000051583651629663 Ether
0x8f70a0fb07ab64caa5fca1addf39f9790842301e894d86fc39cea225bea19a172147209233 days 15 hrs ago0x6c192d145bfa89fde7ba6006d3a322f31fa330950xca3f4f501e05d4ae816a6afad1b53d9cbb08ef800.0021 Ether
0xbb741b529c65a4c226c5cc2cee9b7bea70bc933171a91108942f2a54d08df1d52144593234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000031162888577656 Ether
0x76fbc4c1399bec4a231bf7d7f1261dfa937d89a3030e090692f5f5e07e1ff3702144593234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000029012859234228 Ether
0x236d21a5b9a1e8e8455d161e06f205587d6435be2e79ab389b0b9d05d5065fc02144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000028902818984798 Ether
0x2262365e8c507a8442558d034a33cd1ceb603040c2781d9766260651822bb3762144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000027699674202081 Ether
0x6a733dd9d2575caf7e7c1c4be778ca4a67f8e7cd0fa438b753b109e68254f6612144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000025185284501019 Ether
0x4400f8749e9976ec53c13b3a4849f996f793acbd3b12cf423fc5b6e2cdcc9fd52144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000024940833962585 Ether
0x80a109a43746276d3edc4139b73fa7bef0b2638f1a1a7e75394e3caea2a11d122144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000022986261832196 Ether
0x23be004a819315335b2d2a3bb1f7b761784b297f6732966c57fb0617cfd69f7d2144591234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000017711492745797 Ether
0xdaa406cef28ed264fba1cf10ddc77c0335b0eb0c3dd8bb3bde99eaeb8bb982222144587234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000018787078429808 Ether
0x2b9b1d7e829bcaeca76551edaeebd36eed4a3ce76f06ba2f190545a0c8bb11262144587234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000018621050740993 Ether
0x4c6571ee2357e70e7f3bbade90b77654cfa9cb5c92cdeb236619403267be2f942144586234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000015102820906294 Ether
0x69bb18a05e25a4752e9aea4e5b6bf55904f1a41317cf592b4583ae6f982a496d2144584234 days 2 hrs ago0x6f2eeebf0b6992c17806014316c8dba827ea8f1c0x6c192d145bfa89fde7ba6006d3a322f31fa330950.000015005092299774 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: BlockchainCutiesCore
Compiler Text: v0.4.21+commit.dfe3193c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.20;


/// @title defined the interface that will be referenced in main Cutie contract
contract GeneMixerInterface {
    /// @dev simply a boolean to indicate this is the contract we expect to be
    function isGeneMixer() external pure returns (bool);

    /// @dev given genes of cutie 1 & 2, return a genetic combination - may have a random factor
    /// @param genes1 genes of mom
    /// @param genes2 genes of dad
    /// @return the genes that are supposed to be passed down the child
    function mixGenes(uint256 genes1, uint256 genes2) public view returns (uint256);

    function canBreed(uint40 momId, uint256 genes1, uint40 dadId, uint256 genes2) public view returns (bool);
}

/// @author https://BlockChainArchitect.iocontract Bank is CutiePluginBase
contract PluginInterface
{
    /// @dev simply a boolean to indicate this is the contract we expect to be
    function isPluginInterface() public pure returns (bool);

    function onRemove() public;

    /// @dev Begins new feature.
    /// @param _cutieId - ID of token to auction, sender must be owner.
    /// @param _parameter - arbitrary parameter
    /// @param _seller - Old owner, if not the message sender
    function run(
        uint40 _cutieId,
        uint256 _parameter,
        address _seller
    ) 
    public
    payable;

    /// @dev Begins new feature, approved and signed by COO.
    /// @param _cutieId - ID of token to auction, sender must be owner.
    /// @param _parameter - arbitrary parameter
    function runSigned(
        uint40 _cutieId,
        uint256 _parameter,
        address _owner
    )
    external
    payable;

    function withdraw() public;
}

/// @title Auction Market for Blockchain Cuties.
/// @author https://BlockChainArchitect.io
contract MarketInterface 
{
    function withdrawEthFromBalance() external;    

    function createAuction(uint40 _cutieId, uint128 _startPrice, uint128 _endPrice, uint40 _duration, address _seller) public payable;

    function bid(uint40 _cutieId) public payable;
}

/// @dev Note: the ERC-165 identifier for this interface is 0xf0b9e5ba
interface ERC721TokenReceiver {
    /// @notice Handle the receipt of an NFT
    /// @dev The ERC721 smart contract calls this function on the recipient
    ///  after a `transfer`. This function MAY throw to revert and reject the
    ///  transfer. This function MUST use 50,000 gas or less. Return of other
    ///  than the magic value MUST result in the transaction being reverted.
    ///  Note: the contract address is always the message sender.
    /// @param _from The sending address 
    /// @param _tokenId The NFT identifier which is being transfered
    /// @param data Additional data with no specified format
    /// @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`
    ///  unless throwing
    function onERC721Received(address _from, uint256 _tokenId, bytes data) external returns(bytes4);
}


/// @title BlockchainCuties: Collectible and breedable cuties on the Ethereum blockchain.
/// @author https://BlockChainArchitect.io
/// @dev This is the main BlockchainCuties contract. For separated logical sections the code is divided in 
// several separately-instantiated sibling contracts that handle auctions and the genetic combination algorithm. 
// By keeping auctions separate it is possible to upgrade them without disrupting the main contract that tracks
// the ownership of the cutie. The genetic combination algorithm is kept separate so that all of the rest of the 
// code can be open-sourced.
// The contracts:
//
//      - BlockchainCuties: The fundamental code, including main data storage, constants and data types, as well as
//             internal functions for managing these items ans ERC-721 implementation.
//             Various addresses and constraints for operations can be executed only by specific roles - 
//             Owner, Operator and Parties.
//             Methods for interacting with additional features (Plugins).
//             The methods for breeding and keeping track of breeding offers, relies on external genetic combination 
//             contract.
//             Public methods for auctioning or bidding or breeding. 
//
//      - SaleMarket and BreedingMarket: The actual auction functionality is handled in two sibling contracts - one
//             for sales and one for breeding. Auction creation and bidding is mostly mediated through this side of 
//             the core contract.
//
//      - Effects: Contracts allow to use item effects on cuties, implemented as plugins. Items are not stored in 
//             blockchain to not overload Ethereum network. Operator generates signatures, and Plugins check it
//             and perform effect.
//
//      - ItemMarket: Plugin contract used to transfer money from buyer to seller.
//
//      - Bank: Plugin contract used to receive payments for payed features.

contract BlockchainCutiesCore /*is ERC721, CutieCoreInterface*/
{
    /// @notice A descriptive name for a collection of NFTs in this contract
    function name() external pure returns (string _name) 
    {
        return "BlockchainCuties"; 
    }

    /// @notice An abbreviated name for NFTs in this contract
    function symbol() external pure returns (string _symbol)
    {
        return "BC";
    }
    
    /// @notice Query if a contract implements an interface
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceID) external pure returns (bool)
    {
        return
            interfaceID == 0x6466353c || 
            interfaceID == bytes4(keccak256('supportsInterface(bytes4)'));
    }

    event Transfer(address indexed _from, address indexed _to, uint256 _tokenId);
    event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId);
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

    /// @dev The Birth event is fired as soon as a new cutie is created. This
    ///  is any time a cutie comes into existence through the giveBirth method, as well as
    ///  when a new gen0 cutie is created.
    event Birth(address indexed owner, uint40 cutieId, uint40 momId, uint40 dadId, uint256 genes);

    /// @dev This struct represents a blockchain Cutie. It was ensured that struct fits well into
    ///  exactly two 256-bit words. The order of the members in this structure
    ///  matters because of the Ethereum byte-packing rules.
    ///  Reference: http://solidity.readthedocs.io/en/develop/miscellaneous.html
    struct Cutie
    {
        // The Cutie's genetic code is in these 256-bits. Cutie's genes never change.
        uint256 genes;

        // The timestamp from the block when this cutie was created.
        uint40 birthTime;

        // The minimum timestamp after which the cutie can start breeding
        // again.
        uint40 cooldownEndTime;

        // The cutie's parents ID is set to 0 for gen0 cuties.
        // Because of using 32-bit unsigned integers the limit is 4 billion cuties. 
        // Current Ethereum annual limit is about 500 million transactions.
        uint40 momId;
        uint40 dadId;

        // Set the index in the cooldown array (see below) that means
        // the current cooldown duration for this Cutie. Starts at 0
        // for gen0 cats, and is initialized to floor(generation/2) for others.
        // Incremented by one for each successful breeding, regardless
        // of being cutie mom or cutie dad.
        uint16 cooldownIndex;

        // The "generation number" of the cutie. Cutioes minted by the contract
        // for sale are called "gen0" with generation number of 0. All other cuties' 
        // generation number is the larger of their parents' two generation
        // numbers, plus one (i.e. max(mom.generation, dad.generation) + 1)
        uint16 generation;

        // Some optional data used by external contracts
        // Cutie struct is 2x256 bits long.
        uint64 optional;
    }

    /// @dev An array containing the Cutie struct for all Cuties in existence. The ID
    ///  of each cutie is actually an index into this array. ID 0 is the parent 
    /// of all generation 0 cats, and both parents to itself. It is an invalid genetic code.
    Cutie[] public cuties;

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

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

    /// @dev A mapping from CutieIDs to an address that has been approved to call
    ///  transferFrom(). A Cutie can have one approved address for transfer
    ///  at any time. A zero value means that there is no outstanding approval.
    mapping (uint40 => address) public cutieIndexToApproved;

    /// @dev A mapping from CutieIDs to an address that has been approved to use
    ///  this Cutie for breeding via breedWith(). A Cutie can have one approved
    ///  address for breeding at any time. A zero value means that there is no outstanding approval.
    mapping (uint40 => address) public sireAllowedToAddress;


    /// @dev The address of the Market contract used to sell cuties. This
    ///  contract used both peer-to-peer sales and the gen0 sales that are
    ///  initiated each 15 minutes.
    MarketInterface public saleMarket;

    /// @dev The address of a custom Market subclassed contract used for breeding
    ///  auctions. Is to be separated from saleMarket as the actions taken on success
    ///  after a sales and breeding auction are quite different.
    MarketInterface public breedingMarket;


    // Modifiers to check that inputs can be safely stored with a certain
    // number of bits.
    modifier canBeStoredIn40Bits(uint256 _value) {
        require(_value <= 0xFFFFFFFFFF);
        _;
    }    

    /// @notice Returns the total number of Cuties in existence.
    /// @dev Required for ERC-721 compliance.
    function totalSupply() external view returns (uint256)
    {
        return cuties.length - 1;
    }

    /// @notice Returns the total number of Cuties in existence.
    /// @dev Required for ERC-721 compliance.
    function _totalSupply() internal view returns (uint256)
    {
        return cuties.length - 1;
    }
    
    // Internal utility functions assume that their input arguments
    // are valid. Public methods sanitize their inputs and follow
    // the required logic.

    /// @dev Checks if a given address is the current owner of a certain Cutie.
    /// @param _claimant the address we are validating against.
    /// @param _cutieId cutie id, only valid when > 0
    function _isOwner(address _claimant, uint40 _cutieId) internal view returns (bool)
    {
        return cutieIndexToOwner[_cutieId] == _claimant;
    }

    /// @dev Checks if a given address currently has transferApproval for a certain Cutie.
    /// @param _claimant the address we are confirming the cutie is approved for.
    /// @param _cutieId cutie id, only valid when > 0
    function _approvedFor(address _claimant, uint40 _cutieId) internal view returns (bool)
    {
        return cutieIndexToApproved[_cutieId] == _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 done on purpose:
    ///  _approve() and transferFrom() are used together for putting Cuties on auction. 
    ///  There is no value in spamming the log with Approval events in that case.
    function _approve(uint40 _cutieId, address _approved) internal
    {
        cutieIndexToApproved[_cutieId] = _approved;
    }

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

    /// @notice Transfers a Cutie to another address. When transferring to a smart
    ///  contract, ensure that it is aware of ERC-721 (or
    ///  BlockchainCuties specifically), otherwise the Cutie may be lost forever.
    /// @param _to The address of the recipient, can be a user or contract.
    /// @param _cutieId The ID of the Cutie to transfer.
    /// @dev Required for ERC-721 compliance.
    function transfer(address _to, uint256 _cutieId) external whenNotPaused canBeStoredIn40Bits(_cutieId)
    {
        // You can only send your own cutie.
        require(_isOwner(msg.sender, uint40(_cutieId)));

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

    /// @notice Grant another address the right to transfer a perticular Cutie via transferFrom().
    /// This flow is preferred for transferring NFTs to contracts.
    /// @param _to The address to be granted transfer approval. Pass address(0) to clear all approvals.
    /// @param _cutieId The ID of the Cutie that can be transferred if this call succeeds.
    /// @dev Required for ERC-721 compliance.
    function approve(address _to, uint256 _cutieId) external whenNotPaused canBeStoredIn40Bits(_cutieId)
    {
        // Only cutie's owner can grant transfer approval.
        require(_isOwner(msg.sender, uint40(_cutieId)));

        // Registering approval replaces any previous approval.
        _approve(uint40(_cutieId), _to);

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

    /// @notice Transfers the ownership of an NFT from one address to another address.
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///  operator, or the approved address for this NFT. Throws if `_from` is
    ///  not the current owner. Throws if `_to` is the zero address. Throws if
    ///  `_tokenId` is not a valid NFT. When transfer is complete, this function
    ///  checks if `_to` is a smart contract (code size > 0). If so, it calls
    ///  `onERC721Received` on `_to` and throws if the return value is not
    ///  `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    /// @param data Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) 
        external whenNotPaused canBeStoredIn40Bits(_tokenId)
    {
        require(_to != address(0));
        require(_to != address(this));
        require(_to != address(saleMarket));
        require(_to != address(breedingMarket));
       
        // Check for approval and valid ownership
        require(_approvedFor(msg.sender, uint40(_tokenId)) || _isApprovedForAll(_from, msg.sender));
        require(_isOwner(_from, uint40(_tokenId)));

        // Reassign ownership, clearing pending approvals and emitting Transfer event.
        _transfer(_from, _to, uint40(_tokenId));
        ERC721TokenReceiver (_to).onERC721Received(_from, _tokenId, data);
    }

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    ///  except this function just sets data to ""
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) 
        external whenNotPaused canBeStoredIn40Bits(_tokenId)
    {
        require(_to != address(0));
        require(_to != address(this));
        require(_to != address(saleMarket));
        require(_to != address(breedingMarket));
       
        // Check for approval and valid ownership
        require(_approvedFor(msg.sender, uint40(_tokenId)) || _isApprovedForAll(_from, msg.sender));
        require(_isOwner(_from, uint40(_tokenId)));

        // Reassign ownership, clearing pending approvals and emitting Transfer event.
        _transfer(_from, _to, uint40(_tokenId));
    }

    /// @notice Transfer a Cutie owned by another address, for which the calling address
    ///  has been granted transfer approval by the owner.
    /// @param _from The address that owns the Cutie to be transfered.
    /// @param _to Any address, including the caller address, can take ownership of the Cutie.
    /// @param _tokenId The ID of the Cutie to be transferred.
    /// @dev Required for ERC-721 compliance.
    function transferFrom(address _from, address _to, uint256 _tokenId) 
        external whenNotPaused canBeStoredIn40Bits(_tokenId) 
    {
        // Check for approval and valid ownership
        require(_approvedFor(msg.sender, uint40(_tokenId)) || _isApprovedForAll(_from, msg.sender));
        require(_isOwner(_from, uint40(_tokenId)));

        // Reassign ownership, clearing pending approvals and emitting Transfer event.
        _transfer(_from, _to, uint40(_tokenId));
    }

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

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

    /// @notice Returns the nth Cutie assigned to an address, with n specified by the
    ///  _index argument.
    /// @param _owner The owner of the Cuties we are interested in.
    /// @param _index The zero-based index of the cutie within the owner's list of cuties.
    ///  Must be less than balanceOf(_owner).
    /// @dev This method must not be called by smart contract code. It will almost
    ///  certainly blow past the block gas limit once there are a large number of
    ///  Cuties in existence. Exists only to allow off-chain queries of ownership.
    ///  Optional method for ERC-721.
    function tokenOfOwnerByIndex(address _owner, uint256 _index)
        external
        view
        returns (uint256 cutieId)
    {
        uint40 count = 0;
        for (uint40 i = 1; i <= _totalSupply(); ++i) {
            if (cutieIndexToOwner[i] == _owner) {
                if (count == _index) {
                    return i;
                } else {
                    count++;
                }
            }
        }
        revert();
    }

    /// @notice Enumerate valid NFTs
    /// @dev Throws if `_index` >= `totalSupply()`.
    /// @param _index A counter less than `totalSupply()`
    /// @return The token identifier for the `_index`th NFT,
    ///  (sort order not specified)
    function tokenByIndex(uint256 _index) external pure returns (uint256)
    {
        return _index;
    }

    /// @dev A mapping from Cuties owner (account) to an address that has been approved to call
    ///  transferFrom() for all cuties, owned by owner.
    ///  Only one approved address is permitted for each account for transfer
    ///  at any time. A zero value means there is no outstanding approval.
    mapping (address => address) public addressToApprovedAll;

    /// @notice Enable or disable approval for a third party ("operator") to manage
    ///  all your asset.
    /// @dev Emits the ApprovalForAll event
    /// @param _operator Address to add to the set of authorized operators.
    /// @param _approved True if the operators is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved) external
    {
        if (_approved)
        {
            addressToApprovedAll[msg.sender] = _operator;
        }
        else
        {
            delete addressToApprovedAll[msg.sender];
        }
        emit ApprovalForAll(msg.sender, _operator, _approved);
    }

    /// @notice Get the approved address for a single NFT
    /// @dev Throws if `_tokenId` is not a valid NFT
    /// @param _tokenId The NFT to find the approved address for
    /// @return The approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId) 
        external view canBeStoredIn40Bits(_tokenId) 
        returns (address)
    {
        require(_tokenId <= _totalSupply());

        if (cutieIndexToApproved[uint40(_tokenId)] != address(0))
        {
            return cutieIndexToApproved[uint40(_tokenId)];
        }

        address owner = cutieIndexToOwner[uint40(_tokenId)];
        return addressToApprovedAll[owner];
    }

    /// @notice Query if an address is an authorized operator for another address
    /// @param _owner The address that owns the NFTs
    /// @param _operator The address that acts on behalf of the owner
    /// @return True if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator) external view returns (bool)
    {
        return addressToApprovedAll[_owner] == _operator;
    }

    function _isApprovedForAll(address _owner, address _operator) internal view returns (bool)
    {
        return addressToApprovedAll[_owner] == _operator;
    }

    /// @dev A lookup table that shows the cooldown duration after a successful
    ///  breeding action, called "breeding cooldown". The cooldown roughly doubles each time
    /// a cutie is bred, so that owners don't breed the same cutie continuously. Maximum cooldown is seven days.
    uint32[14] public cooldowns = [
        uint32(1 minutes),
        uint32(2 minutes),
        uint32(5 minutes),
        uint32(10 minutes),
        uint32(30 minutes),
        uint32(1 hours),
        uint32(2 hours),
        uint32(4 hours),
        uint32(8 hours),
        uint32(16 hours),
        uint32(1 days),
        uint32(2 days),
        uint32(4 days),
        uint32(7 days)
    ];

    function setCooldown(uint16 index, uint32 newCooldown) public onlyOwner
    {
        cooldowns[index] = newCooldown;
    }

    /// @dev An internal method that creates a new cutie and stores it. This
    ///  method does not check anything and should only be called when the
    ///  input data is valid for sure. Will generate both a Birth event
    ///  and a Transfer event.
    /// @param _momId The cutie ID of the mom of this cutie (zero for gen0)
    /// @param _dadId The cutie ID of the dad of this cutie (zero for gen0)
    /// @param _generation The generation number of this cutie, must be computed by caller.
    /// @param _genes The cutie's genetic code.
    /// @param _owner The initial owner of this cutie, must be non-zero (except for the unCutie, ID 0)
    function _createCutie(
        uint40 _momId,
        uint40 _dadId,
        uint16 _generation,
        uint256 _genes,
        address _owner,
        uint40 _birthTime
    )
        internal
        returns (uint40)
    {
        // New cutie starts with the same cooldown as parent gen/2
        uint16 cooldownIndex = uint16(_generation / 2);
        if (cooldownIndex > cooldowns.length) {
            cooldownIndex = uint16(cooldowns.length - 1);
        }

        Cutie memory _cutie = Cutie({
            genes: _genes, 
            birthTime: _birthTime, 
            cooldownEndTime: 0, 
            momId: _momId, 
            dadId: _dadId, 
            cooldownIndex: cooldownIndex, 
            generation: _generation,
            optional: 0
        });
        uint256 newCutieId256 = cuties.push(_cutie) - 1;

        // Check if id can fit into 40 bits
        require(newCutieId256 <= 0xFFFFFFFFFF);

        uint40 newCutieId = uint40(newCutieId256);

        // emit the birth event
        emit Birth(_owner, newCutieId, _cutie.momId, _cutie.dadId, _cutie.genes);

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

        return newCutieId;
    }
  
    /// @notice Returns all the relevant information about a certain cutie.
    /// @param _id The ID of the cutie of interest.
    function getCutie(uint40 _id)
        external
        view
        returns (
        uint256 genes,
        uint40 birthTime,
        uint40 cooldownEndTime,
        uint40 momId,
        uint40 dadId,
        uint16 cooldownIndex,
        uint16 generation
    ) {
        Cutie storage cutie = cuties[_id];

        genes = cutie.genes;
        birthTime = cutie.birthTime;
        cooldownEndTime = cutie.cooldownEndTime;
        momId = cutie.momId;
        dadId = cutie.dadId;
        cooldownIndex = cutie.cooldownIndex;
        generation = cutie.generation;
    }    
    
    /// @dev Assigns ownership of a particular Cutie to an address.
    function _transfer(address _from, address _to, uint40 _cutieId) internal {
        // since the number of cuties is capped to 2^40
        // there is no way to overflow this
        ownershipTokenCount[_to]++;
        // transfer ownership
        cutieIndexToOwner[_cutieId] = _to;
        // When creating new cuties _from is 0x0, but we cannot account that address.
        if (_from != address(0)) {
            ownershipTokenCount[_from]--;
            // once the cutie is transferred also clear breeding allowances
            delete sireAllowedToAddress[_cutieId];
            // clear any previously approved ownership exchange
            delete cutieIndexToApproved[_cutieId];
        }
        // Emit the transfer event.
        emit Transfer(_from, _to, _cutieId);
    }

    /// @dev For transferring a cutie owned by this contract to the specified address.
    ///  Used to rescue lost cuties. (There is no "proper" flow where this contract
    ///  should be the owner of any Cutie. This function exists for us to reassign
    ///  the ownership of Cuties that users may have accidentally sent to our address.)
    /// @param _cutieId - ID of cutie
    /// @param _recipient - Address to send the cutie to
    function restoreCutieToAddress(uint40 _cutieId, address _recipient) public onlyOperator whenNotPaused {
        require(_isOwner(this, _cutieId));
        _transfer(this, _recipient, _cutieId);
    }

    address ownerAddress;
    address operatorAddress;

    bool public paused = false;

    modifier onlyOwner()
    {
        require(msg.sender == ownerAddress);
        _;
    }

    function setOwner(address _newOwner) public onlyOwner
    {
        require(_newOwner != address(0));

        ownerAddress = _newOwner;
    }

    modifier onlyOperator() {
        require(msg.sender == operatorAddress || msg.sender == ownerAddress);
        _;
    }

    function setOperator(address _newOperator) public onlyOwner {
        require(_newOperator != address(0));

        operatorAddress = _newOperator;
    }

    modifier whenNotPaused()
    {
        require(!paused);
        _;
    }

    modifier whenPaused
    {
        require(paused);
        _;
    }

    function pause() public onlyOwner whenNotPaused
    {
        paused = true;
    }

    string public metadataUrlPrefix = "https://blockchaincuties.co/cutie/";
    string public metadataUrlSuffix = ".svg";

    /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
    /// @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
    ///  3986. The URI may point to a JSON file that conforms to the "ERC721
    ///  Metadata JSON Schema".
    function tokenURI(uint256 _tokenId) external view returns (string infoUrl)
    {
        return 
            concat(toSlice(metadataUrlPrefix), 
                toSlice(concat(toSlice(uintToString(_tokenId)), toSlice(metadataUrlSuffix))));
    }

    function setMetadataUrl(string _metadataUrlPrefix, string _metadataUrlSuffix) public onlyOwner
    {
        metadataUrlPrefix = _metadataUrlPrefix;
        metadataUrlSuffix = _metadataUrlSuffix;
    }


    mapping(address => PluginInterface) public plugins;
    PluginInterface[] public pluginsArray;
    mapping(uint40 => address) public usedSignes;
    uint40 public minSignId;

    event GenesChanged(uint40 indexed cutieId, uint256 oldValue, uint256 newValue);
    event CooldownEndTimeChanged(uint40 indexed cutieId, uint40 oldValue, uint40 newValue);
    event CooldownIndexChanged(uint40 indexed cutieId, uint16 ololdValue, uint16 newValue);
    event GenerationChanged(uint40 indexed cutieId, uint16 oldValue, uint16 newValue);
    event OptionalChanged(uint40 indexed cutieId, uint64 oldValue, uint64 newValue);
    event SignUsed(uint40 signId, address sender);
    event MinSignSet(uint40 signId);

    /// @dev Sets the reference to the plugin contract.
    /// @param _address - Address of plugin contract.
    function addPlugin(address _address) public onlyOwner
    {
        PluginInterface candidateContract = PluginInterface(_address);

        // verify that a contract is what we expect
        require(candidateContract.isPluginInterface());

        // Set the new contract address
        plugins[_address] = candidateContract;
        pluginsArray.push(candidateContract);
    }

    /// @dev Remove plugin and calls onRemove to cleanup
    function removePlugin(address _address) public onlyOwner
    {
        plugins[_address].onRemove();
        delete plugins[_address];

        uint256 kindex = 0;
        while (kindex < pluginsArray.length)
        {
            if (address(pluginsArray[kindex]) == _address)
            {
                pluginsArray[kindex] = pluginsArray[pluginsArray.length-1];
                pluginsArray.length--;
            }
            else
            {
                kindex++;
            }
        }
    }

    /// @dev Put a cutie up for plugin feature.
    function runPlugin(
        address _pluginAddress,
        uint40 _cutieId,
        uint256 _parameter
    )
        public
        whenNotPaused
        payable
    {
        // If cutie is already on any auction or in adventure, this will throw
        // because it will be owned by the other contract.
        // If _cutieId is 0, then cutie is not used on this feature.
        require(_cutieId == 0 || _isOwner(msg.sender, _cutieId));
        require(address(plugins[_pluginAddress]) != address(0));
        if (_cutieId > 0)
        {
            _approve(_cutieId, _pluginAddress);
        }

        // Plugin contract throws if inputs are invalid and clears
        // transfer after escrowing the cutie.
        plugins[_pluginAddress].run.value(msg.value)(
            _cutieId,
            _parameter,
            msg.sender
        );
    }

    /// @dev Called from plugin contract when using items as effect
    function getGenes(uint40 _id)
        public
        view
        returns (
        uint256 genes
    )
    {
        Cutie storage cutie = cuties[_id];
        genes = cutie.genes;
    }

    /// @dev Called from plugin contract when using items as effect
    function changeGenes(
        uint40 _cutieId,
        uint256 _genes)
        public
        whenNotPaused
    {
        // if caller is registered plugin contract
        require(address(plugins[msg.sender]) != address(0));

        Cutie storage cutie = cuties[_cutieId];
        if (cutie.genes != _genes)
        {
            emit GenesChanged(_cutieId, cutie.genes, _genes);
            cutie.genes = _genes;
        }
    }

    function getCooldownEndTime(uint40 _id)
        public
        view
        returns (
        uint40 cooldownEndTime
    ) {
        Cutie storage cutie = cuties[_id];

        cooldownEndTime = cutie.cooldownEndTime;
    }

    function changeCooldownEndTime(
        uint40 _cutieId,
        uint40 _cooldownEndTime)
        public
        whenNotPaused
    {
        require(address(plugins[msg.sender]) != address(0));

        Cutie storage cutie = cuties[_cutieId];
        if (cutie.cooldownEndTime != _cooldownEndTime)
        {
            emit CooldownEndTimeChanged(_cutieId, cutie.cooldownEndTime, _cooldownEndTime);
            cutie.cooldownEndTime = _cooldownEndTime;
        }
    }

    function getCooldownIndex(uint40 _id)
        public
        view
        returns (
        uint16 cooldownIndex
    ) {
        Cutie storage cutie = cuties[_id];

        cooldownIndex = cutie.cooldownIndex;
    }

    function changeCooldownIndex(
        uint40 _cutieId,
        uint16 _cooldownIndex)
        public
        whenNotPaused
    {
        require(address(plugins[msg.sender]) != address(0));

        Cutie storage cutie = cuties[_cutieId];
        if (cutie.cooldownIndex != _cooldownIndex)
        {
            emit CooldownIndexChanged(_cutieId, cutie.cooldownIndex, _cooldownIndex);
            cutie.cooldownIndex = _cooldownIndex;
        }
    }

    function changeGeneration(
        uint40 _cutieId,
        uint16 _generation)
        public
        whenNotPaused
    {
        require(address(plugins[msg.sender]) != address(0));

        Cutie storage cutie = cuties[_cutieId];
        if (cutie.generation != _generation)
        {
            emit GenerationChanged(_cutieId, cutie.generation, _generation);
            cutie.generation = _generation;
        }
    }

    function getGeneration(uint40 _id)
        public
        view
        returns (uint16 generation)
    {
        Cutie storage cutie = cuties[_id];
        generation = cutie.generation;
    }

    function changeOptional(
        uint40 _cutieId,
        uint64 _optional)
        public
        whenNotPaused
    {
        require(address(plugins[msg.sender]) != address(0));

        Cutie storage cutie = cuties[_cutieId];
        if (cutie.optional != _optional)
        {
            emit OptionalChanged(_cutieId, cutie.optional, _optional);
            cutie.optional = _optional;
        }
    }

    function getOptional(uint40 _id)
        public
        view
        returns (uint64 optional)
    {
        Cutie storage cutie = cuties[_id];
        optional = cutie.optional;
    }

    /// @dev Common function to be used also in backend
    function hashArguments(
        address _pluginAddress,
        uint40 _signId,
        uint40 _cutieId,
        uint128 _value,
        uint256 _parameter)
        public pure returns (bytes32 msgHash)
    {
        msgHash = keccak256(_pluginAddress, _signId, _cutieId, _value, _parameter);
    }

    /// @dev Common function to be used also in backend
    function getSigner(
        address _pluginAddress,
        uint40 _signId,
        uint40 _cutieId,
        uint128 _value,
        uint256 _parameter,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
        )
        public pure returns (address)
    {
        bytes32 msgHash = hashArguments(_pluginAddress, _signId, _cutieId, _value, _parameter);
        return ecrecover(msgHash, _v, _r, _s);
    }

    /// @dev Common function to be used also in backend
    function isValidSignature(
        address _pluginAddress,
        uint40 _signId,
        uint40 _cutieId,
        uint128 _value,
        uint256 _parameter,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
        )
        public
        view
        returns (bool)
    {
        return getSigner(_pluginAddress, _signId, _cutieId, _value, _parameter, _v, _r, _s) == operatorAddress;
    }

    /// @dev Put a cutie up for plugin feature with signature.
    ///  Can be used for items equip, item sales and other features.
    ///  Signatures are generated by Operator role.
    function runPluginSigned(
        address _pluginAddress,
        uint40 _signId,
        uint40 _cutieId,
        uint128 _value,
        uint256 _parameter,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    )
        public
        whenNotPaused
        payable
    {
        // If cutie is already on any auction or in adventure, this will throw
        // as it will be owned by the other contract.
        // If _cutieId is 0, then cutie is not used on this feature.
        require(_cutieId == 0 || _isOwner(msg.sender, _cutieId));
    
        require(address(plugins[_pluginAddress]) != address(0));    

        require (usedSignes[_signId] == address(0));
        require (_signId >= minSignId);
        // value can also be zero for free calls
        require (_value <= msg.value);

        require (isValidSignature(_pluginAddress, _signId, _cutieId, _value, _parameter, _v, _r, _s));
        
        usedSignes[_signId] = msg.sender;
        emit SignUsed(_signId, msg.sender);

        // Plugin contract throws if inputs are invalid and clears
        // transfer after escrowing the cutie.
        plugins[_pluginAddress].runSigned.value(_value)(
            _cutieId,
            _parameter,
            msg.sender
        );
    }

    /// @dev Sets minimal signId, than can be used.
    ///       All unused signatures less than signId will be cancelled on off-chain server
    ///       and unused items will be transfered back to owner.
    function setMinSign(uint40 _newMinSignId)
        public
        onlyOperator
    {
        require (_newMinSignId > minSignId);
        minSignId = _newMinSignId;
        emit MinSignSet(minSignId);
    }


    event BreedingApproval(address indexed _owner, address indexed _approved, uint256 _tokenId);

    // Set in case the core contract is broken and an upgrade is required
    address public upgradedContractAddress;

    function isCutieCore() pure public returns (bool) { return true; }

    /// @notice Creates the main BlockchainCuties smart contract instance.
    function BlockchainCutiesCore() public
    {
        // Starts paused.
        paused = true;

        // the creator of the contract is the initial owner
        ownerAddress = msg.sender;

        // the creator of the contract is also the initial operator
        operatorAddress = msg.sender;

        // start with the mythical cutie 0 - so there are no generation-0 parent issues
        _createCutie(0, 0, 0, uint256(-1), address(0), 0);
    }

    event ContractUpgrade(address newContract);

    /// @dev Aimed to mark the smart contract as upgraded if there is a crucial
    ///  bug. This keeps track of the new contract and indicates that the new address is set. 
    /// Updating to the new contract address is up to the clients. (This contract will
    ///  be paused indefinitely if such an upgrade takes place.)
    /// @param _newAddress new address
    function setUpgradedAddress(address _newAddress) public onlyOwner whenPaused
    {
        require(_newAddress != address(0));
        upgradedContractAddress = _newAddress;
        emit ContractUpgrade(upgradedContractAddress);
    }

    /// @dev Override unpause so it requires upgradedContractAddress not set, because then the contract was upgraded.
    function unpause() public onlyOwner whenPaused
    {
        require(upgradedContractAddress == address(0));

        paused = false;
    }

    // Counts the number of cuties the contract owner has created.
    uint40 public promoCutieCreatedCount;
    uint40 public gen0CutieCreatedCount;
    uint40 public gen0Limit = 50000;
    uint40 public promoLimit = 5000;

    /// @dev Creates a new gen0 cutie with the given genes and
    ///  creates an auction for it.
    function createGen0Auction(uint256 _genes, uint128 startPrice, uint128 endPrice, uint40 duration) public onlyOperator
    {
        require(gen0CutieCreatedCount < gen0Limit);
        uint40 cutieId = _createCutie(0, 0, 0, _genes, address(this), uint40(now));
        _approve(cutieId, saleMarket);

        saleMarket.createAuction(
            cutieId,
            startPrice,
            endPrice,
            duration,
            address(this)
        );

        gen0CutieCreatedCount++;
    }

    function createPromoCutie(uint256 _genes, address _owner) public onlyOperator
    {
        require(promoCutieCreatedCount < promoLimit);
        if (_owner == address(0)) {
             _owner = operatorAddress;
        }
        promoCutieCreatedCount++;
        gen0CutieCreatedCount++;
        _createCutie(0, 0, 0, _genes, _owner, uint40(now));
    }

    /// @dev Put a cutie up for auction to be dad.
    ///  Performs checks to ensure the cutie can be dad, then
    ///  delegates to reverse auction.
    ///  Optional money amount can be sent to contract to feature auction.
    ///  Pricea are available on web.
    function createBreedingAuction(
        uint40 _cutieId,
        uint128 _startPrice,
        uint128 _endPrice,
        uint40 _duration
    )
        public
        whenNotPaused
        payable
    {
        // Auction contract checks input sizes
        // If cutie is already on any auction, this will throw
        // because it will be owned by the auction contract.
        require(_isOwner(msg.sender, _cutieId));
        require(canBreed(_cutieId));
        _approve(_cutieId, breedingMarket);
        // breeding auction function is called if inputs are invalid and clears
        // transfer and sire approval after escrowing the cutie.
        breedingMarket.createAuction.value(msg.value)(
            _cutieId,
            _startPrice,
            _endPrice,
            _duration,
            msg.sender
        );
    }

    /// @dev Sets the reference to the breeding auction.
    /// @param _breedingAddress - Address of breeding market contract.
    /// @param _saleAddress - Address of sale market contract.
    function setMarketAddress(address _breedingAddress, address _saleAddress) public onlyOwner
    {
        //require(address(breedingMarket) == address(0));
        //require(address(saleMarket) == address(0));

        breedingMarket = MarketInterface(_breedingAddress);
        saleMarket = MarketInterface(_saleAddress);
    }

    /// @dev Completes a breeding auction by bidding.
    ///  Immediately breeds the winning mom with the dad on auction.
    /// @param _dadId - ID of the dad on auction.
    /// @param _momId - ID of the mom owned by the bidder.
    function bidOnBreedingAuction(
        uint40 _dadId,
        uint40 _momId
    )
        public
        payable
        whenNotPaused
        returns (uint256)
    {
        // Auction contract checks input sizes
        require(_isOwner(msg.sender, _momId));
        require(canBreed(_momId));
        require(_canMateViaMarketplace(_momId, _dadId));

        // breeding auction will throw if the bid fails.
        breedingMarket.bid.value(msg.value)(_dadId);
        return _breedWith(_momId, _dadId);
    }

    /// @dev Put a cutie up for auction.
    ///  Does some ownership trickery for creating auctions in one transaction.
    ///  Optional money amount can be sent to contract to feature auction.
    ///  Pricea are available on web.
    function createSaleAuction(
        uint40 _cutieId,
        uint128 _startPrice,
        uint128 _endPrice,
        uint40 _duration
    )
        public
        whenNotPaused
        payable
    {
        // Auction contract checks input sizes
        // If cutie is already on any auction, this will throw
        // because it will be owned by the auction contract.
        require(_isOwner(msg.sender, _cutieId));
        _approve(_cutieId, saleMarket);
        // Sale auction throws if inputs are invalid and clears
        // transfer and sire approval after escrowing the cutie.
        saleMarket.createAuction.value(msg.value)(
            _cutieId,
            _startPrice,
            _endPrice,
            _duration,
            msg.sender
        );
    }

    /// @dev The address of the sibling contract that is used to implement the genetic combination algorithm.
    GeneMixerInterface geneMixer;

    /// @dev Check if dad has authorized breeding with the mom. True if both dad
    ///  and mom have the same owner, or if the dad has given breeding permission to
    ///  the mom's owner (via approveBreeding()).
    function _isBreedingPermitted(uint40 _dadId, uint40 _momId) internal view returns (bool)
    {
        address momOwner = cutieIndexToOwner[_momId];
        address dadOwner = cutieIndexToOwner[_dadId];

        // Breeding is approved if they have same owner, or if the mom's owner was given
        // permission to breed with the dad.
        return (momOwner == dadOwner || sireAllowedToAddress[_dadId] == momOwner);
    }

    /// @dev Update the address of the genetic contract.
    /// @param _address An address of a GeneMixer contract instance to be used from this point forward.
    function setGeneMixerAddress(address _address) public onlyOwner
    {
        GeneMixerInterface candidateContract = GeneMixerInterface(_address);

        require(candidateContract.isGeneMixer());

        // Set the new contract address
        geneMixer = candidateContract;
    }

    /// @dev Checks that a given cutie is able to breed. Requires that the
    ///  current cooldown is finished (for dads)
    function _canBreed(Cutie _cutie) internal view returns (bool)
    {
        return _cutie.cooldownEndTime <= now;
    }

    /// @notice Grants approval to another user to sire with one of your Cuties.
    /// @param _addr The address that will be able to sire with your Cutie. Set to
    ///  address(0) to clear all breeding approvals for this Cutie.
    /// @param _dadId A Cutie that you own that _addr will now be able to dad with.
    function approveBreeding(address _addr, uint40 _dadId) public whenNotPaused
    {
        require(_isOwner(msg.sender, _dadId));
        sireAllowedToAddress[_dadId] = _addr;
        emit BreedingApproval(msg.sender, _addr, _dadId);
    }

    /// @dev Set the cooldownEndTime for the given Cutie, based on its current cooldownIndex.
    ///  Also increments the cooldownIndex (unless it has hit the cap).
    /// @param _cutie A reference to the Cutie in storage which needs its timer started.
    function _triggerCooldown(uint40 _cutieId, Cutie storage _cutie) internal
    {
        // Compute the end of the cooldown time, based on current cooldownIndex
        uint40 oldValue = _cutie.cooldownIndex;
        _cutie.cooldownEndTime = uint40(now + cooldowns[_cutie.cooldownIndex]);
        emit CooldownEndTimeChanged(_cutieId, oldValue, _cutie.cooldownEndTime);

        // Increment the breeding count.
        if (_cutie.cooldownIndex + 1 < cooldowns.length) {
            uint16 oldValue2 = _cutie.cooldownIndex;
            _cutie.cooldownIndex++;
            emit CooldownIndexChanged(_cutieId, oldValue2, _cutie.cooldownIndex);
        }
    }

    /// @notice Checks that a certain cutie is not
    ///  in the middle of a breeding cooldown and is able to breed.
    /// @param _cutieId reference the id of the cutie, any user can inquire about it
    function canBreed(uint40 _cutieId)
        public
        view
        returns (bool)
    {
        require(_cutieId > 0);
        Cutie storage cutie = cuties[_cutieId];
        return _canBreed(cutie);
    }

    /// @dev Check if given mom and dad are a valid mating pair.
    function _canPairMate(
        Cutie storage _mom,
        uint40 _momId,
        Cutie storage _dad,
        uint40 _dadId
    )
        private
        view
        returns(bool)
    {
        // A Cutie can't breed with itself.
        if (_dadId == _momId) { 
            return false; 
        }

        // Cuties can't breed with their parents.
        if (_mom.momId == _dadId) {
            return false;
        }
        if (_mom.dadId == _dadId) {
            return false;
        }

        if (_dad.momId == _momId) {
            return false;
        }
        if (_dad.dadId == _momId) {
            return false;
        }

        // We can short circuit the sibling check (below) if either cat is
        // gen zero (has a mom ID of zero).
        if (_dad.momId == 0) {
            return true;
        }
        if (_mom.momId == 0) {
            return true;
        }

        // Cuties can't breed with full or half siblings.
        if (_dad.momId == _mom.momId) {
            return false;
        }
        if (_dad.momId == _mom.dadId) {
            return false;
        }
        if (_dad.dadId == _mom.momId) {
            return false;
        }
        if (_dad.dadId == _mom.dadId) {
            return false;
        }

        if (geneMixer.canBreed(_momId, _mom.genes, _dadId, _dad.genes)) {
            return true;
        }
        return false;
    }

    /// @notice Checks to see if two cuties can breed together (checks both
    ///  ownership and breeding approvals, but does not check if both cuties are ready for
    ///  breeding).
    /// @param _momId The ID of the proposed mom.
    /// @param _dadId The ID of the proposed dad.
    function canBreedWith(uint40 _momId, uint40 _dadId)
        public
        view
        returns(bool)
    {
        require(_momId > 0);
        require(_dadId > 0);
        Cutie storage mom = cuties[_momId];
        Cutie storage dad = cuties[_dadId];
        return _canPairMate(mom, _momId, dad, _dadId) && _isBreedingPermitted(_dadId, _momId);
    }
    
    /// @dev Internal check to see if a given dad and mom are a valid mating pair for
    ///  breeding via market (this method doesn't check ownership and if mating is allowed).
    function _canMateViaMarketplace(uint40 _momId, uint40 _dadId)
        internal
        view
        returns (bool)
    {
        Cutie storage mom = cuties[_momId];
        Cutie storage dad = cuties[_dadId];
        return _canPairMate(mom, _momId, dad, _dadId);
    }

    /// @notice Breed cuties that you own, or for which you
    ///  have previously been given Breeding approval. Will either make your cutie give birth, or will
    ///  fail.
    /// @param _momId The ID of the Cutie acting as mom (will end up give birth if successful)
    /// @param _dadId The ID of the Cutie acting as dad (will begin its breeding cooldown if successful)
    function breedWith(uint40 _momId, uint40 _dadId) public whenNotPaused returns (uint40)
    {
        // Caller must own the mom.
        require(_isOwner(msg.sender, _momId));

        // Neither dad nor mom can be on auction during
        // breeding.
        // For mom: The caller of this function can't be the owner of the mom
        //   because the owner of a Cutie on auction is the auction house, and the
        //   auction house will never call breedWith().
        // For dad: Similarly, a dad on auction will be owned by the auction house
        //   and the act of transferring ownership will have cleared any outstanding
        //   breeding approval.
        // Thus we don't need check if either cutie
        // is on auction.

        // Check that mom and dad are both owned by caller, or that the dad
        // has given breeding permission to caller (i.e. mom's owner).
        // Will fail for _dadId = 0
        require(_isBreedingPermitted(_dadId, _momId));

        // Grab a reference to the potential mom
        Cutie storage mom = cuties[_momId];

        // Make sure mom's cooldown isn't active, or in the middle of a breeding cooldown
        require(_canBreed(mom));

        // Grab a reference to the potential dad
        Cutie storage dad = cuties[_dadId];

        // Make sure dad cooldown isn't active, or in the middle of a breeding cooldown
        require(_canBreed(dad));

        // Test that these cuties are a valid mating pair.
        require(_canPairMate(
            mom,
            _momId,
            dad,
            _dadId
        ));

        return _breedWith(_momId, _dadId);
    }

    /// @dev Internal utility function to start breeding, assumes that all breeding
    ///  requirements have been checked.
    function _breedWith(uint40 _momId, uint40 _dadId) internal returns (uint40)
    {
        // Grab a reference to the Cuties from storage.
        Cutie storage dad = cuties[_dadId];
        Cutie storage mom = cuties[_momId];

        // Trigger the cooldown for both parents.
        _triggerCooldown(_dadId, dad);
        _triggerCooldown(_momId, mom);

        // Clear breeding permission for both parents.
        delete sireAllowedToAddress[_momId];
        delete sireAllowedToAddress[_dadId];

        // Check that the mom is a valid cutie.
        require(mom.birthTime != 0);

        // Determine the higher generation number of the two parents
        uint16 parentGen = mom.generation;
        if (dad.generation > mom.generation) {
            parentGen = dad.generation;
        }

        // Call the gene mixing operation.
        uint256 childGenes = geneMixer.mixGenes(mom.genes, dad.genes);

        // Make the new cutie
        address owner = cutieIndexToOwner[_momId];
        uint40 cutieId = _createCutie(_momId, _dadId, parentGen + 1, childGenes, owner, mom.cooldownEndTime);

        // return the new cutie's ID
        return cutieId;
    }

    mapping(address => uint40) isTutorialPetUsed;

    /// @dev Completes a breeding tutorial cutie (non existing in blockchain)
    ///  with auction by bidding. Immediately breeds with dad on auction.
    /// @param _dadId - ID of the dad on auction.
    function bidOnBreedingAuctionTutorial(
        uint40 _dadId
    )
        public
        payable
        whenNotPaused
        returns (uint)
    {
        require(isTutorialPetUsed[msg.sender] == 0);

        // breeding auction will throw if the bid fails.
        breedingMarket.bid.value(msg.value)(_dadId);

        // Grab a reference to the Cuties from storage.
        Cutie storage dad = cuties[_dadId];

        // Trigger the cooldown for parent.
        _triggerCooldown(_dadId, dad);

        // Clear breeding permission for parent.
        delete sireAllowedToAddress[_dadId];

        // Tutorial pet gen is 26
        uint16 parentGen = 26;
        if (dad.generation > parentGen) {
            parentGen = dad.generation;
        }

        // tutorial pet genome is zero
        uint256 childGenes = geneMixer.mixGenes(0x0, dad.genes);

        // tutorial pet id is zero
        uint40 cutieId = _createCutie(0, _dadId, parentGen + 1, childGenes, msg.sender, 12);

        isTutorialPetUsed[msg.sender] = cutieId;

        // return the new cutie's ID
        return cutieId;
    }

    address party1address;
    address party2address;
    address party3address;
    address party4address;
    address party5address;

    /// @dev Setup project owners
    function setParties(address _party1, address _party2, address _party3, address _party4, address _party5) public onlyOwner
    {
        require(_party1 != address(0));
        require(_party2 != address(0));
        require(_party3 != address(0));
        require(_party4 != address(0));
        require(_party5 != address(0));

        party1address = _party1;
        party2address = _party2;
        party3address = _party3;
        party4address = _party4;
        party5address = _party5;
    }

    /// @dev Reject all Ether which is not from game contracts from being sent here.
    function() external payable {
        require(
            msg.sender == address(saleMarket) ||
            msg.sender == address(breedingMarket) ||
            address(plugins[msg.sender]) != address(0)
        );
    }

    /// @dev The balance transfer from the market and plugins contract
    /// to the CutieCore contract.
    function withdrawBalances() external
    {
        require(
            msg.sender == ownerAddress || 
            msg.sender == operatorAddress);

        saleMarket.withdrawEthFromBalance();
        breedingMarket.withdrawEthFromBalance();
        for (uint32 i = 0; i < pluginsArray.length; ++i)        
        {
            pluginsArray[i].withdraw();
        }
    }

    /// @dev The balance transfer from CutieCore contract to project owners
    function withdrawEthFromBalance() external
    {
        require(
            msg.sender == party1address ||
            msg.sender == party2address ||
            msg.sender == party3address ||
            msg.sender == party4address ||
            msg.sender == party5address ||
            msg.sender == ownerAddress || 
            msg.sender == operatorAddress);

        require(party1address != 0);
        require(party2address != 0);
        require(party3address != 0);
        require(party4address != 0);
        require(party5address != 0);

        uint256 total = address(this).balance;

        party1address.transfer(total*105/1000);
        party2address.transfer(total*105/1000);
        party3address.transfer(total*140/1000);
        party4address.transfer(total*140/1000);
        party5address.transfer(total*510/1000);
    }

/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

    struct slice
    {
        uint _len;
        uint _ptr;
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string self) internal pure returns (slice)
    {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    function memcpy(uint dest, uint src, uint len) private pure
    {
        // Copy word-length chunks while possible
        for(; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = 256 ** (32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice self, slice other) internal pure returns (string)
    {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }


    function uintToString(uint256 a) internal pure returns (string result)
    {
        string memory r = "";
        do
        {
            uint b = a % 10;
            a /= 10;

            string memory c = "";

            if (b == 0) c = "0";
            else if (b == 1) c = "1";
            else if (b == 2) c = "2";
            else if (b == 3) c = "3";
            else if (b == 4) c = "4";
            else if (b == 5) c = "5";
            else if (b == 6) c = "6";
            else if (b == 7) c = "7";
            else if (b == 8) c = "8";
            else if (b == 9) c = "9";

            r = concat(toSlice(c), toSlice(r));
        }
        while (a > 0);
        result = r;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"gen0CutieCreatedCount","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_cutieId","type":"uint40"}],"name":"canBreed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"_name","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_party1","type":"address"},{"name":"_party2","type":"address"},{"name":"_party3","type":"address"},{"name":"_party4","type":"address"},{"name":"_party5","type":"address"}],"name":"setParties","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_cutieId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"upgradedContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressToApprovedAll","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint40"}],"name":"cutieIndexToApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_dadId","type":"uint40"}],"name":"bidOnBreedingAuctionTutorial","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"},{"name":"_owner","type":"address"}],"name":"createPromoCutie","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getCooldownIndex","outputs":[{"name":"cooldownIndex","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"cutieId","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getOptional","outputs":[{"name":"optional","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newMinSignId","type":"uint40"}],"name":"setMinSign","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_breedingAddress","type":"address"},{"name":"_saleAddress","type":"address"}],"name":"setMarketAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_pluginAddress","type":"address"},{"name":"_signId","type":"uint40"},{"name":"_cutieId","type":"uint40"},{"name":"_value","type":"uint128"},{"name":"_parameter","type":"uint256"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"isValidSignature","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"plugins","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCutieCore","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_startPrice","type":"uint128"},{"name":"_endPrice","type":"uint128"},{"name":"_duration","type":"uint40"}],"name":"createSaleAuction","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint40"}],"name":"sireAllowedToAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"breedingMarket","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_generation","type":"uint16"}],"name":"changeGeneration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"setUpgradedAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_cutieId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_optional","type":"uint64"}],"name":"changeOptional","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalances","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"count","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEthFromBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_startPrice","type":"uint128"},{"name":"_endPrice","type":"uint128"},{"name":"_duration","type":"uint40"}],"name":"createBreedingAuction","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_metadataUrlPrefix","type":"string"},{"name":"_metadataUrlSuffix","type":"string"}],"name":"setMetadataUrl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_pluginAddress","type":"address"},{"name":"_cutieId","type":"uint40"},{"name":"_parameter","type":"uint256"}],"name":"runPlugin","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"promoLimit","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minSignId","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_pluginAddress","type":"address"},{"name":"_signId","type":"uint40"},{"name":"_cutieId","type":"uint40"},{"name":"_value","type":"uint128"},{"name":"_parameter","type":"uint256"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"getSigner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"_symbol","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getGenes","outputs":[{"name":"genes","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_pluginAddress","type":"address"},{"name":"_signId","type":"uint40"},{"name":"_cutieId","type":"uint40"},{"name":"_value","type":"uint128"},{"name":"_parameter","type":"uint256"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"runPluginSigned","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getGeneration","outputs":[{"name":"generation","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"cooldowns","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"},{"name":"startPrice","type":"uint128"},{"name":"endPrice","type":"uint128"},{"name":"duration","type":"uint40"}],"name":"createGen0Auction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"},{"name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"removePlugin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_recipient","type":"address"}],"name":"restoreCutieToAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_cutieId","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint40"}],"name":"cutieIndexToOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOperator","type":"address"}],"name":"setOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint40"}],"name":"usedSignes","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"},{"name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_pluginAddress","type":"address"},{"name":"_signId","type":"uint40"},{"name":"_cutieId","type":"uint40"},{"name":"_value","type":"uint128"},{"name":"_parameter","type":"uint256"}],"name":"hashArguments","outputs":[{"name":"msgHash","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"index","type":"uint16"},{"name":"newCooldown","type":"uint32"}],"name":"setCooldown","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_momId","type":"uint40"},{"name":"_dadId","type":"uint40"}],"name":"breedWith","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"cuties","outputs":[{"name":"genes","type":"uint256"},{"name":"birthTime","type":"uint40"},{"name":"cooldownEndTime","type":"uint40"},{"name":"momId","type":"uint40"},{"name":"dadId","type":"uint40"},{"name":"cooldownIndex","type":"uint16"},{"name":"generation","type":"uint16"},{"name":"optional","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_cooldownEndTime","type":"uint40"}],"name":"changeCooldownEndTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"metadataUrlPrefix","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"infoUrl","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_cooldownIndex","type":"uint16"}],"name":"changeCooldownIndex","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"metadataUrlSuffix","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"addPlugin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_momId","type":"uint40"},{"name":"_dadId","type":"uint40"}],"name":"canBreedWith","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"promoCutieCreatedCount","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cutieId","type":"uint40"},{"name":"_genes","type":"uint256"}],"name":"changeGenes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setGeneMixerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"saleMarket","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getCutie","outputs":[{"name":"genes","type":"uint256"},{"name":"birthTime","type":"uint40"},{"name":"cooldownEndTime","type":"uint40"},{"name":"momId","type":"uint40"},{"name":"dadId","type":"uint40"},{"name":"cooldownIndex","type":"uint16"},{"name":"generation","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gen0Limit","outputs":[{"name":"","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"pluginsArray","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_dadId","type":"uint40"},{"name":"_momId","type":"uint40"}],"name":"bidOnBreedingAuction","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint40"}],"name":"getCooldownEndTime","outputs":[{"name":"cooldownEndTime","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_dadId","type":"uint40"}],"name":"approveBreeding","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_operator","type":"address"},{"indexed":false,"name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"momId","type":"uint40"},{"indexed":false,"name":"dadId","type":"uint40"},{"indexed":false,"name":"genes","type":"uint256"}],"name":"Birth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"oldValue","type":"uint256"},{"indexed":false,"name":"newValue","type":"uint256"}],"name":"GenesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"oldValue","type":"uint40"},{"indexed":false,"name":"newValue","type":"uint40"}],"name":"CooldownEndTimeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"ololdValue","type":"uint16"},{"indexed":false,"name":"newValue","type":"uint16"}],"name":"CooldownIndexChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"oldValue","type":"uint16"},{"indexed":false,"name":"newValue","type":"uint16"}],"name":"GenerationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cutieId","type":"uint40"},{"indexed":false,"name":"oldValue","type":"uint64"},{"indexed":false,"name":"newValue","type":"uint64"}],"name":"OptionalChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"signId","type":"uint40"},{"indexed":false,"name":"sender","type":"address"}],"name":"SignUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"signId","type":"uint40"}],"name":"MinSignSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"BreedingApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526101c06040519081016040908152603c82526078602083015261012c9082015261025860608201526107086080820152610e1060a0820152611c2060c082015261384060e082015261708061010082015261e100610120820152620151806101408201526202a3006101608201526205460061018082015262093a806101a08201526200009690600890600e62000592565b50600b805460a060020a60ff0219169055606060405190810160405280602281526020017f68747470733a2f2f626c6f636b636861696e6375746965732e636f2f6375746981526020017f652f000000000000000000000000000000000000000000000000000000000000815250600c9080516200011992916020019062000635565b5060408051908101604052600481527f2e737667000000000000000000000000000000000000000000000000000000006020820152600d9080516200016392916020019062000635565b506012805469ffffffffff0000000000191666c350000000000017605060020a64ffffffffff0219166b1388000000000000000000001790553415620001a857600080fd5b600b8054600a8054600160a060020a033316600160a060020a0319918216811790925560a060020a60ff02199092167401000000000000000000000000000000000000000017919091161790556200021660008080600019818064010000000062003f3e6200021d82021704565b5062000795565b6000806200022a620006b6565b600080600261ffff8a16049350600e8461ffff1611156200024a57600d93505b610100604051908101604090815289825264ffffffffff808916602084015260009183018290528d811660608401528c16608083015261ffff80871660a08401528b1660c083015260e082018190528054919450600191808301620002b08382620006fa565b6000928352602090922086916002020181518155602082015160018201805464ffffffffff191664ffffffffff9290921691909117905560408201518160010160056101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600101600a6101000a81548164ffffffffff021916908364ffffffffff160217905550608082015181600101600f6101000a81548164ffffffffff021916908364ffffffffff16021790555060a08201518160010160146101000a81548161ffff021916908361ffff16021790555060c08201518160010160166101000a81548161ffff021916908361ffff16021790555060e08201516001909101805467ffffffffffffffff92909216780100000000000000000000000000000000000000000000000002600160c060020a039092169190911790555003915064ffffffffff8211156200040457600080fd5b5080600160a060020a0387167f689df1285a731b7022f6ff5c63e6b7c58c891df5b4530f12b7be0ec9ad03ecdb8260608601518660800151875160405164ffffffffff9485168152928416602084015292166040808301919091526060820192909252608001905180910390a26200048d60008883640100000000620041c96200049b82021704565b9a9950505050505050505050565b600160a060020a0380831660008181526002602090815260408083208054600190810190915564ffffffffff8716845290915290208054600160a060020a03191690911790558316156200053e57600160a060020a0383166000908152600260209081526040808320805460001901905564ffffffffff84168352600482528083208054600160a060020a03199081169091556003909252909120805490911690555b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405164ffffffffff909116815260200160405180910390a3505050565b600283019183908215620006235791602002820160005b83821115620005ef57835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302620005a9565b8015620006215782816101000a81549063ffffffff0219169055600401602081600301049283019260010302620005ef565b505b50620006319291506200072e565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200067857805160ff1916838001178555620006a8565b82800160010185558215620006a8579182015b82811115620006a85782518255916020019190600101906200068b565b506200063192915062000755565b6101006040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a0820181905260c0820181905260e082015290565b815481835581811511620007295760020281600202836000526020600020918201910162000729919062000772565b505050565b6200075291905b808211156200063157805463ffffffff1916815560010162000735565b90565b6200075291905b808211156200063157600081556001016200075c565b6200075291905b8082111562000631576000808255600182015560020162000779565b614d1a80620007a56000396000f30060606040526004361061038b5763ffffffff60e060020a60003504166219a46b81146103e757806301ffc9a71461041457806305910b911461045d57806306fdde031461047a578063081812fc1461050457806308ba7ee714610536578063095ea7b31461056d5780630da2e0881461058f5780630dca63e8146105a257806310e9678b146105c157806313af4035146105de57806318160ddd146105fd5780631bbfce0e14610622578063210fcbf61461063457806323b872dd146106565780632917f1621461067e5780632f745c59146106b25780633e6d4e12146106d45780633f4ba83a1461070e57806340a92f0f1461072157806342842e0e1461073e578063430c73c51461076657806345c7a0921461078b5780634b12e643146107d55780634d6a813a146107f45780634f6ccce71461080757806350bc6bba1461081d578063551799131461084a5780635a390a5f146108675780635a3f88f01461087a5780635c975abb1461089e5780635f24f6fe146108b15780636352211e146108d05780636c295936146108e65780636ccbb0ab1461091057806370a0823114610923578063776247c41461094257806378a6c6d21461095557806379edfa7d146109825780638456cb5914610a15578063887e0c0714610a28578063889231c114610a495780638f9a57ef14610a5c57806394e50e7a14610a6f57806395d89b4114610ab9578063999d394714610acc5780639ad73f2014610ae95780639c91ae2014610b285780639d6fac6f14610b455780639de8302f14610b74578063a22cb46514610ba6578063a4d95b6414610bca578063a86ee74614610be9578063a9059cbb14610c12578063b1d9549714610c34578063b3ab15fb14610c51578063b5113bf614610c70578063b88d4fde14610c8d578063bdad811214610cc4578063c14e7a3f14610d02578063c30bc5ef14610d25578063c44f217414610d48578063c479142114610dbf578063c7047fa714610de2578063c87b56dd14610df5578063cf7e69f814610e0b578063d4d6d36614610e2f578063d8867fc814610e42578063d997933f14610e61578063e09ef83e14610e84578063e1af915d14610e97578063e205842414610eb7578063e33607da14610ed6578063e39bdfab14610ee9578063e515a4d114610f54578063e985e9c514610f67578063f3ca087314610f8c578063f3cb180514610fa2578063f6dfcff714610fba578063fb43b2a214610fd7575b60055433600160a060020a03908116911614806103b6575060065433600160a060020a039081169116145b806103da5750600160a060020a033381166000908152600e60205260409020541615155b15156103e557600080fd5b005b34156103f257600080fd5b6103fa611000565b60405164ffffffffff909116815260200160405180910390f35b341561041f57600080fd5b6104497bffffffffffffffffffffffffffffffffffffffffffffffffffffffff196004351661100d565b604051901515815260200160405180910390f35b341561046857600080fd5b61044964ffffffffff600435166110cf565b341561048557600080fd5b61048d6111a8565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156104c95780820151838201526020016104b1565b50505050905090810190601f1680156104f65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561050f57600080fd5b61051a6004356111ea565b604051600160a060020a03909116815260200160405180910390f35b341561054157600080fd5b6103e5600160a060020a036004358116906024358116906044358116906064358116906084351661129f565b341561057857600080fd5b6103e5600160a060020a0360043516602435611382565b341561059a57600080fd5b61051a611417565b34156105ad57600080fd5b61051a600160a060020a036004351661142f565b34156105cc57600080fd5b61051a64ffffffffff6004351661144a565b34156105e957600080fd5b6103e5600160a060020a0360043516611465565b341561060857600080fd5b6106106114b7565b60405190815260200160405180910390f35b61061064ffffffffff600435166114c1565b341561063f57600080fd5b6103e5600435600160a060020a03602435166116ad565b341561066157600080fd5b6103e5600160a060020a03600435811690602435166044356117ce565b341561068957600080fd5b61069b64ffffffffff60043516611843565b60405161ffff909116815260200160405180910390f35b34156106bd57600080fd5b610610600160a060020a0360043516602435611882565b34156106df57600080fd5b6106f164ffffffffff60043516611901565b60405167ffffffffffffffff909116815260200160405180910390f35b341561071957600080fd5b6103e5611946565b341561072c57600080fd5b6103e564ffffffffff600435166119b8565b341561074957600080fd5b6103e5600160a060020a0360043581169060243516604435611a63565b341561077157600080fd5b6103e5600160a060020a0360043581169060243516611af9565b341561079657600080fd5b610449600160a060020a036004351664ffffffffff602435811690604435166001608060020a036064351660843560ff60a4351660c43560e435611b42565b34156107e057600080fd5b61051a600160a060020a0360043516611b78565b34156107ff57600080fd5b610449611b93565b341561081257600080fd5b6106106004356111e7565b6103e564ffffffffff6004358116906001608060020a036024358116916044359091169060643516611b98565b341561085557600080fd5b61051a64ffffffffff60043516611c73565b341561087257600080fd5b61051a611c8e565b341561088557600080fd5b6103e564ffffffffff6004351661ffff60243516611c9d565b34156108a957600080fd5b610449611dae565b34156108bc57600080fd5b6103e5600160a060020a0360043516611dbe565b34156108db57600080fd5b61051a600435611e84565b34156108f157600080fd5b6103e564ffffffffff6004351667ffffffffffffffff60243516611ec7565b341561091b57600080fd5b6103e5611fef565b341561092e57600080fd5b610610600160a060020a0360043516612156565b341561094d57600080fd5b6103e5612171565b6103e564ffffffffff6004358116906001608060020a0360243581169160443590911690606435166123c9565b341561098d57600080fd5b6103e560046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506124a195505050505050565b3415610a2057600080fd5b6103e56124e3565b6103e5600160a060020a036004351664ffffffffff6024351660443561253b565b3415610a5457600080fd5b6103fa612649565b3415610a6757600080fd5b6103fa61265d565b3415610a7a57600080fd5b61051a600160a060020a036004351664ffffffffff602435811690604435166001608060020a036064351660843560ff60a4351660c43560e43561266a565b3415610ac457600080fd5b61048d6126eb565b3415610ad757600080fd5b61061064ffffffffff6004351661272c565b6103e5600160a060020a036004351664ffffffffff602435811690604435166001608060020a036064351660843560ff60a4351660c43560e43561275d565b3415610b3357600080fd5b61069b64ffffffffff6004351661294c565b3415610b5057600080fd5b610b5b60043561298b565b60405163ffffffff909116815260200160405180910390f35b3415610b7f57600080fd5b6103e56004356001608060020a036024358116906044351664ffffffffff606435166129b8565b3415610bb157600080fd5b6103e5600160a060020a03600435166024351515612af1565b3415610bd557600080fd5b6103e5600160a060020a0360043516612b9f565b3415610bf457600080fd5b6103e564ffffffffff60043516600160a060020a0360243516612d0c565b3415610c1d57600080fd5b6103e5600160a060020a0360043516602435612d79565b3415610c3f57600080fd5b61051a64ffffffffff60043516612dc3565b3415610c5c57600080fd5b6103e5600160a060020a0360043516612dde565b3415610c7b57600080fd5b61051a64ffffffffff60043516612e30565b3415610c9857600080fd5b6103e5600160a060020a0360048035821691602480359091169160443591606435908101910135612e4b565b3415610ccf57600080fd5b610610600160a060020a036004351664ffffffffff602435811690604435166001608060020a0360643516608435612fc2565b3415610d0d57600080fd5b6103e561ffff6004351663ffffffff6024351661305f565b3415610d3057600080fd5b6103fa64ffffffffff600435811690602435166130b9565b3415610d5357600080fd5b610d5e6004356132b3565b60405197885264ffffffffff9687166020890152948616604080890191909152938616606088015291909416608086015261ffff93841660a086015290921660c084015267ffffffffffffffff1660e0830152610100909101905180910390f35b3415610dca57600080fd5b6103e564ffffffffff60043581169060243516613334565b3415610ded57600080fd5b61048d613445565b3415610e0057600080fd5b61048d6004356134e3565b3415610e1657600080fd5b6103e564ffffffffff6004351661ffff6024351661361b565b3415610e3a57600080fd5b61048d61372a565b3415610e4d57600080fd5b6103e5600160a060020a0360043516613795565b3415610e6c57600080fd5b61044964ffffffffff60043581169060243516613881565b3415610e8f57600080fd5b6103fa613915565b3415610ea257600080fd5b6103e564ffffffffff6004351660243561393f565b3415610ec257600080fd5b6103e5600160a060020a03600435166139fb565b3415610ee157600080fd5b61051a613a9d565b3415610ef457600080fd5b610f0664ffffffffff60043516613aac565b60405196875264ffffffffff958616602088015293851660408088019190915292851660608701529316608085015261ffff92831660a0850152911660c083015260e0909101905180910390f35b3415610f5f57600080fd5b6103fa613b36565b3415610f7257600080fd5b610449600160a060020a0360043581169060243516613b4c565b3415610f9757600080fd5b61051a600435613b6e565b61061064ffffffffff60043581169060243516613b96565b3415610fc557600080fd5b6103fa64ffffffffff60043516613c65565b3415610fe257600080fd5b6103e5600160a060020a036004351664ffffffffff60243516613ca9565b60125464ffffffffff1681565b60007f6466353c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19831614806110c957506040517f737570706f727473496e74657266616365286279746573342900000000000000815260190160405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92915050565b60008064ffffffffff83168190116110e657600080fd5b6000805464ffffffffff85169081106110fb57fe5b9060005260206000209060020201905061119f8161010060405190810160409081528254825260019092015464ffffffffff8082166020840152650100000000008204811693830193909352605060020a810483166060830152607860020a8104909216608082015260a060020a820461ffff90811660a083015260b060020a83041660c082015260c060020a90910467ffffffffffffffff1660e0820152613d4f565b91505b50919050565b6111b0614b79565b60408051908101604052601081527f426c6f636b636861696e43757469657300000000000000000000000000000000602082015290505b90565b6000808264ffffffffff81111561120057600080fd5b6112086114b7565b84111561121457600080fd5b64ffffffffff8416600090815260036020526040902054600160a060020a0316156112605764ffffffffff8416600090815260036020526040902054600160a060020a03169250611298565b64ffffffffff8416600090815260016020908152604080832054600160a060020a039081168085526007909352922054909116935091505b5050919050565b600a5433600160a060020a039081169116146112ba57600080fd5b600160a060020a03851615156112cf57600080fd5b600160a060020a03841615156112e457600080fd5b600160a060020a03831615156112f957600080fd5b600160a060020a038216151561130e57600080fd5b600160a060020a038116151561132357600080fd5b60158054600160a060020a0319908116600160a060020a03978816179091556016805482169587169590951790945560178054851693861693909317909255601880548416918516919091179055601980549092169216919091179055565b600b5460a060020a900460ff161561139957600080fd5b8064ffffffffff8111156113ac57600080fd5b6113b63383613d66565b15156113c157600080fd5b6113cb8284613d8d565b82600160a060020a031633600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405190815260200160405180910390a3505050565b601154650100000000009004600160a060020a031681565b600760205260009081526040902054600160a060020a031681565b600360205260009081526040902054600160a060020a031681565b600a5433600160a060020a0390811691161461148057600080fd5b600160a060020a038116151561149557600080fd5b600a8054600160a060020a031916600160a060020a0392909216919091179055565b6000546000190190565b6000806000806000600b60149054906101000a900460ff161515156114e557600080fd5b600160a060020a03331660009081526014602052604090205464ffffffffff161561150f57600080fd5b600654600160a060020a031663c170fd54348860405160e060020a63ffffffff851602815264ffffffffff90911660048201526024016000604051808303818588803b151561155d57600080fd5b5af1151561156a57600080fd5b5050505060008664ffffffffff1681548110151561158457fe5b9060005260206000209060020201935061159e8685613dc4565b64ffffffffff861660009081526004602052604090208054600160a060020a03191690556001840154601a935060b060020a900461ffff16839011156115f157600184015460b060020a900461ffff1692505b6013548454600160a060020a0390911690638d8b1b889060009060405160e060020a63ffffffff851602815260048101929092526024820152604401602060405180830381600087803b151561164657600080fd5b5af1151561165357600080fd5b505050604051805190509150611672600087856001018533600c613f3e565b33600160a060020a03166000908152601460205260409020805464ffffffffff191664ffffffffff9290921691821790559695505050505050565b600b5433600160a060020a03908116911614806116d85750600a5433600160a060020a039081169116145b15156116e357600080fd5b601254601154605060020a90910464ffffffffff908116790100000000000000000000000000000000000000000000000000909204161061172357600080fd5b600160a060020a03811615156117415750600b54600160a060020a03165b60118054600164ffffffffff790100000000000000000000000000000000000000000000000000808404821683018216027fffff0000000000ffffffffffffffffffffffffffffffffffffffffffffffffff909316929092179092556012805480831690930190911664ffffffffff199092169190911790556117c960008080858542613f3e565b505050565b600b5460a060020a900460ff16156117e557600080fd5b8064ffffffffff8111156117f857600080fd5b61180233836141a2565b8061181257506118128433613b4c565b151561181d57600080fd5b6118278483613d66565b151561183257600080fd5b61183d8484846141c9565b50505050565b60008060008364ffffffffff1681548110151561185c57fe5b600091825260209091206002909102016001015460a060020a900461ffff169392505050565b60008060015b6118906114b7565b64ffffffffff8216116118f45764ffffffffff8116600090815260016020526040902054600160a060020a03868116911614156118ec57838264ffffffffff1614156118e5578064ffffffffff1692506118f9565b6001909101905b600101611888565b600080fd5b505092915050565b60008060008364ffffffffff1681548110151561191a57fe5b600091825260209091206002909102016001015460c060020a900467ffffffffffffffff169392505050565b600a5433600160a060020a0390811691161461196157600080fd5b600b5460a060020a900460ff16151561197957600080fd5b601154650100000000009004600160a060020a03161561199857600080fd5b600b805474ff000000000000000000000000000000000000000019169055565b600b5433600160a060020a03908116911614806119e35750600a5433600160a060020a039081169116145b15156119ee57600080fd5b60115464ffffffffff90811690821611611a0757600080fd5b6011805464ffffffffff191664ffffffffff83811691909117918290557f61adbe79b14a8cd89d2e6b327307808e258e0e9a9da800e5c9c5cf5b20efc91c911660405164ffffffffff909116815260200160405180910390a150565b600b5460a060020a900460ff1615611a7a57600080fd5b8064ffffffffff811115611a8d57600080fd5b600160a060020a0383161515611aa257600080fd5b30600160a060020a031683600160a060020a031614151515611ac357600080fd5b600554600160a060020a0384811691161415611ade57600080fd5b600654600160a060020a03848116911614156117f857600080fd5b600a5433600160a060020a03908116911614611b1457600080fd5b60068054600160a060020a03938416600160a060020a03199182161790915560058054929093169116179055565b600b54600090600160a060020a0316611b618a8a8a8a8a8a8a8a61266a565b600160a060020a0316149998505050505050505050565b600e60205260009081526040902054600160a060020a031681565b600190565b600b5460a060020a900460ff1615611baf57600080fd5b611bb93385613d66565b1515611bc457600080fd5b600554611bdb908590600160a060020a0316613d8d565b600554600160a060020a031663c1d1faf334868686863360405160e060020a63ffffffff891602815264ffffffffff95861660048201526001608060020a0394851660248201529290931660448301529092166064830152600160a060020a0316608482015260a4016000604051808303818588803b1515611c5c57600080fd5b5af11515611c6957600080fd5b5050505050505050565b600460205260009081526040902054600160a060020a031681565b600654600160a060020a031681565b600b5460009060a060020a900460ff1615611cb757600080fd5b600160a060020a033381166000908152600e6020526040902054161515611cdd57600080fd5b6000805464ffffffffff8516908110611cf257fe5b60009182526020909120600290910201600181015490915061ffff83811660b060020a90920416146117c957600181015464ffffffffff8416907f253c1885cda0cc3462691396c0720f0b8d26a408db39c442f6cba580aa2bacbe9060b060020a900461ffff168460405161ffff9283168152911660208201526040908101905180910390a260018101805461ffff841660b060020a0277ffff0000000000000000000000000000000000000000000019909116179055505050565b600b5460a060020a900460ff1681565b600a5433600160a060020a03908116911614611dd957600080fd5b600b5460a060020a900460ff161515611df157600080fd5b600160a060020a0381161515611e0657600080fd5b6011805478ffffffffffffffffffffffffffffffffffffffff0000000000191665010000000000600160a060020a03848116820292909217928390557f450db8da6efbe9c22f2347f7c2021231df1fc58d3ae9a2fa75d39fa446199305920416604051600160a060020a03909116815260200160405180910390a150565b60008164ffffffffff811115611e9957600080fd5b64ffffffffff8316600090815260016020526040902054600160a060020a031691508115156111a257600080fd5b600b5460009060a060020a900460ff1615611ee157600080fd5b600160a060020a033381166000908152600e6020526040902054161515611f0757600080fd5b6000805464ffffffffff8516908110611f1c57fe5b60009182526020909120600290910201600181015490915067ffffffffffffffff83811660c060020a90920416146117c957600181015464ffffffffff8416907f0e4fadd6d53b262b076fce73fbf5c344b680a42f10f095326782f42d56b9beb29060c060020a900467ffffffffffffffff168460405167ffffffffffffffff9283168152911660208201526040908101905180910390a260018101805467ffffffffffffffff841660c060020a0277ffffffffffffffffffffffffffffffffffffffffffffffff909116179055505050565b600a5460009033600160a060020a039081169116148061201d5750600b5433600160a060020a039081169116145b151561202857600080fd5b600554600160a060020a031663776247c46040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561206757600080fd5b5af1151561207457600080fd5b5050600654600160a060020a0316905063776247c46040518163ffffffff1660e060020a028152600401600060405180830381600087803b15156120b757600080fd5b5af115156120c457600080fd5b505050600090505b600f5463ffffffff8216101561215357600f805463ffffffff83169081106120f057fe5b600091825260209091200154600160a060020a0316633ccfd60b6040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561213857600080fd5b5af1151561214557600080fd5b5050508060010190506120cc565b50565b600160a060020a031660009081526002602052604090205490565b60155460009033600160a060020a039081169116148061219f575060165433600160a060020a039081169116145b806121b8575060175433600160a060020a039081169116145b806121d1575060185433600160a060020a039081169116145b806121ea575060195433600160a060020a039081169116145b806122035750600a5433600160a060020a039081169116145b8061221c5750600b5433600160a060020a039081169116145b151561222757600080fd5b601554600160a060020a0316151561223e57600080fd5b601654600160a060020a0316151561225557600080fd5b601754600160a060020a0316151561226c57600080fd5b601854600160a060020a0316151561228357600080fd5b601954600160a060020a0316151561229a57600080fd5b50601554600160a060020a033081163191166108fc6103e860698402049081150290604051600060405180830381858888f1935050505015156122dc57600080fd5b601654600160a060020a03166103e8606983020480156108fc0290604051600060405180830381858888f19350505050151561231757600080fd5b601754600160a060020a03166103e8608c83020480156108fc0290604051600060405180830381858888f19350505050151561235257600080fd5b601854600160a060020a03166103e8608c83020480156108fc0290604051600060405180830381858888f19350505050151561238d57600080fd5b601954600160a060020a03166103e86101fe83020480156108fc0290604051600060405180830381858888f19350505050151561215357600080fd5b600b5460a060020a900460ff16156123e057600080fd5b6123ea3385613d66565b15156123f557600080fd5b6123fe846110cf565b151561240957600080fd5b600654612420908590600160a060020a0316613d8d565b600654600160a060020a031663c1d1faf334868686863360405160e060020a63ffffffff891602815264ffffffffff95861660048201526001608060020a0394851660248201529290931660448301529092166064830152600160a060020a0316608482015260a4016000604051808303818588803b1515611c5c57600080fd5b600a5433600160a060020a039081169116146124bc57600080fd5b600c8280516124cf929160200190614b8b565b50600d8180516117c9929160200190614b8b565b600a5433600160a060020a039081169116146124fe57600080fd5b600b5460a060020a900460ff161561251557600080fd5b600b805474ff0000000000000000000000000000000000000000191660a060020a179055565b600b5460a060020a900460ff161561255257600080fd5b64ffffffffff8216158061256b575061256b3383613d66565b151561257657600080fd5b600160a060020a038381166000908152600e602052604090205416151561259c57600080fd5b60008264ffffffffff1611156125b6576125b68284613d8d565b600160a060020a038084166000908152600e602052604090819020549091169063a055d4559034908590859033905160e060020a63ffffffff871602815264ffffffffff90931660048401526024830191909152600160a060020a031660448201526064016000604051808303818588803b151561263357600080fd5b5af1151561264057600080fd5b50505050505050565b601254605060020a900464ffffffffff1681565b60115464ffffffffff1681565b60008061267a8a8a8a8a8a612fc2565b90506001818686866040516000815260200160405260405193845260ff9092166020808501919091526040808501929092526060840192909252608090920191516020810390808403906000865af115156126d457600080fd5b5050602060405103519a9950505050505050505050565b6126f3614b79565b60408051908101604052600281527f42430000000000000000000000000000000000000000000000000000000000006020820152905090565b60008060008364ffffffffff1681548110151561274557fe5b60009182526020909120600290910201549392505050565b600b5460a060020a900460ff161561277457600080fd5b64ffffffffff8616158061278d575061278d3387613d66565b151561279857600080fd5b600160a060020a038881166000908152600e60205260409020541615156127be57600080fd5b64ffffffffff8716600090815260106020526040902054600160a060020a0316156127e857600080fd5b60115464ffffffffff908116908816101561280257600080fd5b346001608060020a038616111561281857600080fd5b6128288888888888888888611b42565b151561283357600080fd5b64ffffffffff8716600090815260106020526040908190208054600160a060020a03191633600160a060020a038116919091179091557f3b213e544d7183ac9b8a682aa7ad1d52d0b2c05c7aba9bf7bc025d7b3847b63e918991905164ffffffffff9092168252600160a060020a031660208201526040908101905180910390a1600160a060020a038089166000908152600e6020526040908190205490911690639652713e9087908990889033905160e060020a63ffffffff871602815264ffffffffff90931660048401526024830191909152600160a060020a031660448201526064016000604051808303818588803b151561293157600080fd5b5af1151561293e57600080fd5b505050505050505050505050565b60008060008364ffffffffff1681548110151561296557fe5b600091825260209091206002909102016001015460b060020a900461ffff169392505050565b600881600e811061299857fe5b60089182820401919006600402915054906101000a900463ffffffff1681565b600b5460009033600160a060020a03908116911614806129e65750600a5433600160a060020a039081169116145b15156129f157600080fd5b60125464ffffffffff6501000000000082048116911610612a1157600080fd5b612a216000806000883042613f3e565b600554909150612a3b908290600160a060020a0316613d8d565b600554600160a060020a031663c1d1faf3828686863060405160e060020a63ffffffff881602815264ffffffffff95861660048201526001608060020a0394851660248201529290931660448301529092166064830152600160a060020a0316608482015260a401600060405180830381600087803b1515612abc57600080fd5b5af11515612ac957600080fd5b50506012805464ffffffffff8082166001011664ffffffffff19909116179055505050505050565b8015612b2b5733600160a060020a0390811660009081526007602052604090208054600160a060020a031916918416919091179055612b52565b600160a060020a03331660009081526007602052604090208054600160a060020a03191690555b81600160a060020a031633600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051901515815260200160405180910390a35050565b600a5460009033600160a060020a03908116911614612bbd57600080fd5b600160a060020a038083166000908152600e6020526040908190205490911690631195236990518163ffffffff1660e060020a028152600401600060405180830381600087803b1515612c0f57600080fd5b5af11515612c1c57600080fd5b50505050600160a060020a0381166000908152600e602052604081208054600160a060020a03191690555b600f54811015612d085781600160a060020a0316600f82815481101515612c6a57fe5b600091825260209091200154600160a060020a03161415612cff57600f80546000198101908110612c9757fe5b600091825260209091200154600f8054600160a060020a039092169183908110612cbd57fe5b60009182526020909120018054600160a060020a031916600160a060020a0392909216919091179055600f805490612cf9906000198301614c09565b50612d03565b6001015b612c47565b5050565b600b5433600160a060020a0390811691161480612d375750600a5433600160a060020a039081169116145b1515612d4257600080fd5b600b5460a060020a900460ff1615612d5957600080fd5b612d633083613d66565b1515612d6e57600080fd5b612d083082846141c9565b600b5460a060020a900460ff1615612d9057600080fd5b8064ffffffffff811115612da357600080fd5b612dad3383613d66565b1515612db857600080fd5b6117c93384846141c9565b600160205260009081526040902054600160a060020a031681565b600a5433600160a060020a03908116911614612df957600080fd5b600160a060020a0381161515612e0e57600080fd5b600b8054600160a060020a031916600160a060020a0392909216919091179055565b601060205260009081526040902054600160a060020a031681565b600b5460a060020a900460ff1615612e6257600080fd5b8264ffffffffff811115612e7557600080fd5b600160a060020a0385161515612e8a57600080fd5b30600160a060020a031685600160a060020a031614151515612eab57600080fd5b600554600160a060020a0386811691161415612ec657600080fd5b600654600160a060020a0386811691161415612ee157600080fd5b612eeb33856141a2565b80612efb5750612efb8633613b4c565b1515612f0657600080fd5b612f108685613d66565b1515612f1b57600080fd5b612f268686866141c9565b84600160a060020a031663f0b9e5ba8786868660405160e060020a63ffffffff8716028152600160a060020a0385166004820190815260248201859052606060448301908152606483018490529091608401848480828437820191505095505050505050602060405180830381600087803b1515612fa357600080fd5b5af11515612fb057600080fd5b50505060405180515050505050505050565b60008585858585604051600160a060020a03959095166c0100000000000000000000000002855264ffffffffff9384167b0100000000000000000000000000000000000000000000000000000090810260148701529290931690910260198401526001608060020a031670010000000000000000000000000000000002601e830152602e820152604e016040518091039020905095945050505050565b600a5433600160a060020a0390811691161461307a57600080fd5b80600861ffff8416600e811061308c57fe5b600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055505050565b600b546000908190819060a060020a900460ff16156130d757600080fd5b6130e13386613d66565b15156130ec57600080fd5b6130f684866142bf565b151561310157600080fd5b6000805464ffffffffff871690811061311657fe5b906000526020600020906002020191506131ba8261010060405190810160409081528254825260019092015464ffffffffff8082166020840152650100000000008204811693830193909352605060020a810483166060830152607860020a8104909216608082015260a060020a820461ffff90811660a083015260b060020a83041660c082015260c060020a90910467ffffffffffffffff1660e0820152613d4f565b15156131c557600080fd5b6000805464ffffffffff86169081106131da57fe5b9060005260206000209060020201905061327e8161010060405190810160409081528254825260019092015464ffffffffff8082166020840152650100000000008204811693830193909352605060020a810483166060830152607860020a8104909216608082015260a060020a820461ffff90811660a083015260b060020a83041660c082015260c060020a90910467ffffffffffffffff1660e0820152613d4f565b151561328957600080fd5b61329582868387614328565b15156132a057600080fd5b6132aa858561457e565b95945050505050565b60008054829081106132c157fe5b60009182526020909120600290910201805460019091015490915064ffffffffff80821691650100000000008104821691605060020a8204811691607860020a81049091169061ffff60a060020a820481169160b060020a81049091169067ffffffffffffffff60c060020a9091041688565b600b5460009060a060020a900460ff161561334e57600080fd5b600160a060020a033381166000908152600e602052604090205416151561337457600080fd5b6000805464ffffffffff851690811061338957fe5b60009182526020909120600290910201600181015490915064ffffffffff8381166501000000000090920416146117c957600181015464ffffffffff808516917fd82e4273ca71de0024aece65309941bf92bf97c355ca08ed03de5d18c09b38189165010000000000909104168460405164ffffffffff9283168152911660208201526040908101905180910390a260018101805464ffffffffff8416650100000000000269ffffffffff000000000019909116179055505050565b600c8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156134db5780601f106134b0576101008083540402835291602001916134db565b820191906000526020600020905b8154815290600101906020018083116134be57829003601f168201915b505050505081565b6134eb614b79565b6110c9613591600c8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135875780601f1061355c57610100808354040283529160200191613587565b820191906000526020600020905b81548152906001019060200180831161356a57829003601f168201915b505050505061472e565b6136166135a36135a86135a387614756565b61472e565b613616600d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135875780601f1061355c57610100808354040283529160200191613587565b614a6c565b600b5460009060a060020a900460ff161561363557600080fd5b600160a060020a033381166000908152600e602052604090205416151561365b57600080fd5b6000805464ffffffffff851690811061367057fe5b60009182526020909120600290910201600181015490915061ffff83811660a060020a90920416146117c957600181015464ffffffffff8416907f0b95606a57983e48ae4c9631df8d2e17766c3017421531c1004a4882888ef2749060a060020a900461ffff168460405161ffff9283168152911660208201526040908101905180910390a260018101805461ffff841660a060020a0275ffff000000000000000000000000000000000000000019909116179055505050565b600d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156134db5780601f106134b0576101008083540402835291602001916134db565b600a5460009033600160a060020a039081169116146137b357600080fd5b5080600160a060020a0381166394a892336040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156137f257600080fd5b5af115156137ff57600080fd5b50505060405180519050151561381457600080fd5b600160a060020a038281166000908152600e602052604090208054600160a060020a031916918316919091179055600f8054600181016138548382614c09565b5060009182526020909120018054600160a060020a031916600160a060020a039290921691909117905550565b6000808064ffffffffff851681901161389957600080fd5b600064ffffffffff8516116138ad57600080fd5b6000805464ffffffffff87169081106138c257fe5b9060005260206000209060020201915060008464ffffffffff168154811015156138e857fe5b9060005260206000209060020201905061390482868387614328565b80156132aa57506132aa84866142bf565b601154790100000000000000000000000000000000000000000000000000900464ffffffffff1681565b600b5460009060a060020a900460ff161561395957600080fd5b600160a060020a033381166000908152600e602052604090205416151561397f57600080fd5b6000805464ffffffffff851690811061399457fe5b906000526020600020906002020190508181600001541415156117c9578264ffffffffff167fbecce9a2928a6d9bbe3755bd02387af9dbe05d1ecfa05028c33d7245e24a860c82600001548460405191825260208201526040908101905180910390a25550565b600a5460009033600160a060020a03908116911614613a1957600080fd5b5080600160a060020a0381166390da7c3c6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515613a5857600080fd5b5af11515613a6557600080fd5b505050604051805190501515613a7a57600080fd5b60138054600160a060020a031916600160a060020a039290921691909117905550565b600554600160a060020a031681565b60008060008060008060008060008964ffffffffff16815481101515613ace57fe5b600091825260209091206002909102018054600190910154909a64ffffffffff8083169b5065010000000000830481169a50605060020a830481169950607860020a830416975061ffff60a060020a83048116975060b060020a909204909116945092505050565b60125465010000000000900464ffffffffff1681565b600160a060020a03918216600090815260076020526040902054821691161490565b600f805482908110613b7c57fe5b600091825260209091200154600160a060020a0316905081565b600b5460009060a060020a900460ff1615613bb057600080fd5b613bba3383613d66565b1515613bc557600080fd5b613bce826110cf565b1515613bd957600080fd5b613be38284614ad8565b1515613bee57600080fd5b600654600160a060020a031663c170fd54348560405160e060020a63ffffffff851602815264ffffffffff90911660048201526024016000604051808303818588803b1515613c3c57600080fd5b5af11515613c4957600080fd5b50505050613c57828461457e565b64ffffffffff169392505050565b60008060008364ffffffffff16815481101515613c7e57fe5b600091825260209091206002909102016001015465010000000000900464ffffffffff169392505050565b600b5460a060020a900460ff1615613cc057600080fd5b613cca3382613d66565b1515613cd557600080fd5b64ffffffffff8116600090815260046020526040908190208054600160a060020a031916600160a060020a038581169182179092559133909116907fe53f1ce10d7caafaafcb8d2857c06db87da891294ba914f8436e31b905e1e0e79084905164ffffffffff909116815260200160405180910390a35050565b600042826040015164ffffffffff16111592915050565b64ffffffffff16600090815260016020526040902054600160a060020a0391821691161490565b64ffffffffff9190911660009081526003602052604090208054600160a060020a031916600160a060020a03909216919091179055565b600181015460a060020a900461ffff166000600882600e8110613de357fe5b600891828204019190066004029054906101000a900463ffffffff1663ffffffff1642018360010160056101000a81548164ffffffffff021916908364ffffffffff1602179055508364ffffffffff167fd82e4273ca71de0024aece65309941bf92bf97c355ca08ed03de5d18c09b3818838560010160059054906101000a900464ffffffffff1660405164ffffffffff9283168152911660208201526040908101905180910390a2600180840154600e61ffff60a060020a909204821690920116101561183d57506001808301805461ffff60a060020a80830482169485018216810275ffff000000000000000000000000000000000000000019909316929092179283905564ffffffffff8716927f0b95606a57983e48ae4c9631df8d2e17766c3017421531c1004a4882888ef27492859291041660405161ffff9283168152911660208201526040908101905180910390a250505050565b600080613f49614c2d565b600080600261ffff8a16049350600e8461ffff161115613f6857600d93505b610100604051908101604090815289825264ffffffffff808916602084015260009183018290528d811660608401528c16608083015261ffff80871660a08401528b1660c083015260e082018190528054919450600191808301613fcc8382614c71565b6000928352602090922086916002020181518155602082015160018201805464ffffffffff191664ffffffffff9290921691909117905560408201518160010160056101000a81548164ffffffffff021916908364ffffffffff160217905550606082015181600101600a6101000a81548164ffffffffff021916908364ffffffffff160217905550608082015181600101600f6101000a81548164ffffffffff021916908364ffffffffff16021790555060a08201518160010160146101000a81548161ffff021916908361ffff16021790555060c08201518160010160166101000a81548161ffff021916908361ffff16021790555060e08201516001909101805467ffffffffffffffff9290921660c060020a0277ffffffffffffffffffffffffffffffffffffffffffffffff9092169190911790555003915064ffffffffff82111561411b57600080fd5b5080600160a060020a0387167f689df1285a731b7022f6ff5c63e6b7c58c891df5b4530f12b7be0ec9ad03ecdb8260608601518660800151875160405164ffffffffff9485168152928416602084015292166040808301919091526060820192909252608001905180910390a2614194600088836141c9565b9a9950505050505050505050565b64ffffffffff16600090815260036020526040902054600160a060020a0391821691161490565b600160a060020a0380831660008181526002602090815260408083208054600190810190915564ffffffffff8716845290915290208054600160a060020a031916909117905583161561426b57600160a060020a0383166000908152600260209081526040808320805460001901905564ffffffffff84168352600482528083208054600160a060020a03199081169091556003909252909120805490911690555b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405164ffffffffff909116815260200160405180910390a3505050565b64ffffffffff8082166000908152600160205260408082205492851682528120549091600160a060020a039081169116808214806132aa575064ffffffffff8516600090815260046020526040902054600160a060020a03908116908316149250505092915050565b60008364ffffffffff168264ffffffffff16141561434857506000614576565b600185015464ffffffffff838116605060020a90920416141561436d57506000614576565b600185015464ffffffffff838116607860020a90920416141561439257506000614576565b600183015464ffffffffff858116605060020a9092041614156143b757506000614576565b600183015464ffffffffff858116607860020a9092041614156143dc57506000614576565b6001830154605060020a900464ffffffffff1615156143fd57506001614576565b6001850154605060020a900464ffffffffff16151561441e57506001614576565b60018581015490840154605060020a9182900464ffffffffff9081169290910416141561444d57506000614576565b60018086015490840154605060020a900464ffffffffff908116607860020a90920416141561447e57506000614576565b60018086015490840154607860020a900464ffffffffff908116605060020a9092041614156144af57506000614576565b60018581015490840154607860020a9182900464ffffffffff908116929091041614156144de57506000614576565b60135485548454600160a060020a039092169163c868a569918791869060405160e060020a63ffffffff871602815264ffffffffff94851660048201526024810193909352921660448201526064810191909152608401602060405180830381600087803b151561454e57600080fd5b5af1151561455b57600080fd5b505050604051805190501561457257506001614576565b5060005b949350505050565b6000806000806000806000808864ffffffffff1681548110151561459e57fe5b9060005260206000209060020201955060008964ffffffffff168154811015156145c457fe5b906000526020600020906002020194506145de8887613dc4565b6145e88986613dc4565b64ffffffffff808a166000908152600460205260408082208054600160a060020a03199081169091558b84168352912080549091169055600186015416151561463057600080fd5b6001808601549087015461ffff60b060020a9283900481169650919004168490111561466957600186015460b060020a900461ffff1693505b60135485548754600160a060020a0390921691638d8b1b88919060405160e060020a63ffffffff851602815260048101929092526024820152604401602060405180830381600087803b15156146be57600080fd5b5af115156146cb57600080fd5b505050604051805164ffffffffff808c1660009081526001602081905260409091205489820154939750600160a060020a0316955061472193508c928c9291890191889188916501000000000090910416613f3e565b9998505050505050505050565b614736614c9d565b602082016040805190810160405280845181526020019190915292915050565b61475e614b79565b614766614b79565b6000614770614b79565b60206040519081016040526000815292505b600a8086049506915060206040519081016040526000815290508115156147de5760408051908101604052600181527f300000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600114156148225760408051908101604052600181527f310000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600214156148665760408051908101604052600181527f320000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600314156148aa5760408051908101604052600181527f330000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600414156148ee5760408051908101604052600181527f340000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600514156149325760408051908101604052600181527f350000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600614156149765760408051908101604052600181527f360000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600714156149ba5760408051908101604052600181527f370000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b81600814156149fe5760408051908101604052600181527f380000000000000000000000000000000000000000000000000000000000000060208201529050614a3e565b8160091415614a3e5760408051908101604052600181527f3900000000000000000000000000000000000000000000000000000000000000602082015290505b614a53614a4a8261472e565b6136168561472e565b92506000851115614a6357614782565b50909392505050565b614a74614b79565b614a7c614b79565b60008351855101604051805910614a905750595b818152601f19601f830116810160200160405290509150602082019050614abd8186602001518751614b34565b614ad08551820185602001518651614b34565b509392505050565b6000806000808564ffffffffff16815481101515614af257fe5b9060005260206000209060020201915060008464ffffffffff16815481101515614b1857fe5b906000526020600020906002020190506132aa82868387614328565b60005b60208210614b5a5782518452602084019350602083019250602082039150614b37565b6001826020036101000a03905080198351168185511617909352505050565b60206040519081016040526000815290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614bcc57805160ff1916838001178555614bf9565b82800160010185558215614bf9579182015b82811115614bf9578251825591602001919060010190614bde565b50614c05929150614cb4565b5090565b8154818355818115116117c9576000838152602090206117c9918101908301614cb4565b6101006040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a0820181905260c0820181905260e082015290565b8154818355818115116117c9576002028160020283600052602060002091820191016117c99190614cce565b604080519081016040526000808252602082015290565b6111e791905b80821115614c055760008155600101614cba565b6111e791905b80821115614c055760008082556001820155600201614cd45600a165627a7a723058205532f58239bfd3823ed7d5056b3797b3dec0fd93f47c839066c9a4cb36ad837f0029

   Swarm Source:
bzzr://5532f58239bfd3823ed7d5056b3797b3dec0fd93f47c839066c9a4cb36ad837f

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward