Followed the migration guides [here](https://www.rainbowkit.com/docs/migration-guide#2xx-breaking-changes) and [here](https://wagmi.sh/react/guides/migrate-from-v1-to-v2). The most notable change is that `react-query` is now a peer dependency. The logic for generating the Wagmi config has also changed.
Depends on D11488