feat: Add Transaction as output of encoding

This commit is contained in:
Diana Carvalho
2025-01-14 18:26:26 +00:00
parent f9f83b439f
commit 5a661ab6ca
2 changed files with 23 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ pub struct Solution {
pub native_action: Option<NativeAction>,
}
#[derive(Clone)]
#[derive(Clone, PartialEq)]
pub enum NativeAction {
Wrap,
Unwrap,
@@ -60,6 +60,12 @@ pub struct Swap {
pub split: f64,
}
pub struct Transaction {
pub data: Vec<u8>,
// ETH value to be sent with the transaction.
pub value: BigUint,
}
pub struct EncodingContext {
pub receiver: Bytes,
pub exact_out: bool,