mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: add asset client to swap config
This commit is contained in:
parent
20d5081368
commit
8451f29f8f
9 changed files with 72 additions and 17 deletions
5
swap.go
5
swap.go
|
|
@ -5,6 +5,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/lightninglabs/lndclient"
|
||||
"github.com/lightninglabs/loop/assets"
|
||||
"github.com/lightninglabs/loop/loopdb"
|
||||
"github.com/lightninglabs/loop/swap"
|
||||
"github.com/lightninglabs/loop/utils"
|
||||
|
|
@ -79,14 +80,16 @@ type swapConfig struct {
|
|||
lnd *lndclient.LndServices
|
||||
store loopdb.SwapStore
|
||||
server swapServerClient
|
||||
assets *assets.TapdClient
|
||||
}
|
||||
|
||||
func newSwapConfig(lnd *lndclient.LndServices, store loopdb.SwapStore,
|
||||
server swapServerClient) *swapConfig {
|
||||
server swapServerClient, assets *assets.TapdClient) *swapConfig {
|
||||
|
||||
return &swapConfig{
|
||||
lnd: lnd,
|
||||
store: store,
|
||||
server: server,
|
||||
assets: assets,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue