Skip to content

Commit

Permalink
Expose hide_topup
Browse files Browse the repository at this point in the history
  • Loading branch information
dleutenegger committed Oct 3, 2023
1 parent cb9e3b9 commit fae0bbd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ name = "uniffi_lipalightninglib"
nigiri = []

[dependencies]
chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.11.0" }
crow = { git = "https://github.com/getlipa/wild", tag = "v1.11.0" }
honey-badger = { git = "https://github.com/getlipa/wild", tag = "v1.11.0" }
chameleon = { git = "https://github.com/getlipa/wild", branch = "feature/hide-topups" }
crow = { git = "https://github.com/getlipa/wild", branch = "feature/hide-topups" }
honey-badger = { git = "https://github.com/getlipa/wild", branch = "feature/hide-topups" }
perro = { git = "https://github.com/getlipa/perro", tag = "v1.1.0" }
graphql = { git = "https://github.com/getlipa/wild", tag = "v1.11.0" }
graphql = { git = "https://github.com/getlipa/wild", branch = "feature/hide-topups" }

breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.2.3" }
# Pinning some problematic dependencies.
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ impl LightningNode {
.register_pocket_fiat_topup(&user_iban, user_currency)
}

pub fn hide_topup(&self, id: String) -> Result<()> {
self.offer_manager
.hide_topup(id)
.map_runtime_error_to(RuntimeErrorCode::OfferServiceUnavailable)
}

pub fn query_uncompleted_offers(&self) -> Result<Vec<OfferInfo>> {
let topup_infos = self
.offer_manager
Expand Down

0 comments on commit fae0bbd

Please sign in to comment.