-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Magic Eden Wallet support (#1998)
* chore: formatting in custom-wallet-list * chore: changeset * chore: minify svg --------- Co-authored-by: Daniel Sinclair <d@niel.nyc>
- Loading branch information
1 parent
d26f7c4
commit 725a376
Showing
7 changed files
with
84 additions
and
1 deletion.
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 Magic Eden Wallet support with `magicEdenWallet` 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/magicEdenWallet/magicEden.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
packages/rainbowkit/src/wallets/walletConnectors/magicEdenWallet/magicEdenWallet.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,48 @@ | ||
import { Wallet } from '../../Wallet'; | ||
import { | ||
getInjectedConnector, | ||
hasInjectedProvider, | ||
} from '../../getInjectedConnector'; | ||
|
||
export const magicEdenWallet = (): Wallet => { | ||
return { | ||
id: 'magicEden', | ||
name: 'Magic Eden Wallet', | ||
iconUrl: async () => (await import('./magicEden.svg')).default, | ||
iconBackground: '#36114D', | ||
installed: hasInjectedProvider({ namespace: 'magicEden.ethereum' }), | ||
downloadUrls: { | ||
chrome: | ||
'https://chromewebstore.google.com/detail/magic-eden-wallet/mkpegjkblkkefacfnmkajcjmabijhclg', | ||
browserExtension: 'https://wallet.magiceden.io/', | ||
}, | ||
extension: { | ||
instructions: { | ||
steps: [ | ||
{ | ||
description: | ||
'wallet_connectors.magicEden.extension.step1.description', | ||
step: 'install', | ||
title: 'wallet_connectors.magicEden.extension.step1.title', | ||
}, | ||
{ | ||
description: | ||
'wallet_connectors.magicEden.extension.step2.description', | ||
step: 'create', | ||
title: 'wallet_connectors.magicEden.extension.step2.title', | ||
}, | ||
{ | ||
description: | ||
'wallet_connectors.magicEden.extension.step3.description', | ||
step: 'refresh', | ||
title: 'wallet_connectors.magicEden.extension.step3.title', | ||
}, | ||
], | ||
learnMoreUrl: 'https://wallet.magiceden.io/support', | ||
}, | ||
}, | ||
createConnector: getInjectedConnector({ | ||
namespace: 'magicEden.ethereum', | ||
}), | ||
}; | ||
}; |
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