Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/vultisig-wallet-contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Added Vultisig wallet support with the `vultisigWallet` wallet connector.
2 changes: 2 additions & 0 deletions packages/example/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import {
trustWallet,
uniswapWallet,
valoraWallet,
vultisigWallet,
walletConnectWallet,
wigwamWallet,
ctrlWallet,
Expand Down Expand Up @@ -272,6 +273,7 @@ export const config = getDefaultConfig({
uniswapWallet,
universalProfilesWallet,
valoraWallet,
vultisigWallet,
wigwamWallet,
ctrlWallet,
xPortalWallet,
Expand Down
17 changes: 17 additions & 0 deletions packages/rainbowkit/src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,23 @@
"description": "Once you log in, click below to refresh the browser and load up the extension."
}
}
},

"vultisig": {
"extension": {
"step1": {
"title": "Install the Vultisig extension",
"description": "We recommend pinning Vultisig to your taskbar for easier access to your vault."
},
"step2": {
"title": "Create or import a vault",
"description": "Vultisig secures vaults with threshold signatures across your devices instead of a seed phrase."
},
"step3": {
"title": "Refresh your browser",
"description": "Once you set up your vault, click below to refresh the browser and load up the extension."
}
}
}
}
}
2 changes: 2 additions & 0 deletions packages/rainbowkit/src/wallets/walletConnectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { trustWallet } from './trustWallet/trustWallet';
import { universalProfilesWallet } from './universalProfilesWallet/universalProfilesWallet';
import { uniswapWallet } from './uniswapWallet/uniswapWallet';
import { valoraWallet } from './valoraWallet/valoraWallet';
import { vultisigWallet } from './vultisigWallet/vultisigWallet';
import { walletConnectWallet } from './walletConnectWallet/walletConnectWallet';
import { wigwamWallet } from './wigwamWallet/wigwamWallet';
import { ctrlWallet, xdefiWallet } from './ctrlWallet/ctrlWallet';
Expand Down Expand Up @@ -143,6 +144,7 @@ export {
universalProfilesWallet,
uniswapWallet,
valoraWallet,
vultisigWallet,
walletConnectWallet,
wigwamWallet,
xdefiWallet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function isMetaMask(ethereum?: WindowProvider['ethereum']): boolean {
if (ethereum.isTokenPocket) return false;
if (ethereum.isTokenary) return false;
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
if (ethereum.isVultiConnect || ethereum.isVultisig) return false;
if (ethereum.isCTRL) return false;
if (ethereum.isZeal) return false;
if (ethereum.isCoin98) return false;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import {
getInjectedConnector,
hasInjectedProvider,
} from '../../getInjectedConnector';
import type { Wallet } from '../../Wallet';

export const vultisigWallet = (): Wallet => ({
id: 'vultisig',
name: 'Vultisig',
rdns: 'me.vultisig',
iconUrl: async () => (await import('./vultisigWallet.svg')).default,
iconBackground: '#061B3A',
installed: hasInjectedProvider({ namespace: 'vultisig.ethereum' }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude Vultisig from MetaMask detection

When the Vultisig extension is installed, its EVM provider is also exposed as the MetaMask-compatible window.ethereum with isMetaMask: true, so adding this connector without also excluding window.vultisig.ethereum from metaMaskWallet leaves dApps that include both wallets (including the updated example/default MetaMask setup) showing MetaMask as installed and routing MetaMask clicks into the Vultisig provider. Please update the MetaMask impersonation filter alongside this connector so Vultisig users only get the Vultisig option.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — addressed in f42b519. The Vultisig EVM provider ships a distinguishing flag in every released extension version (isVultiConnect: true, from the extension's original name), so the impersonation filter now excludes on ethereum.isVultiConnect || ethereum.isVultisig — the second flag is forward-compatible with the extension's rename to "Vultisig Extension". With this, machines with only Vultisig installed no longer show MetaMask as installed, and MetaMask clicks no longer route into the Vultisig provider.

downloadUrls: {
chrome:
'https://chromewebstore.google.com/detail/vultisig-extension/ggafhcdaplkhmmnlbfjpnnkepdfjaelb',
firefox:
'https://addons.mozilla.org/en-US/firefox/addon/vultisig-extension/',
browserExtension: 'https://vultisig.com/downloads',
},
extension: {
instructions: {
learnMoreUrl: 'https://docs.vultisig.com',
steps: [
{
description: 'wallet_connectors.vultisig.extension.step1.description',
step: 'install',
title: 'wallet_connectors.vultisig.extension.step1.title',
},
{
description: 'wallet_connectors.vultisig.extension.step2.description',
step: 'create',
title: 'wallet_connectors.vultisig.extension.step2.title',
},
{
description: 'wallet_connectors.vultisig.extension.step3.description',
step: 'refresh',
title: 'wallet_connectors.vultisig.extension.step3.title',
},
],
},
},
createConnector: getInjectedConnector({ namespace: 'vultisig.ethereum' }),
});
6 changes: 6 additions & 0 deletions site/data/en-US/docs/custom-wallet-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ import { uniswapWallet } from '@rainbow-me/rainbowkit/wallets';
import { valoraWallet } from '@rainbow-me/rainbowkit/wallets';
```

#### Vultisig

```tsx
import { vultisigWallet } from '@rainbow-me/rainbowkit/wallets';
```

#### Wigwam

```tsx
Expand Down