Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion crates/nostr/src/nips/nip47.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ pub enum TransactionState {
/// Failed (for payments)
#[serde(rename = "failed")]
Failed,
/// Accepted (for hold invoices)
#[serde(rename = "accepted")]
Accepted,
}

/// List Transactions Request
Expand Down Expand Up @@ -496,7 +499,7 @@ pub struct MakeHoldInvoiceRequest {
pub payment_hash: String,
/// The minimum CLTV delta to use for the final hop
#[serde(skip_serializing_if = "Option::is_none")]
pub cltv_expiry_delta: Option<u32>,
pub min_cltv_expiry_delta: Option<u32>,
}

/// Cancel Hold Invoice Request
Expand Down Expand Up @@ -1503,6 +1506,9 @@ pub struct HoldInvoiceAcceptedNotification {
/// Transaction type
#[serde(rename = "type")]
pub transaction_type: TransactionType,
/// Transaction state
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<TransactionState>,
/// Bolt11 invoice
pub invoice: String,
/// Description
Expand Down
Loading