Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand InputType with new variant: Bolt12 offer #1121

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions libs/sdk-common/src/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ impl From<lightning::offers::offer::Amount> for Amount {

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub struct LNOffer {
/// String representation of the Bolt12 offer
pub bolt12: String,
ok300 marked this conversation as resolved.
Show resolved Hide resolved
pub chains: Vec<String>,
/// If set, it represents the minimum amount that an invoice must have to be valid for this offer
pub amount: Option<Amount>,
pub description: Option<String>,
pub absolute_expiry: Option<u64>,
Expand Down
Loading