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(tari_wallet_daemon): walletconnect support #1083

Merged
merged 23 commits into from
Jul 30, 2024

Conversation

mrnaveira
Copy link
Collaborator

@mrnaveira mrnaveira commented Jul 17, 2024

Description

Adds support for WalletConnect in the tari_wallet_daemon_ui:

  • Adds new envvar VITE_WALLET_CONNECT_PROJECT_ID
  • New button to accept WalletConnect URIs
  • Implements the WalletConnect communication logic using the official JavaScript Wallet SDK
  • Requests are being forwarded to the wallet daemon

Motivation and Context

We want to support WalletConnect in Tari, as this is a de facto standard for web-to-wallet interaction. It will allow any wallet (web or mobile) to add support for Tari without us having to implement anything extra.

In this context, the goal of this PR is to add support for WalletConnect in the Tari Wallet Daemon alongside the exising TariConnector.

For now we have separated UI buttons for both TariConnector and WalletConnect, due do some TariConnect logic being entangled into the UI. It should be possible to refactor to only have one generic button that accepts both types of connection URIs but it was left out of the scope of this PR.

See tari-project/tari.js#27 and tari-project/tari-template-web#6 for more information.

How Has This Been Tested?

Manually by running tari_swarm, opening the tari wallet daemon web UI and then paste a valid WalletConnect URI

What process can a PR reviewer use to test or verify this change?

See previous section

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

@mrnaveira mrnaveira marked this pull request as draft July 17, 2024 18:49
@mrnaveira mrnaveira changed the title feat: Walletconnect support in Tari Wallet Daemon feat: walletconnect support in tari wallet daemon Jul 17, 2024
Copy link

github-actions bot commented Jul 17, 2024

Test Results (CI)

542 tests  ±0   542 ✅ ±0   1h 30m 14s ⏱️ - 16m 18s
 64 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit e1a2669. ± Comparison against base commit f0beea4.

♻️ This comment has been updated with latest results.

@mrnaveira mrnaveira changed the title feat: walletconnect support in tari wallet daemon feat(tari_wallet_daemon): walletconnect support Jul 18, 2024
@mrnaveira mrnaveira marked this pull request as ready for review July 24, 2024 14:16
sdbondi
sdbondi previously approved these changes Jul 25, 2024
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

ACK

Didnt test the wallet connect functionality but confirmed the new functionality doesn't break the wallet web ui

@sdbondi sdbondi added this pull request to the merge queue Jul 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 25, 2024
@sdbondi sdbondi enabled auto-merge July 25, 2024 12:33
@mrnaveira mrnaveira marked this pull request as draft July 25, 2024 13:36
auto-merge was automatically disabled July 25, 2024 13:36

Pull request was converted to draft

@mrnaveira mrnaveira marked this pull request as ready for review July 25, 2024 18:25
@mrnaveira mrnaveira marked this pull request as draft July 26, 2024 10:27
@mrnaveira mrnaveira marked this pull request as ready for review July 29, 2024 11:47
@sdbondi sdbondi enabled auto-merge July 30, 2024 13:45
@sdbondi sdbondi added this pull request to the merge queue Jul 30, 2024
Merged via the queue into tari-project:development with commit 5b0820e Jul 30, 2024
12 checks passed
github-merge-queue bot pushed a commit to tari-project/tari.js that referenced this pull request Aug 7, 2024
Description
---
* Adds a new provider for WalletConnect
* Removed the `example` web page, as we already have [a project or that
purpose](https://github.com/tari-project/tari-template-web).

Motivation and Context
---
See tari-project/tari-dan#1083 and
tari-project/tari-template-web#6 for more
context

How Has This Been Tested?
---
This can only be tested alongside the changes in the tari wallet daemon
to support WalletConnect:
tari-project/tari-dan#1083

What process can a PR reviewer use to test or verify this change?
---
See previous section

Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

---------

Co-authored-by: Stan Bondi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants