Skip to content

Commit

Permalink
adding the commands for proof-of-reserves using the separate repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichard committed Nov 5, 2021
1 parent b0c78e0 commit d7063cc
Show file tree
Hide file tree
Showing 6 changed files with 460 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- esplora-reqwest
- compiler
- compact_filters
- reserves
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `verbose` option to `WalletOpts` to display PSBTs and transaction details also in JSON format
- Require at most one blockchain client feature be enabled at a time
- Change default esplora server URL to https://blockstream.info/testnet/api/ to match default testnet network
- Added proof of reserves

## [0.2.0]

Expand Down
25 changes: 23 additions & 2 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dirs-next = { version = "2.0", optional = true }
env_logger = { version = "0.7", optional = true }
clap = { version = "2.33", optional = true }
regex = {version = "1", optional = true }
bdk-reserves = { version = "0.12", optional = true}

[features]
default = ["cli", "repl"]
Expand All @@ -38,6 +39,7 @@ esplora-reqwest = ["esplora", "bdk/use-esplora-reqwest"]
compiler = ["bdk/compiler"]
compact_filters = ["bdk/compact_filters"]
rpc = ["bdk/rpc"]
reserves = ["bdk/electrum", "bdk-reserves", "electrum"]

[[bin]]
name = "bdk-cli"
Expand Down
16 changes: 16 additions & 0 deletions src/bdk_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,22 @@ fn handle_command(cli_opts: CliOpts, network: Network) -> Result<String, Error>
// rl.save_history("history.txt").unwrap();
"Exiting REPL".to_string()
}
#[cfg(feature = "reserves")]
CliSubCommand::Reserves {
message,
addresses,
psbt,
electrum_opts,
} => {
let result = bdk_cli::handle_reserves_subcommand(
network,
message,
addresses,
psbt,
electrum_opts,
)?;
serde_json::to_string_pretty(&result)?
}
};
Ok(result)
}
Expand Down
Loading

0 comments on commit d7063cc

Please sign in to comment.