Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/neutron-std/src/types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.0.0
3fb7f3eafaff3f0dc968fdf6043f1abaf5e3de62
46 changes: 46 additions & 0 deletions packages/neutron-std/src/types/neutron/dex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,26 @@ pub struct MsgWithdrawal {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/neutron.dex.MsgWithdrawalWithShares")]
pub struct MsgWithdrawalWithShares {
#[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 shares_to_remove: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/neutron.dex.MsgWithdrawalResponse")]
pub struct MsgWithdrawalResponse {
/// reserve0_withdrawn is DEPRECATED
Expand Down Expand Up @@ -1832,6 +1852,26 @@ pub struct QuerySimulateWithdrawalRequest {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/neutron.dex.QuerySimulateWithdrawalWithSharesRequest")]
#[proto_query(
path = "/neutron.dex.Query/SimulateWithdrawalWithShares",
response_type = QuerySimulateWithdrawalResponse
)]
pub struct QuerySimulateWithdrawalWithSharesRequest {
#[prost(message, optional, tag = "1")]
pub msg: ::core::option::Option<MsgWithdrawalWithShares>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/neutron.dex.QuerySimulateWithdrawalResponse")]
pub struct QuerySimulateWithdrawalResponse {
#[prost(message, optional, tag = "1")]
Expand Down Expand Up @@ -2211,6 +2251,12 @@ impl<'a, Q: cosmwasm_std::CustomQuery> DexQuerier<'a, Q> {
) -> Result<QuerySimulateWithdrawalResponse, cosmwasm_std::StdError> {
QuerySimulateWithdrawalRequest { msg }.query(self.querier)
}
pub fn simulate_withdrawal_with_shares(
&self,
msg: ::core::option::Option<MsgWithdrawalWithShares>,
) -> Result<QuerySimulateWithdrawalResponse, cosmwasm_std::StdError> {
QuerySimulateWithdrawalWithSharesRequest { msg }.query(self.querier)
}
pub fn simulate_place_limit_order(
&self,
msg: ::core::option::Option<MsgPlaceLimitOrder>,
Expand Down