@@ -234,6 +234,42 @@ type LoopInRequest struct {
234234 RouteHints [][]zpay32.HopHint
235235}
236236
237+ // StaticAddressLoopInRequest contains the required parameters for the swap.
238+ type StaticAddressLoopInRequest struct {
239+ // DepositOutpoints contain the outpoints of the static address deposits
240+ // that are being looped in. The sum of output values constitute the
241+ // swap amount.
242+ DepositOutpoints []string
243+
244+ // MaxSwapFee is the maximum we are willing to pay the server for the
245+ // swap. This value is not disclosed in the swap initiation call, but if
246+ // the server asks for a higher fee, we abort the swap. Typically, this
247+ // value is taken from the response of the LoopInQuote call. It
248+ // includes the pre-pay amount.
249+ MaxSwapFee btcutil.Amount
250+
251+ // LastHop optionally specifies the last hop to use for the loop in
252+ // payment.
253+ LastHop * route.Vertex
254+
255+ // Label contains an optional label for the swap.
256+ Label string
257+
258+ // Initiator is an optional string that identifies what software
259+ // initiated the swap (loop CLI, autolooper, LiT UI and so on) and is
260+ // appended to the user agent string.
261+ Initiator string
262+
263+ // Private indicates whether the destination node should be considered
264+ // private. In which case, loop will generate hophints to assist with
265+ // probing and payment.
266+ Private bool
267+
268+ // RouteHints are optional route hints to reach the destination through
269+ // private channels.
270+ RouteHints [][]zpay32.HopHint
271+ }
272+
237273// LoopInTerms are the server terms on which it executes loop in swaps.
238274type LoopInTerms struct {
239275 // MinSwapAmount is the minimum amount that the server requires for a
0 commit comments