Skip to content
Verified contractPartial

DMap

Address0xdbb5fbdfdf8f2f87f94f28cbd3cacf3ad28cfda6
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.5.10

 

Same code

3 more contracts

 

Details

Compiler
solc 0.5.10+commit.5a6ea5b1
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,150,456
Creation transaction
0x9d7ce8d606…766601c379
Main copy (most transactions)
0x180513ff…1ac8af0d

DMap.sol

pragma solidity ^0.5.10;

contract DMap {
    address owner;
    mapping(bytes32=>bytes32) values;

    event ValueUpdate( bytes32 indexed key
                     , bytes32 indexed value );
    event OwnerUpdate( address indexed oldOwner
                     , address indexed newOwner );

    constructor() public {
        owner = msg.sender;
        emit OwnerUpdate(address(0), owner);
    }
    function getValue(bytes32 key)
        public view returns (bytes32)
    {
        return values[key];
    }
    function setValue(bytes32 key, bytes32 value)
        public
    {
        assert(msg.sender == owner);
        values[key] = value;
        emit ValueUpdate(key, value);
    }
    function getOwner()
        public view returns (address)
    {
        return owner;
    }
    function setOwner(address newOwner)
        public
    {
        assert(msg.sender == owner);
        owner = newOwner;
        emit OwnerUpdate(msg.sender, owner);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.