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#[cfg_attr(doc, aquamarine::aquamarine)]
10#[allow(clippy::large_enum_variant)]
27#[derive(Debug, Clone, Eq, PartialEq, Hash, Decodable, Encodable)]
28pub enum LightningPayStates {
29 CreatedOutgoingLnContract(LightningPayCreatedOutgoingLnContract),
30 FundingRejected,
31 Funded(LightningPayFunded),
32 Success(String),
33 #[deprecated(
34 since = "0.4.0",
35 note = "Pay State Machine skips over this state and will retry payments until cancellation or timeout"
36 )]
37 Refundable(LightningPayRefundable),
38 Refund(LightningPayRefund),
39 #[deprecated(
40 since = "0.4.0",
41 note = "Pay State Machine does not need to wait for the refund tx to be accepted"
42 )]
43 Refunded(Vec<OutPoint>),
44 Failure(String),
45}