RED-289: Rainbowkit used in GUI is very outdated on 1.0.7 latest is 2.1.6#47
Open
RED-289: Rainbowkit used in GUI is very outdated on 1.0.7 latest is 2.1.6#47
Conversation
The code changes include updating the npm dependencies to their latest versions and fixing the type casting for the Ethereum provider in the StakeForm, useUnstake, and useStake components. The type casting is changed from "ethereum as ExternalProvider" to "ethereum as unknown as ExternalProvider" to address a type error.
…cludes Wagmi's createConfig and replaces getDefaultWallets and connectorsForWallets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://linear.app/shm/issue/RED-289/[new-validator-design]-rainbowkit-used-in-gui-is-very-outdated-on-107
resources used:
https://www.rainbowkit.com/docs/migration-guide
https://wagmi.sh/react/guides/migrate-from-v1-to-v2#updated-createconfig-parameters
https://viem.sh/docs/migration-guide.html#_2-x-x-breaking-changes
Summary:
This PR updates related dependencies to rainbowkit upgrade to their latest versions, for compatibility and removing deprecated functions. The changes have been tested locally + w/ WaterNet Dashboard installer and are confirmed to work as expected.
Context:
rainbowkitused for connecting wallets was outdated.wagmiand related dependencies needed updates due to deprecations and compatibility issues.tanstackdependencies were required for compilation.Changes Made:
Dependency Updates:
@rainbow-me/rainbowkitfrom1.0.7to2.1.6.@tanstack/query-coreversion5.56.2.@tanstack/react-queryversion5.56.2.viemfrom1.3.0to2.21.9.wagmifrom1.3.9to2.12.12.Code Adjustments:
wagmiandrainbowkitversions.Testing: