pub struct AmmQuerier<'a, Q: CustomQuery> { /* private fields */ }
Implementations§
Source§impl<'a, Q: CustomQuery> AmmQuerier<'a, Q>
impl<'a, Q: CustomQuery> AmmQuerier<'a, Q>
pub fn new(querier: &'a QuerierWrapper<'a, Q>) -> Self
pub fn params(&self) -> Result<QueryParamsResponse, StdError>
pub fn pool( &self, pool_id: u64, days: u64, ) -> Result<QueryGetPoolResponse, StdError>
pub fn pool_all( &self, days: u64, pagination: Option<PageRequest>, ) -> Result<QueryAllPoolResponse, StdError>
pub fn denom_liquidity( &self, denom: String, ) -> Result<QueryGetDenomLiquidityResponse, StdError>
pub fn denom_liquidity_all( &self, pagination: Option<PageRequest>, ) -> Result<QueryAllDenomLiquidityResponse, StdError>
pub fn swap_estimation( &self, routes: Vec<SwapAmountInRoute>, token_in: Option<Coin>, discount: String, ) -> Result<QuerySwapEstimationResponse, StdError>
pub fn swap_estimation_exact_amount_out( &self, routes: Vec<SwapAmountOutRoute>, token_out: Option<Coin>, discount: String, ) -> Result<QuerySwapEstimationExactAmountOutResponse, StdError>
pub fn join_pool_estimation( &self, pool_id: u64, amounts_in: Vec<Coin>, ) -> Result<QueryJoinPoolEstimationResponse, StdError>
pub fn exit_pool_estimation( &self, pool_id: u64, share_amount_in: String, token_out_denom: String, ) -> Result<QueryExitPoolEstimationResponse, StdError>
pub fn slippage_track( &self, pool_id: u64, ) -> Result<QuerySlippageTrackResponse, StdError>
pub fn slippage_track_all( &self, ) -> Result<QuerySlippageTrackAllResponse, StdError>
pub fn balance( &self, address: String, denom: String, ) -> Result<QueryBalanceResponse, StdError>
pub fn in_route_by_denom( &self, denom_in: String, denom_out: String, ) -> Result<QueryInRouteByDenomResponse, StdError>
pub fn out_route_by_denom( &self, denom_out: String, denom_in: String, ) -> Result<QueryOutRouteByDenomResponse, StdError>
pub fn swap_estimation_by_denom( &self, amount: Option<Coin>, denom_in: String, denom_out: String, address: String, ) -> Result<QuerySwapEstimationByDenomResponse, StdError>
pub fn weight_and_slippage_fee( &self, pool_id: u64, date: String, ) -> Result<QueryWeightAndSlippageFeeResponse, StdError>
Auto Trait Implementations§
impl<'a, Q> Freeze for AmmQuerier<'a, Q>
impl<'a, Q> !RefUnwindSafe for AmmQuerier<'a, Q>
impl<'a, Q> !Send for AmmQuerier<'a, Q>
impl<'a, Q> !Sync for AmmQuerier<'a, Q>
impl<'a, Q> Unpin for AmmQuerier<'a, Q>
impl<'a, Q> !UnwindSafe for AmmQuerier<'a, Q>
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