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

22 lines
666 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
/// @notice Test double exposing the {IAttestationRegistry} reads the finance module relies on.
contract MockAttestation {
mapping(bytes32 => bool) private _attested;
mapping(bytes32 => uint16) private _score;
function setAttested(bytes32 batchId, bool attested_, uint16 score_) external {
_attested[batchId] = attested_;
_score[batchId] = score_;
}
function isAttested(bytes32 batchId) external view returns (bool) {
return _attested[batchId];
}
function scoreOf(bytes32 batchId) external view returns (uint16) {
return _score[batchId];
}
}