- 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>
18 lines
513 B
Solidity
18 lines
513 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.24;
|
|
|
|
import { IScoreOracle } from "../../../src/interfaces/IScoreOracle.sol";
|
|
|
|
/// @notice Configurable ScoreOracle stub for the insurance test-suite.
|
|
contract MockScoreOracle is IScoreOracle {
|
|
mapping(address => uint8) private _grades;
|
|
|
|
function setGrade(address supplier, uint8 grade) external {
|
|
_grades[supplier] = grade;
|
|
}
|
|
|
|
function gradeOf(address supplier) external view returns (uint8) {
|
|
return _grades[supplier];
|
|
}
|
|
}
|