Skip to content

Refactor wallet tokens data in app-db #17823

Closed

Description

Depends on #17798

  • The tokens data are currently stored in the (root) key :wallet/tokens and it needs to be moved under the :wallet key (along with the accounts and other data). The :token key (under wallet) will be a map which will contain the data and loading? keys.
  • The keys inside the token data need to be renamed (kebab-case) and the helper methods should be placed in status-im2.common.data-store.wallet ns.
  • The subscriptions need to be updated to attach the token data for each account along with the account data.
  • The helper methods for the calculation of balances should be moved to status-im2.contexts.wallet.common.utils ns.
  • The usage should be updated across the wallet.

Acceptance Criteria

The app should work as before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

featurefeature requests

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions