Skip to content

Commit b102802

Browse files
committed
looprpc: add SwapPublicationDeadline to QuoteRequest
1 parent 48f6f0f commit b102802

File tree

3 files changed

+127
-87
lines changed

3 files changed

+127
-87
lines changed

looprpc/client.pb.go

Lines changed: 102 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

looprpc/client.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ message QuoteRequest {
356356
actor.
357357
*/
358358
bool external_htlc = 3;
359+
360+
/**
361+
The latest time (in unix seconds) we allow the server to wait before
362+
publishing the HTLC on chain. Setting this to a larger value will give the
363+
server the opportunity to batch multiple swaps together, and wait for
364+
low-fee periods before publishing the HTLC, potentially resulting in a
365+
lower total swap fee.
366+
*/
367+
uint64 swap_publication_deadline = 4;
359368
}
360369

361370
message QuoteResponse {

looprpc/client.swagger.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@
7878
"required": false,
7979
"type": "boolean",
8080
"format": "boolean"
81+
},
82+
{
83+
"name": "swap_publication_deadline",
84+
"description": "*\nThe latest time (in unix seconds) we allow the server to wait before\npublishing the HTLC on chain. Setting this to a larger value will give the\nserver the opportunity to batch multiple swaps together, and wait for\nlow-fee periods before publishing the HTLC, potentially resulting in a\nlower total swap fee.",
85+
"in": "query",
86+
"required": false,
87+
"type": "string",
88+
"format": "uint64"
8189
}
8290
],
8391
"tags": [
@@ -165,6 +173,14 @@
165173
"required": false,
166174
"type": "boolean",
167175
"format": "boolean"
176+
},
177+
{
178+
"name": "swap_publication_deadline",
179+
"description": "*\nThe latest time (in unix seconds) we allow the server to wait before\npublishing the HTLC on chain. Setting this to a larger value will give the\nserver the opportunity to batch multiple swaps together, and wait for\nlow-fee periods before publishing the HTLC, potentially resulting in a\nlower total swap fee.",
180+
"in": "query",
181+
"required": false,
182+
"type": "string",
183+
"format": "uint64"
168184
}
169185
],
170186
"tags": [

0 commit comments

Comments
 (0)