Skip to content
Verified contractPartial

TIA

Address0xd95a5fca99310d0db413cb3e03b0b15d686776e3
Balance

0 ETH

 

Transactions

12

 

Compiler

solc 0.7.5

 

Same code

1 more contract

 

Details

Compiler
solc 0.7.5+commit.eb77ed08
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
20,383,710
Creation transaction
0x0204c26f5a…3aac38dc7e

TIA.sol

pragma solidity ^0.7.5;

contract TIA {
    address public owner;
    mapping(uint32 => TIAInfo) public TIAcommit;

    struct TIAInfo {
        uint32 TIAHeight;
        bytes32 hash;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Only owner");
        _;
    }

    constructor() public {
        owner=msg.sender;
    }

    function transferOwner(address _owner) public onlyOwner() {
        owner = _owner;
    }

    function commitTIAIndex(uint32 _openBitHeight, uint32 _TIAHeight, bytes32 _hash) public onlyOwner() {
        TIAInfo memory newTIA = TIAInfo({
        TIAHeight : _TIAHeight,
        hash : _hash
        });
        TIAcommit[_openBitHeight] = newTIA;
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.