@@ -15,7 +15,7 @@ import (
1515 "github.com/lightninglabs/loop/instantout/reservation"
1616 "github.com/lightninglabs/loop/loopdb"
1717 "github.com/lightninglabs/loop/swap"
18- loop_rpc "github.com/lightninglabs/loop/swapserverrpc"
18+ "github.com/lightninglabs/loop/swapserverrpc"
1919 "github.com/lightningnetwork/lnd/lnrpc"
2020 "github.com/lightningnetwork/lnd/lnrpc/walletrpc"
2121 "github.com/lightningnetwork/lnd/lntypes"
@@ -137,7 +137,7 @@ func (f *FSM) InitInstantOutAction(eventCtx fsm.EventContext) fsm.EventType {
137137 // Send the instantout request to the server.
138138 instantOutResponse , err := f .cfg .InstantOutClient .RequestInstantLoopOut (
139139 f .ctx ,
140- & loop_rpc .InstantLoopOutRequest {
140+ & swapserverrpc .InstantLoopOutRequest {
141141 ReceiverKey : keyRes .PubKey .SerializeCompressed (),
142142 SwapHash : swapHash [:],
143143 Expiry : initCtx .cltvExpiry ,
@@ -259,7 +259,8 @@ func (f *FSM) PollPaymentAcceptedAction(_ fsm.EventContext) fsm.EventType {
259259
260260 case <- timer .C :
261261 res , err := f .cfg .InstantOutClient .PollPaymentAccepted (
262- f .ctx , & loop_rpc.PollPaymentAcceptedRequest {
262+ f .ctx ,
263+ & swapserverrpc.PollPaymentAcceptedRequest {
263264 SwapHash : f .InstantOut .SwapHash [:],
264265 },
265266 )
@@ -292,7 +293,7 @@ func (f *FSM) BuildHTLCAction(eventCtx fsm.EventContext) fsm.EventType {
292293 // Send the server the client nonces.
293294 htlcInitRes , err := f .cfg .InstantOutClient .InitHtlcSig (
294295 f .ctx ,
295- & loop_rpc .InitHtlcSigRequest {
296+ & swapserverrpc .InitHtlcSigRequest {
296297 SwapHash : f .InstantOut .SwapHash [:],
297298 HtlcClientNonces : htlcClientNonces ,
298299 },
@@ -331,7 +332,7 @@ func (f *FSM) BuildHTLCAction(eventCtx fsm.EventContext) fsm.EventType {
331332 // Send the server the htlc signatures.
332333 htlcRes , err := f .cfg .InstantOutClient .PushHtlcSig (
333334 f .ctx ,
334- & loop_rpc .PushHtlcSigRequest {
335+ & swapserverrpc .PushHtlcSigRequest {
335336 SwapHash : f .InstantOut .SwapHash [:],
336337 ClientSigs : htlcSigs ,
337338 },
@@ -377,7 +378,7 @@ func (f *FSM) PushPreimageAction(eventCtx fsm.EventContext) fsm.EventType {
377378
378379 pushPreImageRes , err := f .cfg .InstantOutClient .PushPreimage (
379380 f .ctx ,
380- & loop_rpc .PushPreimageRequest {
381+ & swapserverrpc .PushPreimageRequest {
381382 Preimage : f .InstantOut .swapPreimage [:],
382383 ClientNonces : coopClientNonces ,
383384 ClientSweepAddr : f .InstantOut .sweepAddress .String (),
@@ -615,7 +616,7 @@ func (f *FSM) handleErrorAndUnlockReservations(err error) fsm.EventType {
615616 ctx , cancel := context .WithTimeout (context .Background (), time .Second * 30 )
616617 defer cancel ()
617618 _ , cancelErr := f .cfg .InstantOutClient .CancelInstantSwap (
618- ctx , & loop_rpc .CancelInstantSwapRequest {
619+ ctx , & swapserverrpc .CancelInstantSwapRequest {
619620 SwapHash : f .InstantOut .SwapHash [:],
620621 },
621622 )
0 commit comments