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

Update sending transaction end point (#21480) #21541

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Oct 31, 2024

Fixes #21480

Basically utilizes the new transaction flow implemented on the go side:

  1. wallet_CreateMultiTransaction and wallet_ProceedWithTransactionsSignatures are now deprecated and not used anymore.
  2. wallet.sign.transactions signal is deprecated and not used either.

The new transaction flow looks like this:

  • we call wallet_BuildTransactionsFromRoute
  • wait for the wallet.router.sign-transactions signal
  • sign received hashes using wallet_SignMessage call or sign on keycard
  • call wallet_SendRouterTransactionsWithSignatures with the signatures of signed hashes from the previous step
  • wallet.router.transactions-sent signal will be sent after sending transactions or an error occurs

Platforms

  • Android
  • iOS

Areas that maybe impacted

Functional
  • swaps
  • send transactions

@alwx alwx self-assigned this Oct 31, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Oct 31, 2024

Jenkins Builds

Click to see older builds (31)
Commit #️⃣ Finished (UTC) Duration Platform Result
cf5e396 #1 2024-10-31 12:12:07 ~2 min tests 📄log
✔️ cf5e396 #1 2024-10-31 12:17:17 ~7 min android-e2e 🤖apk 📲
✔️ cf5e396 #1 2024-10-31 12:18:16 ~8 min android 🤖apk 📲
✔️ cf5e396 #1 2024-10-31 12:19:05 ~9 min ios 📱ipa 📲
840b9dc #2 2024-10-31 14:47:07 ~3 min tests 📄log
dcfdfe2 #4 2024-10-31 14:53:34 ~2 min tests 📄log
✔️ dcfdfe2 #4 2024-10-31 14:58:57 ~7 min android-e2e 🤖apk 📲
✔️ dcfdfe2 #4 2024-10-31 14:59:53 ~8 min android 🤖apk 📲
✔️ dcfdfe2 #4 2024-10-31 15:00:18 ~9 min ios 📱ipa 📲
0d03673 #6 2024-11-04 09:04:22 ~2 min tests 📄log
✔️ 0d03673 #6 2024-11-04 09:09:39 ~7 min android-e2e 🤖apk 📲
✔️ 0d03673 #6 2024-11-04 09:09:54 ~8 min android 🤖apk 📲
✔️ 0d03673 #6 2024-11-04 09:10:39 ~8 min ios 📱ipa 📲
a356269 #7 2024-11-05 11:41:39 ~2 min tests 📄log
✔️ a356269 #7 2024-11-05 11:47:10 ~8 min android-e2e 🤖apk 📲
✔️ a356269 #7 2024-11-05 11:47:49 ~9 min ios 📱ipa 📲
✔️ a356269 #7 2024-11-05 11:47:55 ~9 min android 🤖apk 📲
af212ff #8 2024-11-06 12:47:16 ~2 min tests 📄log
af212ff #8 2024-11-06 12:47:29 ~3 min ios 📄log
✔️ af212ff #8 2024-11-06 12:52:55 ~8 min android-e2e 🤖apk 📲
✔️ af212ff #8 2024-11-06 12:53:30 ~9 min android 🤖apk 📲
b86660d #9 2024-11-06 16:08:47 ~2 min tests 📄log
b86660d #9 2024-11-06 16:09:07 ~2 min ios 📄log
✔️ b86660d #9 2024-11-06 16:15:42 ~9 min android-e2e 🤖apk 📲
✔️ b86660d #9 2024-11-06 16:16:12 ~9 min android 🤖apk 📲
d1afb9f #10 2024-11-06 22:09:14 ~2 min ios 📄log
d1afb9f #10 2024-11-06 22:09:35 ~3 min tests 📄log
1a5e40a #11 2024-11-06 22:14:12 ~2 min ios 📄log
1a5e40a #11 2024-11-06 22:15:00 ~3 min tests 📄log
✔️ 1a5e40a #11 2024-11-06 22:19:41 ~7 min android-e2e 🤖apk 📲
✔️ 1a5e40a #11 2024-11-06 22:20:14 ~8 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
78f1308 #12 2024-11-06 22:27:16 ~2 min tests 📄log
039ac63 #13 2024-11-06 22:29:58 ~2 min ios 📄log
039ac63 #13 2024-11-06 22:30:08 ~2 min tests 📄log
✔️ 039ac63 #13 2024-11-06 22:35:10 ~7 min android-e2e 🤖apk 📲
✔️ 039ac63 #13 2024-11-06 22:35:38 ~8 min android 🤖apk 📲

@alwx alwx force-pushed the update-sending-transactions-endpoint branch from 1a5e40a to 78f1308 Compare November 6, 2024 22:24
@alwx alwx changed the title WIP: Update sending transaction end point Update sending transaction end point Nov 6, 2024
@alwx alwx changed the title Update sending transaction end point Update sending transaction end point (#21480 + #21555) Nov 6, 2024
@alwx alwx marked this pull request as ready for review November 6, 2024 22:24
@alwx
Copy link
Contributor Author

alwx commented Nov 6, 2024

This one is now ready to be reviewed.

Comment on lines +263 to +267
(defn signature-rsv
[signature]
{:r (subs signature 0 64)
:s (subs signature 64 128)
:v (subs signature 128 130)})
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I see you are removing that file in this PR. Better to coordinate with @clauxx the path forward for this so we don't waste QA time testing the same code twice (also solving rebase conflicts better).

As I mentioned in Cristian's PR, would love to see some unit tests for this function, so it can serve as documentation for this sensible wallet code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. I removed that one.
This one is fixed + it returns only the signature, and not the vector containing the tx-hash (which is kinda dumb in the original one).

Copy link
Member

@clauxx clauxx Nov 8, 2024

Choose a reason for hiding this comment

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

that PR was already QA'd, so I'll just merge it since this PR might take longer to merge. Conflict-wise shouldn't make much of a difference

@pavloburykh
Copy link
Contributor

@alwx UPDATE: your PR does not fix #21555. Most likely your branch was outdated when I checked, that's why I didn't reproduce. But I am reproducing now in the latest rebased build.

Issue should be fixed by status-im/status-go#6059

@alwx alwx changed the title Update sending transaction end point (#21480 + #21555) Update sending transaction end point (#21480) Nov 7, 2024
@alwx alwx requested a review from flexsurfer November 7, 2024 16:08
@smohamedjavid
Copy link
Member

@alwx - Can you help me update this PR to point to status-im/status-go#6059 PR (fix/swap-bridge-sending branch)?

It requires the new send flow #21600 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: REVIEW
Development

Successfully merging this pull request may close these issues.

📤 Update sending transaction end point
6 participants