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
wagmi
andrainbowkit
. 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:
wagmi
andrainbowkit
to their latest versions as per RainbowKit's guide.Addition of Rabby Wallet:
connectorsForWallets
function.Configuration Changes:
walletConfig.ts
to centralize wallet configurations, including the project ID for WalletConnect..env.local
and.env.production
withVITE_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
:useSigner
withuseAccount
andgetWalletClient
.add-member-modal.tsx
:useSigner
withuseAccount
andgetWalletClient
.Context Update:
AuthContextProvider
:WagmiProvider
andconfigWallets
.QueryClientProvider
from@tanstack/react-query
.Dependency Updates:
package.json
for compatibility with the latestwagmi
andrainbowkit
.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:
wagmi
andrainbowkit
require new APIs (useAccount
,getWalletClient
). Ensure that all parts of the project are updated accordingly..env.local
and.env.production
for WalletConnect to function correctly.walletConfig.ts
. Review and test the new setup thoroughly.Other information
Migration Note:
.env.local
and.env.production
under 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
:useAccount
andgetWalletClient
fromwagmi
.add-member-modal.tsx
:wagmi
API for wallet connection.These updates ensure the project is compatible with the latest standards and libraries, enhancing security, functionality, and maintainability.