pub struct EncodedTrade {
pub sell_token_index: u64,
pub buy_token_index: u64,
pub receiver: Address,
pub sell_amount: U256,
pub buy_amount: U256,
pub valid_to: u32,
pub app_data: B256,
pub fee_amount: U256,
pub flags: u8,
pub executed_amount: U256,
pub signature: Bytes,
}Expand description
Encoded trade data as used in the settlement contract.
Corresponds to the TypeScript Trade type.
Fields§
§sell_token_index: u64Index of the sell token in the settlement token array.
buy_token_index: u64Index of the buy token in the settlement token array.
receiver: AddressAddress that receives the bought tokens.
sell_amount: U256Amount of sell token.
buy_amount: U256Amount of buy token.
valid_to: u32Order expiry as Unix timestamp.
app_data: B256App-data hash.
fee_amount: U256Fee amount.
flags: u8Encoded trade flags.
executed_amount: U256The executed trade amount.
signature: BytesSignature data.
Trait Implementations§
Source§impl Clone for EncodedTrade
impl Clone for EncodedTrade
Source§fn clone(&self) -> EncodedTrade
fn clone(&self) -> EncodedTrade
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedTrade
impl Debug for EncodedTrade
Source§impl PartialEq for EncodedTrade
impl PartialEq for EncodedTrade
impl Eq for EncodedTrade
impl StructuralPartialEq for EncodedTrade
Auto Trait Implementations§
impl !Freeze for EncodedTrade
impl RefUnwindSafe for EncodedTrade
impl Send for EncodedTrade
impl Sync for EncodedTrade
impl Unpin for EncodedTrade
impl UnsafeUnpin for EncodedTrade
impl UnwindSafe for EncodedTrade
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more