looprpc: deposit outpoints for QuoteRequest

This commit adds static address deposit outpoints to the
QuoteRequest message. It allows to quote for loop in swaps
with the total value of specified deposits.
This commit is contained in:
Slyghtning 2024-06-06 15:19:10 +02:00
parent 8595c4ac6e
commit 549c33e08e
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
3 changed files with 612 additions and 569 deletions

File diff suppressed because it is too large Load diff

View file

@ -766,6 +766,13 @@ message QuoteRequest {
probing and payment.
*/
bool private = 7;
/*
Static address deposit outpoints that will be quoted for. This option only
pertains to loop in swaps. Either this or the amt parameter can be set at
the same time.
*/
repeated string deposit_outpoints = 8;
}
message InQuoteResponse {

View file

@ -254,6 +254,17 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "deposit_outpoints",
"description": "Static address deposit outpoints that will be quoted for. This option only\npertains to loop in swaps. Either this or the amt parameter can be set at\nthe same time.",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@ -404,6 +415,17 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "deposit_outpoints",
"description": "Static address deposit outpoints that will be quoted for. This option only\npertains to loop in swaps. Either this or the amt parameter can be set at\nthe same time.",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [