diff --git a/Cargo.toml b/Cargo.toml index a7abce8..9c78315 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ uniffi = "0.23.0" simplelog = { version ="0.12.0", features = ["test"], optional = true } perro = { git = "https://github.com/getlipa/perro", tag = "v1.0.0" } -honey-badger = { git = "https://github.com/getlipa/honey-badger", tag = "v1.0.1" } +honey-badger = { git = "https://github.com/getlipa/wild", tag = "v1.0.3" } [target.'cfg(target_os = "ios")'.dependencies] oslog = "0.2.0" diff --git a/src/auth.rs b/src/auth.rs index bb214e1..62f56a1 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -1,5 +1,5 @@ use crate::KeyPair; -use honey_badger::errors::Result; +use honey_badger::graphql::errors::Result; use honey_badger::AuthLevel; pub struct Auth { diff --git a/src/lib.rs b/src/lib.rs index 481b39a..14a6079 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,10 +16,10 @@ pub use crate::secrets::{ pub use crate::signing::sign; pub use crate::wallet::{Config, Tx, TxDetails, TxStatus, Wallet}; -pub use honey_badger::{ - errors::{AuthRuntimeErrorCode, Error as AuthError}, - AuthLevel, +pub use honey_badger::graphql::errors::{ + Error as AuthError, GraphQlRuntimeErrorCode as AuthRuntimeErrorCode, }; +pub use honey_badger::AuthLevel; use bdk::bitcoin::Network; use bdk::Balance; diff --git a/src/lipabusinesslib.udl b/src/lipabusinesslib.udl index cc11f63..5d54a90 100644 --- a/src/lipabusinesslib.udl +++ b/src/lipabusinesslib.udl @@ -47,8 +47,14 @@ interface WalletError { // A code that specifies an Auth RuntimeError that ocurred enum AuthRuntimeErrorCode { "AuthServiceError", // An error occurred with the authentication process. Please try again. + "AccessExpired", // Access to the backed services has expired "NetworkError", // Failed to get a response from a remote service. Could there be a loss of internet connection? "GenericError", // A generic error for unexpected/unknown runtime errors + + // Due to some design flows in wild libraries the following values must be declared here, + // but are not actually possible. + "CorruptData", + "ObjectNotFound", }; [Error]