Skip to content

feat: Integrate WalletKit / WalletConnect v2 with multi-wallet support#91

Open
arawrdn wants to merge 4 commits intocompound-finance:mainfrom
arawrdn:main
Open

feat: Integrate WalletKit / WalletConnect v2 with multi-wallet support#91
arawrdn wants to merge 4 commits intocompound-finance:mainfrom
arawrdn:main

Conversation

@arawrdn
Copy link
Copy Markdown

@arawrdn arawrdn commented Sep 29, 2025

feat: Integrate WalletKit / WalletConnect v2 with multi-wallet support

Summary of changes:

  1. WalletKit / WalletConnect v2 integration

    • Using PROJECT_ID=180a7164cfa9e5388daf1160841f65a0
    • Multi-wallet support: Metamask, Rainbow, Coinbase, Trust Wallet
    • QR modal & mobile deep link for mobile wallets
  2. Session management

    • Automatic session restore on page reload
    • Event listeners for accountsChanged, chainChanged, disconnect, and session_expire
  3. Chain / network management

    • Supports Mainnet, Optimism, and Base
    • Auto prompts user if the network/chain is incorrect
  4. JS/TS Bridge & Elm Port

    • walletKit.ts helper for WalletKit / WalletConnect
    • walletBridge.ts for Elm bridge
    • Elm port WalletConnect.elm for connect/disconnect actions
  5. UI updates

    • Added Connect/Disconnect buttons in modal:
      Connect Wallet (WalletKit)
      Disconnect
  6. Documentation

    • Updated README with instructions for WalletKit / WalletConnect v2 setup
    • Explains multi-wallet support, session restore, chain management, and event listeners

Optional checklist for reviewers:

  • Tested wallet connection on Mainnet, Optimism, and Base
  • Verified session restore works on page reload
  • Event listeners (accountsChanged, chainChanged, disconnect) work correctly
  • UI buttons trigger the correct Elm ports
  • README instructions are clear and accurate

@arawrdn
Copy link
Copy Markdown
Author

arawrdn commented Sep 29, 2025

Little update :) thank u

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.

1 participant