Skip to content

Conversation

dlipicar
Copy link
Contributor

@dlipicar dlipicar commented Sep 19, 2025

… manager

Cleaner use of adapter pattern to inject the Wallet's Token Manager into the Communities manager

Creation of the adaptor objects is now in charge of the class that instantiates everything. Before it was inside the communities package, which meant communities had to import the wallet's packages even though it's only really interested in the interfaces it defines.

Split token list interface from token balance interface in preparation for future refactors.

@status-im-auto
Copy link
Member

status-im-auto commented Sep 19, 2025

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ acf6074 #1 2025-09-19 17:10:56 ~3 min linux/status-go 📦zip
✖️ acf6074 #1 2025-09-19 17:11:34 ~4 min tests 📄log
✔️ acf6074 #1 2025-09-19 17:11:51 ~4 min macos/status-go 📦zip
✔️ acf6074 #1 2025-09-19 17:12:48 ~5 min windows/status-go 📦zip
✖️ acf6074 #1 2025-09-19 17:17:38 ~10 min tests-rpc 📄log
✔️ acf6074 #1 2025-09-19 17:18:21 ~11 min linux/nwaku 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ da42aef #2 2025-09-19 17:37:53 ~3 min linux/status-go 📦zip
✔️ da42aef #2 2025-09-19 17:38:07 ~3 min macos/status-go 📦zip
✔️ da42aef #2 2025-09-19 17:40:19 ~5 min windows/status-go 📦zip
✔️ da42aef #2 2025-09-19 17:44:59 ~10 min tests-rpc 📄log
✔️ da42aef #2 2025-09-19 17:45:33 ~10 min linux/nwaku 📦zip
✔️ da42aef #2 2025-09-19 18:01:02 ~26 min tests 📄log
✔️ f3cfa41 #3 2025-09-19 19:05:54 ~3 min linux/status-go 📦zip
✔️ f3cfa41 #3 2025-09-19 19:05:55 ~3 min macos/status-go 📦zip
✔️ f3cfa41 #3 2025-09-19 19:09:05 ~6 min windows/status-go 📦zip
✔️ f3cfa41 #3 2025-09-19 19:12:21 ~9 min tests-rpc 📄log
✔️ f3cfa41 #3 2025-09-19 19:13:09 ~10 min linux/nwaku 📦zip
✔️ f3cfa41 #3 2025-09-19 19:28:36 ~26 min tests 📄log

@dlipicar dlipicar force-pushed the chore/improve-messenger-dependency-injection branch from acf6074 to da42aef Compare September 19, 2025 17:34
Copy link

codecov bot commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 67.81609% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.93%. Comparing base (99d2b40) to head (f3cfa41).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
api/protocol_adaptors.go 41.93% 17 Missing and 1 partial ⚠️
protocol/communities/manager.go 62.96% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6944      +/-   ##
===========================================
- Coverage    58.95%   58.93%   -0.02%     
===========================================
  Files          822      823       +1     
  Lines       122002   122261     +259     
===========================================
+ Hits         71921    72051     +130     
- Misses       42649    42804     +155     
+ Partials      7432     7406      -26     
Flag Coverage Δ
functional 31.48% <67.94%> (+0.05%) ⬆️
unit 54.92% <59.77%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
api/geth_backend.go 52.85% <100.00%> (+0.05%) ⬆️
protocol/communities/permission_checker.go 78.11% <100.00%> (ø)
protocol/communities/permissioned_balances.go 86.78% <100.00%> (ø)
protocol/messenger.go 61.38% <100.00%> (+0.12%) ⬆️
protocol/messenger_config.go 94.28% <100.00%> (+0.16%) ⬆️
services/ext/service.go 25.08% <100.00%> (+0.25%) ⬆️
protocol/communities/manager.go 60.89% <62.96%> (-2.62%) ⬇️
api/protocol_adaptors.go 41.93% <41.93%> (ø)

... and 30 files with indirect coverage changes

@dlipicar dlipicar force-pushed the chore/improve-messenger-dependency-injection branch from da42aef to f3cfa41 Compare September 19, 2025 19:02
@dlipicar dlipicar merged commit 7c3969b into develop Sep 19, 2025
21 checks passed
@dlipicar dlipicar deleted the chore/improve-messenger-dependency-injection branch September 19, 2025 19:42
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.

4 participants