feat: Add interacting_with to EncodedSolution
- Remove encode_full_calldata from the TychoEncoder trait - Make the TychoExecutorEncoder use encode_solutions instead of encode_full_calldata - Update tycho-encode.rs accordingly Took 1 hour 3 minutes Took 12 seconds
This commit is contained in:
@@ -94,12 +94,15 @@ pub struct Transaction {
|
||||
///
|
||||
/// # Fields
|
||||
/// * `swaps`: Encoded swaps to be executed.
|
||||
/// * `interacting_with`: Address of the contract to be called.
|
||||
/// * `selector`: The selector of the function to be called.
|
||||
/// * `n_tokens`: Number of tokens in the swap.
|
||||
/// * `permit`: Optional permit for the swap (if permit2 is enabled).
|
||||
/// * `signature`: Optional signature for the swap (if permit2 is enabled).
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct EncodedSolution {
|
||||
pub swaps: Vec<u8>,
|
||||
pub interacting_with: Bytes,
|
||||
pub selector: String,
|
||||
pub n_tokens: usize,
|
||||
pub permit: Option<PermitSingle>,
|
||||
|
||||
Reference in New Issue
Block a user