// Hybrid-Chain offline teaching model: tokenized-venture-capital // Fictional fields/states; NOT an API client, authorization system or production implementation. // No network calls, credentials, payments or file writes. Review before running. // Requires Node.js 22+. Run: node --test tokenized-venture-capital.mjs import test from 'node:test'; import assert from 'node:assert/strict'; export function inspect(record) { if (record.approvedDisclosure !== record.allocationDisclosure) return 'DISCLOSURE_MISMATCH'; if (!record.eligible) return 'ELIGIBILITY_REVIEW_REQUIRED'; if (!record.registerMatched) return 'REGISTER_RECONCILIATION_REQUIRED'; return 'READY_FOR_ISSUER_REVIEW'; } const baseline = { "approvedDisclosure": "D3", "allocationDisclosure": "D3", "eligible": true, "registerMatched": true }; const cases = [ { "name": "review-ready fixture", "patch": {}, "expected": "READY_FOR_ISSUER_REVIEW" }, { "name": "old disclosure", "patch": { "allocationDisclosure": "D2" }, "expected": "DISCLOSURE_MISMATCH" }, { "name": "eligibility unresolved", "patch": { "eligible": false }, "expected": "ELIGIBILITY_REVIEW_REQUIRED" }, { "name": "register mismatch", "patch": { "registerMatched": false }, "expected": "REGISTER_RECONCILIATION_REQUIRED" } ]; for (const example of cases) { test(example.name, () => { assert.equal(inspect({...baseline, ...example.patch}), example.expected); }); }