Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet)_: store route execution data #5970

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

dlipicar
Copy link
Contributor

@dlipicar dlipicar commented Oct 21, 2024

Closes #6039

Store route execution input/output data after successfully sending transactions to the chain.
This includes:

  • Route input params
  • Tx Build input params
  • Paths
  • Transactions generated and sent for each path

NOTE: There's certain operation that don't use the standard mechanism for sending transactions to the chain:

  • Community token stuff (mint, airdrop, etc)
  • DApps stuff

All these call send transactions to the chain directly and call TrackPendingTransaction. All these operations should ideally be moved to the router, or some other standard mechanism.

Also added a new db for the "PendingTxTracker". It will eventually replace the pending_transactions table, it's much simpler and only contains tx ID and status data. Moreover, it doesn't get removed, it retains the last state update.

@status-im-auto
Copy link
Member

status-im-auto commented Oct 21, 2024

Jenkins Builds

Click to see older builds (87)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 30cbed4 #1 2024-10-21 13:14:05 ~3 min tests 📄log
✔️ 30cbed4 #1 2024-10-21 13:15:25 ~4 min linux 📦zip
✔️ 30cbed4 #1 2024-10-21 13:15:51 ~5 min android 📦aar
✔️ 30cbed4 #1 2024-10-21 13:15:57 ~5 min ios 📦zip
✔️ 30cbed4 #1 2024-10-21 13:16:30 ~5 min tests-rpc 📄log
✔️ 16ef3b6 #2 2024-10-21 21:50:35 ~2 min android 📦aar
✔️ 16ef3b6 #2 2024-10-21 21:50:50 ~2 min linux 📦zip
✔️ 16ef3b6 #2 2024-10-21 21:51:15 ~3 min ios 📦zip
✖️ 16ef3b6 #2 2024-10-21 21:51:28 ~3 min tests 📄log
✖️ 16ef3b6 #2 2024-10-21 21:54:02 ~5 min tests-rpc 📄log
✖️ 50939bf #3 2024-10-22 13:23:08 ~2 min tests 📄log
✔️ 50939bf #3 2024-10-22 13:23:33 ~2 min android 📦aar
✔️ 50939bf #3 2024-10-22 13:24:22 ~3 min ios 📦zip
✔️ 50939bf #3 2024-10-22 13:25:40 ~4 min linux 📦zip
✖️ 50939bf #3 2024-10-22 13:26:46 ~5 min tests-rpc 📄log
✔️ 1e49295 #4 2024-10-22 20:52:06 ~1 min android 📦aar
✔️ 1e49295 #4 2024-10-22 20:53:07 ~2 min linux 📦zip
✔️ 1e49295 #4 2024-10-22 20:53:19 ~3 min ios 📦zip
✖️ 1e49295 #4 2024-10-22 20:53:48 ~3 min tests 📄log
✖️ 1e49295 #4 2024-10-22 20:56:57 ~6 min tests-rpc 📄log
✖️ 13e397a #5 2024-10-23 16:28:48 ~2 min tests 📄log
✔️ 13e397a #5 2024-10-23 16:29:11 ~2 min android 📦aar
✔️ 13e397a #5 2024-10-23 16:29:29 ~2 min linux 📦zip
✔️ 13e397a #5 2024-10-23 16:29:34 ~3 min ios 📦zip
✔️ 13e397a #5 2024-10-23 16:32:19 ~5 min tests-rpc 📄log
✖️ f42fa1f #6 2024-10-29 01:38:19 ~2 min tests 📄log
✔️ f42fa1f #6 2024-10-29 01:40:05 ~4 min ios 📦zip
✔️ f42fa1f #6 2024-10-29 01:40:26 ~4 min linux 📦zip
✔️ f42fa1f #6 2024-10-29 01:40:39 ~5 min android 📦aar
✔️ f42fa1f #1 2024-10-29 01:40:40 ~5 min macos 📦zip
✔️ f42fa1f #1 2024-10-29 01:41:01 ~5 min macos 📦zip
✔️ f42fa1f #6 2024-10-29 01:41:13 ~5 min tests-rpc 📄log
✖️ f42fa1f #1 2024-10-29 01:46:32 ~10 min windows 📦zip
82ead76 #7 2024-11-04 05:06:07 ~1 min ios 📄log
82ead76 #7 2024-11-04 05:06:20 ~1 min android 📄log
✖️ 82ead76 #7 2024-11-04 05:06:38 ~2 min tests-rpc 📄log
82ead76 #7 2024-11-04 05:06:46 ~2 min linux 📄log
82ead76 #2 2024-11-04 05:06:50 ~2 min macos 📄log
✖️ 82ead76 #7 2024-11-04 05:07:35 ~3 min tests 📄log
82ead76 #2 2024-11-04 05:08:01 ~3 min macos 📄log
82ead76 #2 2024-11-04 05:08:33 ~4 min windows 📄log
✖️ 4984280 #8 2024-11-04 05:20:50 ~2 min tests 📄log
✖️ 4984280 #8 2024-11-04 05:21:38 ~3 min tests-rpc 📄log
✔️ 4984280 #3 2024-11-04 05:22:03 ~3 min windows 📦zip
✔️ 4984280 #3 2024-11-04 05:22:44 ~4 min macos 📦zip
✔️ 4984280 #3 2024-11-04 05:23:22 ~5 min macos 📦zip
✔️ 4984280 #8 2024-11-04 05:23:26 ~5 min android 📦aar
✔️ 4984280 #8 2024-11-04 05:23:26 ~5 min linux 📦zip
✔️ 4984280 #8 2024-11-04 05:23:37 ~5 min ios 📦zip
✖️ 90b964e #9 2024-11-04 19:40:51 ~3 min tests 📄log
✖️ 90b964e #9 2024-11-04 19:41:18 ~3 min tests-rpc 📄log
✔️ 90b964e #4 2024-11-04 19:42:04 ~4 min windows 📦zip
✔️ 90b964e #9 2024-11-04 19:42:40 ~5 min linux 📦zip
✔️ 90b964e #9 2024-11-04 19:42:52 ~5 min android 📦aar
✔️ 90b964e #4 2024-11-04 19:42:57 ~5 min macos 📦zip
✖️ f8610f5 #10 2024-11-04 20:54:13 ~2 min tests 📄log
✔️ f8610f5 #10 2024-11-04 20:56:05 ~4 min tests-rpc 📄log
✔️ f8610f5 #5 2024-11-04 20:56:13 ~4 min windows 📦zip
✔️ f8610f5 #5 2024-11-04 20:56:27 ~4 min macos 📦zip
✔️ f8610f5 #10 2024-11-04 20:56:42 ~4 min ios 📦zip
✔️ f8610f5 #10 2024-11-04 20:57:01 ~5 min linux 📦zip
✔️ f8610f5 #5 2024-11-04 20:57:09 ~5 min macos 📦zip
✔️ f8610f5 #10 2024-11-04 20:57:09 ~5 min android 📦aar
✖️ eddd7f7 #11 2024-11-07 02:36:58 ~1 min tests 📄log
✔️ eddd7f7 #6 2024-11-07 02:39:37 ~4 min windows 📦zip
✔️ eddd7f7 #11 2024-11-07 02:39:41 ~4 min tests-rpc 📄log
✔️ eddd7f7 #11 2024-11-07 02:39:52 ~4 min linux 📦zip
✔️ eddd7f7 #6 2024-11-07 02:40:23 ~5 min macos 📦zip
✔️ eddd7f7 #11 2024-11-07 02:40:30 ~5 min android 📦aar
✔️ eddd7f7 #6 2024-11-07 02:41:31 ~6 min macos 📦zip
✔️ eddd7f7 #11 2024-11-07 02:43:34 ~8 min ios 📦zip
✖️ 2b16ad1 #12 2024-11-07 02:45:48 ~1 min tests 📄log
✔️ 2b16ad1 #7 2024-11-07 02:47:51 ~3 min windows 📦zip
✔️ 2b16ad1 #12 2024-11-07 02:47:56 ~3 min tests-rpc 📄log
✔️ 2b16ad1 #12 2024-11-07 02:48:55 ~4 min linux 📦zip
✔️ 2b16ad1 #12 2024-11-07 02:49:12 ~5 min android 📦aar
✔️ 2b16ad1 #7 2024-11-07 02:49:18 ~5 min macos 📦zip
✔️ 2b16ad1 #7 2024-11-07 02:50:23 ~6 min macos 📦zip
✔️ 2b16ad1 #12 2024-11-07 02:52:19 ~8 min ios 📦zip
✔️ ddfcc79 #8 2024-11-07 02:51:37 ~3 min windows 📦zip
✔️ ddfcc79 #13 2024-11-07 02:52:09 ~4 min tests-rpc 📄log
✔️ ddfcc79 #13 2024-11-07 02:53:58 ~4 min linux 📦zip
✔️ ddfcc79 #13 2024-11-07 02:54:34 ~5 min android 📦aar
✔️ ddfcc79 #8 2024-11-07 02:54:43 ~5 min macos 📦zip
✔️ ddfcc79 #8 2024-11-07 02:56:15 ~5 min macos 📦zip
✔️ ddfcc79 #13 2024-11-07 03:00:05 ~7 min ios 📦zip
✔️ ddfcc79 #13 2024-11-07 03:20:25 ~33 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
5dc6a46 #14 2024-11-07 17:17:39 ~1 min ios 📄log
5dc6a46 #14 2024-11-07 17:17:46 ~1 min android 📄log
✖️ 5dc6a46 #14 2024-11-07 17:18:13 ~2 min tests-rpc 📄log
5dc6a46 #9 2024-11-07 17:18:18 ~2 min windows 📄log
✖️ 5dc6a46 #14 2024-11-07 17:18:18 ~2 min tests 📄log
5dc6a46 #9 2024-11-07 17:18:19 ~2 min macos 📄log
5dc6a46 #14 2024-11-07 17:18:30 ~2 min linux 📄log
5dc6a46 #9 2024-11-07 17:19:28 ~3 min macos 📄log
✔️ 4caebd9 #15 2024-11-07 23:22:24 ~4 min tests-rpc 📄log
✔️ 4caebd9 #10 2024-11-07 23:22:41 ~4 min windows 📦zip
✔️ 4caebd9 #15 2024-11-07 23:23:23 ~5 min linux 📦zip
✔️ 4caebd9 #15 2024-11-07 23:23:29 ~5 min android 📦aar
✔️ 4caebd9 #10 2024-11-07 23:23:38 ~5 min macos 📦zip
✔️ 4caebd9 #10 2024-11-07 23:24:38 ~6 min macos 📦zip
✔️ 4caebd9 #15 2024-11-07 23:26:29 ~8 min ios 📦zip
✔️ 4caebd9 #15 2024-11-07 23:51:40 ~33 min tests 📄log

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 66.35514% with 144 lines in your changes missing coverage. Please review.

Project coverage is 60.84%. Comparing base (f15c64c) to head (4caebd9).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
services/wallet/routeexecution/route_db.go 68.39% 37 Missing and 36 partials ⚠️
...vices/wallet/transfer/transaction_manager_route.go 48.61% 30 Missing and 7 partials ⚠️
transactions/pendingtxtracker_db.go 73.33% 9 Missing and 7 partials ⚠️
services/wallet/routeexecution/manager.go 59.09% 5 Missing and 4 partials ⚠️
transactions/pendingtxtracker.go 81.48% 3 Missing and 2 partials ⚠️
services/wallet/router/routes/router_path.go 0.00% 2 Missing ⚠️
services/wallet/transfer/transaction_manager.go 66.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5970      +/-   ##
===========================================
- Coverage    60.87%   60.84%   -0.04%     
===========================================
  Files          811      814       +3     
  Lines       108894   109252     +358     
===========================================
+ Hits         66293    66471     +178     
- Misses       34843    34947     +104     
- Partials      7758     7834      +76     
Flag Coverage Δ
functional 13.19% <44.39%> (+0.09%) ⬆️
unit 60.18% <54.20%> (-0.07%) ⬇️

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

Files with missing lines Coverage Δ
services/wallet/common/const.go 81.48% <100.00%> (+1.48%) ⬆️
services/wallet/routeexecution/route_db_types.go 100.00% <100.00%> (ø)
services/wallet/service.go 87.92% <100.00%> (ø)
services/wallet/router/routes/router_path.go 97.05% <0.00%> (-2.95%) ⬇️
services/wallet/transfer/transaction_manager.go 64.00% <66.66%> (+0.17%) ⬆️
transactions/pendingtxtracker.go 69.95% <81.48%> (+0.37%) ⬆️
services/wallet/routeexecution/manager.go 73.18% <59.09%> (-2.23%) ⬇️
transactions/pendingtxtracker_db.go 73.33% <73.33%> (ø)
...vices/wallet/transfer/transaction_manager_route.go 46.75% <48.61%> (+5.17%) ⬆️
services/wallet/routeexecution/route_db.go 68.39% <68.39%> (ø)

... and 25 files with indirect coverage changes

@dlipicar dlipicar force-pushed the feat/store-route-execution-data branch 3 times, most recently from 1e49295 to 13e397a Compare October 23, 2024 16:26
@dlipicar dlipicar force-pushed the feat/store-route-execution-data branch 3 times, most recently from 82ead76 to 4984280 Compare November 4, 2024 05:17
@dlipicar dlipicar force-pushed the feat/store-route-execution-data branch 2 times, most recently from 90b964e to f8610f5 Compare November 4, 2024 20:51
@dlipicar dlipicar force-pushed the feat/store-route-execution-data branch 2 times, most recently from eddd7f7 to 2b16ad1 Compare November 7, 2024 02:43
@dlipicar dlipicar force-pushed the feat/store-route-execution-data branch from 2b16ad1 to ddfcc79 Compare November 7, 2024 02:46
@dlipicar dlipicar marked this pull request as ready for review November 7, 2024 03:28
@dlipicar dlipicar requested review from alaibe, a team and friofry November 7, 2024 03:28
@dlipicar dlipicar merged commit 1940d26 into develop Nov 8, 2024
20 checks passed
@dlipicar dlipicar deleted the feat/store-route-execution-data branch November 8, 2024 12:03
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.

Store full Tx input data
4 participants