- tradefinance: LoC, bill of exchange, factoring, PO financing, dynamic discounting, securitization + tranche tokens, credit lines, guarantees - compliance: sanctions/AML, certificate of origin, phytosanitary, halal, recalls, export licenses, duty/tariff, customs declaration - dpp: EU Digital Product Passport (ERC721) + lifecycle/materials/repairability/recycling - logistics: freight, cold-chain, bonded warehouse, fleet, containers, proof-of-delivery - commodities: tokens, harvest/grading registries, storage receipts, price oracle, vault - energy: renewable energy certs (ERC1155), emissions trading, water/biodiversity, green bonds - workforce: soulbound worker credentials, safety training, milestone payroll, skills - data: IoT sensors, quality inspection, lab tests, oracle aggregator, data marketplace - 1468 forge tests green; 117 ABIs exported; DeployPlatform extended Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
671 B
Solidity
22 lines
671 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.24;
|
|
|
|
/// @notice Test double exposing the {IAttestationRegistry} reads the tradefinance 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];
|
|
}
|
|
}
|