RED-289: Rainbowkit used in GUI is very outdated on 1.0.7 latest is 2.1.6 #47
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:
rainbowkit
used for connecting wallets was outdated.wagmi
and related dependencies needed updates due to deprecations and compatibility issues.tanstack
dependencies were required for compilation.Changes Made:
Dependency Updates:
@rainbow-me/rainbowkit
from1.0.7
to2.1.6
.@tanstack/query-core
version5.56.2
.@tanstack/react-query
version5.56.2
.viem
from1.3.0
to2.21.9
.wagmi
from1.3.9
to2.12.12
.Code Adjustments:
wagmi
andrainbowkit
versions.Testing: