app-monorepo icon indicating copy to clipboard operation
app-monorepo copied to clipboard

OK-25167, OK-25560: Integrate WalletConnect for DApp management

Open originalix opened this issue 1 year ago • 2 comments
trafficstars

originalix avatar Feb 18 '24 06:02 originalix

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Feb 18 '24 06:02 codesandbox[bot]

PR Summary

  • The word "caips" was added to aid spell checking.

  • Implementation for Wallet Connect service was added - this includes getting the wallet connect service (serviceWalletConnect) and keeping track of individual sessions (walletConnectTopic).

  • Several updates were made to the ProviderApiWalletConnect class including adding logic for session proposals and requests. These updates help manage the interactions with external wallets through the Wallet Connect protocol.

  • For the SimpleDbEntityDappConnection class, similar updates were made to handle wallet connect sessions.

  • In ServiceDApp.ts file, functions were added to update sessions, disconnect websites, save connection sessions, handle disconnection of all websites, and retrieve the list of all connected websites. This allows for better management of connections between the DApp and external wallet users.

  • New component and Wallet Connect service class were created in their respective files for general functioning and implementation of the Wallet Connect service.

  • Modifications to connection list item components, account list item components and request layout components in the DApp were made to accommodate the new Wallet Connect updates.

  • Some unused and irrelevant imports were removed from various files for better code cleanliness and efficiency.

  • The SessionProposalModal file was removed and replaced with the WCSessionProposalModal for handling Wallet Connect session proposals.

  • Other constants, namespaces, and methods have also been added to handle the new Wallet Connect integration.

This update is majorly focused on integrating Wallet Connect, which is a protocol for connecting Decentralized Applications (DApps) with mobile wallets. This enhancement allows users to interact with the DApp through an external mobile wallet, providing a secure and seamless user experience.

what-the-diff[bot] avatar Feb 18 '24 06:02 what-the-diff[bot]

需要解决下冲突

huhuanming avatar Feb 26 '24 06:02 huhuanming