Skip to content

Commit

Permalink
remove creator and receiver fields from EstimatePlaceLimitOrderRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Jun 19, 2024
1 parent f45c35d commit 04753a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions packages/neutron-sdk/src/proto_types/neutron.dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,6 @@ pub struct QueryGetPoolReservesResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryEstimateMultiHopSwapRequest {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub receiver: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub routes: ::prost::alloc::vec::Vec<MultiHopRoute>,
#[prost(string, tag = "4")]
Expand All @@ -566,10 +562,6 @@ pub struct QueryEstimateMultiHopSwapResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryEstimatePlaceLimitOrderRequest {
#[prost(string, tag = "1")]
pub creator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub receiver: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub token_in: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
Expand Down
8 changes: 0 additions & 8 deletions packages/neutron-sdk/src/stargate/dex/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,6 @@ impl From<GetPoolReservesRequest> for QueryGetPoolReservesRequest {

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct EstimateMultiHopSwapRequest {
pub creator: String,
pub receiver: String,
pub routes: Vec<Vec<String>>,
pub amount_in: String,
pub exit_limit_price: String,
Expand All @@ -556,8 +554,6 @@ pub struct EstimateMultiHopSwapResponse {
impl From<EstimateMultiHopSwapRequest> for QueryEstimateMultiHopSwapRequest {
fn from(v: EstimateMultiHopSwapRequest) -> QueryEstimateMultiHopSwapRequest {
QueryEstimateMultiHopSwapRequest {
creator: v.creator,
receiver: v.receiver,
routes: v
.routes
.into_iter()
Expand All @@ -574,8 +570,6 @@ impl From<EstimateMultiHopSwapRequest> for QueryEstimateMultiHopSwapRequest {

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct EstimatePlaceLimitOrderRequest {
pub creator: String,
pub receiver: String,
pub token_in: String,
pub token_out: String,
pub tick_index_in_to_out: i64,
Expand All @@ -601,8 +595,6 @@ pub struct EstimatePlaceLimitOrderResponse {
impl From<EstimatePlaceLimitOrderRequest> for QueryEstimatePlaceLimitOrderRequest {
fn from(v: EstimatePlaceLimitOrderRequest) -> QueryEstimatePlaceLimitOrderRequest {
QueryEstimatePlaceLimitOrderRequest {
creator: v.creator,
receiver: v.receiver,
token_in: v.token_in,
token_out: v.token_out,
tick_index_in_to_out: v.tick_index_in_to_out,
Expand Down

0 comments on commit 04753a3

Please sign in to comment.