- 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>
17 lines
536 B
Solidity
17 lines
536 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.24;
|
|
|
|
/// @notice Minimal provenance stub exposing only `batchSupplier` for grade resolution.
|
|
/// @dev ABI-compatible with `IProvenanceRegistry.batchSupplier(bytes32)`.
|
|
contract MockProvenance {
|
|
mapping(bytes32 => address) private _supplier;
|
|
|
|
function setSupplier(bytes32 batchId, address supplier) external {
|
|
_supplier[batchId] = supplier;
|
|
}
|
|
|
|
function batchSupplier(bytes32 batchId) external view returns (address) {
|
|
return _supplier[batchId];
|
|
}
|
|
}
|