payment stream + unreachable provider + fess calc fix

This commit is contained in:
boufni95 2025-11-19 15:46:35 +00:00
parent d319c1d4be
commit c8ede119d6
16 changed files with 365 additions and 64 deletions

View file

@ -517,6 +517,13 @@ service LightningPub {
option (nostr) = true;
}
rpc PayInvoiceStream(structs.PayInvoiceRequest) returns (stream structs.InvoicePaymentStream){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/invoice/pay/stream";
option (nostr) = true;
}
rpc GetPaymentState(structs.GetPaymentStateRequest) returns (structs.PaymentState){
option (auth_type) = "User";
option (http_method) = "post";

View file

@ -390,6 +390,7 @@ message PayAppUserInvoiceRequest {
string invoice = 2;
int64 amount = 3;
optional string debit_npub = 4;
optional int64 fee_limit_sats = 5;
}
message SendAppUserToAppUserPaymentRequest {
@ -466,6 +467,7 @@ message PayInvoiceRequest{
string invoice = 1;
int64 amount = 2;
optional string debit_npub = 3;
optional int64 fee_limit_sats = 4;
}
message PayInvoiceResponse{
@ -476,6 +478,13 @@ message PayInvoiceResponse{
int64 network_fee = 5;
}
message InvoicePaymentStream {
oneof update {
Empty ack = 1;
PayInvoiceResponse done = 2;
}
}
message GetPaymentStateRequest{
string invoice = 1;