Skip to content

Commit

Permalink
Merge pull request #123 from neutron-org/fix/stargate-module-cleanup
Browse files Browse the repository at this point in the history
fix: stargate module cleanup
  • Loading branch information
pr0n00gler authored Dec 15, 2023
2 parents d280443 + cbb934d commit b4379e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/neutron-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://neutron.org"
readme = "README.md"

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-std = { workspace = true, features = ["stargate"] }
cosmos-sdk-proto = { workspace = true }
serde = { workspace = true }
schemars = { workspace = true }
Expand Down
8 changes: 5 additions & 3 deletions packages/neutron-sdk/schema/neutron_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"type": "object",
"required": [
"connection_id",
"interchain_account_id",
"register_fee"
"interchain_account_id"
],
"properties": {
"connection_id": {
Expand All @@ -28,7 +27,10 @@
},
"register_fee": {
"description": "*register_fee** is a fees required to be payed to register interchain account",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand Down
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 b4379e8

Please sign in to comment.