caelum0x e361a8dc22 feat: ProofChain platform — 64 contracts (11 modules), backend API, expanded web
- 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>
2026-07-31 19:22:38 +03:00

16 lines
441 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
/// @notice Test double for the M4 ScoreOracle risk grade (0 = ungraded, 1 best .. 7 worst).
contract MockScoreOracle {
mapping(address => uint8) private _grade;
function setGrade(address supplier, uint8 grade) external {
_grade[supplier] = grade;
}
function gradeOf(address supplier) external view returns (uint8) {
return _grade[supplier];
}
}