Contract 0x822209512121e1c71cc5e97baece1d6cef250268

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0xaa15af3f14bfd27cfccee00a9b26ba73b38c2f5689df14b08adb5bcc2c34cd09473265679 days 10 hrs ago0xcbec6605cc9a9e5d6258688eef1ba70ef60c2206 IN  0x822209512121e1c71cc5e97baece1d6cef2502680.3 Ether0.000021046
0xec06c57571a2ac5b05d8b5b42b4349e5115270461aaaf2ef2b793af466a378e6473264479 days 10 hrs ago0xcbec6605cc9a9e5d6258688eef1ba70ef60c2206 IN  0x822209512121e1c71cc5e97baece1d6cef2502680 Ether0.000027838
0x80b9afb3eb815b1401a6afe971ee5f6159878163a3b6ffe00d4b82c5f34354e34230894156 days 14 hrs ago0xd41826e9e18037ebe603a292f32a32c32328e6a7 IN  0x822209512121e1c71cc5e97baece1d6cef2502680 Ether0.00028525
0x52c1a448c4eabbcf2fa2d0debadce745040500e0b5ed37302a34071d444ee8244156013169 days 11 hrs ago0xd41826e9e18037ebe603a292f32a32c32328e6a7 IN  0x822209512121e1c71cc5e97baece1d6cef2502680 Ether0.00086727
0x0809b05e9668c42e1a5edaec66c0408d7117c69f9964dfdc171c8910761716534130398173 days 10 hrs ago0xd41826e9e18037ebe603a292f32a32c32328e6a7 IN  0x822209512121e1c71cc5e97baece1d6cef2502680 Ether0.000158234
0x3e992cdaaf6e6dc01def351c29090c476bdcd5ca67f0b60be80dfdf57c01f5054129473173 days 13 hrs ago0xd41826e9e18037ebe603a292f32a32c32328e6a7 IN  0x822209512121e1c71cc5e97baece1d6cef2502680 Ether0.0052047
0x7efd818035dd4680a633fe1d84fa7af233f61340ab8e165853447c8d597f580c4129457173 days 13 hrs ago0xd41826e9e18037ebe603a292f32a32c32328e6a7 IN  Contract Creation0 Ether0.03290835
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x29bac9f74fbbc55fdd529e01d0adba72c82968aee773dd47f439c98a7d2f532752080625 days 13 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x29bac9f74fbbc55fdd529e01d0adba72c82968aee773dd47f439c98a7d2f532752080625 days 13 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x29bac9f74fbbc55fdd529e01d0adba72c82968aee773dd47f439c98a7d2f532752080625 days 13 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x29bac9f74fbbc55fdd529e01d0adba72c82968aee773dd47f439c98a7d2f532752080625 days 13 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xde576050c38822b51d49929cfef00b99cb4d6c5bb9c55e55248472a98f91fe1b52080085 days 14 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xde576050c38822b51d49929cfef00b99cb4d6c5bb9c55e55248472a98f91fe1b52080085 days 14 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xde576050c38822b51d49929cfef00b99cb4d6c5bb9c55e55248472a98f91fe1b52080085 days 14 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xde576050c38822b51d49929cfef00b99cb4d6c5bb9c55e55248472a98f91fe1b52080085 days 14 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x5bd560d956204f3624633842f4848c965b04891a9548742a815eed4ae3ab7fef51952977 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x5bd560d956204f3624633842f4848c965b04891a9548742a815eed4ae3ab7fef51952977 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x5bd560d956204f3624633842f4848c965b04891a9548742a815eed4ae3ab7fef51952977 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x5bd560d956204f3624633842f4848c965b04891a9548742a815eed4ae3ab7fef51952977 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x9fea735d22c7074c940e81c8a12e168bc46a30fe65dee79435471143558e720551894208 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x9fea735d22c7074c940e81c8a12e168bc46a30fe65dee79435471143558e720551894208 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x9fea735d22c7074c940e81c8a12e168bc46a30fe65dee79435471143558e720551894208 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x9fea735d22c7074c940e81c8a12e168bc46a30fe65dee79435471143558e720551894208 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xfc6967c4917542d304c5bd82dc25f37e64b431e888e9bb8f6a81f24784ade7d551825839 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xfc6967c4917542d304c5bd82dc25f37e64b431e888e9bb8f6a81f24784ade7d551825839 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xfc6967c4917542d304c5bd82dc25f37e64b431e888e9bb8f6a81f24784ade7d551825839 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x14e6302b84d6992a8cbb343805dbd3434bfb58dc2477080fdd7f4b48bbeab26e517630310 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x14e6302b84d6992a8cbb343805dbd3434bfb58dc2477080fdd7f4b48bbeab26e517630310 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0x14e6302b84d6992a8cbb343805dbd3434bfb58dc2477080fdd7f4b48bbeab26e517630310 days 7 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xbbc18c7222e24e609e29494ce8a83f1659371cbdb75e82f719245abe983a2124517599710 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xbbc18c7222e24e609e29494ce8a83f1659371cbdb75e82f719245abe983a2124517599710 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
0xbbc18c7222e24e609e29494ce8a83f1659371cbdb75e82f719245abe983a2124517599710 days 8 hrs ago0xc180d882cbfe2d38b38915bea0a53fe55473daec0x822209512121e1c71cc5e97baece1d6cef2502680 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0xe59d15df30bb25ed333b1e62682895b4e60a9dc8

Contract Name:
PhenomenonsContract

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.23;

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @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 OwnershipRenounced(address indexed previousOwner);
  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 relinquish control of the contract.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

  /**
   * @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 {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

// File: contracts/PhenomenonsContract.sol

contract PhenomenonsContract is Ownable {

    struct Phenomenon {
        string mnemonic;
        string name;
        string description;
        string category;
        uint8 valueDecimalPlaces;
        bool enabled;
        bool exists;
    }

    mapping(bytes32 => Phenomenon) public phenomenons;
    string[] public mnemonics;

    event PhenomenonAdd(bytes32 hash);
    event PhenomenonDisable(bytes32 hash);
    event PhenomenonEnable(bytes32 hash);

    function addPhenomenon(
        string _mnemonic,
        string _name,
        string _description,
        string _category,
        uint8 _valueDecimalPlaces
    ) public onlyOwner
    {
        bytes32 hash = keccak256(abi.encodePacked(_mnemonic));
        require(bytes(phenomenons[hash].mnemonic).length == 0, "Phenomenon already exists!");

        Phenomenon memory phenomenon = Phenomenon(
            _mnemonic,
            _name,
            _description,
            _category,
            _valueDecimalPlaces,
            true,
            true
        );

        phenomenons[hash] = phenomenon;
        mnemonics.push(_mnemonic);

        emit PhenomenonAdd(hash);
    }

    function disablePhenomenon(bytes32 _hash) public onlyOwner {
        require(phenomenons[_hash].enabled == true);

        phenomenons[_hash].enabled = false;

        emit PhenomenonDisable(_hash);
    }

    function enablePhenomenon(bytes32 _hash) public onlyOwner {
        require(phenomenons[_hash].exists == true);
        require(phenomenons[_hash].enabled == false);

        phenomenons[_hash].enabled = true;

        emit PhenomenonEnable(_hash);
    }

    function mnemonicsCount() public view returns(uint) {
        return mnemonics.length;
    }

    function isEnabled(bytes32 _hash) public view returns(bool) {
        return phenomenons[_hash].enabled;
    }

    function decimalPoints(bytes32 _hash) public view returns(uint8) {
        return phenomenons[_hash].valueDecimalPlaces;
    }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"isEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"mnemonics","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"disablePhenomenon","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mnemonicsCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"enablePhenomenon","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"phenomenons","outputs":[{"name":"mnemonic","type":"string"},{"name":"name","type":"string"},{"name":"description","type":"string"},{"name":"category","type":"string"},{"name":"valueDecimalPlaces","type":"uint8"},{"name":"enabled","type":"bool"},{"name":"exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_mnemonic","type":"string"},{"name":"_name","type":"string"},{"name":"_description","type":"string"},{"name":"_category","type":"string"},{"name":"_valueDecimalPlaces","type":"uint8"}],"name":"addPhenomenon","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","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":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"decimalPoints","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"hash","type":"bytes32"}],"name":"PhenomenonAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"hash","type":"bytes32"}],"name":"PhenomenonDisable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"hash","type":"bytes32"}],"name":"PhenomenonEnable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

Contract Creation Code

608060405260008054600160a060020a03191633179055610f0b806100256000396000f3006080604052600436106100ae5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630610e03781146100b35780631223f261146100df5780631e7231b61461016c578063201de6541461018657806325c50f97146101ad578063555d762b146101c55780635c1020f9146103a5578063715018a6146104bd5780638da5cb5b146104d2578063f2fde38b14610503578063f95440ba14610524575b600080fd5b3480156100bf57600080fd5b506100cb600435610552565b604080519115158252519081900360200190f35b3480156100eb57600080fd5b506100f760043561056f565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017857600080fd5b50610184600435610616565b005b34801561019257600080fd5b5061019b6106a8565b60408051918252519081900360200190f35b3480156101b957600080fd5b506101846004356106af565b3480156101d157600080fd5b506101dd60043561076a565b6040805160ff8516608082015283151560a082015282151560c082015260e08082528951908201528851909182916020808401928401916060850191610100860191908e019080838360005b83811015610241578181015183820152602001610229565b50505050905090810190601f16801561026e5780820380516001836020036101000a031916815260200191505b5085810384528b5181528b516020918201918d019080838360005b838110156102a1578181015183820152602001610289565b50505050905090810190601f1680156102ce5780820380516001836020036101000a031916815260200191505b5085810383528a5181528a516020918201918c019080838360005b838110156103015781810151838201526020016102e9565b50505050905090810190601f16801561032e5780820380516001836020036101000a031916815260200191505b5085810382528951815289516020918201918b019080838360005b83811015610361578181015183820152602001610349565b50505050905090810190601f16801561038e5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390f35b3480156103b157600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261018494369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff1693506109e292505050565b3480156104c957600080fd5b50610184610cd9565b3480156104de57600080fd5b506104e7610d45565b60408051600160a060020a039092168252519081900360200190f35b34801561050f57600080fd5b50610184600160a060020a0360043516610d54565b34801561053057600080fd5b5061053c600435610d77565b6040805160ff9092168252519081900360200190f35b600090815260016020526040902060040154610100900460ff1690565b600280548290811061057d57fe5b600091825260209182902001805460408051601f600260001961010060018716150201909416939093049283018590048502810185019091528181529350909183018282801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b505050505081565b600054600160a060020a0316331461062d57600080fd5b600081815260016020819052604090912060040154610100900460ff1615151461065657600080fd5b600081815260016020908152604091829020600401805461ff0019169055815183815291517f842b020a1c2ad03f77462a3fbe3d4f9702233980e3128a349c2656ea9d0a28a09281900390910190a150565b6002545b90565b600054600160a060020a031633146106c657600080fd5b60008181526001602081905260409091206004015462010000900460ff161515146106f057600080fd5b600081815260016020526040902060040154610100900460ff161561071457600080fd5b600081815260016020908152604091829020600401805461ff001916610100179055815183815291517f4fc22ddd2e1d288986e0ea6c29e0e8afcfaacbdf012529d4634640d6a461842a9281900390910190a150565b60016020818152600092835260409283902080548451600294821615610100026000190190911693909304601f81018390048302840183019094528383529283918301828280156107fc5780601f106107d1576101008083540402835291602001916107fc565b820191906000526020600020905b8154815290600101906020018083116107df57829003601f168201915b505050505090806001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561089a5780601f1061086f5761010080835404028352916020019161089a565b820191906000526020600020905b81548152906001019060200180831161087d57829003601f168201915b50505060028085018054604080516020601f600019610100600187161502019094169590950492830185900485028101850190915281815295969594509092509083018282801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505060038301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156109bc5780601f10610991576101008083540402835291602001916109bc565b820191906000526020600020905b81548152906001019060200180831161099f57829003601f168201915b5050506004909301549192505060ff808216916101008104821691620100009091041687565b60006109ec610e0c565b600054600160a060020a03163314610a0357600080fd5b866040516020018082805190602001908083835b60208310610a365780518252601f199092019160209182019101610a17565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b60208310610a995780518252601f199092019160209182019101610a7a565b518151600019602094850361010090810a8201928316921993909316919091179092526040805196909401869003909520600081815260019384905293909320549298506002918316159094029093011691909104159250610b5f91505057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5068656e6f6d656e6f6e20616c72656164792065786973747321000000000000604482015290519081900360640190fd5b506040805160e08101825287815260208082018890528183018790526060820186905260ff85166080830152600160a0830181905260c083018190526000858152908252929092208151805192938493610bbc9284920190610e47565b506020828101518051610bd59260018501920190610e47565b5060408201518051610bf1916002840191602090910190610e47565b5060608201518051610c0d916003840191602090910190610e47565b5060808201516004909101805460a084015160c0909401511515620100000262ff0000199415156101000261ff001960ff90951660ff199093169290921793909316179290921617905560028054600181018083556000929092528851610c9b917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace019060208b0190610e47565b50506040805183815290517f438c15ca7d5b4e9876d61df86e60f2a0a4638150cb42dc581b77497b5401e3849181900360200190a150505050505050565b600054600160a060020a03163314610cf057600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a03163314610d6b57600080fd5b610d7481610d8f565b50565b60009081526001602052604090206004015460ff1690565b600160a060020a0381161515610da457600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6040805160e0810182526060808252602082018190529181018290528181019190915260006080820181905260a0820181905260c082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e8857805160ff1916838001178555610eb5565b82800160010185558215610eb5579182015b82811115610eb5578251825591602001919060010190610e9a565b50610ec1929150610ec5565b5090565b6106ac91905b80821115610ec15760008155600101610ecb5600a165627a7a72305820f0f0a3ebe34ecd1895f09e29c3d99e5bcde7e973c12c8360edf8c635f811c66d0029

Swarm Source

bzzr://f0f0a3ebe34ecd1895f09e29c3d99e5bcde7e973c12c8360edf8c635f811c66d
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward