Skip to content

Commit

Permalink
add/polish stargate queries desc for dex module
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Dec 15, 2023
1 parent 10e0ace commit cbb934d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/neutron-sdk/src/stargate/dex/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn get_limit_order_tranche_user_all_by_address(
)
}

/// Retrieves a `LimitOrderTranche` by index.
/// Retrieves a `LimitOrderTranche` by a tranche's key (pair_id + token_in + tick_index + tranche_key).
pub fn get_limit_order_tranche(
deps: Deps,
req: GetLimitOrderTrancheRequest,
Expand Down Expand Up @@ -171,7 +171,7 @@ pub fn get_pool_reserves_all(
)
}

/// Retrieves a `PoolReserves` by index.
/// Retrieves a `PoolReserves` by pool reserves key (pair_id + token_in + tick_index + fee).
pub fn get_pool_reserves(
deps: Deps,
req: GetPoolReservesRequest,
Expand All @@ -195,6 +195,7 @@ pub fn get_estimate_multi_hop_swap(
)
}

/// Queries the simulated result of a limit order placement.
pub fn get_estimate_place_limit_order(
deps: Deps,
req: EstimatePlaceLimitOrderRequest,
Expand All @@ -206,6 +207,7 @@ pub fn get_estimate_place_limit_order(
)
}

/// Queries a pool by pair, tick and fee.
pub fn get_pool(deps: Deps, req: PoolRequest) -> StdResult<PoolResponse> {
make_stargate_query(deps, QueryPoolRequest::from(req), POOL_QUERY_PATH)
}
Expand Down

0 comments on commit cbb934d

Please sign in to comment.