Skip to content

Commit

Permalink
don't pass sim requests as options
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Dec 23, 2024
1 parent 3fe9a9f commit 11a41b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/neutron-sdk/src/proto_types/neutron.dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ pub struct QueryAllPoolMetadataResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuerySimulatePlaceLimitOrderRequest {
#[prost(message, optional, tag = "1")]
pub msg: ::core::option::Option<MsgPlaceLimitOrder>,
#[prost(message, required, tag = "1")]
pub msg: MsgPlaceLimitOrder,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuerySimulatePlaceLimitOrderResponse {
Expand All @@ -658,8 +658,8 @@ pub struct QuerySimulatePlaceLimitOrderResponse {

#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuerySimulateMultiHopSwapRequest {
#[prost(message, optional, tag = "1")]
pub msg: ::core::option::Option<MsgMultiHopSwap>,
#[prost(message, required, tag = "1")]
pub msg: MsgMultiHopSwap,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuerySimulateMultiHopSwapResponse {
Expand Down
8 changes: 4 additions & 4 deletions packages/neutron-sdk/src/stargate/dex/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ pub struct SimulatePlaceLimitOrderResponse{
impl From<SimulatePlaceLimitOrderRequest> for QuerySimulatePlaceLimitOrderRequest {
fn from(v: SimulatePlaceLimitOrderRequest) -> QuerySimulatePlaceLimitOrderRequest {
QuerySimulatePlaceLimitOrderRequest {
msg: Some(MsgPlaceLimitOrder{
msg: MsgPlaceLimitOrder{
creator: v.sender,
receiver: v.receiver,
token_in: v.token_in,
Expand All @@ -715,7 +715,7 @@ impl From<SimulatePlaceLimitOrderRequest> for QuerySimulatePlaceLimitOrderReques
max_amount_out: v.max_amount_out.unwrap_or_default(),
limit_sell_price: v.limit_sell_price,
min_average_sell_price: v.min_avg_sell_price,
})
}
}
}
}
Expand Down Expand Up @@ -744,7 +744,7 @@ pub struct SimulateMultiHopSwapResponse{
impl From<SimulateMultiHopSwapRequest> for QuerySimulateMultiHopSwapRequest {
fn from(v: SimulateMultiHopSwapRequest) -> QuerySimulateMultiHopSwapRequest {
QuerySimulateMultiHopSwapRequest {
msg: Some(MsgMultiHopSwap{
msg: MsgMultiHopSwap{
creator: v.sender,
receiver: v.receiver,
routes: v
Expand All @@ -755,7 +755,7 @@ impl From<SimulateMultiHopSwapRequest> for QuerySimulateMultiHopSwapRequest {
amount_in: v.amount_in,
exit_limit_price: v.exit_limit_price,
pick_best_route: v.pick_best_route,
})
}
}
}
}
Expand Down

0 comments on commit 11a41b6

Please sign in to comment.