Skip to content

Commit

Permalink
Update honey-badger dependency (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-21 authored Mar 15, 2023
1 parent ce248f7 commit 059c520
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/auth.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/lipabusinesslib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 059c520

Please sign in to comment.