Skip to content

Commit

Permalink
feat: expose policy::contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Nov 4, 2024
1 parent d22510f commit 437fcd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ interface Policy {
SatisfiableItem item();

Satisfaction satisfaction();

Satisfaction contribution();
};

[Enum]
Expand Down
4 changes: 4 additions & 0 deletions bdk-ffi/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ impl Policy {
pub fn satisfaction(&self) -> Satisfaction {
self.0.satisfaction.clone().into()
}

pub fn contribution(&self) -> Satisfaction {
self.0.contribution.clone().into()
}
}

#[derive(Debug, Clone)]
Expand Down

0 comments on commit 437fcd0

Please sign in to comment.