Skip to content

Commit

Permalink
invoice: add invoice crate
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Nov 14, 2023
1 parent 11a708b commit c9a0c21
Show file tree
Hide file tree
Showing 13 changed files with 1,136 additions and 131 deletions.
109 changes: 60 additions & 49 deletions Cargo.lock

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

30 changes: 19 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[workspace]
members = [
"invoice",
"cli",
"fs",
"."
]
default-members = [
"invoice",
"cli",
"fs",
"."
Expand All @@ -26,13 +28,13 @@ amplify = "4.5.0"
baid58 = "0.4.4"
strict_encoding = "2.6.1"
strict_types = "1.6.3"
bp-dbc = "0.10.10"
bp-std = "0.10.0-beta.1"
bp-wallet = "0.10.0-beta.1"
bp-utils = "0.10.0-beta.1"
bp-esplora = "0.10.0-beta.1"
rgb-std = { version = "0.10.10", features = ["fs"] }
rgb-invoice = "0.10.10"
bp-dbc = "0.11.0-beta.1"
bp-seals = "0.11.0-beta.1"
bp-std = "0.11.0-beta.1"
bp-wallet = "0.11.0-beta.1"
bp-utils = "0.11.0-beta.1"
bp-esplora = "0.11.0-beta.1"
rgb-std = { version = "0.11.0-beta.1", features = ["fs"] }
indexmap = "2.0.2"
serde_crate = { package = "serde", version = "1", features = ["derive"] }
serde_yaml = "0.9.19"
Expand Down Expand Up @@ -62,7 +64,7 @@ bp-dbc = { workspace = true }
bp-std = { workspace = true }
bp-wallet = { workspace = true, features = ["fs"] }
bp-esplora = { workspace = true, optional = true }
descriptors = "=0.10.0-BP-beta.1"
descriptors = "0.11.0-beta.1"
rgb-std = { workspace = true }
rgb-persist-fs = { version = "0.11.0-alpha", path = "fs" }
indexmap = { workspace = true }
Expand All @@ -80,6 +82,12 @@ serde = ["serde_crate", "serde_yaml", "bp-std/serde", "bp-wallet/serde",]
features = [ "all" ]

[patch.crates-io]
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "v0.10" }
rgb-std = { git = "https://github.com/RGB-WG/rgb-std", branch = "hybrid" }
rgb-invoice = { git = "https://github.com/RGB-WG/rgb-std", branch = "hybrid" }
bp-consensus = { git = "https://github.com/BP-WG/bp-core", branch = "v0.11" }
bp-std = { git = "https://github.com/BP-WG/bp-std", branch = "master" }
bp-esplora = { git = "https://github.com/BP-WG/bp-esplora-client", branch = "master" }
psbt = { git = "https://github.com/BP-WG/bp-std", branch = "master" }
descriptors = { git = "https://github.com/BP-WG/bp-std", branch = "master" }
bp-util = { git = "https://github.com/BP-WG/bp-wallet", branch = "master" }
bp-wallet = { git = "https://github.com/BP-WG/bp-wallet", branch = "master" }
rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "v0.11" }
rgb-std = { git = "https://github.com/RGB-WG/rgb-std", branch = "master" }
14 changes: 7 additions & 7 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ path = "src/main.rs"
amplify = { workspace = true }
baid58 = { workspace = true }
strict_types = { workspace = true, features = ["serde"] }
commit_verify = "0.10.6"
bp-seals = "0.10.11"
commit_verify = "0.11.0-beta.1"
bp-seals = { workspace = true }
bp-std = { workspace = true, features = ["serde"] }
bp-wallet = { workspace = true }
bp-esplora = { workspace = true }
bp-util = "0.10.0-beta.1"
bp-util = "0.11.0-beta.1"
rgb-std = { workspace = true, features = ["serde"] }
rgb-invoice = { workspace = true }
rgb-invoice = { version = "0.11.0-alpha", path = "../invoice" }
rgb-runtime = { version = "0.11.0-alpha", path = "..", features = ["log", "serde"] }
log = { workspace = true }
env_logger = "0.10.0"
clap = { version = "4.4.6", features = ["derive", "env"] }
env_logger = "0.10.1"
clap = { version = "4.4.8", features = ["derive", "env"] }
shellexpand = "3.1.0"
serde_crate = { workspace = true }
serde_yaml = { workspace = true }
serde_json = "1.0.108"
toml = "0.8.2"
toml = "0.8.8"

[features]
default = []
2 changes: 1 addition & 1 deletion cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl RgbArgs {
eprint!("Loading stock ... ");
let runtime = Runtime::<DescriptorRgb>::load_pure_rgb(
self.general.data_dir.clone(),
self.general.chain,
self.general.network,
)?;
eprintln!("success");

Expand Down
Loading

0 comments on commit c9a0c21

Please sign in to comment.