Replace lightning toolkit with wallet adapter
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
export type WalletPayInvoiceParams = {
|
||||
invoice: string
|
||||
msats?: number
|
||||
}
|
||||
|
||||
export type WalletCreateInvoiceParams = {
|
||||
sats: number
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface IWallet {
|
||||
getBalanceSats: () => Promise<number>
|
||||
payInvoice: (params: WalletPayInvoiceParams) => Promise<unknown>
|
||||
createInvoice: (params: WalletCreateInvoiceParams) => Promise<string>
|
||||
close: () => void
|
||||
}
|
||||
Reference in New Issue
Block a user