pub struct DexQuerier<'a, Q: CustomQuery> { /* private fields */ }
Implementations§
Source§impl<'a, Q: CustomQuery> DexQuerier<'a, Q>
impl<'a, Q: CustomQuery> DexQuerier<'a, Q>
pub fn new(querier: &'a QuerierWrapper<'a, Q>) -> Self
pub fn params(&self) -> Result<QueryParamsResponse, StdError>
pub fn limit_order_tranche_user( &self, address: String, tranche_key: String, calc_withdrawable_shares: bool, ) -> Result<QueryGetLimitOrderTrancheUserResponse, StdError>
pub fn limit_order_tranche_user_all( &self, pagination: Option<PageRequest>, ) -> Result<QueryAllLimitOrderTrancheUserResponse, StdError>
pub fn limit_order_tranche_user_all_by_address( &self, address: String, pagination: Option<PageRequest>, ) -> Result<QueryAllLimitOrderTrancheUserByAddressResponse, StdError>
pub fn limit_order_tranche( &self, pair_id: String, tick_index: i64, token_in: String, tranche_key: String, ) -> Result<QueryGetLimitOrderTrancheResponse, StdError>
pub fn limit_order_tranche_all( &self, pair_id: String, token_in: String, pagination: Option<PageRequest>, ) -> Result<QueryAllLimitOrderTrancheResponse, StdError>
pub fn user_deposits_all( &self, address: String, pagination: Option<PageRequest>, include_pool_data: bool, ) -> Result<QueryAllUserDepositsResponse, StdError>
pub fn tick_liquidity_all( &self, pair_id: String, token_in: String, pagination: Option<PageRequest>, ) -> Result<QueryAllTickLiquidityResponse, StdError>
pub fn inactive_limit_order_tranche( &self, pair_id: String, token_in: String, tick_index: i64, tranche_key: String, ) -> Result<QueryGetInactiveLimitOrderTrancheResponse, StdError>
pub fn inactive_limit_order_tranche_all( &self, pagination: Option<PageRequest>, ) -> Result<QueryAllInactiveLimitOrderTrancheResponse, StdError>
pub fn pool_reserves_all( &self, pair_id: String, token_in: String, pagination: Option<PageRequest>, ) -> Result<QueryAllPoolReservesResponse, StdError>
pub fn pool_reserves( &self, pair_id: String, token_in: String, tick_index: i64, fee: u64, ) -> Result<QueryGetPoolReservesResponse, StdError>
pub fn estimate_multi_hop_swap( &self, creator: String, receiver: String, routes: Vec<MultiHopRoute>, amount_in: String, exit_limit_price: String, pick_best_route: bool, ) -> Result<QueryEstimateMultiHopSwapResponse, StdError>
👎Deprecated
pub fn estimate_place_limit_order( &self, creator: String, receiver: String, token_in: String, token_out: String, tick_index_in_to_out: i64, amount_in: String, order_type: i32, expiration_time: Option<Timestamp>, max_amount_out: String, ) -> Result<QueryEstimatePlaceLimitOrderResponse, StdError>
👎Deprecated
pub fn pool( &self, pair_id: String, tick_index: i64, fee: u64, ) -> Result<QueryPoolResponse, StdError>
pub fn pool_by_id(&self, pool_id: u64) -> Result<QueryPoolResponse, StdError>
pub fn pool_metadata( &self, id: u64, ) -> Result<QueryGetPoolMetadataResponse, StdError>
pub fn pool_metadata_all( &self, pagination: Option<PageRequest>, ) -> Result<QueryAllPoolMetadataResponse, StdError>
pub fn simulate_deposit( &self, msg: Option<MsgDeposit>, ) -> Result<QuerySimulateDepositResponse, StdError>
pub fn simulate_withdrawal( &self, msg: Option<MsgWithdrawal>, ) -> Result<QuerySimulateWithdrawalResponse, StdError>
pub fn simulate_place_limit_order( &self, msg: Option<MsgPlaceLimitOrder>, ) -> Result<QuerySimulatePlaceLimitOrderResponse, StdError>
pub fn simulate_withdraw_filled_limit_order( &self, msg: Option<MsgWithdrawFilledLimitOrder>, ) -> Result<QuerySimulateWithdrawFilledLimitOrderResponse, StdError>
pub fn simulate_cancel_limit_order( &self, msg: Option<MsgCancelLimitOrder>, ) -> Result<QuerySimulateCancelLimitOrderResponse, StdError>
pub fn simulate_multi_hop_swap( &self, msg: Option<MsgMultiHopSwap>, ) -> Result<QuerySimulateMultiHopSwapResponse, StdError>
Auto Trait Implementations§
impl<'a, Q> Freeze for DexQuerier<'a, Q>
impl<'a, Q> !RefUnwindSafe for DexQuerier<'a, Q>
impl<'a, Q> !Send for DexQuerier<'a, Q>
impl<'a, Q> !Sync for DexQuerier<'a, Q>
impl<'a, Q> Unpin for DexQuerier<'a, Q>
impl<'a, Q> !UnwindSafe for DexQuerier<'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
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