Skip to content

Conversation

@dlipicar
Copy link
Contributor

@dlipicar dlipicar commented Oct 15, 2025

  1. Remove balance package, not used anymore.
  2. Clean up unused rpc.Client-related methods
  3. Use interfaces instead of the concrete rpc.Client type almost everywhere
  4. Cleanup transactor and deprecate single-chain backend methods that were replaced by multi-chain ones.
  5. Cleanup and extract pendingtxtracker

TODO: Basicallyh every method from transactor that is exposed through direct C-bindings should instead be exposed through the connector service. Only WalletConnect is using it status-desktop side.

@status-im-auto
Copy link
Member

status-im-auto commented Oct 15, 2025

Jenkins Builds

Click to see older builds (37)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ec70240 #1 2025-10-15 19:52:53 ~4 min linux/status-go 📦zip
✔️ ec70240 #1 2025-10-15 19:53:36 ~4 min macos/status-go 📦zip
✖️ ec70240 #1 2025-10-15 19:54:55 ~5 min tests 📄log
✔️ ec70240 #1 2025-10-15 19:55:40 ~6 min windows/status-go 📦zip
✔️ ec70240 #1 2025-10-15 20:00:15 ~11 min linux/nwaku 📦zip
✔️ ec70240 #1 2025-10-15 20:00:50 ~11 min tests-rpc 📄log
✔️ c596737 #2 2025-10-16 01:48:25 ~3 min linux/status-go 📦zip
✔️ c596737 #2 2025-10-16 01:49:11 ~4 min macos/status-go 📦zip
✖️ c596737 #2 2025-10-16 01:50:06 ~5 min tests 📄log
✔️ c596737 #2 2025-10-16 01:51:16 ~6 min windows/status-go 📦zip
✔️ c596737 #2 2025-10-16 01:55:53 ~11 min linux/nwaku 📦zip
✔️ c596737 #2 2025-10-16 01:56:21 ~11 min tests-rpc 📄log
✔️ 29c0ba6 #3 2025-10-16 02:14:33 ~3 min macos/status-go 📦zip
✔️ 29c0ba6 #3 2025-10-16 02:14:48 ~4 min linux/status-go 📦zip
✖️ 29c0ba6 #3 2025-10-16 02:16:26 ~5 min tests 📄log
✔️ 29c0ba6 #3 2025-10-16 02:17:44 ~6 min windows/status-go 📦zip
✔️ 29c0ba6 #3 2025-10-16 02:22:19 ~11 min tests-rpc 📄log
✔️ 29c0ba6 #3 2025-10-16 02:22:23 ~11 min linux/nwaku 📦zip
✔️ 6724214 #4 2025-10-16 11:54:48 ~4 min linux/status-go 📦zip
✖️ 6724214 #4 2025-10-16 11:56:12 ~5 min tests 📄log
✔️ 6724214 #4 2025-10-16 11:57:20 ~6 min windows/status-go 📦zip
✔️ 6724214 #4 2025-10-16 12:02:42 ~12 min tests-rpc 📄log
✔️ 6724214 #4 2025-10-16 12:03:18 ~12 min linux/nwaku 📦zip
6724214 #4 2025-10-16 12:09:00 ~18 min macos/status-go 📄log
✔️ 6724214 #5 2025-10-16 12:17:14 ~7 min macos/status-go 📦zip
✔️ df905ef #6 2025-10-16 20:42:38 ~3 min macos/status-go 📦zip
✔️ df905ef #5 2025-10-16 20:42:43 ~3 min linux/status-go 📦zip
✖️ df905ef #5 2025-10-16 20:44:34 ~5 min tests 📄log
✔️ df905ef #5 2025-10-16 20:45:51 ~6 min windows/status-go 📦zip
✔️ df905ef #5 2025-10-16 20:49:56 ~10 min linux/nwaku 📦zip
✔️ df905ef #5 2025-10-16 20:50:40 ~11 min tests-rpc 📄log
✔️ c0b1a2a #6 2025-10-17 02:56:51 ~4 min linux/status-go 📦zip
✔️ c0b1a2a #7 2025-10-17 02:57:20 ~4 min macos/status-go 📦zip
✔️ c0b1a2a #6 2025-10-17 03:00:33 ~7 min windows/status-go 📦zip
✔️ c0b1a2a #6 2025-10-17 03:04:33 ~11 min tests-rpc 📄log
✔️ c0b1a2a #6 2025-10-17 03:05:15 ~12 min linux/nwaku 📦zip
✔️ c0b1a2a #6 2025-10-17 03:20:15 ~27 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ fb6ec5a #8 2025-10-17 03:01:04 ~3 min macos/status-go 📦zip
✔️ fb6ec5a #7 2025-10-17 03:01:32 ~4 min linux/status-go 📦zip
✔️ 0325ff1 #9 2025-10-17 03:04:46 ~3 min macos/status-go 📦zip
✔️ 0325ff1 #8 2025-10-17 03:06:01 ~4 min linux/status-go 📦zip
✔️ 0325ff1 #7 2025-10-17 03:07:52 ~7 min windows/status-go 📦zip
✔️ 0325ff1 #7 2025-10-17 03:16:39 ~11 min tests-rpc 📄log
✔️ 0325ff1 #7 2025-10-17 03:16:44 ~11 min linux/nwaku 📦zip
✔️ 0325ff1 #7 2025-10-17 03:48:34 ~28 min tests 📄log

@dlipicar dlipicar force-pushed the chore/cleanup-chain-client branch from ec70240 to c596737 Compare October 16, 2025 01:44
@dlipicar dlipicar changed the title chore: cleanup chain client chore: cleanup chain client and transactor Oct 16, 2025
@dlipicar dlipicar force-pushed the chore/cleanup-chain-client branch from c596737 to 29c0ba6 Compare October 16, 2025 02:10
@dlipicar dlipicar marked this pull request as ready for review October 16, 2025 11:48
@dlipicar dlipicar force-pushed the chore/cleanup-chain-client branch from 29c0ba6 to 6724214 Compare October 16, 2025 11:50
Copy link
Contributor

@friofry friofry left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@dlipicar dlipicar force-pushed the chore/cleanup-chain-client branch 2 times, most recently from c0b1a2a to fb6ec5a Compare October 17, 2025 02:54
@dlipicar dlipicar force-pushed the chore/cleanup-chain-client branch from fb6ec5a to 0325ff1 Compare October 17, 2025 02:58
@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 72.27139% with 94 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.37%. Comparing base (b65e462) to head (0325ff1).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...ervices/wallet/pendingtxtracker/txstatusfetcher.go 68.25% 14 Missing and 6 partials ⚠️
transactions/rpc_wrapper.go 46.15% 9 Missing and 5 partials ⚠️
...rvices/wallet/pendingtxtracker/pendingtxtracker.go 65.78% 12 Missing and 1 partial ⚠️
services/wallet/router/fees/fees_history.go 18.18% 8 Missing and 1 partial ⚠️
...allet/router/pathprocessor/processor_bridge_hop.go 66.66% 4 Missing ⚠️
api/geth_backend.go 25.00% 3 Missing ⚠️
services/communitytokens/service.go 66.66% 2 Missing ⚠️
services/wallet/activityfetcher/service.go 60.00% 2 Missing ⚠️
services/wallet/pendingtxtracker/testhelpers.go 93.75% 1 Missing and 1 partial ⚠️
node/status_node_services.go 75.00% 1 Missing ⚠️
... and 24 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7008      +/-   ##
===========================================
+ Coverage    54.99%   59.37%   +4.37%     
===========================================
  Files          823      820       -3     
  Lines       116510   115759     -751     
===========================================
+ Hits         64077    68729    +4652     
+ Misses       45649    39940    -5709     
- Partials      6784     7090     +306     
Flag Coverage Δ
functional 35.18% <57.52%> (?)
unit 54.96% <56.63%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
node/get_status_node.go 68.02% <ø> (+2.60%) ⬆️
protocol/messenger.go 61.20% <100.00%> (+2.76%) ⬆️
rpc/chain/client.go 38.09% <ø> (+9.57%) ⬆️
rpc/chain/ethclient/eth_client.go 1.36% <ø> (+0.32%) ⬆️
rpc/client.go 72.95% <100.00%> (+14.31%) ⬆️
rpc/provider_chain_client_getter.go 100.00% <100.00%> (ø)
services/communitytokens/manager.go 35.60% <100.00%> (-0.97%) ⬇️
services/ens/api.go 13.55% <ø> (ø)
services/ens/service.go 100.00% <ø> (ø)
services/stickers/api.go 3.68% <100.00%> (-0.59%) ⬇️
... and 51 more

... and 192 files with indirect coverage changes

@dlipicar dlipicar merged commit 512e27d into develop Oct 17, 2025
21 checks passed
@dlipicar dlipicar deleted the chore/cleanup-chain-client branch October 17, 2025 10:29
AYAHASSAN287 pushed a commit that referenced this pull request Oct 20, 2025
* chore: make rpc.Client implement EthClientGetter

* chore: remove unused types

* chore: cleanup unused methods and use interface instead of rpc Client

* chore: cleanup transactor

* chore: move pendingtxtracker to separate package

* chore: fix tests
AYAHASSAN287 pushed a commit that referenced this pull request Oct 20, 2025
* chore: make rpc.Client implement EthClientGetter

* chore: remove unused types

* chore: cleanup unused methods and use interface instead of rpc Client

* chore: cleanup transactor

* chore: move pendingtxtracker to separate package

* chore: fix tests
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