-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add kraken wallet * Create fuzzy-dryers-give.md * chore: adjust changeset * fix: kraken wallet locale strings * chore: minified icon --------- Co-authored-by: Daniel Sinclair <d@niel.nyc>
- Loading branch information
1 parent
6360304
commit af4ea4e
Showing
7 changed files
with
88 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,6 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
"example": patch | ||
--- | ||
|
||
Added Kraken Wallet support with `krakenWallet` 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/krakenWallet/krakenWallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions
54
packages/rainbowkit/src/wallets/walletConnectors/krakenWallet/krakenWallet.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,54 @@ | ||
import { Wallet } from '../../Wallet'; | ||
import { getWalletConnectConnector } from '../../getWalletConnectConnector'; | ||
import { DefaultWalletOptions } from './../../Wallet'; | ||
|
||
export type KrakenWalletOptions = DefaultWalletOptions; | ||
|
||
export const krakenWallet = ({ | ||
projectId, | ||
walletConnectParameters, | ||
}: KrakenWalletOptions): Wallet => ({ | ||
id: 'kraken', | ||
name: 'Kraken Wallet', | ||
iconUrl: async () => (await import('./krakenWallet.svg')).default, | ||
iconBackground: '#FFD8EA', | ||
downloadUrls: { | ||
ios: 'https://apps.apple.com/us/app/kraken-wallet/id1626327149', | ||
mobile: 'https://kraken.com/wallet', | ||
qrCode: 'https://kraken.com/wallet', | ||
}, | ||
|
||
mobile: { | ||
getUri: (uri: string) => { | ||
return `krakenwallet://wc?uri=${encodeURIComponent(uri)}`; | ||
}, | ||
}, | ||
qrCode: { | ||
getUri: (uri: string) => uri, | ||
instructions: { | ||
learnMoreUrl: 'https://kraken.com/wallet', | ||
steps: [ | ||
{ | ||
description: 'wallet_connectors.kraken.qr_code.step1.description', | ||
step: 'install', | ||
title: 'wallet_connectors.kraken.qr_code.step1.title', | ||
}, | ||
{ | ||
description: 'wallet_connectors.kraken.qr_code.step2.description', | ||
step: 'create', | ||
title: 'wallet_connectors.kraken.qr_code.step2.title', | ||
}, | ||
{ | ||
description: 'wallet_connectors.kraken.qr_code.step3.description', | ||
step: 'scan', | ||
title: 'wallet_connectors.kraken.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