Skip to content

Commit 14a18e6

Browse files
committed
udl
1 parent 4301237 commit 14a18e6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

bindings/lni_uniffi/src/lni.udl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,40 @@ interface ClnNode {
6262

6363
};
6464

65+
dictionary LndConfig {
66+
string url;
67+
string macaroon;
68+
};
69+
70+
interface LndNode {
71+
constructor(LndConfig config);
72+
73+
[Throws=ApiError, Async]
74+
NodeInfo get_info();
75+
76+
[Throws=ApiError, Async]
77+
Transaction create_invoice(CreateInvoiceParams params);
78+
79+
[Throws=ApiError, Async]
80+
PayCode get_offer(string? search);
81+
82+
[Throws=ApiError, Async]
83+
sequence<PayCode> list_offers(string? search);
84+
85+
[Throws=ApiError, Async]
86+
PayInvoiceResponse pay_offer(string offer, i64 amount_msats, string? payer_note );
87+
88+
[Throws=ApiError, Async]
89+
Transaction lookup_invoice(string payment_hash);
90+
91+
[Throws=ApiError, Async]
92+
sequence<Transaction> list_transactions(ListTransactionsParams params);
93+
94+
[Throws=ApiError, Async]
95+
string decode(string str);
96+
97+
};
98+
6599
interface Db {
66100
[Throws=DbError]
67101
constructor(string path);

0 commit comments

Comments
 (0)