Skip to content

feat(wallet): introduce tokenhistoricalownership module#7298

Draft
dlipicar wants to merge 1 commit intofeat/add-activity-tokens-getter-to-activityfetcherfrom
feat/tokenhistoricalownership-service
Draft

feat(wallet): introduce tokenhistoricalownership module#7298
dlipicar wants to merge 1 commit intofeat/add-activity-tokens-getter-to-activityfetcherfrom
feat/tokenhistoricalownership-service

Conversation

@dlipicar
Copy link
Contributor

Add new tokenhistoricalownership service to track tokens that have been previously owned by wallet addresses.

Changes:

  • Add tokenhistoricalownership service with storage layer
  • Track tokens from activity history, balance changes, and transfers
  • Add database migration for token_historical_ownership table
  • Implement MarkAsPreviouslyOwned and GetOwnedTokenKeys methods
  • Add publisher for ownership change events
  • Include comprehensive unit tests with gomock mocks

The service aggregates token ownership data from:

  1. Activity events (via ActivityTokenProvider)
  2. Balance changes (via TokenBalancesProvider)
  3. Transfer events (via TransferDetectorProvider)

This module will be integrated into wallet service in a future commit.

Add new tokenhistoricalownership service to track tokens that have been
previously owned by wallet addresses. This provides a comprehensive view
of token interaction history by consolidating data from multiple sources.

Changes:
- Add tokenhistoricalownership service with storage layer
- Track tokens from activity history, balance changes, and transfers
- Add database migration for token_historical_ownership table
- Implement MarkAsPreviouslyOwned and GetOwnedTokenKeys methods
- Add publisher for ownership change events
- Include comprehensive unit tests with gomock mocks

The service aggregates token ownership data from:
1. Activity events (via ActivityTokenProvider)
2. Balance changes (via TokenBalancesProvider)
3. Transfer events (via TransferDetectorProvider)
@dlipicar dlipicar force-pushed the feat/tokenhistoricalownership-service branch from 69bc7f6 to 6587d25 Compare January 22, 2026 04:14
@status-im-auto
Copy link
Member

status-im-auto commented Jan 22, 2026

Jenkins Builds

Click to see older builds (10)
Commit #️⃣ Finished (UTC) Duration Platform Result
69bc7f6 1 2026-01-22 04:16:13 ~2 min macos/status-go 📄log
69bc7f6 1 2026-01-22 04:16:15 ~2 min macos/nwaku 📄log
✖️ 69bc7f6 1 2026-01-22 04:17:09 ~3 min tests-rpc 📄log
✖️ 69bc7f6 1 2026-01-22 04:17:14 ~3 min tests 📄log
69bc7f6 1 2026-01-22 04:17:22 ~3 min linux/nwaku 📄log
✖️ 69bc7f6 1 2026-01-22 04:17:26 ~3 min tests 📄log
69bc7f6 1 2026-01-22 04:17:29 ~4 min linux/status-go 📄log
✖️ 69bc7f6 1 2026-01-22 04:17:32 ~3 min tests-rpc 📄log
69bc7f6 1 2026-01-22 04:19:06 ~5 min windows/status-go 📄log
69bc7f6 1 2026-01-22 04:19:14 ~5 min windows/nwaku 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
6587d25 2 2026-01-22 04:18:58 ~2 min macos/status-go 📄log
6587d25 2 2026-01-22 04:19:00 ~2 min macos/nwaku 📄log
✖️ 6587d25 2 2026-01-22 04:20:47 ~3 min tests-rpc 📄log
✖️ 6587d25 2 2026-01-22 04:21:25 ~3 min tests 📄log
✖️ 6587d25 2 2026-01-22 04:21:26 ~3 min tests 📄log
6587d25 2 2026-01-22 04:21:28 ~3 min linux/status-go 📄log
6587d25 2 2026-01-22 04:21:43 ~4 min linux/nwaku 📄log
✖️ 6587d25 2 2026-01-22 04:21:58 ~4 min tests-rpc 📄log
6587d25 2 2026-01-22 04:24:41 ~5 min windows/nwaku 📄log
6587d25 2 2026-01-22 04:24:41 ~5 min windows/status-go 📄log

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