Skip to content

Commit

Permalink
chore: rename wallet to util, runtime to wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 9, 2023
1 parent 4ab143a commit 2e09374
Show file tree
Hide file tree
Showing 22 changed files with 154 additions and 155 deletions.
74 changes: 41 additions & 33 deletions Cargo.lock

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

78 changes: 31 additions & 47 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[workspace]
members = [".", "runtime"]
members = [".", "cli"]
exclude = ["convert"]

[workspace.package]
version = "0.11.0"
version = "0.10.0-beta.1"
keywords = ["bitcoin", "wallet", "descriptor-wallet", "psbt", "taproot"]
categories = ["cryptography::cryptocurrencies"]
authors = ["Dr Maxim Orlovsky <[email protected]>"]
Expand All @@ -16,61 +16,45 @@ license = "Apache-2.0"
[workspace.dependencies]
amplify = "4.5.0"
strict_encoding = "2.6.1"
bp-std = "0.11.0"
psbt = "0.11.0"
descriptors = "0.11.0"
bp-esplora = "0.11.0"
bp-std = "0.10.0-beta.1"
psbt = "=0.10.0-BP-beta.1"
descriptors = "=0.10.0-BP-beta.1"
bp-esplora = "0.10.0"
serde_crate = { package = "serde", version = "1", features = ["derive"] }
serde_yaml = "0.9.19"
toml = "0.8.2"
log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }

[package]
name = "bp-wallet"
version = { workspace = true }
description = "Modern, minimalistic & standard-compliant cold wallet library"
keywords = { workspace = true }
categories = { workspace = true }
readme = "README.md"
authors = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }

[[bin]]
name = "bp"
path = "src/bin/bp.rs"
version.workspace = true
description = "Modern, minimalistic & standard-compliant bitcoin wallet runtime"
keywords.workspace = true
categories.workspace = true
readme = "../README.md"
authors.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
edition.workspace = true
license.workspace = true

[lib]
name = "bpw"
name = "bpwallet"

[dependencies]
amplify = { workspace = true, features = ["serde"] }
strict_encoding = { workspace = true }
bp-runtime = { path = "runtime", features = ["serde", "fs"] }
bp-std = { workspace = true, features = ["serde"] }
descriptors = { workspace = true, features = ["serde"] }
psbt = { workspace = true, features = ["serde"] }
bp-esplora = { workspace = true }
base64 = "0.21.4"
log = { workspace = true }
env_logger = "0.10.0"
clap = { version = "4.1.8", features = ["derive", "env"] }
shellexpand = "3.0.0"
serde_crate = { workspace = true }
serde_yaml = { workspace = true }
toml = { workspace = true }
amplify = { workspace = true }
bp-std = { workspace = true }
bp-esplora = { workspace = true, optional = true }
psbt = { workspace = true }
descriptors = { workspace = true }
serde_crate = { workspace = true, optional = true }
serde_yaml = { workspace = true, optional = true }
toml = { workspace = true, optional = true }

[features]
default = []
all = []

[patch.crates-io]
bp-consensus = { git = "https://github.com/BP-WG/bp-core", branch = "consensus" }
bp-core = { git = "https://github.com/BP-WG/bp-core", branch = "consensus" }
bp-std = { git = "https://github.com/BP-WG/bp-std" }
bp-esplora = { git = "https://github.com/BP-WG/bp-esplora-client" }
descriptors = { git = "https://github.com/BP-WG/bp-std" }
psbt = { git = "https://github.com/BP-WG/bp-std" }
default = ["esplora"]
all = ["esplora", "fs"]
esplora = ["bp-esplora"]
fs = ["serde"]
serde = ["serde_crate", "serde_yaml", "toml", "bp-std/serde"]
40 changes: 40 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[package]
name = "bp-util"
version = { workspace = true }
description = "Modern, minimalistic & standard-compliant cold wallet library"
keywords = { workspace = true }
categories = { workspace = true }
readme = "README.md"
authors = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }

[[bin]]
name = "bp"
path = "src/bin/bp.rs"

[lib]

[dependencies]
amplify = { workspace = true, features = ["serde"] }
strict_encoding = { workspace = true }
bp-wallet = { version = "0.10.0-beta.1", path = "..", features = ["serde", "fs"] }
bp-std = { workspace = true, features = ["serde"] }
descriptors = { workspace = true, features = ["serde"] }
psbt = { workspace = true, features = ["serde"] }
bp-esplora = { workspace = true }
base64 = "0.21.4"
log = { workspace = true }
env_logger = "0.10.0"
clap = { version = "4.4.6", features = ["derive", "env"] }
shellexpand = "3.1.0"
serde_crate = { workspace = true }
serde_yaml = { workspace = true }
toml = { workspace = true }

[features]
default = []
all = []
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 18 additions & 24 deletions runtime/src/lib.rs → cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,25 @@

#[macro_use]
extern crate amplify;
#[cfg(feature = "serde")]
#[macro_use]
extern crate clap;
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde_crate as serde;

mod indexers;
#[cfg(feature = "fs")]
mod runtime;
mod util;
mod data;
mod rows;
mod wallet;
mod layer2;
mod payments;
pub mod coinselect;
mod loglevel;
mod opts;
mod args;
mod config;
mod command;

pub use data::{
BlockHeight, BlockInfo, MiningInfo, Party, TxCredit, TxDebit, TxStatus, WalletAddr, WalletTx,
WalletUtxo,
};
pub use indexers::Indexer;
pub use layer2::{
Layer2, Layer2Cache, Layer2Coin, Layer2Data, Layer2Descriptor, Layer2Tx, NoLayer2,
pub use args::{Args, Exec};
pub use bp_rt::*;
pub use command::Command;
pub use config::Config;
pub use loglevel::LogLevel;
pub use opts::{
DescrStdOpts, DescriptorOpts, GeneralOpts, ResolverOpt, WalletOpts, DATA_DIR, DATA_DIR_ENV,
DEFAULT_ESPLORA,
};
pub use payments::{Amount, ConstructionError, Invoice, TxParams};
pub use rows::{CoinRow, Counterparty, OpType, TxRow};
#[cfg(feature = "fs")]
pub use runtime::{LoadError, Runtime, RuntimeError, StoreError};
pub use util::MayError;
pub use wallet::{Wallet, WalletCache, WalletData, WalletDescr};
File renamed without changes.
File renamed without changes.
33 changes: 0 additions & 33 deletions runtime/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2e09374

Please sign in to comment.