Skip to content
Verified contractPartialUNLICENSED

DomainStorage

Address0x39c167d5bbf20aed29301665afa5efd2f5c6c2c4
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.14

 

Same code

9 more contracts

 

Details

Compiler
solc 0.8.14+commit.80d49f37
Language
solidity
Optimization
No
License
UNLICENSED
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,300,044
Creation transaction
0x93f480ef8f…00e1568e92
Main copy (most transactions)
0x94ccd43a…f70795e8

7.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.14;

/**
 * Контракт восстановлен 1:1 из runtime bytecode
 * Адрес: 0xB6bC9e1D0b2fB96Ab7C47E04Cb0BE477410bC1f2
 * Компилятор: 0.8.14
 */

contract DomainStorage {
    address private _owner;   // slot 0
    string  private _data;    // slot 1

    // topic0 = 0x0e540ff014403c501655ba5fcd7f36ec5f6df99f851e513e7d6c4c93da112174
    event DomainUpdated(string, string);

    constructor() {
        _owner = msg.sender;
    }

    /// @dev selector: 0xb249cd2d
    function updateDomain(string calldata newValue) external {
        require(msg.sender == _owner, "only owner");

        string memory oldValue = _data;
        _data = newValue;

        emit DomainUpdated(oldValue, newValue);
    }

    /// @dev selector: 0xb68d1809
    function getDomain() external view returns (string memory) {
        return _data;
    }

    /// @dev selector: 0xe096a091
    function domain() external view returns (string memory) {
        return _data;
    }

    /// @dev selector: 0xf851a440
    function owner() external view returns (address) {
        return _owner;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.