pub struct VelodromePositionRow {
pub nonce: Uint<96, 2>,
pub operator: Address,
pub token0: Address,
pub token1: Address,
pub tick_spacing: i32,
pub tick_lower: i32,
pub tick_upper: i32,
pub liquidity: u128,
pub fee_growth_inside_0_last_x128: Uint<256, 4>,
pub fee_growth_inside_1_last_x128: Uint<256, 4>,
pub tokens_owed_0_stale: u128,
pub tokens_owed_1_stale: u128,
}Expand description
12-field Velodrome NFPM position row.
Fields§
§nonce: Uint<96, 2>NFPM nonce.
operator: AddressApproved operator.
token0: AddressPool token0.
token1: AddressPool token1.
tick_spacing: i32Pool tick spacing.
tick_lower: i32Lower tick, sign-extended from int24.
tick_upper: i32Upper tick, sign-extended from int24.
liquidity: u128Position liquidity.
fee_growth_inside_0_last_x128: Uint<256, 4>Last-touch fee-growth snapshot for token0.
fee_growth_inside_1_last_x128: Uint<256, 4>Last-touch fee-growth snapshot for token1.
tokens_owed_0_stale: u128Stale token0 owed snapshot from NFPM.
tokens_owed_1_stale: u128Stale token1 owed snapshot from NFPM.
Implementations§
Source§impl VelodromePositionRow
impl VelodromePositionRow
Sourcepub fn from_nfpm_returns(
_token_id: Uint<256, 4>,
ret: &positionsReturn,
) -> VelodromePositionRow
pub fn from_nfpm_returns( _token_id: Uint<256, 4>, ret: &positionsReturn, ) -> VelodromePositionRow
Decode a Velodrome-family NFPM positions(uint256) return tuple.
Trait Implementations§
Source§impl Clone for VelodromePositionRow
impl Clone for VelodromePositionRow
Source§fn clone(&self) -> VelodromePositionRow
fn clone(&self) -> VelodromePositionRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VelodromePositionRow
impl Debug for VelodromePositionRow
impl Eq for VelodromePositionRow
Source§impl PartialEq for VelodromePositionRow
impl PartialEq for VelodromePositionRow
Source§fn eq(&self, other: &VelodromePositionRow) -> bool
fn eq(&self, other: &VelodromePositionRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VelodromePositionRow
Auto Trait Implementations§
impl Freeze for VelodromePositionRow
impl RefUnwindSafe for VelodromePositionRow
impl Send for VelodromePositionRow
impl Sync for VelodromePositionRow
impl Unpin for VelodromePositionRow
impl UnsafeUnpin for VelodromePositionRow
impl UnwindSafe for VelodromePositionRow
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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