penumbra_sdk_auction::component

Trait StateReadExt

Source
pub trait StateReadExt: StateRead {
    // Provided methods
    fn get_auction_params<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<AuctionParameters>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn auction_params_updated(&self) -> bool { ... }
    fn get_auction_value_balance_for<'life0, 'life1, 'async_trait>(
        &'life0 self,
        asset_id: &'life1 Id,
    ) -> Pin<Box<dyn Future<Output = Amount> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Available on crate feature component only.
Expand description

Extension trait providing read access to auction data.

Provided Methods§

Source

fn get_auction_params<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<AuctionParameters>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn auction_params_updated(&self) -> bool

Source

fn get_auction_value_balance_for<'life0, 'life1, 'async_trait>( &'life0 self, asset_id: &'life1 Id, ) -> Pin<Box<dyn Future<Output = Amount> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch the current balance of the auction circuit breaker for a given asset, returning zero if no balance is tracked yet.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§