-
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: nest wallet support * chore: changeset * chore: minify image --------- Co-authored-by: Daniel Sinclair <d@niel.nyc>
- Loading branch information
1 parent
62a2966
commit 2180ddd
Showing
8 changed files
with
71 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,5 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
--- | ||
|
||
Added Nest Wallet support with `nestWallet` 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
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/nestWallet/nestWallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
packages/rainbowkit/src/wallets/walletConnectors/nestWallet/nestWallet.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,42 @@ | ||
import { Wallet } from '../../Wallet'; | ||
import { | ||
getInjectedConnector, | ||
hasInjectedProvider, | ||
} from '../../getInjectedConnector'; | ||
|
||
export const nestWallet = (): Wallet => ({ | ||
id: 'nest', | ||
name: 'Nest', | ||
iconUrl: async () => (await import('./nestWallet.svg')).default, | ||
iconBackground: '#fff0', | ||
installed: hasInjectedProvider({ flag: 'isNestWallet' }), | ||
downloadUrls: { | ||
browserExtension: 'https://nestwallet.xyz', | ||
}, | ||
extension: { | ||
instructions: { | ||
learnMoreUrl: 'https://nestwallet.xyz', | ||
steps: [ | ||
{ | ||
description: | ||
'wallet_connectors.nestwallet.extension.step1.description', | ||
step: 'install', | ||
title: 'wallet_connectors.nestwallet.extension.step1.title', | ||
}, | ||
{ | ||
description: | ||
'wallet_connectors.nestwallet.extension.step2.description', | ||
step: 'create', | ||
title: 'wallet_connectors.nestwallet.extension.step2.title', | ||
}, | ||
{ | ||
description: | ||
'wallet_connectors.nestwallet.extension.step3.description', | ||
step: 'refresh', | ||
title: 'wallet_connectors.nestwallet.extension.step3.title', | ||
}, | ||
], | ||
}, | ||
}, | ||
createConnector: getInjectedConnector({ flag: 'isNestWallet' }), | ||
}); |