Skip to content

Commit

Permalink
NWC make invoice type
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Feb 4, 2025
1 parent 1e8866d commit 915bdfd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ndk-wallet/src/wallets/nwc/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ export interface NDKNWCPayInvoiceResult {
fees_paid?: number;
}

export interface NDKNWCMakeInvoiceResult {
invoice: string;
preimage: string;
payment_hash: string;
amount: number;
description: string;
description_hash: string;
expiry: number;
metadata?: Record<string, any>;
}

export interface NDKNWCGetBalanceResult {
balance: number;
}
Expand Down Expand Up @@ -114,7 +125,7 @@ export type NDKNWCRequestMap = {

export type NDKNWCResponseMap = {
pay_invoice: NDKNWCPayInvoiceResult;
make_invoice: NDKNWCTransaction;
make_invoice: NDKNWCMakeInvoiceResult;
lookup_invoice: NDKNWCTransaction;
list_transactions: { transactions: NDKNWCTransaction[] };
get_balance: NDKNWCGetBalanceResult;
Expand Down

0 comments on commit 915bdfd

Please sign in to comment.