Contract Overview
Balance: 0.453999999999999979 Ether
Ether Value: $91.28 (@ $201.05/ETH)
Transactions: 2 txns
[ 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
0x3999c3d5b37d209266558101aa74aaf4fec403f02495dcb49775bf4ba1f959dc654039320 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x37404cb614c8bd1fd3c45f777db1d0775f2c99570eaa273800784299b0faffca65401121 hr 25 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x8d6a7d9056ca7f09439cd3e4d64f13f5e610544f5a1bd8aa10386ffb80d5aa4665383938 hrs 13 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x73c1e59b274bea7bcb62cf53e500c1791a14b5f3690946230db67db8c9c9836a653765011 hrs 5 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.008999999999999999 Ether
0x80e0238d2ec5e34c9341f64551dfd0fc9130b3702642ad3d30c555b995888364653710013 hrs 16 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x894eb4265126d24b9a8c14715d6c250313a4a7a119ba34d31dc98dd14220d3e3653623116 hrs 38 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x7c82086fb69145a7365ff930251568d5ed3b335d49f50335797ff525cf8cd170653611517 hrs 5 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.008999999999999999 Ether
0xbc3edba9f982b14156840006e37a8434c17ba0b30698e552d0f78f1e6c59c1f5653584518 hrs 11 mins ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0xb347e64d3d81cd70dc9e665d0f03d5c9ae19b9a05fa530487cdd09015c48109e65296771 day 18 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x6ec27b46379b186bf2fa4bcc090d14bb7d9860db92ddca715c009741d66812a465296611 day 18 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x9fc58f4201239d57caf96e310682d6f516c1dbc71efc74ebfa21092cc1a4ceab65284921 day 22 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.008999999999999999 Ether
0x3f3aafe14c9601131a2ea065ce7c2dbf12aab762db1018c5014440cab2ff106165282531 day 23 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0xcc68e8a71f67c0f2c8259ca03756c7cac801b4686b222066b712c7a0b414456065263372 days 7 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0xe60f62b2149a5b7b9d2bddbf1613242d2a0e8afb2df14241b93f0745dcb3168b65237332 days 17 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.008999999999999999 Ether
0xf4a0553916bc9d2c390b84a7fc553ec3def1046c061ad1f8acbacbafb541c61865234192 days 18 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x4433497475c87acb946811c2f0d54badc609a7a0477c3790c6b19f46ea6f7a7b65233402 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x091a7ef8df8de69d3923fc4f8278b73d05e5951b54766ac7a8a1f010f2bd232465233042 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0xac1b6375dfffc23726b5dc503af9513462af0f9e7e1e591243a69c7903c8850d65232902 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0xffc1e9fce8ef1d77598734f425ad182303175b735278a14e28013381b8f0432e65232822 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.008999999999999999 Ether
0xb218209b5f19f87f87452168c1eb661781dce2e2bbd9e932ba754ff2fcc77ad165232742 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x069fd6d0845b33256423743e88baec7445f4971c49aec472d333c7bea98628ba65232522 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x06d68e5538ea1cb2f484602895c3f543c0bf8a0b52c46cea8896db34d44ef43e65232282 days 19 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x3323cc1f77bdd4d7312ddfdfdbd3ba27fd97ebf857a5f94109c70fbdcc65bd7765229112 days 20 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x334f7ec468a77fc614d077a393151c811b210399db20d26a33c9d9427c4a851465229092 days 20 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
0x2059f18b92d6f0bfc6933ea85901c36fc797aef7221101c4877841b2cee1a8db65227812 days 21 hrs ago0xd73be539d6b2076bab83ca6ba62dfe189abc6bbe0x19fdd6eeccdf4bc30f363f63af44981c1f6a75c40.005 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: BuyEnergy
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}



/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}

pragma solidity ^0.4.24;

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

pragma solidity ^0.4.24;

pragma solidity ^0.4.24;

/// @title BlockchainCuties: Collectible and breedable cuties on the Ethereum blockchain.
/// @author https://BlockChainArchitect.io
/// @dev This is the BlockchainCuties configuration. It can be changed redeploying another version.
contract ConfigInterface
{
    function isConfig() public pure returns (bool);

    function getCooldownIndexFromGeneration(uint16 _generation) public view returns (uint16);
    
    function getCooldownEndTimeFromIndex(uint16 _cooldownIndex) public view returns (uint40);

    function getCooldownIndexCount() public view returns (uint256);
    
    function getBabyGen(uint16 _momGen, uint16 _dadGen) public pure returns (uint16);

    function getTutorialBabyGen(uint16 _dadGen) public pure returns (uint16);

    function getBreedingFee(uint40 _momId, uint40 _dadId) public view returns (uint256);
}


contract CutieCoreInterface
{
    function isCutieCore() pure public returns (bool);

    ConfigInterface public config;

    function transferFrom(address _from, address _to, uint256 _cutieId) external;
    function transfer(address _to, uint256 _cutieId) external;

    function ownerOf(uint256 _cutieId)
        external
        view
        returns (address owner);

    function getCutie(uint40 _id)
        external
        view
        returns (
        uint256 genes,
        uint40 birthTime,
        uint40 cooldownEndTime,
        uint40 momId,
        uint40 dadId,
        uint16 cooldownIndex,
        uint16 generation
    );

    function getGenes(uint40 _id)
        public
        view
        returns (
        uint256 genes
    );


    function getCooldownEndTime(uint40 _id)
        public
        view
        returns (
        uint40 cooldownEndTime
    );

    function getCooldownIndex(uint40 _id)
        public
        view
        returns (
        uint16 cooldownIndex
    );


    function getGeneration(uint40 _id)
        public
        view
        returns (
        uint16 generation
    );

    function getOptional(uint40 _id)
        public
        view
        returns (
        uint64 optional
    );


    function changeGenes(
        uint40 _cutieId,
        uint256 _genes)
        public;

    function changeCooldownEndTime(
        uint40 _cutieId,
        uint40 _cooldownEndTime)
        public;

    function changeCooldownIndex(
        uint40 _cutieId,
        uint16 _cooldownIndex)
        public;

    function changeOptional(
        uint40 _cutieId,
        uint64 _optional)
        public;

    function changeGeneration(
        uint40 _cutieId,
        uint16 _generation)
        public;

    function createSaleAuction(
        uint40 _cutieId,
        uint128 _startPrice,
        uint128 _endPrice,
        uint40 _duration
    )
    public;

    function getApproved(uint256 _tokenId) external returns (address);
}


/// @author https://BlockChainArchitect.iocontract Bank is CutiePluginBase
contract CutiePluginBase is PluginInterface, Pausable
{
    function isPluginInterface() public pure returns (bool)
    {
        return true;
    }

    // Reference to contract tracking NFT ownership
    CutieCoreInterface public coreContract;

    // Cut owner takes on each auction, measured in basis points (1/100 of a percent).
    // Values 0-10,000 map to 0%-100%
    uint16 public ownerFee;

    // @dev Throws if called by any account other than the owner.
    modifier onlyCore() {
        require(msg.sender == address(coreContract));
        _;
    }

    /// @dev Constructor creates a reference to the NFT ownership contract
    ///  and verifies the owner cut is in the valid range.
    /// @param _coreAddress - address of a deployed contract implementing
    ///  the Nonfungible Interface.
    /// @param _fee - percent cut the owner takes on each auction, must be
    ///  between 0-10,000.
    function setup(address _coreAddress, uint16 _fee) public {
        require(_fee <= 10000);
        require(msg.sender == owner);
        ownerFee = _fee;
        
        CutieCoreInterface candidateContract = CutieCoreInterface(_coreAddress);
        require(candidateContract.isCutieCore());
        coreContract = candidateContract;
    }

    // @dev Set the owner's fee.
    //  @param fee should be between 0-10,000.
    function setFee(uint16 _fee) public
    {
        require(_fee <= 10000);
        require(msg.sender == owner);

        ownerFee = _fee;
    }

    /// @dev Returns true if the claimant owns the token.
    /// @param _claimant - Address claiming to own the token.
    /// @param _cutieId - ID of token whose ownership to verify.
    function _isOwner(address _claimant, uint40 _cutieId) internal view returns (bool) {
        return (coreContract.ownerOf(_cutieId) == _claimant);
    }

    /// @dev Escrows the NFT, assigning ownership to this contract.
    /// Throws if the escrow fails.
    /// @param _owner - Current owner address of token to escrow.
    /// @param _cutieId - ID of token whose approval to verify.
    function _escrow(address _owner, uint40 _cutieId) internal {
        // it will throw if transfer fails
        coreContract.transferFrom(_owner, this, _cutieId);
    }

    /// @dev Transfers an NFT owned by this contract to another address.
    /// Returns true if the transfer succeeds.
    /// @param _receiver - Address to transfer NFT to.
    /// @param _cutieId - ID of token to transfer.
    function _transfer(address _receiver, uint40 _cutieId) internal {
        // it will throw if transfer fails
        coreContract.transfer(_receiver, _cutieId);
    }

    /// @dev Computes owner's cut of a sale.
    /// @param _price - Sale price of NFT.
    function _computeFee(uint128 _price) internal view returns (uint128) {
        // NOTE: We don't use SafeMath (or similar) in this function because
        //  all of our entry functions carefully cap the maximum values for
        //  currency (at 128-bits), and ownerFee <= 10000 (see the require()
        //  statement in the ClockAuction constructor). The result of this
        //  function is always guaranteed to be <= _price.
        return _price * ownerFee / 10000;
    }

    function withdraw() public
    {
        require(
            msg.sender == owner ||
            msg.sender == address(coreContract)
        );
        if (address(this).balance > 0)
        {
            address(coreContract).transfer(address(this).balance);
        }
    }

    function onRemove() public onlyCore
    {
        withdraw();
    }

    function run(
        uint40,
        uint256,
        address
    ) 
        public
        payable
        onlyCore
    {
        revert();
    }
}


/// @dev Receives payments for payd features from players for Blockchain Cuties
/// @author https://BlockChainArchitect.io
contract BuyEnergy is CutiePluginBase
{
    function run(
        uint40,
        uint256,
        address
    )
        public
        payable
        onlyCore
    {
        revert();
    }

    function runSigned(uint40, uint256, address)
        external
        payable
        onlyCore
    {
        // just accept payments
    }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"onRemove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","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":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fee","type":"uint16"}],"name":"setFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isPluginInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"","type":"uint40"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"runSigned","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"","type":"uint40"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"run","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"ownerFee","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_coreAddress","type":"address"},{"name":"_fee","type":"uint16"}],"name":"setup","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"coreContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405260008054600160a860020a031916331790556106a7806100256000396000f3006080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631195236981146100d45780633ccfd60b146100eb5780633f4ba83a146101005780635c975abb146101155780638456cb591461013e5780638da5cb5b146101535780638e0055531461018457806394a89233146101a05780639652713e146101b5578063a055d455146101d6578063d5b2a01a146101f7578063e410a0c614610223578063e80db5db1461024b578063f2fde38b14610260575b600080fd5b3480156100e057600080fd5b506100e9610281565b005b3480156100f757600080fd5b506100e96102a2565b34801561010c57600080fd5b506100e9610317565b34801561012157600080fd5b5061012a61038d565b604080519115158252519081900360200190f35b34801561014a57600080fd5b506100e961039d565b34801561015f57600080fd5b50610168610418565b60408051600160a060020a039092168252519081900360200190f35b34801561019057600080fd5b506100e961ffff60043516610427565b3480156101ac57600080fd5b5061012a610484565b6100e964ffffffffff60043516602435600160a060020a0360443516610489565b6100e964ffffffffff60043516602435600160a060020a03604435166104a5565b34801561020357600080fd5b5061020c6104bc565b6040805161ffff9092168252519081900360200190f35b34801561022f57600080fd5b506100e9600160a060020a036004351661ffff602435166104cd565b34801561025757600080fd5b506101686105d8565b34801561026c57600080fd5b506100e9600160a060020a03600435166105e7565b600154600160a060020a0316331461029857600080fd5b6102a06102a2565b565b600054600160a060020a03163314806102c55750600154600160a060020a031633145b15156102d057600080fd5b6000303111156102a057600154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610314573d6000803e3d6000fd5b50565b600054600160a060020a0316331461032e57600080fd5b60005460a060020a900460ff16151561034657600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005460a060020a900460ff1681565b600054600160a060020a031633146103b457600080fd5b60005460a060020a900460ff16156103cb57600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b61271061ffff8216111561043a57600080fd5b600054600160a060020a0316331461045157600080fd5b6001805461ffff90921660a060020a0275ffff000000000000000000000000000000000000000019909216919091179055565b600190565b600154600160a060020a031633146104a057600080fd5b505050565b600154600160a060020a031633146100cf57600080fd5b60015460a060020a900461ffff1681565b600061271061ffff831611156104e257600080fd5b600054600160a060020a031633146104f957600080fd5b81600160146101000a81548161ffff021916908361ffff16021790555082905080600160a060020a0316634d6a813a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561057057600080fd5b505af1158015610584573d6000803e3d6000fd5b505050506040513d602081101561059a57600080fd5b505115156105a757600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555050565b600154600160a060020a031681565b600054600160a060020a031633146105fe57600080fd5b600160a060020a038116151561061357600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820559bb4a9c430b3864b366ba9d594d3b7b9b3abd959e6caae51e428beb57c35ad0029

   Swarm Source:
bzzr://559bb4a9c430b3864b366ba9d594d3b7b9b3abd959e6caae51e428beb57c35ad

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.