@desmoslabs/desmjs-walletconnect-modal
TypeScript icon, indicating that this package has built-in type declarations

6.0.5 • Public • Published

@desmoslabs/desmjs-walletconnect-modal

npm version

This package contains the DPMWalletConnectModal that is used inside @desmoslabs/desmjs-walletconnect-v2 to display a QR code to initialize a WalletConnect session or to trigger the opening of the DPM app on the mobile device.

Trigger DPM app open

This package provides logic that doesn't display the QR code on mobile devices but instead shows a button that, once pressed, will open the DPM app on the mobile device. To do so, this package will generate the following URIs based on the mobile device OS:

  • Android: intent://wcV2?uri=$WC_URI&returnToApp=true#Intent;package=network.desmos.dpm.debug;scheme=dpm;end;
  • iOS: dpm://wcV2?uri=$WC_URI&returnToApp=true

The generated URI has two query parameters:

  • uri: The URL-encoded WalletConnect URI to start the new session.
  • returnToApp: To instruct DPM that after accepting the request the app should return to the previous app.

Readme

Keywords

none

Package Sidebar

Install

npm i @desmoslabs/desmjs-walletconnect-modal

Weekly Downloads

0

Version

6.0.5

License

Apache-2.0

Unpacked Size

83.3 kB

Total Files

11

Last publish

Collaborators

  • alessandro_desmos
  • rmontagnin
  • desmosnetwork
  • manuel.turetta