looprpc: fast flag for QuoteRequest and StaticAddressLoopInRequest

This commit is contained in:
Slyghtning 2025-10-01 08:39:38 +02:00
parent d346cb364d
commit 8464e4c687
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
3 changed files with 879 additions and 832 deletions

File diff suppressed because it is too large Load diff

View file

@ -845,6 +845,13 @@ message QuoteRequest {
This option only pertains to loop in swaps.
*/
bool auto_select_deposits = 10;
/*
If set to true the server will immediately publish the swap in exchange for
a higher fee. This can be useful if the client expects change from a swap.
Note that this feature is only available for static address loop in swaps.
*/
bool fast = 11;
}
message InQuoteResponse {
@ -2116,6 +2123,9 @@ message StaticAddressLoopInRequest {
canceled to allow the user to safe on transaction fees.
*/
int64 amount = 9;
// If set, request the server to use fast publication behavior.
bool fast = 10;
}
message StaticAddressLoopInResponse {

View file

@ -304,6 +304,13 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "fast",
"description": "If set to true the server will immediately publish the swap in exchange for\na higher fee. This can be useful if the client expects change from a swap.\nNote that this feature is only available for static address loop in swaps.",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
@ -504,6 +511,13 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "fast",
"description": "If set to true the server will immediately publish the swap in exchange for\na higher fee. This can be useful if the client expects change from a swap.\nNote that this feature is only available for static address loop in swaps.",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [