mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopin: refactor LoopIn to return struct instead of tuple
This commit is contained in:
parent
0c01e95433
commit
7a44eec36f
3 changed files with 23 additions and 8 deletions
11
interface.go
11
interface.go
|
|
@ -235,6 +235,17 @@ type LoopInQuote struct {
|
|||
CltvDelta int32
|
||||
}
|
||||
|
||||
// LoopInSwapInfo contains essential information of a loop-in swap after the
|
||||
// swap is initiated.
|
||||
type LoopInSwapInfo struct { // nolint
|
||||
// SwapHash contains the sha256 hash of the swap preimage.
|
||||
SwapHash lntypes.Hash
|
||||
|
||||
// HtlcAddress contains the swap htlc address, where the loop-in
|
||||
// funds will be paid.
|
||||
HtlcAddress btcutil.Address
|
||||
}
|
||||
|
||||
// SwapInfoKit contains common swap info fields.
|
||||
type SwapInfoKit struct {
|
||||
// Hash is the sha256 hash of the preimage that unlocks the htlcs. It
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue