package
0.29.0-beta.rc2
Repository: https://github.com/lightninglabs/loop.git
Documentation: pkg.go.dev

# Functions

NewFSM creates a new loop-in state machine.
NewManager creates a new deposit withdrawal manager.
NewSqlStore constructs a new SQLStore from a BaseDB.
UseLogger uses a specified Logger to output package logging info.

# Constants

No description provided by the author
Subsystem defines the sub system name of this package.
SwapNotFinishedMsg is the message that is sent to the server if a swap is not considered finished yet.

# Variables

No description provided by the author
ErrBackupFeeTooHigh is returned if the server sets a fee rate for the htlc backup tx that is too high.
ErrFeeTooHigh is returned if the server sets a fee rate for the htlc tx that is too high.
ErrInvalidOutpoint is returned when an outpoint contains the outpoint separator.
Failed is the state the swap is in if it failed.
No description provided by the author
HtlcTimeoutSwept is the state where the htlc timeout sweep transaction was sufficiently confirmed.
InitHtlcTx initiates the htlc tx creation with the server.
MonitorHtlcTimeoutSweep monitors the htlc timeout sweep transaction confirmation.
MonitorInvoiceAndHtlcTx monitors the swap invoice payment and the htlc transaction confirmation.
Events.
Events.
Events.
Events.
Events.
Events.
Events.
Events.
Events.
Events.
Events.
PaymentReceived is the state where the swap invoice was paid by the server.
No description provided by the author
SignHtlcTx partially signs the htlc transaction with the received server nonces.
Succeeded is the state the swap is in if it was successful.
nolint:lll.
SweepHtlcTimeout is the state where the htlc timeout path is published because the server did not pay the invoice on time.
UnlockDeposits is the state where the deposits are reset.

# Structs

Config contains the services required for the loop-in manager.
FSM embeds an FSM and extends it with a static address loop-in and a config.
Manager manages the address state machines.
SqlStore is the backing store for static address loop-ins.
StaticAddressLoopIn represents the in-memory loop-in information.

# Interfaces

AddressManager handles fetching of address parameters.
BaseDB is the interface that contains all the queries generated by sqlc for the static_address_swaps table and transaction functionality.
DepositManager handles the interaction of loop-ins with deposits.
No description provided by the author
Querier is the interface that contains all the queries generated by sqlc for the static_address_swaps table.
No description provided by the author
StaticAddressLoopInStore provides access to the static address loop-in DB.

# Type aliases

No description provided by the author