Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified frontend/public/bridgekitty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/chains/b2-network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/chains/bitlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/chains/monad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 36 additions & 1 deletion frontend/src/components/AppProviders.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
import type { ReactNode } from 'react';
import { PrivyProvider } from '@privy-io/react-auth';
import {
mainnet,
base,
bob,
bsc,
monad,
polygon,
bitlayer,
bsquared,
rootstock,
coreDao,
merlin,
} from 'viem/chains';

// Order mirrors prisma/data/catalog.ts in the backend repo so the chains
// Privy knows about line up 1:1 with what /api/v1/catalog advertises.
// Without this list, viem falls back to its default registry, which
// covers Ethereum/Base/BSC/Polygon but not the BTC-L2s or Monad — and
// switchChain to any unlisted chainId throws "Unsupported chainId 4901"
// at signing time, breaking bridges out of those chains.
const SUPPORTED_CHAINS = [
mainnet,
base,
bob,
bsc,
monad,
polygon,
bitlayer,
bsquared,
rootstock,
coreDao,
merlin,
] as const;

const PRIVY_APP_ID = import.meta.env.VITE_PRIVY_APP_ID;

Expand All @@ -16,7 +49,9 @@ export function AppProviders({ children }: { children: ReactNode }) {
appearance: {
theme: 'light',
accentColor: '#ffafd3'
}
},
defaultChain: mainnet,
supportedChains: [...SUPPORTED_CHAINS]
}}
>
{children}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/catalog.fallback.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO-GENERATED by scripts/sync-fallback-catalog.mjs from
// https://api.bridgekitty.persistence.one/api/v1/catalog
// Generated at 2026-05-10T10:51:04.903Z.
// Generated at 2026-05-11T08:31:14.537Z.
// Do NOT edit by hand — run `npm run sync:fallback` after backend
// catalog changes (bridgekitty-backend's prisma/data/catalog.ts).
import type { Chain, Token } from './catalog';
Expand Down Expand Up @@ -63,7 +63,7 @@ export const FALLBACK_CATALOG: { chains: Chain[]; tokensByChainKey: Record<strin
"key": "bitlayer",
"chainId": 200901,
"name": "Bitlayer",
"logoURI": "/chains/bitlayer.svg",
"logoURI": "/chains/bitlayer.png",
"blockExplorerUrl": "https://www.btrscan.com/tx/"
},
{
Expand Down