mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop+cmd: extract types into swap module
This commit is contained in:
parent
7a1680d7d6
commit
69f2af9fdc
13 changed files with 104 additions and 89 deletions
8
swap.go
8
swap.go
|
|
@ -16,7 +16,7 @@ type swapKit struct {
|
|||
|
||||
height int32
|
||||
|
||||
log *SwapLog
|
||||
log *swap.PrefixLog
|
||||
|
||||
lastUpdateTime time.Time
|
||||
cost loopdb.SwapCost
|
||||
|
|
@ -25,10 +25,10 @@ type swapKit struct {
|
|||
swapConfig
|
||||
|
||||
contract *loopdb.SwapContract
|
||||
swapType Type
|
||||
swapType swap.Type
|
||||
}
|
||||
|
||||
func newSwapKit(hash lntypes.Hash, swapType Type, cfg *swapConfig,
|
||||
func newSwapKit(hash lntypes.Hash, swapType swap.Type, cfg *swapConfig,
|
||||
contract *loopdb.SwapContract, outputType swap.HtlcOutputType) (
|
||||
*swapKit, error) {
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ func newSwapKit(hash lntypes.Hash, swapType Type, cfg *swapConfig,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
log := &SwapLog{
|
||||
log := &swap.PrefixLog{
|
||||
Hash: hash,
|
||||
Logger: logger,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue