ln_gateway::gateway_module_v2

Module events

Source

Structs§

CompleteLightningPaymentSucceeded
Event that is emitted when a preimage is revealed to the Lightning network. Only emitted for payments that are received from an external Lightning node, not internal swaps.
IncomingPaymentFailed
Event that is emitted when an incoming payment attempt has failed.
IncomingPaymentStarted
Event that is emitted when an incoming payment attempt has started. Includes both internal swaps and outside LN payments.
IncomingPaymentSucceeded
Event that is emitted when an incoming payment attempt has succeeded. Includes both internal swaps and outside LN payments.
OutgoingPaymentFailed
Event that is emitted when an outgoing payment attempt has failed.
OutgoingPaymentStarted
Event that is emitted when an outgoing payment attempt is initiated.
OutgoingPaymentSucceeded
Event that is emitted when an outgoing payment attempt has succeeded.

Functions§

compute_lnv2_stats
Computes the StructurePaymentEvents for all LNv2 payments.