-
Notifications
You must be signed in to change notification settings - Fork 316
feat: mf-6735 integrate privy wallet support #12281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f5aba3f to
487f75e
Compare
865a83e to
a2ba668
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request integrates Privy wallet support into the Mask Network extension, enabling users to create and manage wallets through X (Twitter) authentication. The implementation adds comprehensive Privy provider integration, updates UI components for wallet creation, and handles transaction signing through Privy wallets.
Key changes:
- Added Privy provider and API integration for wallet management with OAuth flow
- Integrated Privy wallet support in MaskWalletProvider and various UI components
- Updated transaction request handling to support Privy wallet signing
- Modified UI components to include Privy wallet creation options alongside traditional methods
Reviewed Changes
Copilot reviewed 75 out of 77 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web3-providers/src/Privy/ | New Privy API client and type definitions for wallet integration |
| packages/web3-providers/src/Web3/EVM/providers/MaskWallet.ts | Updated to include Privy wallets in wallet enumeration |
| packages/web3-hooks/base/src/usePrivyWallet.ts | New hook for managing Privy wallet instances |
| packages/mask/popups/pages/Wallet/components/ImportCreateWallet/ | Updated UI to include Privy wallet creation option |
| packages/mask/popups/pages/Wallet/Interaction/ | Modified transaction and signing requests to handle Privy wallets |
| packages/shared-base/src/Privy/ | Privy provider setup and chain configurations |
| packages/mask/background/services/helper/oauth-x.ts | OAuth 1.0a implementation for X authentication |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/mask/popups/pages/Wallet/components/ImportCreateWallet/index.tsx
Outdated
Show resolved
Hide resolved
d45787d to
0405de4
Compare
packages/mask/content-script/utils/shadow-root/ContentScriptGlobalProvider.tsx
Show resolved
Hide resolved
6dc9b9c to
cc1152b
Compare
packages/mask/content-script/utils/shadow-root/ContentScriptGlobalProvider.tsx
Show resolved
Hide resolved
packages/mask/content-script/utils/shadow-root/ShadowRootAttachPointRoot.tsx
Show resolved
Hide resolved
a39da49 to
3623775
Compare
5ba15d6 to
792abd9
Compare
fecbba7 to
037e661
Compare
packages/mask/popups/pages/Wallet/Interaction/WalletSignRequest.tsx
Outdated
Show resolved
Hide resolved
packages/mask/popups/pages/Wallet/Interaction/TransactionRequest.tsx
Outdated
Show resolved
Hide resolved
…and update popup UI
- add Privy provider and API integration for wallet management - support Privy wallets in MaskWalletProvider and wallet hooks - enable login and wallet creation via X (Twitter) account with auth timeout handling - adapt transaction requests to handle Privy wallet signing - update cspell dictionaries and ignore reg exps for privy related domains - adjust UI components for importing/creating wallets with Privy option
wrap application root providers and modals with PrivySetupProvider and mount PrivySetup where needed.
07798ab to
051a31d
Compare
ee5f153 to
2431603
Compare
https://mask.atlassian.net/browse/mf-6735