-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet) save/load collectibles user handled state in DB
Add a separation layer for save/load/clear/reset to ManageTokensModel so that we can save/load from external sources. The layer uses JSON as protocol and forwards that to current QSettings for storybook and NIM controllers for StatusQ. - [ ] Separate the dynamic private user data from static state settings (ArrangeByCommunity, ArrangeByCollection) - [ ] Handle HiddenCommunityGroups and HiddenCollectionGroups in DB Updates #13313
- Loading branch information
1 parent
a9b5d8f
commit a725576
Showing
18 changed files
with
469 additions
and
214 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# TODO for externalizing data storage for ManageTokensController | ||
|
||
Task [#13313](https://github.com/status-im/status-desktop/issues/13313) | ||
|
||
## Solution | ||
|
||
Extend interface of `ManageTokensController` to allow bidirectional save and load of data. The in/out structure should be a mirror of the json struct in status-go provided through a RPC api call | ||
|
||
### C++ integration | ||
|
||
Only Nim is setup to use the RPC api, therefore the best way to connect `ManageTokensController` status-go backend is through two plain Nim calls (save and load) via QML signals and slots. | ||
|
||
collectible_preferences_table | ||
|
||
- [x] Which Nim module is best to provide save/load api? | ||
- Collectible service already exposes `updateCollectiblePreferences` | ||
|
||
### status-go | ||
|
||
- [x] Which module should be used to provide the data? Settings? Wallet? | ||
- Already done in `accounts` module that calls `messenger` module for storing the data | ||
- [x] Which DB should store the table with the data | ||
- We use `collectible_preferences` that is already setup | ||
|
||
## Prev history | ||
|
||
`ManageTokensController` serializes and saves the tokens using a `QSettings` app instance |
Oops, something went wrong.