Skip to content

Commit

Permalink
Unified Solflare adapter (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsakos committed Sep 13, 2022
1 parent 4b533d7 commit 0ad97d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
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

0 comments on commit 0ad97d0

Please sign in to comment.