swaps wired

This commit is contained in:
boufni95 2025-11-11 19:51:07 +00:00
parent ec2d48664a
commit f20d40e44f
21 changed files with 679 additions and 137 deletions

View file

@ -496,6 +496,13 @@ service LightningPub {
option (nostr) = true;
}
rpc GetTransactionSwapQuote(structs.TransactionSwapRequest) returns (structs.TransactionSwapQuote){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/swap/quote";
option (nostr) = true;
}
rpc NewInvoice(structs.NewInvoiceRequest) returns (structs.NewInvoiceResponse){
option (auth_type) = "User";
option (http_method) = "post";

View file

@ -432,6 +432,7 @@ message PayAddressRequest{
string address = 1;
int64 amoutSats = 2;
int64 satsPerVByte = 3;
optional string swap_operation_id = 4;
}
message PayAddressResponse{
@ -824,3 +825,15 @@ message MessagingToken {
string device_id = 1;
string firebase_messaging_token = 2;
}
message TransactionSwapRequest {
int64 transaction_amount_sats = 2;
}
message TransactionSwapQuote {
string swap_operation_id = 1;
int64 swap_fee_sats = 2;
int64 invoice_amount_sats = 3;
int64 transaction_amount_sats = 4;
int64 chain_fee_sats = 5;
}