diff --git a/Cargo.lock b/Cargo.lock index 65e3ff08..15bf7784 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2232,7 +2232,7 @@ dependencies = [ "phonenumber", "pigeon", "pigeon-mock", - "pocket_client", + "pocketclient", "qrcode", "rand", "regex", @@ -2819,7 +2819,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" [[package]] -name = "pocket_client" +name = "pocketclient" version = "0.1.0" dependencies = [ "chrono", diff --git a/Cargo.toml b/Cargo.toml index c0407fe4..45c2c08f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ members = [ "mock/breez-sdk", "parser", - "pocket_client" + "pocketclient" ] [package] @@ -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 } diff --git a/pocket_client/Cargo.toml b/pocketclient/Cargo.toml similarity index 94% rename from pocket_client/Cargo.toml rename to pocketclient/Cargo.toml index 9fcd3f80..5bcc2617 100644 --- a/pocket_client/Cargo.toml +++ b/pocketclient/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "pocket_client" +name = "pocketclient" version = "0.1.0" edition = "2021" diff --git a/pocket_client/src/lib.rs b/pocketclient/src/lib.rs similarity index 99% rename from pocket_client/src/lib.rs rename to pocketclient/src/lib.rs index df03ba7b..940c67e9 100644 --- a/pocket_client/src/lib.rs +++ b/pocketclient/src/lib.rs @@ -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" ) ); @@ -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" ) ); diff --git a/src/data_store.rs b/src/data_store.rs index b36120c9..baeb3a13 100644 --- a/src/data_store.rs +++ b/src/data_store.rs @@ -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}; @@ -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}; diff --git a/src/lib.rs b/src/lib.rs index 753ac899..30f8bb6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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};