swap refunds

This commit is contained in:
boufni95 2026-01-30 20:37:44 +00:00
parent e71f631993
commit 3255730ae2
21 changed files with 554 additions and 33 deletions

View file

@ -196,6 +196,13 @@ service LightningPub {
option (nostr) = true;
}
rpc RefundAdminInvoiceSwap(structs.RefundAdminInvoiceSwapRequest) returns (structs.AdminInvoiceSwapResponse) {
option (auth_type) = "Admin";
option (http_method) = "post";
option (http_route) = "/api/admin/swap/invoice/refund";
option (nostr) = true;
}
rpc GetAdminTransactionSwapQuotes(structs.TransactionSwapRequest) returns (structs.TransactionSwapQuoteList) {
option (auth_type) = "Admin";
option (http_method) = "post";

View file

@ -867,9 +867,15 @@ message InvoiceSwapsList {
repeated InvoiceSwapQuote quotes = 2;
}
message RefundAdminInvoiceSwapRequest {
string swap_operation_id = 1;
int64 sat_per_v_byte = 2;
}
message PayAdminInvoiceSwapRequest {
string swap_operation_id = 1;
int64 sat_per_v_byte = 2;
optional bool no_claim = 3;
}
message AdminInvoiceSwapResponse {