mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Improve Lightning payment UX
This commit is contained in:
5 files changed
+292
-16
No files matched your search
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
webln?: {
|
||||
enable(): Promise<void>;
|
||||
sendPayment(paymentRequest: string): Promise<{
|
||||
preimage: string;
|
||||
}>;
|
||||
makeInvoice(args: {
|
||||
amount?: number;
|
||||
defaultMemo?: string;
|
||||
}): Promise<{
|
||||
paymentRequest: string;
|
||||
}>;
|
||||
signMessage(message: string): Promise<{
|
||||
message: string;
|
||||
signature: string;
|
||||
}>;
|
||||
verifyMessage(signature: string, message: string): Promise<void>;
|
||||
getInfo(): Promise<{
|
||||
node: {
|
||||
alias: string;
|
||||
pubkey: string;
|
||||
color?: string;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in new issue
Block a user