capsule-corp-ternoa/ternoa-js-test-dapp

Wallet Connect integration

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

Currently we can only sign transactions using the polkadot{.js} extension.

Describe the solution you'd like

We should extend the signing process by make it compatible with the Ternoa Wallet on Mainnet and Alphanet.
This can be achieved by adding Wallet Connect to the project.

Here are the helpers needed in a new helpers > walletconnect.tsx file:

  • createClientWC: to init the wallet connect provider
  • connectWC: to get connected
  • disconnectWC: to get disconnected
  • signWC: to sign a transaction

Maybe we can also consider a redirection to the application for mobile users

Describe alternatives you've considered

Support our wallet is mandatory.

Additional context

No response