Description
The wallet/ and sandbox/ modules share nearly identical logic:
generateKeypair
fundFromFriendbot
- Payment sending functions
Both are used by different frontend pages but implement the same core operations.
Directories:
apps/api/src/modules/wallet/
apps/api/src/modules/sandbox/
Proposed Approach
Option A: Merge into a single wallet module and have the Sandbox page call wallet endpoints.
Option B: Keep separate modules but extract shared logic into a common service.
Benefits
- Reduced code duplication
- Easier maintenance
- Single source of truth for wallet operations
Acceptance Criteria
Description
The
wallet/andsandbox/modules share nearly identical logic:generateKeypairfundFromFriendbotBoth are used by different frontend pages but implement the same core operations.
Directories:
apps/api/src/modules/wallet/apps/api/src/modules/sandbox/Proposed Approach
Option A: Merge into a single
walletmodule and have the Sandbox page call wallet endpoints.Option B: Keep separate modules but extract shared logic into a common service.
Benefits
Acceptance Criteria