feat: update ExecutorEncoder interface and relevant types

This commit is contained in:
royvardhan
2025-01-29 21:20:22 +05:30
parent ee0aafbc4d
commit 5c396512cf
5 changed files with 27 additions and 14 deletions

View File

@@ -1,8 +1,10 @@
use alloy_primitives::Address;
use crate::encoding::{errors::EncodingError, models::Solution};
#[allow(dead_code)]
pub trait StrategyEncoder {
fn encode_strategy(&self, to_encode: Solution) -> Result<Vec<u8>, EncodingError>;
fn encode_strategy(&self, to_encode: Solution) -> Result<(Vec<u8>, Address), EncodingError>;
fn selector(&self, exact_out: bool) -> &str;
}