Skip to content

Commit 0837a0a

Browse files
committed
GraphQL: remove comments
1 parent 8d9d156 commit 0837a0a

File tree

3 files changed

+0
-49
lines changed

3 files changed

+0
-49
lines changed

node/native/src/graphql/constants.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,6 @@ impl GraphQLDaemonStatus {
124124
let best_tip = context.get_or_fetch_best_tip().await;
125125

126126
Ok(best_tip.map(|best_tip| best_tip.merkle_root_hash().to_string()))
127-
// match best_tip {
128-
// Some(best_tip) => {
129-
// println!("best_tip_ledger_merkle_root {:?}", best_tip.merkle_root_hash());
130-
// let ledger_status = context
131-
// .get_or_fetch_ledger_status(best_tip.merkle_root_hash())
132-
// .await;
133-
// Ok(ledger_status
134-
// .map(|ledger_status| ledger_status.best_tip_staged_ledger_hash.to_string()))
135-
// }
136-
// None => Ok(None),
137-
// }
138127
}
139128

140129
async fn state_hash(&self, context: &Context) -> juniper::FieldResult<Option<String>> {

node/native/src/graphql/mod.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -704,40 +704,8 @@ pub fn routes(
704704
.and(warp::path("playground"))
705705
.and(playground_filter))
706706
.or(warp::get().and(warp::path("graphiql")).and(graphiql_filter))
707-
708-
// warp::get()
709-
// .and(warp::path("graphiql"))
710-
// .and(juniper_warp::graphiql_filter("/graphql", None))
711-
// .or(warp::path("graphql").and(graphql_filter))
712707
}
713708

714-
// let routes = (warp::post()
715-
// .and(warp::path("graphql"))
716-
// .and(juniper_warp::make_graphql_filter(
717-
// schema.clone(),
718-
// warp::any().map(|| Context),
719-
// )))
720-
// .or(
721-
// warp::path("subscriptions").and(juniper_warp::subscriptions::make_ws_filter(
722-
// schema,
723-
// ConnectionConfig::new(Context),
724-
// )),
725-
// )
726-
// .or(warp::get()
727-
// .and(warp::path("playground"))
728-
// .and(juniper_warp::playground_filter(
729-
// "/graphql",
730-
// Some("/subscriptions"),
731-
// )))
732-
// .or(warp::get()
733-
// .and(warp::path("graphiql"))
734-
// .and(juniper_warp::graphiql_filter(
735-
// "/graphql",
736-
// Some("/subscriptions"),
737-
// )))
738-
// .or(homepage)
739-
// .with(log);
740-
741709
/// Helper function used by [`Query::pooled_user_commands`] and [`Query::pooled_zkapp_commands`] to parse public key, transaction hashes and command ids
742710
fn parse_pooled_commands_query<ID, F>(
743711
public_key: Option<String>,

node/native/src/graphql/user_command.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ use o1_utils::field_helpers::FieldHelpers;
1515

1616
use super::zkapp::GraphQLFailureReason;
1717

18-
// #[derive(GraphQLInputObject, Debug)]
19-
// pub struct InputGraphQLSendPayment {
20-
// pub input: InputGraphQLPayment,
21-
// pub signature: UserCommandSignature,
22-
// }
23-
2418
#[derive(GraphQLInputObject, Debug)]
2519
pub struct InputGraphQLPayment {
2620
pub from: String,

0 commit comments

Comments
 (0)