Page MenuHomePhabricator

[lib][web][landing] Update to RainbowKit 0.12
ClosedPublic

Authored by ashoat on Jun 19 2023, 4:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 1:59 PM
Unknown Object (File)
Fri, Nov 8, 1:33 PM
Unknown Object (File)
Oct 27 2024, 8:19 AM
Unknown Object (File)
Oct 22 2024, 2:57 PM
Unknown Object (File)
Sep 29 2024, 4:46 AM
Unknown Object (File)
Sep 29 2024, 4:46 AM
Unknown Object (File)
Sep 26 2024, 10:50 AM
Unknown Object (File)
Sep 23 2024, 4:27 AM
Subscribers

Details

Summary

RainbowKit 0.12 uses Wagmi 0.12, which uses ethers.js under the hood.

RainbowKit 1.0 has been released, which uses Wagmi 1.0. Wagmi 1.0 switches from ethers.js to Viem, which results in some significant changes. Additionally, RainbowKit 0.12 supports WalletConnect 2.0, which is the main goal of this work. As a result, I'm deferring the RBK / Wagmi 1.0 upgrades for now.

Test Plan

I tested all three SIWE endpoints:

  1. Web
  2. Native (old flow)
  3. Native (new flow)

For each, I tested both Rainbow and WalletConnect (both of which need WalletConnect), and navigated around the WalletConnect modal to various places.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

landing/webpack.config.cjs
56 ↗(On Diff #27868)

Without this, I was seeing this error.

I got this "fix" from this GitHub issue. Most of the people there are talking about Next.js, but I think that's just because Next.js does automatic SSR, and we're doing SSR too.

This revision is now accepted and ready to land.Jun 20 2023, 9:50 AM