// SPDX-License-Identifier: MIT pragma solidity ^0.8.20;
contract RastakhState { bytes32 public latestStateRoot; uint256 public lastUpdatedTimestamp;
event StateUpdated(bytes32 indexed newRoot, uint256 timestamp);
function updateStateRoot(bytes32 _newRoot) external {
latestStateRoot = _newRoot;
lastUpdatedTimestamp = block.timestamp;
emit StateUpdated(_newRoot, block.timestamp);
}
}