diff --git a/Cargo.lock b/Cargo.lock index d7e35c0c1..bf397bf9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -694,7 +694,7 @@ dependencies = [ [[package]] name = "chameleon" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.11.0#32b82d80641981d0591ceef754a174961ecdca66" +source = "git+https://github.com/getlipa/wild?branch=feature/hide-topups#fb001aee27a20b3df787cfa759fca2b53e289d9e" dependencies = [ "graphql", "honey-badger", @@ -864,7 +864,7 @@ dependencies = [ [[package]] name = "crow" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.11.0#32b82d80641981d0591ceef754a174961ecdca66" +source = "git+https://github.com/getlipa/wild?branch=feature/hide-topups#fb001aee27a20b3df787cfa759fca2b53e289d9e" dependencies = [ "graphql", "honey-badger", @@ -1494,7 +1494,7 @@ dependencies = [ [[package]] name = "graphql" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.11.0#32b82d80641981d0591ceef754a174961ecdca66" +source = "git+https://github.com/getlipa/wild?branch=feature/hide-topups#fb001aee27a20b3df787cfa759fca2b53e289d9e" dependencies = [ "chrono", "graphql_client", @@ -1701,7 +1701,7 @@ dependencies = [ [[package]] name = "honey-badger" version = "1.0.1" -source = "git+https://github.com/getlipa/wild?tag=v1.11.0#32b82d80641981d0591ceef754a174961ecdca66" +source = "git+https://github.com/getlipa/wild?branch=feature/hide-topups#fb001aee27a20b3df787cfa759fca2b53e289d9e" dependencies = [ "base64 0.21.4", "bdk", diff --git a/Cargo.toml b/Cargo.toml index 93961bdac..eb3abb72a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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. diff --git a/src/lib.rs b/src/lib.rs index 737729ebc..bc3c4bb08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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> { let topup_infos = self .offer_manager