-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e92a2b1
commit b0debd0
Showing
13 changed files
with
708 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "cdk-bdk" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["CDK Developers"] | ||
homepage.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true # MSRV | ||
license.workspace = true | ||
description = "BDK on chain wallet for mint" | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
async-trait.workspace = true | ||
bitcoin = "0.32.0" | ||
bdk_chain = "0.16.0" | ||
bdk_wallet = { version = "1.0.0-alpha.13", default-features = false, features = ["keys-bip39"] } | ||
bdk_esplora = { version = "0.15.0", default-features = false, features = ["std", "async-https"] } | ||
bdk_file_store = "0.13.0" | ||
cdk = { workspace = true, default-features = false, features = ["mint"] } | ||
futures.workspace = true | ||
tokio.workspace = true | ||
tracing.workspace = true | ||
thiserror.workspace = true | ||
uuid.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error)] | ||
pub enum Error { | ||
/// Invoice amount not defined | ||
#[error("Unknown invoice amount")] | ||
UnknownInvoiceAmount, | ||
/// Wrong CLN response | ||
#[error("Wrong cln response")] | ||
WrongClnResponse, | ||
/// Unknown invoice | ||
#[error("Unknown invoice")] | ||
UnknownInvoice, | ||
#[error(transparent)] | ||
Anyhow(#[from] anyhow::Error), | ||
/// Esplora client error | ||
#[error(transparent)] | ||
EsploraClient(#[from] bdk_esplora::esplora_client::Error), | ||
} | ||
|
||
impl From<Error> for cdk::cdk_onchain::Error { | ||
fn from(e: Error) -> Self { | ||
Self::Oncahin(Box::new(e)) | ||
} | ||
} |
Oops, something went wrong.