diff --git a/scripts/count-ethereum-core/src/main.rs b/scripts/count-ethereum-core/src/main.rs index 7089f08..d644127 100644 --- a/scripts/count-ethereum-core/src/main.rs +++ b/scripts/count-ethereum-core/src/main.rs @@ -1,12 +1,10 @@ -use std::env; -use std::fs::File; -use std::io::BufReader; - use futures::StreamExt; use indexmap::IndexMap; use proof_of_sql::base::database::OwnedColumn; +use std::{env, fs::File, io::BufReader}; use sxt_proof_of_sql_sdk::{query_and_verify, SdkArgs}; +#[allow(dead_code)] const ETHEREUM_CORE_COUNTS_FILE: &str = "ethereum-core-counts.json"; const ETHEREUM_CORE_TABLES: [&str; 21] = [ @@ -57,6 +55,7 @@ async fn count_table( } /// Load the previous counts file +#[allow(dead_code)] async fn load_from_file() -> IndexMap { let file = File::open(ETHEREUM_CORE_COUNTS_FILE).expect("failed to open file"); let mut reader = BufReader::new(&file); @@ -64,6 +63,7 @@ async fn load_from_file() -> IndexMap { } /// Save the current counts to a file +#[allow(dead_code)] async fn save_to_file(counts: IndexMap) { let file = File::create(ETHEREUM_CORE_COUNTS_FILE).expect("failed to create file"); serde_json::to_writer(&file, &counts).expect("failed to write file"); diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index 8acf537..76e4767 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -4,20 +4,16 @@ mod auth; mod substrate; mod sxt_chain_runtime; -use std::collections::HashMap; -use std::path::Path; - -use proof_of_sql::base::database::{OwnedTable, TableRef}; -use proof_of_sql::proof_primitive::dory::{ - DoryScalar, - DynamicDoryCommitment, - DynamicDoryEvaluationProof, - VerifierSetup, +use proof_of_sql::{ + base::database::{OwnedTable, TableRef}, + proof_primitive::dory::{ + DoryScalar, DynamicDoryCommitment, DynamicDoryEvaluationProof, VerifierSetup, + }, + sql::{parse::QueryExpr, proof::VerifiableQueryResult}, }; -use proof_of_sql::sql::parse::QueryExpr; -use proof_of_sql::sql::proof::VerifiableQueryResult; use prover::{ProverContextRange, ProverQuery, ProverResponse}; use reqwest::Client; +use std::{collections::HashMap, path::Path}; mod prover { tonic::include_proto!("sxt.core");