-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.ts
41 lines (39 loc) · 1.01 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { connectorsForWallets } from "@rainbow-me/rainbowkit";
import {
omniWallet,
walletConnectWallet,
coinbaseWallet,
safeWallet,
braveWallet,
metaMaskWallet,
} from "@rainbow-me/rainbowkit/wallets";
import { Valora } from "@celo/rainbowkit-celo/wallets";
import type { Chain } from "@rainbow-me/rainbowkit";
export default function connectors({
chains,
appName,
projectId,
}: {
chains: Chain[];
projectId: string;
appName?: string;
}) {
return connectorsForWallets([
{
groupName: "Celo Only",
wallets: [
Valora({ chains, projectId }),
],
},
{
groupName: "Supports Celo",
wallets: [
metaMaskWallet({chains, projectId}),
braveWallet({ chains }), // only shows when in brave and celo chains are configured in brave wallet
safeWallet({ chains }),
omniWallet({ chains, projectId }),
walletConnectWallet({ chains, projectId }),
].concat(appName ? [coinbaseWallet({ appName, chains })] : []),
},
]);
}