fedimint_ln_client/pay/
lightningpay.rs1use fedimint_core::OutPoint;
2use fedimint_core::encoding::{Decodable, Encodable};
3
4use super::{
5 LightningPayCreatedOutgoingLnContract, LightningPayFunded, LightningPayRefund,
6 LightningPayRefundable,
7};
8
9#[allow(clippy::large_enum_variant)]
26#[derive(Debug, Clone, Eq, PartialEq, Hash, Decodable, Encodable)]
27pub enum LightningPayStates {
28 CreatedOutgoingLnContract(LightningPayCreatedOutgoingLnContract),
29 FundingRejected,
30 Funded(LightningPayFunded),
31 Success(String),
32 #[deprecated(
33 since = "0.4.0",
34 note = "Pay State Machine skips over this state and will retry payments until cancellation or timeout"
35 )]
36 Refundable(LightningPayRefundable),
37 Refund(LightningPayRefund),
38 #[deprecated(
39 since = "0.4.0",
40 note = "Pay State Machine does not need to wait for the refund tx to be accepted"
41 )]
42 Refunded(Vec<OutPoint>),
43 Failure(String),
44}