refactor: use chain and protocol component from tycho_core::models
This commit is contained in:
@@ -74,7 +74,7 @@ mod tests {
|
||||
use std::str::FromStr;
|
||||
|
||||
use alloy_primitives::hex;
|
||||
use tycho_core::{dto::ProtocolComponent, Bytes};
|
||||
use tycho_core::{models::protocol::ProtocolComponent, Bytes};
|
||||
|
||||
use super::*;
|
||||
use crate::encoding::models::Swap;
|
||||
|
||||
@@ -90,7 +90,7 @@ pub struct SplitSwapStrategyEncoder {
|
||||
impl SplitSwapStrategyEncoder {
|
||||
pub fn new(
|
||||
swapper_pk: String,
|
||||
blockchain: tycho_core::dto::Chain,
|
||||
blockchain: tycho_core::models::Chain,
|
||||
swap_encoder_registry: SwapEncoderRegistry,
|
||||
) -> Result<Self, EncodingError> {
|
||||
let chain = Chain::from(blockchain);
|
||||
@@ -334,7 +334,7 @@ mod tests {
|
||||
use num_bigint::BigUint;
|
||||
use rstest::rstest;
|
||||
use tycho_core::{
|
||||
dto::{Chain as TychoCoreChain, ProtocolComponent},
|
||||
models::{protocol::ProtocolComponent, Chain as TychoCoreChain},
|
||||
Bytes,
|
||||
};
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ impl SplitSwapValidator {
|
||||
mod tests {
|
||||
use std::str::FromStr;
|
||||
|
||||
use tycho_core::{dto::ProtocolComponent, Bytes};
|
||||
use tycho_core::{models::protocol::ProtocolComponent, Bytes};
|
||||
|
||||
use super::*;
|
||||
use crate::encoding::models::Swap;
|
||||
|
||||
Reference in New Issue
Block a user