-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: kresus wallet * chore: tweak changeset --------- Co-authored-by: Daniel Sinclair <d@niel.nyc>
- Loading branch information
1 parent
bb56562
commit c16541a
Showing
7 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
"example": patch | ||
"site": patch | ||
--- | ||
|
||
Added Kresus support with `kresusWallet` wallet connector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/rainbowkit/src/wallets/walletConnectors/kresusWallet/kresusWallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
packages/rainbowkit/src/wallets/walletConnectors/kresusWallet/kresusWallet.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 KresusWalletOptions = DefaultWalletOptions; | ||
|
||
export const kresusWallet = ({ | ||
projectId, | ||
walletConnectParameters, | ||
}: KresusWalletOptions): Wallet => ({ | ||
id: 'kresus-wallet', | ||
name: 'Kresus Wallet', | ||
iconUrl: async () => (await import('./kresusWallet.svg')).default, | ||
iconBackground: '#fff', | ||
downloadUrls: { | ||
android: | ||
'https://play.google.com/store/apps/details?id=com.kresus.superapp', | ||
ios: 'https://apps.apple.com/us/app/kresus-crypto-nft-superapp/id6444355152', | ||
qrCode: 'https://kresusconnect.kresus.com/download', | ||
}, | ||
mobile: { | ||
getUri: (uri: string) => | ||
`com.kresus.superapp://wc?uri=${encodeURIComponent(uri)}`, | ||
}, | ||
qrCode: { | ||
getUri: (uri: string) => uri, | ||
instructions: { | ||
learnMoreUrl: 'https://kresus.com/', | ||
steps: [ | ||
{ | ||
description: 'wallet_connectors.kresus.qr_code.step1.description', | ||
step: 'install', | ||
title: 'wallet_connectors.kresus.qr_code.step1.title', | ||
}, | ||
{ | ||
description: 'wallet_connectors.kresus.qr_code.step2.description', | ||
step: 'create', | ||
title: 'wallet_connectors.kresus.qr_code.step2.title', | ||
}, | ||
{ | ||
description: 'wallet_connectors.kresus.qr_code.step3.description', | ||
step: 'scan', | ||
title: 'wallet_connectors.kresus.qr_code.step3.title', | ||
}, | ||
], | ||
}, | ||
}, | ||
createConnector: getWalletConnectConnector({ | ||
projectId, | ||
walletConnectParameters, | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters