Skip to content

Commit

Permalink
chore: add new types
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Oct 30, 2024
1 parent 6a166b3 commit c2fd50a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/types/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ import {
ConnectorIcons,
StarknetkitCompoundConnector,
StarknetkitConnector,
} from "../connectors/connector"
} from "../connectors"

export type StoreVersion = "chrome" | "firefox" | "edge"

export type Theme = "dark" | "light" | null

export enum Layout {
walletList = "walletList",
connecting = "connecting",
success = "success",
failure = "failure",
qrCode = "qrCode",
argentDownload = "argentDownload",
extensionDownloadList = "extensionDownloadList",
}

export interface ConnectOptions extends GetWalletOptions {
dappName?: string
modalMode?: "alwaysAsk" | "canAsk" | "neverAsk"
Expand All @@ -30,12 +42,17 @@ export type ModalWallet = {
id: string
icon: ConnectorIcons
download?: string
downloads?: Record<string, string>
subtitle?: string
title?: string
connector: StarknetkitConnector | StarknetkitCompoundConnector
isCompoundConnector?: boolean
}

export type Callback = (
value: ModalWallet | null,
useFallback?: boolean,
) => Promise<void>

export type ModalResult = {
connector: StarknetkitConnector | null
connectorData: ConnectorData | null
Expand Down

0 comments on commit c2fd50a

Please sign in to comment.