feat: Add Transaction as output of encoding
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user