pub struct Config {
pub steps: usize,
pub manager_fee: U256,
pub tick_spacing: Signed<24, 1>,
pub hook_data: Bytes,
pub sqrt_price_x96: Uint<160, 3>,
pub pool_fee: Uint<24, 1>,
pub initial_price: U256,
pub hooks: Address,
}Expand description
Configuration for the simulation.
Fields§
§steps: usizeNumber of steps to run the simulation for.
manager_fee: U256Pool manager fee.
tick_spacing: Signed<24, 1>Pool tick spacing.
hook_data: BytesPool hook data.
sqrt_price_x96: Uint<160, 3>Pool sqrt price x96.
pool_fee: Uint<24, 1>Pool fee.
initial_price: U256Initial price.
hooks: AddressPool hooks.
Implementations§
Auto Trait Implementations§
impl !Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> 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