Skip to content

Commit ef87625

Browse files
committed
Add explicit imports
1 parent 5979211 commit ef87625

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

crates/batcher/src/types/batch_queue.rs

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ pub(crate) fn try_build_batch(
191191
Ok(finalized_batch.clone().into_sorted_vec())
192192
}
193193

194-
pub(crate) use self::try_build_batch as __exposed_try_build_batch_for_tests;
195-
196194
fn calculate_fee_per_proof(batch_len: usize, gas_price: U256, constant_gas_cost: u128) -> U256 {
197195
let gas_per_proof = (constant_gas_cost
198196
+ crate::ADDITIONAL_SUBMISSION_GAS_COST_PER_PROOF * batch_len as u128)
@@ -203,15 +201,14 @@ fn calculate_fee_per_proof(batch_len: usize, gas_price: U256, constant_gas_cost:
203201

204202
#[cfg(test)]
205203
mod test {
206-
204+
use super::{try_build_batch, BatchQueue, BatchQueueEntry, BatchQueueEntryPriority};
207205
use aligned_sdk::common::constants::DEFAULT_CONSTANT_GAS_COST;
208-
use aligned_sdk::common::types::ProvingSystemId;
209-
use aligned_sdk::common::types::VerificationData;
210-
use ethers::types::Address;
211-
212-
use super::__exposed_try_build_batch_for_tests as try_build_batch;
213-
214-
use super::*;
206+
use aligned_sdk::common::types::{
207+
NoncedVerificationData, ProvingSystemId, VerificationData, VerificationDataCommitment,
208+
};
209+
use aligned_sdk::communication::serialization::cbor_serialize;
210+
use ethers::types::{Address, Signature, U256};
211+
use std::fs;
215212

216213
#[test]
217214
fn batch_finalization_algorithm_works_from_same_sender() {
@@ -890,10 +887,6 @@ mod test {
890887

891888
#[test]
892889
fn test_batch_size_limit_enforcement_with_real_sp1_proofs() {
893-
use aligned_sdk::common::types::VerificationData;
894-
use aligned_sdk::communication::serialization::cbor_serialize;
895-
use std::fs;
896-
897890
let proof_generator_addr = Address::random();
898891
let payment_service_addr = Address::random();
899892
let chain_id = U256::from(42);
@@ -1001,10 +994,6 @@ mod test {
1001994

1002995
#[test]
1003996
fn test_cbor_size_upper_bound_accuracy() {
1004-
use aligned_sdk::common::types::VerificationData;
1005-
use aligned_sdk::communication::serialization::cbor_serialize;
1006-
use std::fs;
1007-
1008997
let proof_generator_addr = Address::random();
1009998
let payment_service_addr = Address::random();
1010999
let chain_id = U256::from(42);

0 commit comments

Comments
 (0)