chore: rename the service to Chronik Wallet Service (CWS) with a /bws/api alias - #9
Merged
Merged
Conversation
added 2 commits
September 17, 2026 20:22
…/api alias The service is now CWS while its API surface stays BWS-compatible: routes are mounted at /cws/api and /bws/api (same Hono app, middleware strips either prefix), the web client resolves VITE_API_URL then VITE_BWS_URL and defaults to /cws/api, the dev proxy and LAN web server forward both prefixes, and the deploy health check uses /cws/api. Naming updated in README (with a CWS vs BWS-compatible note), .cursor environment, API logs, Settings page and restore copy; bws-utils.ts renamed to wallet-id.ts and bwsFetch to apiFetch. Legacy references (the old bitcore BWS, LEGACY_MONGO_DB=bws, migration docs) intentionally unchanged, and D7 records the decision in the migration plan.
|
Warning Review limit reachedNext included review available in 11 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames the service to Chronik Wallet Service (CWS) while keeping the BWS-compatible API contract intact. The engine is Chronik (chain data) + Postgres/Hono (coordination); bitcore only remains in the legacy client key path and as the migration oracle.
API
/cws/apiand/bws/apifrom the same Hono app (config.basePath+config.legacyBasePath); auth middleware strips either prefix.bws-utils.ts→wallet-id.ts(formatWalletId); webbwsFetch→apiFetch.Web
VITE_API_URLis preferred,VITE_BWS_URLstill honored, default is/cws/api; dev proxy forwards both prefixes./cwsand/bws;lan-deploy.shhealth-checks/cws/api.Docs / config
.cursor/environment.json,.env.exampleupdated; migration plan records the decision as D7.LEGACY_MONGO_DB=bws, migration docs and fixtures.Verification (deployed LAN build)
/cws/api/healthand/bws/api/health: 200; web root and both proxied prefixes: 200/cws/api: 42/42 checks passed/bws/api): balance 200, getWallet 200 — alias auth verifiedpnpm -r type-check,pnpm -r test(42 wallet-core + 27 API), web production build