Skip to content

Commit

Permalink
Move Config to core
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Mar 27, 2024
1 parent e8a2507 commit 83c4db0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SupportedWallet } from "@sats-connect/core";
import { Config } from "@sats-connect/core";
import { customElement } from "solid-element";

import { WalletProviderSelector } from "./WalletProviderSelector";
Expand All @@ -11,6 +11,8 @@ import {
walletOpen as walletOpenEventName,
} from "./constants";

export type { Config } from "@sats-connect/core";

export const elementId = "sats-connect-wallet-provider-selector";
export const elementName = elementId;

Expand Down Expand Up @@ -45,10 +47,6 @@ export interface InstallPrompt {
url: string;
}

export interface Config {
providers: SupportedWallet[];
}

export function selectWalletProvider(config: Config): Promise<string> {
return new Promise((resolve, reject) => {
const walletSelectorElement = getWalletProviderSelectorElement();
Expand Down

0 comments on commit 83c4db0

Please sign in to comment.