Skip to content

Commit

Permalink
Merge branch 'main' into mock-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed May 21, 2024
2 parents b7b0784 + 7a8b98c commit 411d67e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = [
"mock/breez-sdk",
"parser",
"pocket_client"
"pocketclient"
]

[package]
Expand All @@ -16,7 +16,7 @@ name = "uniffi_lipalightninglib"

[dependencies]
parser = { path = "parser" }
pocket_client = { path = "pocket_client" }
pocketclient = { path = "pocketclient" }

chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.23.0", optional = true }
chameleon-mock = { path = "mock/wild/chameleon", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion pocket_client/Cargo.toml → pocketclient/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "pocket_client"
name = "pocketclient"
version = "0.1.0"
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions pocket_client/src/lib.rs → pocketclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl PocketClient {
raw_response.status() == StatusCode::CREATED,
runtime_error(
PocketClientErrorCode::UnexpectedResponse,
"Got unexpected response to Pocket challenge request: Pocket API returned status"
"Got unexpected response to Pocket challenge request"
)
);

Expand Down Expand Up @@ -257,7 +257,7 @@ impl PocketClient {
raw_response.status() == StatusCode::CREATED,
runtime_error(
PocketClientErrorCode::UnexpectedResponse,
"Got unexpected response to Pocket order creation request: Pocket API returned status {}"
"Got unexpected response to Pocket order creation request"
)
);

Expand Down
4 changes: 2 additions & 2 deletions src/data_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::errors::Result;
use crate::fund_migration::MigrationStatus;
use crate::migrations::migrate;
use crate::{ExchangeRate, OfferKind, PocketOfferError, TzConfig, UserPreferences};
use pocket_client::FiatTopupInfo;
use pocketclient::FiatTopupInfo;

use crate::analytics::AnalyticsConfig;
use chrono::{DateTime, Utc};
Expand Down Expand Up @@ -650,7 +650,7 @@ mod tests {
use crate::analytics::AnalyticsConfig;
use crow::TopupError::TemporaryFailure;
use crow::{PermanentFailureCode, TemporaryFailureCode};
use pocket_client::FiatTopupInfo;
use pocketclient::FiatTopupInfo;
use std::fs;
use std::thread::sleep;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ use crate::task_manager::TaskManager;
use crate::util::{
replace_byte_arrays_by_hex_string, unix_timestamp_to_system_time, LogIgnoreError,
};
pub use pocket_client::FiatTopupInfo;
use pocket_client::PocketClient;
pub use pocketclient::FiatTopupInfo;
use pocketclient::PocketClient;

pub use breez_sdk_core::error::ReceiveOnchainError as SwapError;
use breez_sdk_core::error::{ReceiveOnchainError, SendPaymentError};
Expand Down

0 comments on commit 411d67e

Please sign in to comment.