-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#![allow(unused)] | ||
#![allow(unused_variables)] | ||
|
||
use crate::prelude::*; | ||
|
||
pub struct DeriveAndAnalyzeAccountRecoveryScanInput { | ||
factor_sources: IndexSet<HDFactorSource>, | ||
gateway: Arc<dyn Gateway>, | ||
derivation_interactors: Arc<dyn KeysDerivationInteractors>, | ||
} | ||
impl DeriveAndAnalyzeAccountRecoveryScanInput { | ||
pub fn new( | ||
Check warning on line 12 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L12
|
||
factor_sources: IndexSet<HDFactorSource>, | ||
gateway: Arc<dyn Gateway>, | ||
derivation_interactors: Arc<dyn KeysDerivationInteractors>, | ||
) -> Self { | ||
Self { | ||
factor_sources, | ||
gateway, | ||
derivation_interactors, | ||
} | ||
} | ||
} | ||
impl From<DeriveAndAnalyzeAccountRecoveryScanInput> for DeriveAndAnalyzeInput { | ||
fn from(value: DeriveAndAnalyzeAccountRecoveryScanInput) -> Self { | ||
let next_derivation_entity_index_assigner = NextDerivationEntityIndexAssigner::ars(); | ||
Check warning on line 26 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L25-L26
|
||
|
||
let analyze_factor_instances = IntermediaryDerivationAnalyzer::ars(value.gateway); | ||
Check warning on line 28 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L28
|
||
|
||
Self::new( | ||
value.factor_sources.clone(), | ||
value | ||
Check warning on line 32 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L31-L32
|
||
.factor_sources | ||
.into_iter() | ||
.map(|f| f.factor_source_id()) | ||
Check warning on line 35 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L35
|
||
.collect(), | ||
next_derivation_entity_index_assigner, | ||
analyze_factor_instances, | ||
Check warning on line 38 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L37-L38
|
||
) | ||
} | ||
} | ||
|
||
impl NextDerivationEntityIndexAssigner { | ||
pub fn ars() -> Self { | ||
Check warning on line 44 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L44
|
||
todo!() | ||
} | ||
} | ||
|
||
impl IntermediaryDerivationAnalyzer { | ||
pub fn ars(gateway: Arc<dyn Gateway>) -> Self { | ||
Check warning on line 50 in src/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs Codecov / codecov/patchsrc/recovery_securify_cache/account_recover_scan/derive_and_analyze_account_recovery_scan_input.rs#L50
|
||
todo!() | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
mod account_recovery_scan_outcome; | ||
mod account_recovery_scanning; | ||
mod derivation_and_analysis_account_recovery_scan; | ||
mod derive_and_analyze_input_account_recovery_scan; | ||
mod derive_and_analyze_account_recovery_scan_input; | ||
|
||
pub use account_recovery_scan_outcome::*; | ||
pub use account_recovery_scanning::*; | ||
pub use derivation_and_analysis_account_recovery_scan::*; | ||
pub use derive_and_analyze_input_account_recovery_scan::*; | ||
pub use derive_and_analyze_account_recovery_scan_input::*; |