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: new walletconnect provider #27

Merged
merged 12 commits into from
Aug 7, 2024
Merged

Conversation

mrnaveira
Copy link
Collaborator

@mrnaveira mrnaveira commented Jul 17, 2024

Description

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

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

@mrnaveira mrnaveira marked this pull request as ready for review July 24, 2024 14:46
@mrnaveira mrnaveira marked this pull request as draft July 24, 2024 14:47
github-merge-queue bot pushed a commit to tari-project/tari-dan that referenced this pull request Jul 25, 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
---

- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify

---------

Co-authored-by: Stan Bondi <[email protected]>
github-merge-queue bot pushed a commit to tari-project/tari-dan that referenced this pull request Jul 30, 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
---

- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify

---------

Co-authored-by: Stan Bondi <[email protected]>
@mrnaveira mrnaveira marked this pull request as ready for review July 31, 2024 15:27
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.

utACK

@sdbondi sdbondi added this pull request to the merge queue Aug 7, 2024
Merged via the queue into tari-project:main with commit 0a460ab Aug 7, 2024
2 checks passed
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.

2 participants