- core: AddressBook registry, Roles lib, ProofChainAccess base, Pauser - modules: provenance, payments/treasury, identity, reputation, finance/RWA, insurance, disputes+governance, esg/tokenization, marketplace, rewards - @proofchain/api: 33 routers + event indexer (Supabase) - web: 37 pages incl landing, explorer, finance, governance, esg, marketplace - 704 forge tests + 449 vitest tests green; 61 ABIs exported Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
613 B
Solidity
24 lines
613 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.24;
|
|
|
|
/// @notice Trivial governed target: only its `owner` (the timelock) may change `value`.
|
|
/// Used to exercise the full propose -> vote -> queue -> execute governance round-trip.
|
|
contract Box {
|
|
uint256 public value;
|
|
address public owner;
|
|
|
|
error NotOwner();
|
|
|
|
event ValueChanged(uint256 newValue);
|
|
|
|
constructor(address owner_) {
|
|
owner = owner_;
|
|
}
|
|
|
|
function store(uint256 newValue) external {
|
|
if (msg.sender != owner) revert NotOwner();
|
|
value = newValue;
|
|
emit ValueChanged(newValue);
|
|
}
|
|
}
|