Skip to content

Commit

Permalink
feat: bitverseWallet (#1875)
Browse files Browse the repository at this point in the history
Co-authored-by: Magomed Khamidov <[email protected]>
  • Loading branch information
magiziz and magiziz authored Mar 27, 2024
1 parent 77dcec3 commit 34419b5
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/selfish-trees-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@rainbow-me/rainbowkit": patch
"example": patch
"site": patch
---

Added Bitverse Wallet support with `bitverseWallet` wallet connector
2 changes: 2 additions & 0 deletions packages/example/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
bifrostWallet,
bitgetWallet,
bitskiWallet,
bitverseWallet,
bloomWallet,
bybitWallet,
clvWallet,
Expand Down Expand Up @@ -156,6 +157,7 @@ const config = getDefaultConfig({
bifrostWallet,
bitgetWallet,
bitskiWallet,
bitverseWallet,
bloomWallet,
bybitWallet,
clvWallet,
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 @@ -309,6 +309,23 @@
}
},

"bitverse": {
"qr_code": {
"step1": {
"title": "Open the Bitverse Wallet app",
"description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
},
"step2": {
"title": "Create or Import a Wallet",
"description": "Create a new wallet or import an existing one."
},
"step3": {
"title": "Tap the QR icon and scan",
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
}
}
},

"bloom": {
"desktop": {
"step1": {
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,51 @@
import { DefaultWalletOptions, Wallet } from '../../Wallet';
import { getWalletConnectConnector } from '../../getWalletConnectConnector';

export type BitverseWalletOptions = DefaultWalletOptions;

export const bitverseWallet = ({
projectId,
walletConnectParameters,
}: BitverseWalletOptions): Wallet => ({
id: 'bitverse',
name: 'Bitverse Wallet',
iconUrl: async () => (await import('./bitverseWallet.svg')).default,
iconBackground: '#171728',
downloadUrls: {
android:
'https://play.google.com/store/apps/details?id=com.bitverse.app&pli=1',
ios: 'https://apps.apple.com/us/app/bitverse-discover-web3-wealth/id1645515614',
qrCode: 'https://www.bitverse.zone/download',
},
mobile: {
getUri: (uri: string) =>
`bitverseapp://open/wallet/wc?uri=${encodeURIComponent(uri)}`,
},
qrCode: {
getUri: (uri: string) => uri,
instructions: {
learnMoreUrl: 'https://www.bitverse.zone',
steps: [
{
description: 'wallet_connectors.bitverse.qr_code.step1.description',
step: 'install',
title: 'wallet_connectors.bitverse.qr_code.step1.title',
},
{
description: 'wallet_connectors.bitverse.qr_code.step2.description',
step: 'create',
title: 'wallet_connectors.bitverse.qr_code.step2.title',
},
{
description: 'wallet_connectors.bitverse.qr_code.step3.description',
step: 'scan',
title: 'wallet_connectors.bitverse.qr_code.step3.title',
},
],
},
},
createConnector: getWalletConnectConnector({
projectId,
walletConnectParameters,
}),
});
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 @@ -2,6 +2,7 @@ import { argentWallet } from './argentWallet/argentWallet';
import { bifrostWallet } from './bifrostWallet/bifrostWallet';
import { bitgetWallet } from './bitgetWallet/bitgetWallet';
import { bitskiWallet } from './bitskiWallet/bitskiWallet';
import { bitverseWallet } from './bitverseWallet/bitverseWallet';
import { bloomWallet } from './bloomWallet/bloomWallet';
import { braveWallet } from './braveWallet/braveWallet';
import { bybitWallet } from './bybitWallet/bybitWallet';
Expand Down Expand Up @@ -50,6 +51,7 @@ export {
bifrostWallet,
bitgetWallet,
bitskiWallet,
bitverseWallet,
bloomWallet,
bybitWallet,
braveWallet,
Expand Down
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 @@ -122,6 +122,12 @@ import { bifrostWallet } from '@rainbow-me/rainbowkit/wallets';
import { bitskiWallet } from '@rainbow-me/rainbowkit/wallets';
```

#### Bitverse

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

#### Bloom Wallet

```tsx
Expand Down

0 comments on commit 34419b5

Please sign in to comment.