Skip to content

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add SafeAccount types and DTOs to safe.dto.ts
  • Extend safe.hook.ts with SafeAccount state and API integration
  • Support for selecting, creating, and updating SafeAccounts
  • Permission-aware state (canWrite flag)

Features

  • SafeAccount list with selection support
  • Automatic balance/history reload on SafeAccount change
  • Legacy mode support (isLegacy flag)
  • Access level tracking for permission-based UI

Related

Test plan

  • Verify SafeAccount list loads correctly
  • Test SafeAccount selection updates balances
  • Verify canWrite flag reflects access level
  • Test legacy mode for users without SafeAccounts

- Add SafeAccount and SafeAccountAccess entities
- Add SafeAccountService with legacy mode fallback
- Add SafeAccountController with CRUD endpoints
- Add SafeAccountReadGuard and SafeAccountWriteGuard
- Extend User, CustodyBalance, CustodyOrder with safeAccount relations
- Add database migration for new tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants