Repository navigation
Add JAW to the wallet list #8069
LeoFranklin015
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Uniswap Labs team,
JAW.id is a passkey smart account wallet (ERC-4337). No extension and no seed phrase: connecting is a passkey prompt. It ships an EIP-1193 provider and a wagmi connector,
@jaw.id/wagmi, and it supports EIP-5792 withatomic: { status: "supported" }, so One Click Swap works through the CAIP-25 session path the interface already has.We would like to add JAW to the wallet list at app.uniswap.org. We know this repo is a mirror and does not take PRs, so here is the patch instead, generated against
Uniswap/interface@main.Summary
package.json,apps/web/package.json(+ 9 workspaces)@jaw.id/wagmi, bumpviemto 2.57.1packages/uniswap/src/constants/web3.tsapps/web/src/connection/wagmiConfig.tsapps/web/src/features/wallet/connection/hooks/useOrderedWalletConnectors.tsFile 4 is the one that gates visibility. A connector that is neither
type: "injected"nor one of the four hardcoded SDK ids is registered and reconnectable but never rendered. Everything else handles a new wagmi connector generically.1. Dependencies
package.json(rootresolutions)apps/web/package.jsonSame one-line
viembump in the other 9 workspacesapps/extension,apps/mobile,packages/api,packages/chains,packages/embedded-wallet,packages/mycelium,packages/sessions,packages/uniswap,packages/walletFull hunks are in the attached
.patch.2. Constants
packages/uniswap/src/constants/web3.ts3. Connector registration
apps/web/src/connection/wagmiConfig.tsThe connector's
rdnsmatches what the JAW SDK announces over EIP-6963, so wagmi dedupes them and JAW is not listed twice.4. Wallet list ordering
apps/web/src/features/wallet/connection/hooks/useOrderedWalletConnectors.ts4a. Look up the JAW connector
4b. Pass it to the primary list builder
4c. Primary list
JAW has nothing to install, so it sits in the primary list in both embedded-wallet modes rather than only when recently used.
Links
All reactions