feat: The execution structs should receiver tycho_core Chain

and convert it later to an execution model Chain

--- don't change below this line ---
ENG-4088 Took 8 minutes
This commit is contained in:
Diana Carvalho
2025-02-07 11:35:38 +00:00
parent 0c9050cf79
commit cad9f394cd
4 changed files with 15 additions and 20 deletions

View File

@@ -21,10 +21,11 @@ pub struct EVMStrategyEncoderRegistry {
impl StrategyEncoderRegistry for EVMStrategyEncoderRegistry {
fn new(
chain: Chain,
chain: tycho_core::dto::Chain,
executors_file_path: Option<&str>,
signer_pk: Option<String>,
) -> Result<Self, EncodingError> {
let chain = Chain::from(chain);
let swap_encoder_registry = SwapEncoderRegistry::new(executors_file_path, chain.clone())?;
let mut strategies: HashMap<String, Box<dyn StrategyEncoder>> = HashMap::new();