From 83c4db0d0a61b8051217a513016281dbf254da1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Wed, 27 Mar 2024 11:59:04 +0100 Subject: [PATCH] Move Config to core --- src/lib/utils.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index d19e9a8..87603fb 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -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"; @@ -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; @@ -45,10 +47,6 @@ export interface InstallPrompt { url: string; } -export interface Config { - providers: SupportedWallet[]; -} - export function selectWalletProvider(config: Config): Promise { return new Promise((resolve, reject) => { const walletSelectorElement = getWalletProviderSelectorElement();