feat(finance): BTC basket flows, client scoping, and jewelry-box store

- Finance API: baskets, holdings, rebalances, deposits, bridge withdrawals, vault checks.
- Schemas: btc-basket; api-client finance types; workspace lockfile update.
- Vitest config for finance service; expanded tests.

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-07 22:59:32 -07:00
parent 923b703d97
commit 3f7cc0f854
18 changed files with 1825 additions and 494 deletions

View File

@@ -62,7 +62,10 @@ export async function reviewWorkflow(
if (process.env.APPROVAL_SERVICE_URL) {
try {
const res = await fetch(`${process.env.APPROVAL_SERVICE_URL}/status/${input.documentId}/${input.reviewerId}`);
if (res.ok) approved = (await res.json()).approved ?? false;
if (res.ok) {
const approvalResponse = (await res.json()) as { approved?: boolean };
approved = approvalResponse.approved ?? false;
}
} catch { /* fall through */ }
}
if (!approved && getApprovalStatus) {
@@ -151,4 +154,3 @@ export async function checkApprovalStatus(
// Fallback: assume not approved if we can't check
return false;
}