status-go/services/wallet/activity
Stefan ca973b4aa6 feat(wallet) use sql activity filter for incremental updates
Switch from the prototype of duplicating the SQL filter as a runtime
and keeping them in sync on each event that might invalidate the current
filtered entries to a simpler approach of requesting the filter again
and doing the diff to detect the new changes.

Also add a new reset API to model the new entries design requirements.

The new approach shows less corner-case to handle and follows one source
of truth concept making debugging and future maintenance easier.

Other changes

- Fix pending mocking to work with multiple calls
- Refactor tests to account for the new changes

Updates status-desktop #12120
2024-02-12 19:29:15 +01:00
..
TODO.md feat(wallet): Add session-based activity API for dynamic updates 2024-02-01 19:55:06 +01:00
activity.go feat(wallet) use sql activity filter for incremental updates 2024-02-12 19:29:15 +01:00
activity_test.go fix(wallet): do not return gas-only ETH entries of transfers table for 2024-01-30 11:37:53 +01:00
benchmarks_test.go chore(wallet) optimize the filer query 2023-09-21 13:56:44 +02:00
details.go bug: Added missing out chain data (#4303) 2023-11-30 12:37:32 +01:00
filter.go feat: Wallet activity collectibles model (#4074) 2023-10-03 12:49:04 +02:00
filter.sql fix(wallet) fix reading amount for pending transactions 2024-02-01 18:28:55 +01:00
filter_test.go feat: Wallet activity collectibles model (#4074) 2023-10-03 12:49:04 +02:00
get_collectibles.sql feat: Wallet activity collectibles model (#4074) 2023-10-03 12:49:04 +02:00
oldest_timestamp.sql Bug: Refresh recipients model (#4076) 2023-10-02 13:46:05 +02:00
recipients.sql Bug: Refresh recipients model (#4076) 2023-10-02 13:46:05 +02:00
service.go feat(wallet) use sql activity filter for incremental updates 2024-02-12 19:29:15 +01:00
service_test.go feat(wallet) use sql activity filter for incremental updates 2024-02-12 19:29:15 +01:00
session.go feat(wallet) use sql activity filter for incremental updates 2024-02-12 19:29:15 +01:00
session_test.go feat(wallet) use sql activity filter for incremental updates 2024-02-12 19:29:15 +01:00