Skip to content

Commit 915bdfd

Browse files
committed
NWC make invoice type
1 parent 1e8866d commit 915bdfd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ndk-wallet/src/wallets/nwc/types.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ export interface NDKNWCPayInvoiceResult {
8787
fees_paid?: number;
8888
}
8989

90+
export interface NDKNWCMakeInvoiceResult {
91+
invoice: string;
92+
preimage: string;
93+
payment_hash: string;
94+
amount: number;
95+
description: string;
96+
description_hash: string;
97+
expiry: number;
98+
metadata?: Record<string, any>;
99+
}
100+
90101
export interface NDKNWCGetBalanceResult {
91102
balance: number;
92103
}
@@ -114,7 +125,7 @@ export type NDKNWCRequestMap = {
114125

115126
export type NDKNWCResponseMap = {
116127
pay_invoice: NDKNWCPayInvoiceResult;
117-
make_invoice: NDKNWCTransaction;
128+
make_invoice: NDKNWCMakeInvoiceResult;
118129
lookup_invoice: NDKNWCTransaction;
119130
list_transactions: { transactions: NDKNWCTransaction[] };
120131
get_balance: NDKNWCGetBalanceResult;

0 commit comments

Comments
 (0)