Skip to content

Commit

Permalink
refactor: rename to onchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Mar 27, 2024
1 parent 16fe9dd commit 0402c7a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions fedimint-clientd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ version = "0.1.5"
edition = "2021"
description = "A fedimint client daemon for server side applications to hold, use, and manage Bitcoin"
repository = "https://github.com/fedimint/fedimint-clientd"
keywords = ["fedimint", "fedimint-cli"]
keywords = ["fedimint", "bitcoin", "lightning", "ecash"]
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.75"
axum = { version = "0.7.1", features = ["json", "ws"] }
Expand Down
6 changes: 3 additions & 3 deletions fedimint-clientd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ fn fedimint_v2_rest() -> Router<AppState> {
let wallet_router = Router::new()
.route(
"/deposit-address",
post(fedimint::wallet::deposit_address::handle_rest),
post(fedimint::onchain::deposit_address::handle_rest),
)
.route(
"/await-deposit",
post(fedimint::wallet::await_deposit::handle_rest),
post(fedimint::onchain::await_deposit::handle_rest),
)
.route("/withdraw", post(fedimint::wallet::withdraw::handle_rest));
.route("/withdraw", post(fedimint::onchain::withdraw::handle_rest));

let admin_router = Router::new()
.route("/backup", post(fedimint::admin::backup::handle_rest))
Expand Down
2 changes: 1 addition & 1 deletion fedimint-clientd/src/router/handlers/fedimint/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod admin;
pub mod ln;
pub mod mint;
pub mod wallet;
pub mod onchain;
6 changes: 3 additions & 3 deletions fedimint-clientd/src/router/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ async fn match_method(req: JsonRpcRequest, state: AppState) -> Result<Value, App
handlers::fedimint::ln::list_gateways::handle_ws(state.clone(), req.params).await
}
JsonRpcMethod::WalletDepositAddress => {
handlers::fedimint::wallet::deposit_address::handle_ws(state.clone(), req.params).await
handlers::fedimint::onchain::deposit_address::handle_ws(state.clone(), req.params).await
}
JsonRpcMethod::WalletAwaitDeposit => {
handlers::fedimint::wallet::await_deposit::handle_ws(state.clone(), req.params).await
handlers::fedimint::onchain::await_deposit::handle_ws(state.clone(), req.params).await
}
JsonRpcMethod::WalletWithdraw => {
handlers::fedimint::wallet::withdraw::handle_ws(state.clone(), req.params).await
handlers::fedimint::onchain::withdraw::handle_ws(state.clone(), req.params).await
}
}
}

0 comments on commit 0402c7a

Please sign in to comment.