Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor cli interface #446

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[alias]
ordhook-install = "install --path components/ordhook-cli --locked --force"
ordhook-install = "install --path components/cli --locked --force"

[env]
RUST_TEST_THREADS = "1"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ jobs:
fail-fast: false
matrix:
suite:
- ordhook-cli
- ordhook-core
- cli
- chainhook-sdk
- chainhook-postgres
- ordhook-core
runs-on: ubuntu-latest
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"request": "launch",
"name": "run: ordhook service",
"cargo": {
"args": ["build", "--bin=ordhook", "--package=ordhook-cli"],
"args": ["build", "--bin=ordhook", "--package=cli"],
"filter": {
"name": "ordhook",
"kind": "bin"
Expand All @@ -38,7 +38,7 @@
"request": "launch",
"name": "Debug unit tests in executable 'ordhook'",
"cargo": {
"args": ["test", "--no-run", "--bin=ordhook", "--package=ordhook-cli"],
"args": ["test", "--no-run", "--bin=ordhook", "--package=cli"],
"filter": {
"name": "ordhook",
"kind": "bin"
Expand Down
42 changes: 21 additions & 21 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ members = [
"components/chainhook-sdk",
"components/chainhook-postgres",
"components/chainhook-types-rs",
"components/ordhook-cli",
"components/cli",
"components/ordhook-core",
"components/ord",
]
default-members = ["components/ordhook-cli"]
default-members = ["components/cli"]
resolver = "2"

[workspace.dependencies]
Expand Down
5 changes: 2 additions & 3 deletions components/chainhook-sdk/src/indexer/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ use bitcoincore_rpc::jsonrpc::error::RpcError;
use bitcoincore_rpc_json::GetRawTransactionResultVoutScriptPubKey;
use chainhook_types::bitcoin::{OutPoint, TxIn, TxOut};
use chainhook_types::{
BitcoinBlockData, BitcoinBlockMetadata, BitcoinBlockSignaling, BitcoinNetwork,
BitcoinTransactionData,BitcoinTransactionMetadata, BlockHeader, BlockIdentifier,
TransactionIdentifier,
BitcoinBlockData, BitcoinBlockMetadata, BitcoinNetwork, BitcoinTransactionData,
BitcoinTransactionMetadata, BlockHeader, BlockIdentifier, TransactionIdentifier,
};
use hiro_system_kit::slog;
use reqwest::Client as HttpClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "ordhook-cli"
name = "cli"
version.workspace = true
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "ordhook"
name = "bitcoin-indexer"
path = "src/main.rs"

[dependencies]
Expand Down
File renamed without changes.
Loading