How uniswap/interface works
This repository contains three front-end interfaces: the Uniswap web app, mobile wallet, and browser wallet extension. The extension tree shows a principal dapp workflow: a website submits Ethereum provider requests through the content script, the background coordinates requests, and the wallet UI presents approval and signing flows. The graph also retains README-level coverage of the web and mobile products and major extension capabilities. Source excerpts are limited, so undocumented internal connections are omitted rather than inferred.
Main entry points: PopupApp.tsx Popup and sidebar · WindowEthereumProxy.ts Ethereum provider · methodHandlers Method handlers · messageChannels.ts Extension messaging
Components 29
Wallet Extension
- Ethereum provider
apps/extension/src/contentScript/WindowEthereumProxy.ts - Method handlers
apps/extension/src/contentScript/methodHandlers - Extension messaging
apps/extension/src/background/messagePassing/messageChannels.ts - Background coordinator
apps/extension/src/background/backgroundDappRequests.ts - Request approval UI
apps/extension/src/app/features/dappRequests/DappRequestContent.tsx - Request queue
apps/extension/src/app/features/dappRequests/DappRequestQueue.tsx - Transaction signing
apps/extension/src/app/features/dappRequests/hooks/usePrepareAndSignDappTransaction.ts - Popup and sidebar
apps/extension/src/app/core/PopupApp.tsx - Wallet onboarding
apps/extension/src/app/features/onboarding/OnboardingScreen.tsx - Account management
apps/extension/src/app/features/accounts/AccountSwitcherScreen.tsx - Portfolio and activity
apps/extension/src/app/features/home/HomeScreen.tsx - Send and swap
apps/extension/src/app/features/send/SendFlow.tsx - Wallet settings
apps/extension/src/app/features/settings/SettingsScreen.tsx - Unitag profiles
apps/extension/src/app/features/unitags/UnitagCreateUsernameScreen.tsx - Extension state
apps/extension/src/store/store.ts - Notifications
apps/extension/src/notification-service/ExtensionNotificationService.tsx
Web App
- Auction bidding
apps/web/src/features/Toucan/Auction/hooks/useBidFormController.ts - Portfolio routing
apps/web/src/pages/Portfolio/Header/hooks/usePortfolioRoutes.ts
Mobile Wallet
- Mobile wallet app
apps/mobile/src/features/CloudBackup/RNCloudStorageBackupsManager.ts - Cloud backup service
apps/mobile/ios/Uniswap/RNCloudBackupsManager/RNCloudStorageBackupsManager.swift - Native key storage
apps/mobile/ios/Uniswap/RNEthersRs/RNEthersRS.swift
Shared Services
- Trade quote queries
packages/uniswap/src/features/transactions/swap/hooks/useTrade/useTradeServiceQueryOptions.ts - Indicative quote queries
packages/uniswap/src/features/transactions/swap/hooks/useTrade/useIndicativeTradeServiceQueryOptions.ts - Query client
packages/react-query/src/createQueryClient.ts - Shared query cache
packages/api/src/clients/base/SharedQueryClient.ts - Session storage
packages/sessions/src/session-storage/createSessionStorage.ts - Session storage provider
packages/api/src/provideSessionStorage.ts - Tab query persistence
packages/utilities/src/reactQuery/useSessionStoragePersistedQuery.ts
Other components
- Dapp website
Connections 22
- Dapp website → Ethereum provider: requests access
README.md - Ethereum provider → Method handlers: dispatches methods
- Method handlers → Extension messaging: sends requests
- Extension messaging → Background coordinator: routes messages
- Background coordinator → Request queue: coordinates requests
- Request queue → Request approval UI: renders requests
- Request approval UI → Transaction signing: prepares signing
- Popup and sidebar → Wallet onboarding: supports setup
README.md - Popup and sidebar → Portfolio and activity: shows wallet
README.md - Portfolio and activity → Send and swap: offers transactions
README.md - Popup and sidebar → Account management: manages accounts
README.md - Popup and sidebar → Wallet settings: provides settings
README.md - Popup and sidebar → Unitag profiles: supports Unitags
README.md - Popup and sidebar → Notifications: displays notices
README.md - Popup and sidebar → Extension state: uses state
- Auction bidding → Portfolio routing
- Trade quote queries → Query client: uses query cache
- Indicative quote queries → Query client: uses query cache
- Session storage provider → Session storage: creates storage
packages/api/src/provideSessionStorage.ts - Tab query persistence → Shared query cache: persists cache entry
- Mobile wallet app → Cloud backup service: manages backups
README.md - Cloud backup service → Native key storage: retrieves mnemonic
apps/mobile/ios/Uniswap/RNCloudBackupsManager/RNCloudStorageBackupsManager.swift