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

[WIP] Wallet Activity: A more reliable update #21596

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Nov 6, 2024

fixes #21583
fixes #21667

Summary

This PR:

  • Removes the usage of deprecated wallet_filterActivityAsync RPC and updates it to wallet_startActivityFilterSessionV2 with other supporting activity filter session RPCs
  • Removes deprecated wallet_checkRecentHistoryForChainIDs RPC as we no longer support past transaction history
  • Added support for Bridge, Swap and Approval activities
  • Added support for viewing, copying and sharing links to TX details on block explorer
Activities.mp4

Review notes

This PR will be open to review or testing once we move to the new transaction RPC flow, as the activities depend on it.

Testing notes

The activities are shown only for the accounts where the activity originated from

Platforms

  • Android
  • iOS

Steps to test

Prerequisites: A wallet account with some tokens
  • Open Status
  • Navigate to the Wallet tab
  • Perform a Send transaction
  • Verify the transaction is shown in the activity tab
  • Perform a Bridge transaction
  • Verify the transaction is shown in the activity tab
  • Perform a Swap transaction
  • Verify the transaction is shown in the activity tab (If approval is done, verify it's shown as well)
  • Verify all the transaction shows options to view, copy, and share the TX details to respective block explorer

status: WIP

@smohamedjavid smohamedjavid self-assigned this Nov 6, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Nov 6, 2024

Jenkins Builds

Click to see older builds (20)
Commit #️⃣ Finished (UTC) Duration Platform Result
540d649 #1 2024-11-06 21:15:53 ~2 min tests 📄log
540d649 #1 2024-11-06 21:16:42 ~3 min ios 📄log
✔️ 540d649 #1 2024-11-06 21:20:06 ~6 min android-e2e 🤖apk 📲
✔️ 540d649 #1 2024-11-06 21:20:58 ~7 min android 🤖apk 📲
e3409e6 #2 2024-11-07 19:55:12 ~2 min ios 📄log
✔️ e3409e6 #2 2024-11-07 19:57:34 ~4 min tests 📄log
✔️ e3409e6 #2 2024-11-07 20:01:48 ~9 min android-e2e 🤖apk 📲
✔️ e3409e6 #2 2024-11-07 20:02:19 ~9 min android 🤖apk 📲
✔️ 84a725e #3 2024-11-15 12:08:02 ~5 min tests 📄log
✔️ 84a725e #3 2024-11-15 12:12:42 ~9 min android-e2e 🤖apk 📲
✔️ 84a725e #3 2024-11-15 12:13:49 ~10 min android 🤖apk 📲
✔️ 84a725e #3 2024-11-15 12:14:17 ~11 min ios 📱ipa 📲
792fd0c #4 2024-11-22 16:26:43 ~4 min tests 📄log
792fd0c #4 2024-11-22 16:28:16 ~6 min android-e2e 📄log
792fd0c #4 2024-11-22 16:29:14 ~7 min android 📄log
792fd0c #4 2024-11-22 16:31:05 ~9 min ios 📄log
6cfce43 #5 2024-11-22 17:57:35 ~4 min tests 📄log
✔️ 6cfce43 #5 2024-11-22 18:02:46 ~9 min android-e2e 🤖apk 📲
✔️ 6cfce43 #5 2024-11-22 18:03:20 ~10 min ios 📱ipa 📲
✔️ 6cfce43 #5 2024-11-22 18:04:14 ~11 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ffd3d65 #6 2024-11-22 19:00:43 ~4 min tests 📄log
✔️ ffd3d65 #6 2024-11-22 19:04:37 ~8 min ios 📱ipa 📲
✔️ ffd3d65 #6 2024-11-22 19:04:39 ~8 min android-e2e 🤖apk 📲
✔️ ffd3d65 #6 2024-11-22 19:05:17 ~9 min android 🤖apk 📲
✔️ 2f85bf3 #7 2024-11-26 12:34:38 ~5 min tests 📄log
✔️ 2f85bf3 #7 2024-11-26 12:36:57 ~8 min android-e2e 🤖apk 📲
✔️ 2f85bf3 #7 2024-11-26 12:39:13 ~10 min android 🤖apk 📲
✔️ 2f85bf3 #7 2024-11-26 12:42:42 ~13 min ios 📱ipa 📲

Copy link
Contributor

@mohsen-ghafouri mohsen-ghafouri left a comment

Choose a reason for hiding this comment

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

It looks good to me, will link and test it with status-go changes once that is ready

@alwx
Copy link
Contributor

alwx commented Nov 21, 2024

This PR will be open to review or testing once we move to the new transaction RPC flow, as the activities depend on it.

how do they depend on it? the transaction RPC flow is basically about send, swap, bridge transactions — it doesn't affect how the filtering of activities is done

@mohsen-ghafouri
Copy link
Contributor

@alwx it looks new activity filter rpc works with new send transaction rpc. to test it we need new flow to be done.

@smohamedjavid
Copy link
Member Author

This PR will be open to review or testing once we move to the new transaction RPC flow, as the activities depend on it.

how do they depend on it? the transaction RPC flow is basically about send, swap, bridge transactions — it doesn't affect how the filtering of activities is done

@alwx - The new activities we will integrate into the client are locally generated by status-go in the latest transaction RPCs/Flow, not in the deprecated ones we use now.

@smohamedjavid smohamedjavid changed the title [WIP] Wallet Activity: Remove deprecated RPCs and use activity filter session RPC [WIP] Wallet Activity: A more reliable update Nov 22, 2024
@smohamedjavid smohamedjavid force-pushed the chore/activity-rpc-cleanup branch 2 times, most recently from 6cfce43 to ffd3d65 Compare November 22, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: CONTRIBUTOR
4 participants