Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description - Resolves #487
This pull request introduces significant updates and improvements to our project by migrating to the latest versions of
wagmiandrainbowkit. This migration was essential to address a bug related to outdated dependencies and to enable support for Rabby Wallet, which was not available in the previously used versions.Key Changes:
Migration to wagmi and rainbowkit v2:
wagmiandrainbowkitto their latest versions as per RainbowKit's guide.Addition of Rabby Wallet:
connectorsForWalletsfunction.Configuration Changes:
walletConfig.tsto centralize wallet configurations, including the project ID for WalletConnect..env.localand.env.productionwithVITE_WALLETCONNECT_CLOUD_ID, required for the WalletConnect integration. A test project ID was used, but a permanent one should be created via WalletConnect Cloud.Component Updates:
final-preview-step.tsx:useSignerwithuseAccountandgetWalletClient.add-member-modal.tsx:useSignerwithuseAccountandgetWalletClient.Context Update:
AuthContextProvider:WagmiProviderandconfigWallets.QueryClientProviderfrom@tanstack/react-query.Dependency Updates:
package.jsonfor compatibility with the latestwagmiandrainbowkit.References:
Related Issue
This PR addresses issues with outdated wallet integrations and resolves compatibility problems due to the shutdown of WalletConnect v1.
Issue link: Issue #487
Does this introduce a breaking change?
Breaking Change Details:
wagmiandrainbowkitrequire new APIs (useAccount,getWalletClient). Ensure that all parts of the project are updated accordingly..env.localand.env.productionfor WalletConnect to function correctly.walletConfig.ts. Review and test the new setup thoroughly.Other information
Migration Note:
.env.localand.env.productionunder the variableVITE_WALLETCONNECT_CLOUD_ID. The current setup uses a test ID which should be replaced with a valid project-specific ID.Component Changes Summary:
final-preview-step.tsx:useAccountandgetWalletClientfromwagmi.add-member-modal.tsx:wagmiAPI for wallet connection.These updates ensure the project is compatible with the latest standards and libraries, enhancing security, functionality, and maintainability.