Skip to content
Verified contractPartial

NavFeed

Address0xb596b3a9392f8675d8e8086f0cc2c7dd5acf7732
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.1.7

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.7+commit.b4e666cc
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
770,887
Creation transaction
0x1fbd368046…56913fad8e

NavFeed.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract NavFeed {
    struct Entry {
        address addr;
        bool a;
        uint8 b;
        uint32 c;
        uint64 time;
        uint32 nav;
    }

    address owner;
    uint32 nav;
    string version;
    uint64 lastUpdate;
    Entry[] history;

    function NavFeed(uint32 _nav) {
        owner = msg.sender;
        nav = _nav;
        lastUpdate = uint64(now * 1000);
    }

    function addHistory(address addr, bool a, uint8 b, uint32 c, uint64 time, uint32 n) {
        history.push(Entry(addr, a, b, c, time, n));
    }
    function getHistory(uint i) returns (address addr, bool a, uint8 b, uint32 c, uint64 time, uint32 n) {
        addr = history[i].addr;
        a = history[i].a;
        b = history[i].b;
        c = history[i].c;
        time = history[i].time;
        n = history[i].nav;
    }

    function get() returns (uint64 _nav, uint64 _lastUpdate, string _version, address _owner) {
        _nav = nav;
        _lastUpdate = lastUpdate;
        _version = version;
        _owner = owner;
    }

    function getLength() returns (uint) {
        return history.length;
    }

    function setNav(uint32 _nav) {
        nav = _nav;
        lastUpdate = uint64(now * 1000);
    }

    function kill() {
        suicide(owner);
    }

}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.