mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 03:28:20 +01:00
Audit of src/services/ mirroring the config/ pass from cc07902d:
- mempool.ts: un-export MempoolTransaction/AddressStats/getAddressStats; delete formatBTC/getTxUrl/getAddressUrl
- transparency.ts: un-export calculateTransparencyScore/TransparencyScore (internal only)
- tasks/contributionAnalytics.ts: un-export ContributorStats (internal only)
- tasks/fairnessAnalytics.ts: un-export TaskFairnessMetric (internal only)
- currency/conversion.ts: delete 5 alias exports (satsToBTC etc.) + convertCurrency/getCurrencyBreakdown/convertBitcoinToAll/convertSatsToAll
- currency/formatting.ts: delete formatSwissFrancs/formatUSD/getRegionName/getRegionEmoji/formatRegionalAlternatives
- currency/rates.ts: un-export updateRates; delete fetchRates/ratesNeedRefresh/convertCurrencyAsync/useBitcoinPrice
- currency/types.ts: delete CurrencyBreakdown/CurrencyConversion (no external importers)
- currency/index.ts: rewrite to only re-export used symbols; delete entire currencyService convenience bundle
- ai/index.ts: trim barrel to only re-export externally used symbols
- ai/suggestions.ts: delete legacy generateSuggestions(documents[]) (dead, superseded by generateSuggestionsFromContext)
- bitcoin/index.ts: un-export BitcoinService class; delete cleanBitcoinAddress/getTransactionUrl/getAddressUrl/formatBtcValue/bitcoinService
- cat/context-summary.ts: un-export 5 internal helper functions (generateGreeting etc.)
- supabase/fundraising.ts: delete FundraisingActivity + getUserFundraisingActivity/getUserProjects/getProject/getGlobalFundraisingStats + helpers
- test: remove/update tests for deleted currency functions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>