Skip to content

Commit 5a163ea

Browse files
committed
generate v20.1.0 types
1 parent 108bb60 commit 5a163ea

File tree

15 files changed

+1016
-27
lines changed

15 files changed

+1016
-27
lines changed

dependencies/osmosis

Submodule osmosis updated 1123 files
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v19.0.0
1+
v20.1.0

packages/osmosis-std/src/types/osmosis/concentratedliquidity/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ pub struct Params {
5252
/// with a governance proposal.
5353
#[prost(bool, tag = "6")]
5454
pub is_permissionless_pool_creation_enabled: bool,
55+
/// unrestricted_pool_creator_whitelist is a list of addresses that are
56+
/// allowed to bypass restrictions on permissionless supercharged pool
57+
/// creation, like pool_creation_enabled, restricted quote assets, no
58+
/// double creation of pools, etc.
59+
#[prost(string, repeated, tag = "7")]
60+
pub unrestricted_pool_creator_whitelist:
61+
::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5562
}

packages/osmosis-std/src/types/osmosis/concentratedliquidity/v1beta1.rs

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,8 @@ pub struct LiquidityNetInDirectionResponse {
850850
pub current_tick: i64,
851851
#[prost(string, tag = "3")]
852852
pub current_liquidity: ::prost::alloc::string::String,
853+
#[prost(string, tag = "4")]
854+
pub current_sqrt_price: ::prost::alloc::string::String,
853855
}
854856
/// =============================== LiquidityPerTickRange
855857
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -1251,6 +1253,66 @@ pub struct GetTotalLiquidityResponse {
12511253
#[prost(message, repeated, tag = "1")]
12521254
pub total_liquidity: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
12531255
}
1256+
/// =============================== NumNextInitializedTicks
1257+
#[allow(clippy::derive_partial_eq_without_eq)]
1258+
#[derive(
1259+
Clone,
1260+
PartialEq,
1261+
Eq,
1262+
::prost::Message,
1263+
::serde::Serialize,
1264+
::serde::Deserialize,
1265+
::schemars::JsonSchema,
1266+
CosmwasmExt,
1267+
)]
1268+
#[proto_message(type_url = "/osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksRequest")]
1269+
#[proto_query(
1270+
path = "/osmosis.concentratedliquidity.v1beta1.Query/NumNextInitializedTicks",
1271+
response_type = NumNextInitializedTicksResponse
1272+
)]
1273+
pub struct NumNextInitializedTicksRequest {
1274+
#[prost(uint64, tag = "1")]
1275+
#[serde(alias = "poolID")]
1276+
#[serde(
1277+
serialize_with = "crate::serde::as_str::serialize",
1278+
deserialize_with = "crate::serde::as_str::deserialize"
1279+
)]
1280+
pub pool_id: u64,
1281+
#[prost(string, tag = "2")]
1282+
pub token_in_denom: ::prost::alloc::string::String,
1283+
#[prost(uint64, tag = "3")]
1284+
#[serde(
1285+
serialize_with = "crate::serde::as_str::serialize",
1286+
deserialize_with = "crate::serde::as_str::deserialize"
1287+
)]
1288+
pub num_next_initialized_ticks: u64,
1289+
}
1290+
#[allow(clippy::derive_partial_eq_without_eq)]
1291+
#[derive(
1292+
Clone,
1293+
PartialEq,
1294+
Eq,
1295+
::prost::Message,
1296+
::serde::Serialize,
1297+
::serde::Deserialize,
1298+
::schemars::JsonSchema,
1299+
CosmwasmExt,
1300+
)]
1301+
#[proto_message(
1302+
type_url = "/osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksResponse"
1303+
)]
1304+
pub struct NumNextInitializedTicksResponse {
1305+
#[prost(message, repeated, tag = "1")]
1306+
pub liquidity_depths: ::prost::alloc::vec::Vec<TickLiquidityNet>,
1307+
#[prost(int64, tag = "2")]
1308+
#[serde(
1309+
serialize_with = "crate::serde::as_str::serialize",
1310+
deserialize_with = "crate::serde::as_str::deserialize"
1311+
)]
1312+
pub current_tick: i64,
1313+
#[prost(string, tag = "3")]
1314+
pub current_liquidity: ::prost::alloc::string::String,
1315+
}
12541316
/// ===================== MsgCreatePosition
12551317
#[allow(clippy::derive_partial_eq_without_eq)]
12561318
#[derive(
@@ -1585,6 +1647,45 @@ pub struct MsgFungifyChargedPositionsResponse {
15851647
)]
15861648
pub new_position_id: u64,
15871649
}
1650+
/// ===================== MsgTransferPositions
1651+
#[allow(clippy::derive_partial_eq_without_eq)]
1652+
#[derive(
1653+
Clone,
1654+
PartialEq,
1655+
Eq,
1656+
::prost::Message,
1657+
::serde::Serialize,
1658+
::serde::Deserialize,
1659+
::schemars::JsonSchema,
1660+
CosmwasmExt,
1661+
)]
1662+
#[proto_message(type_url = "/osmosis.concentratedliquidity.v1beta1.MsgTransferPositions")]
1663+
pub struct MsgTransferPositions {
1664+
#[prost(uint64, repeated, packed = "false", tag = "1")]
1665+
#[serde(alias = "positionIDs")]
1666+
#[serde(
1667+
serialize_with = "crate::serde::as_str_vec::serialize",
1668+
deserialize_with = "crate::serde::as_str_vec::deserialize"
1669+
)]
1670+
pub position_ids: ::prost::alloc::vec::Vec<u64>,
1671+
#[prost(string, tag = "2")]
1672+
pub sender: ::prost::alloc::string::String,
1673+
#[prost(string, tag = "3")]
1674+
pub new_owner: ::prost::alloc::string::String,
1675+
}
1676+
#[allow(clippy::derive_partial_eq_without_eq)]
1677+
#[derive(
1678+
Clone,
1679+
PartialEq,
1680+
Eq,
1681+
::prost::Message,
1682+
::serde::Serialize,
1683+
::serde::Deserialize,
1684+
::schemars::JsonSchema,
1685+
CosmwasmExt,
1686+
)]
1687+
#[proto_message(type_url = "/osmosis.concentratedliquidity.v1beta1.MsgTransferPositionsResponse")]
1688+
pub struct MsgTransferPositionsResponse {}
15881689
pub struct ConcentratedliquidityQuerier<'a, Q: cosmwasm_std::CustomQuery> {
15891690
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
15901691
}
@@ -1709,4 +1810,17 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ConcentratedliquidityQuerier<'a, Q> {
17091810
pub fn get_total_liquidity(&self) -> Result<GetTotalLiquidityResponse, cosmwasm_std::StdError> {
17101811
GetTotalLiquidityRequest {}.query(self.querier)
17111812
}
1813+
pub fn num_next_initialized_ticks(
1814+
&self,
1815+
pool_id: u64,
1816+
token_in_denom: ::prost::alloc::string::String,
1817+
num_next_initialized_ticks: u64,
1818+
) -> Result<NumNextInitializedTicksResponse, cosmwasm_std::StdError> {
1819+
NumNextInitializedTicksRequest {
1820+
pool_id,
1821+
token_in_denom,
1822+
num_next_initialized_ticks,
1823+
}
1824+
.query(self.querier)
1825+
}
17121826
}

packages/osmosis-std/src/types/osmosis/cosmwasmpool/v1beta1.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,22 @@ pub struct SwapExactAmountOutSudoMsgResponse {
429429
#[prost(string, tag = "1")]
430430
pub token_in_amount: ::prost::alloc::string::String,
431431
}
432+
/// CosmWasmPool represents the data serialized into state for each CW pool.
433+
///
434+
/// Note: CW Pool has 2 pool models:
435+
/// - CosmWasmPool which is a proto-generated store model used for serialization
436+
/// into state.
437+
/// - Pool struct that encapsulates the CosmWasmPool and wasmKeeper for calling
438+
/// the contract.
439+
///
440+
/// CosmWasmPool implements the poolmanager.PoolI interface but it panics on all
441+
/// methods. The reason is that access to wasmKeeper is required to call the
442+
/// contract.
443+
///
444+
/// Instead, all interactions and poolmanager.PoolI methods are to be performed
445+
/// on the Pool struct. The reason why we cannot have a Pool struct only is
446+
/// because it cannot be serialized into state due to having a non-serializable
447+
/// wasmKeeper field.
432448
#[allow(clippy::derive_partial_eq_without_eq)]
433449
#[derive(
434450
Clone,

0 commit comments

Comments
 (0)