Skip to content

Conversation

saledjenic
Copy link
Contributor

@saledjenic saledjenic commented Sep 9, 2025

Depends on:

Changes:

  • Old token list fetching logic is replaced by the tokenlists package from the wallet sdk.
  • Solving collision logic is removed, cause we rely now on the cross-chain id that is maintained by through this list https://prod.market.status.im/static/token-list.json
  • The list that is being used for fetching the other token lists in case of non-privacy mode is here https://prod.market.status.im/static/lists.json
  • Initial lists that are being used if the user opts in for privacy mode from the very first moment of profile creation are not stored in the repo, cause they are big, but will be fetched at the moment of building the app.
  • New, convenient functions added to the token manager:
    • GetTokenByChainAddress
    • GetTokensByChain(chainID uint64) []*tokenlists.Token
    • GetTokensByChains(chainIDs []uint64) ([]*tokenlists.Token, error)
    • GetAllTokens() []*tokenlists.Token
    • GetTokenList(id string) (*tokenlists.TokenList, bool)
    • GetAllTokenLists() []*tokenlists.TokenList
    • GetLastTokenListsRefreshTime() (int64, error)

API changes:

  • Old GetTokenList doesn't return ListWrapper but []*tokenlists.TokenList
  • GetTokens removed
  • GetCustomTokens removed

@saledjenic saledjenic changed the title A new token list approach - wallet sdk token lists integration featA new token list approach - wallet sdk token lists integration Sep 9, 2025
@saledjenic saledjenic changed the title featA new token list approach - wallet sdk token lists integration feat: a new token list approach - wallet sdk token lists integration Sep 9, 2025
@status-im-auto
Copy link
Member

status-im-auto commented Sep 9, 2025

Jenkins Builds

Click to see older builds (73)
Commit #️⃣ Finished (UTC) Duration Platform Result
bec7c38 #1 2025-09-09 11:17:42 ~1 min linux/status-go 📄log
bec7c38 #1 2025-09-09 11:17:50 ~1 min macos/status-go 📄log
✖️ bec7c38 #1 2025-09-09 11:18:31 ~2 min tests 📄log
bec7c38 #1 2025-09-09 11:19:54 ~3 min windows/status-go 📄log
bec7c38 #1 2025-09-09 11:24:43 ~8 min linux/nwaku 📄log
✖️ bec7c38 #1 2025-09-09 11:33:22 ~17 min tests-rpc 📄log
✖️ 6d306cb #2 2025-09-09 11:24:38 ~2 min tests 📄log
✔️ 6d306cb #2 2025-09-09 11:25:05 ~2 min macos/status-go 📦zip
✔️ 6d306cb #2 2025-09-09 11:25:10 ~2 min linux/status-go 📦zip
✔️ 6d306cb #2 2025-09-09 11:27:20 ~5 min windows/status-go 📦zip
✔️ 6d306cb #2 2025-09-09 11:34:51 ~10 min linux/nwaku 📦zip
✖️ 6d306cb #2 2025-09-09 11:46:16 ~12 min tests-rpc 📄log
✔️ 6d306cb #3 2025-09-09 12:02:52 ~4 min macos/status-go 📦zip
✔️ 6d306cb #3 2025-09-09 12:03:38 ~5 min windows/status-go 📦zip
✔️ 27ca6de #4 2025-09-09 12:08:06 ~4 min macos/status-go 📦zip
✔️ 27ca6de #4 2025-09-09 12:10:32 ~6 min windows/status-go 📦zip
✔️ 27ca6de #4 2025-09-09 12:29:30 ~13 min linux/status-go 📦zip
✖️ 27ca6de #4 2025-09-09 12:32:45 ~16 min tests 📄log
✔️ 27ca6de #4 2025-09-09 12:38:12 ~22 min linux/nwaku 📦zip
✖️ 27ca6de #4 2025-09-09 12:38:18 ~22 min tests-rpc 📄log
✔️ 5fdbea8 #5 2025-09-09 12:47:38 ~3 min macos/status-go 📦zip
✔️ 5fdbea8 #5 2025-09-09 12:49:59 ~5 min windows/status-go 📦zip
✖️ 5fdbea8 #5 2025-09-09 12:51:10 ~6 min tests 📄log
✔️ 5fdbea8 #5 2025-09-09 12:51:26 ~6 min linux/status-go 📦zip
✖️ 5fdbea8 #5 2025-09-09 12:56:01 ~11 min tests-rpc 📄log
✔️ 5fdbea8 #5 2025-09-09 12:59:24 ~14 min linux/nwaku 📦zip
✔️ 119e1b7 #6 2025-09-09 14:00:51 ~2 min linux/status-go 📦zip
✖️ 119e1b7 #6 2025-09-09 14:01:07 ~3 min tests 📄log
✔️ 119e1b7 #6 2025-09-09 14:02:10 ~4 min macos/status-go 📦zip
✔️ 119e1b7 #6 2025-09-09 14:03:27 ~5 min windows/status-go 📦zip
✔️ 119e1b7 #6 2025-09-09 14:07:42 ~9 min linux/nwaku 📦zip
✔️ 119e1b7 #7 2025-09-09 14:14:22 ~2 min linux/status-go 📦zip
✔️ 119e1b7 #7 2025-09-09 14:14:28 ~2 min macos/status-go 📦zip
✖️ 119e1b7 #7 2025-09-09 14:15:06 ~3 min tests 📄log
✔️ 119e1b7 #7 2025-09-09 14:16:40 ~5 min windows/status-go 📦zip
✔️ 119e1b7 #7 2025-09-09 14:21:35 ~10 min linux/nwaku 📦zip
✖️ 119e1b7 #6 2025-09-09 14:23:38 ~25 min tests-rpc 📄log
✔️ 9e2a878 #8 2025-09-09 14:17:39 ~2 min macos/status-go 📦zip
✔️ 9e2a878 #8 2025-09-09 14:17:50 ~3 min linux/status-go 📦zip
✖️ 9e2a878 #8 2025-09-09 14:18:17 ~3 min tests 📄log
✔️ 9e2a878 #8 2025-09-09 14:21:51 ~5 min windows/status-go 📦zip
✔️ 9e2a878 #8 2025-09-09 14:31:21 ~9 min linux/nwaku 📦zip
✖️ 9e2a878 #7 2025-09-09 14:49:45 ~26 min tests-rpc 📄log
✔️ d6dddc4 #9 2025-09-10 09:17:50 ~3 min macos/status-go 📦zip
✖️ d6dddc4 #9 2025-09-10 09:20:39 ~5 min tests 📄log
✔️ d6dddc4 #9 2025-09-10 09:20:41 ~5 min linux/status-go 📦zip
✔️ d6dddc4 #9 2025-09-10 09:20:57 ~6 min windows/status-go 📦zip
✔️ d6dddc4 #9 2025-09-10 09:28:17 ~13 min linux/nwaku 📦zip
✖️ d6dddc4 #8 2025-09-10 09:40:56 ~26 min tests-rpc 📄log
✔️ 78d072e #10 2025-09-10 12:23:12 ~2 min linux/status-go 📦zip
✔️ 78d072e #10 2025-09-10 12:23:53 ~3 min macos/status-go 📦zip
✖️ 78d072e #10 2025-09-10 12:24:20 ~3 min tests 📄log
✔️ 78d072e #10 2025-09-10 12:31:07 ~10 min windows/status-go 📦zip
✔️ 78d072e #10 2025-09-10 12:31:45 ~11 min linux/nwaku 📦zip
✖️ 78d072e #9 2025-09-10 12:46:44 ~26 min tests-rpc 📄log
✔️ 13ad01f #11 2025-09-10 12:56:08 ~2 min linux/status-go 📦zip
✖️ 13ad01f #11 2025-09-10 12:56:35 ~3 min tests 📄log
✔️ 13ad01f #11 2025-09-10 12:58:19 ~4 min macos/status-go 📦zip
✔️ 13ad01f #11 2025-09-10 13:02:40 ~9 min windows/status-go 📦zip
✔️ 13ad01f #11 2025-09-10 13:03:20 ~10 min linux/nwaku 📦zip
✖️ 13ad01f #10 2025-09-10 13:18:51 ~25 min tests-rpc 📄log
✔️ c54bd12 #12 2025-09-11 07:22:31 ~3 min linux/status-go 📦zip
✖️ c54bd12 #12 2025-09-11 07:22:38 ~3 min tests 📄log
✔️ c54bd12 #12 2025-09-11 07:22:45 ~3 min macos/status-go 📦zip
✔️ c54bd12 #12 2025-09-11 07:24:31 ~4 min windows/status-go 📦zip
✔️ c54bd12 #12 2025-09-11 07:29:05 ~9 min linux/nwaku 📦zip
✖️ c54bd12 #11 2025-09-11 07:45:25 ~25 min tests-rpc 📄log
✔️ bdcad51 #13 2025-09-11 08:21:52 ~3 min macos/status-go 📦zip
✖️ bdcad51 #13 2025-09-11 08:22:03 ~3 min tests 📄log
✔️ bdcad51 #13 2025-09-11 08:22:08 ~3 min linux/status-go 📦zip
✔️ bdcad51 #13 2025-09-11 08:25:30 ~6 min windows/status-go 📦zip
✔️ bdcad51 #13 2025-09-11 08:28:21 ~9 min linux/nwaku 📦zip
✖️ bdcad51 #12 2025-09-11 08:44:04 ~25 min tests-rpc 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 41cffc7 #14 2025-09-11 08:59:13 ~3 min linux/status-go 📦zip
✔️ 41cffc7 #14 2025-09-11 08:59:58 ~3 min macos/status-go 📦zip
✖️ 41cffc7 #14 2025-09-11 09:01:34 ~5 min tests 📄log
✔️ 41cffc7 #14 2025-09-11 09:02:59 ~6 min windows/status-go 📦zip
✔️ 41cffc7 #14 2025-09-11 09:07:13 ~11 min linux/nwaku 📦zip
✖️ 41cffc7 #13 2025-09-11 09:22:31 ~26 min tests-rpc 📄log
✖️ 96dc9bd #15 2025-09-16 13:08:59 ~1 min tests 📄log
96dc9bd #15 2025-09-16 13:09:24 ~1 min linux/status-go 📄log
96dc9bd #15 2025-09-16 13:09:41 ~1 min macos/status-go 📄log
96dc9bd #15 2025-09-16 13:12:20 ~4 min windows/status-go 📄log
✖️ 96dc9bd #14 2025-09-16 13:12:29 ~4 min tests-rpc 📄log
96dc9bd #15 2025-09-16 13:16:02 ~8 min linux/nwaku 📄log

@saledjenic saledjenic changed the base branch from develop to chore/single-token-manager September 9, 2025 11:58
@saledjenic saledjenic force-pushed the feat/new-token-list-approach branch 3 times, most recently from 5fdbea8 to 119e1b7 Compare September 9, 2025 13:57
Base automatically changed from chore/single-token-manager to develop September 9, 2025 14:11
@saledjenic saledjenic force-pushed the feat/new-token-list-approach branch from 119e1b7 to 9e2a878 Compare September 9, 2025 14:14
@@ -131,3 +131,6 @@ pkg/sentry/SENTRY_PRODUCTION
# Don't ignore generated files in the vendor/ directory
!vendor/**/*.pb.go
!vendor/**/migrations.go
services/wallet/token/local-token-lists/default-lists/status.go
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to store initial token lists in the repo. They will be fetched on every build (maybe we should do some smarter approach like download only if there are no local lists or the forceDownload flag is true, by default don't download).

@saledjenic saledjenic force-pushed the feat/new-token-list-approach branch 4 times, most recently from 13ad01f to c54bd12 Compare September 11, 2025 07:19
@@ -179,7 +179,7 @@ status-go-deps:



statusgo-library: generate
statusgo-library: generate download-tokens
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -43,6 +43,7 @@ in pkgs.buildGoPackage {
pushd go/src/$goPackagePath
go run cmd/library/*.go > $NIX_BUILD_TOP/main.go
make generate SHELL=$SHELL GO111MODULE=on GO_GENERATE_CMD='go generate'
make download-tokens SHELL=$SHELL GO111MODULE=on
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should always download initial tokens when building on CI.

@saledjenic saledjenic changed the title feat: a new token list approach - wallet sdk token lists integration feat!: a new token list approach - wallet sdk token lists integration Sep 11, 2025
@saledjenic saledjenic force-pushed the feat/new-token-list-approach branch 2 times, most recently from bdcad51 to 41cffc7 Compare September 11, 2025 08:55
@saledjenic saledjenic force-pushed the feat/new-token-list-approach branch from 41cffc7 to 96dc9bd Compare September 16, 2025 13:07
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