feat: Add selector to Transaction

Return selector in the StrategyEncoder. This is needed for the ExecutorStrategyEncoder

--- don't change below this line ---
ENG-4088 Took 12 minutes


Took 13 seconds
This commit is contained in:
Diana Carvalho
2025-02-11 10:24:04 +00:00
parent 12b6ba0743
commit dd7ecac324
5 changed files with 38 additions and 14 deletions

View File

@@ -95,11 +95,13 @@ impl Swap {
/// * `to`: Address of the contract to call with the calldata
/// * `value`: Native token value to be sent with the transaction.
/// * `data`: Encoded calldata for the transaction.
/// * `selector`: Only relevant for direct executions. The selector of the function to be called.
#[derive(Clone, Debug)]
pub struct Transaction {
pub to: Bytes,
pub value: BigUint,
pub data: Vec<u8>,
pub selector: Option<String>,
}
/// Represents necessary attributes for encoding an order.