pub enum StrikeEvent {
MarketCreated {
market_id: u64,
price_id: [u8; 32],
strike_price: i64,
expiry_time: u64,
},
BatchCleared {
market_id: u64,
batch_id: u64,
clearing_tick: u64,
matched_lots: u64,
},
OrderSettled {
order_id: U256,
owner: Address,
filled_lots: u64,
},
GtcAutoCancelled {
order_id: U256,
owner: Address,
},
OrderPlaced {
order_id: U256,
market_id: u64,
side: u8,
tick: u8,
lots: u64,
owner: Address,
},
OrderCancelled {
order_id: U256,
market_id: u64,
owner: Address,
},
}Expand description
On-chain event types emitted by Strike contracts.
Variants§
MarketCreated
A new market was created.
BatchCleared
A batch was cleared (auction resolved).
OrderSettled
An order was settled after batch clearing.
GtcAutoCancelled
A GTC order was auto-cancelled.
OrderPlaced
An order was placed.
OrderCancelled
An order was cancelled.
Trait Implementations§
Source§impl Clone for StrikeEvent
impl Clone for StrikeEvent
Source§fn clone(&self) -> StrikeEvent
fn clone(&self) -> StrikeEvent
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 moreAuto Trait Implementations§
impl Freeze for StrikeEvent
impl RefUnwindSafe for StrikeEvent
impl Send for StrikeEvent
impl Sync for StrikeEvent
impl Unpin for StrikeEvent
impl UnsafeUnpin for StrikeEvent
impl UnwindSafe for StrikeEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more