Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 1 addition & 4 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,7 @@ interface Satisfaction {
None(string msg);
};

dictionary Condition {
u32? csv;
LockTime? timelock;
};
typedef record Condition;

// ------------------------------------------------------------------------
// bdk_wallet crate - bitcoin re-exports
Expand Down
5 changes: 4 additions & 1 deletion bdk-ffi/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,12 @@ impl From<BdkSatisfaction> for Satisfaction {
}
}

#[derive(Debug, Clone)]
/// An extra condition that must be satisfied but that is out of control of the user
#[derive(Debug, Clone, uniffi::Record)]
pub struct Condition {
/// Optional CheckSequenceVerify condition
pub csv: Option<u32>,
/// Optional timelock condition
pub timelock: Option<LockTime>,
}

Expand Down
Loading