Skip to content
Verified contractPartial

AssetRegistry

Address0x078df6a361e48adc27a83c17e13a308dec346bbf
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.1.3

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.3+commit.028f561d
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
150,611
Creation transaction
0xc1e486c790…ef6f6018df

AssetRegistry.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract AssetRegistry {
    struct Asset {
        address owner;
        string description;
        uint timestamp;
        bool active;
    }

    Asset[] public assets;
    uint public numAssets;

    event AssetAdded(uint id, string description);

    function AssetRegistry() {
    }

    function newAsset(address owner, string description, uint value, bool forSale) returns (uint id) {
        id = assets.length++;
        Asset a = assets[id];
        a.owner = owner;
        a.description = description;
        a.timestamp = now;
        a.active = true;
        AssetAdded(id, description);
        numAssets = id + 1;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.