Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajjon committed Sep 20, 2024
1 parent e0d5b55 commit 33e93b2
Showing 1 changed file with 17 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub struct DeriveAndAnalyzeAccountRecoveryScanInput {
gateway: Arc<dyn Gateway>,
derivation_interactors: Arc<dyn KeysDerivationInteractors>,
}

impl DeriveAndAnalyzeAccountRecoveryScanInput {
pub fn new(

Check warning on line 13 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs

View check run for this annotation

Codecov / codecov/patch

src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L13

Added line #L13 was not covered by tests
factor_sources: IndexSet<HDFactorSource>,
Expand All @@ -22,33 +23,23 @@ impl DeriveAndAnalyzeAccountRecoveryScanInput {
}
}
impl From<DeriveAndAnalyzeAccountRecoveryScanInput> for DeriveAndAnalyzeInput {
#[allow(clippy::diverging_sub_expression)]
fn from(value: DeriveAndAnalyzeAccountRecoveryScanInput) -> Self {
// let next_derivation_entity_index_assigner = NextDerivationEntityIndexAssigner::ars();

// let analyze_factor_instances = IntermediaryDerivationAnalyzer::ars(value.gateway);
let initial_derivation_requests = IndexSet::<DerivationRequest>::new();
let factor_instances_provider: Arc<dyn IsFactorInstancesProvider> = { unreachable!() };
let analyze_factor_instances: Arc<dyn IsIntermediaryDerivationAnalyzer> =
{ unreachable!() };

// Self::new(
// value.factor_sources.clone(),
// value
// .factor_sources
// .into_iter()
// .map(|f| f.factor_source_id())
// .collect(),
// next_derivation_entity_index_assigner,
// analyze_factor_instances,
// )
todo!()
Self::new(
value.factor_sources.clone(),
value
.factor_sources
.into_iter()
.map(|f| f.factor_source_id())
.collect(),
initial_derivation_requests,
factor_instances_provider,
analyze_factor_instances,
)
}
}

// impl NextDerivationEntityIndexAssigner {
// pub fn ars() -> Self {
// todo!()
// }
// }

// impl IntermediaryDerivationAnalyzer {
// pub fn ars(gateway: Arc<dyn Gateway>) -> Self {
// todo!()
// }
// }

0 comments on commit 33e93b2

Please sign in to comment.