- 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>
22 lines
657 B
Solidity
22 lines
657 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.24;
|
|
|
|
/// @notice Test double exposing the {IProvenanceRegistry} reads used by {ReceivableRegistry}.
|
|
contract MockProvenance {
|
|
mapping(bytes32 => address) private _supplier;
|
|
mapping(bytes32 => bool) private _exists;
|
|
|
|
function setBatch(bytes32 batchId, address supplier) external {
|
|
_supplier[batchId] = supplier;
|
|
_exists[batchId] = true;
|
|
}
|
|
|
|
function batchExists(bytes32 batchId) external view returns (bool) {
|
|
return _exists[batchId];
|
|
}
|
|
|
|
function batchSupplier(bytes32 batchId) external view returns (address) {
|
|
return _supplier[batchId];
|
|
}
|
|
}
|