Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified Solflare adapter #694

Merged
merged 1 commit into from Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 0 additions & 18 deletions packages/use-solana/src/adapters/solflare.ts

This file was deleted.

18 changes: 1 addition & 17 deletions packages/use-solana/src/providers.ts
Expand Up @@ -40,7 +40,6 @@ import type { WalletAdapterBuilder } from "./adapters";
import { LedgerWalletAdapter, SolanaWalletAdapter } from "./adapters";
import { ReadonlyAdapter } from "./adapters/readonly";
import { SecretKeyAdapter } from "./adapters/secret-key";
import { SolflareAdapter } from "./adapters/solflare";

export enum DefaultWalletType {
BraveWallet = "BraveWallet",
Expand All @@ -58,7 +57,6 @@ export enum DefaultWalletType {
SecretKey = "SecretKey",
Slope = "Slope",
Solflare = "Solflare",
SolflareExtension = "SolflareExtension",
Sollet = "Sollet",
SolletExtension = "SolletExtension",
Solong = "Solong",
Expand Down Expand Up @@ -186,24 +184,10 @@ export const DEFAULT_WALLET_PROVIDERS: WalletProviderMap<
makeAdapter: () => new SecretKeyAdapter(),
},
[DefaultWalletType.Solflare]: {
name: "Solflare (Web)",
url: "https://solflare.com/provider",
icon: SOLFLARE,
makeAdapter: (provider, network) =>
new SolanaWalletAdapter(
new SolflareAdapter({
provider,
network: network as WalletAdapterNetwork,
})
),
},
[DefaultWalletType.SolflareExtension]: {
name: "Solflare (Extension)",
name: "Solflare",
url: "https://solflare.com/",
icon: SOLFLARE,
makeAdapter: () => new SolanaWalletAdapter(new SolflareWalletAdapter()),

isInstalled: () => window.solflare?.isSolflare === true,
isMobile: true,
},
[DefaultWalletType.Slope]: {
Expand Down