2019-03-07 02:22:46 +00:00
|
|
|
package loop
|
2019-03-06 20:13:50 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2021-04-28 07:56:15 +00:00
|
|
|
"github.com/lightninglabs/aperture/lsat"
|
2020-06-17 20:25:57 +00:00
|
|
|
"github.com/lightninglabs/lndclient"
|
2019-03-07 04:32:24 +00:00
|
|
|
"github.com/lightninglabs/loop/loopdb"
|
2023-08-24 23:41:45 +00:00
|
|
|
"google.golang.org/grpc"
|
2019-03-06 20:13:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// clientConfig contains config items for the swap client.
|
|
|
|
type clientConfig struct {
|
|
|
|
LndServices *lndclient.LndServices
|
|
|
|
Server swapServerClient
|
2023-08-24 23:41:45 +00:00
|
|
|
Conn *grpc.ClientConn
|
2019-03-07 04:32:24 +00:00
|
|
|
Store loopdb.SwapStore
|
2019-11-15 12:57:03 +00:00
|
|
|
LsatStore lsat.Store
|
2019-03-06 20:13:50 +00:00
|
|
|
CreateExpiryTimer func(expiry time.Duration) <-chan time.Time
|
2021-03-11 10:20:11 +00:00
|
|
|
LoopOutMaxParts uint32
|
2019-03-06 20:13:50 +00:00
|
|
|
}
|