Skip to content

Commit 4fad313

Browse files
committed
v0.16.0-beta.0
1 parent adc60f0 commit 4fad313

File tree

11 files changed

+199
-100
lines changed

11 files changed

+199
-100
lines changed

dependencies/osmosis

Submodule osmosis updated 136 files

packages/osmosis-std-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description = "Procedural macro for osmosis-std"
33
edition = "2021"
44
license = "MIT OR Apache-2.0"
55
name = "osmosis-std-derive"
6-
version = "0.15.2"
6+
version = "0.16.0-beta.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

packages/osmosis-std/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ description = "Standard library for Osmosis with CosmWasm support included"
33
edition = "2021"
44
license = "MIT OR Apache-2.0"
55
name = "osmosis-std"
6-
version = "0.15.2"
6+
version = "0.16.0-beta.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
1111
chrono = {version = "0.4.22", default-features = false}
1212
cosmwasm-std = {version = "1.1.2", features = ["stargate"]}
13-
osmosis-std-derive = {version = "0.15.2", path = "../osmosis-std-derive"}
13+
osmosis-std-derive = {version = "0.16.0-beta.0", path = "../osmosis-std-derive"}
1414
prost = {version = "0.11.0", default-features = false, features = ["prost-derive"]}
1515
prost-types = {version = "0.11.1", default-features = false}
1616
schemars = "0.8.8"

packages/osmosis-std/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pub const OSMOSISD_VERSION: &str = include_str!("types/OSMOSIS_COMMIT");
88

99
mod serde;
1010
pub mod shim;
11+
12+
#[allow(deprecated)]
1113
pub mod types;
1214

1315
pub use shim::{cosmwasm_to_proto_coins, try_proto_to_cosmwasm_coins};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
main
1+
roman/cw-pool-final

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

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct FullPositionBreakdown {
8181
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
8282
#[prost(message, repeated, tag = "6")]
8383
pub forfeited_incentives:
84-
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
84+
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::DecCoin>,
8585
}
8686
#[allow(clippy::derive_partial_eq_without_eq)]
8787
#[derive(
@@ -1011,7 +1011,7 @@ pub struct ClaimableIncentivesResponse {
10111011
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
10121012
#[prost(message, repeated, tag = "2")]
10131013
pub forfeited_incentives:
1014-
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1014+
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::DecCoin>,
10151015
}
10161016
/// ===================== QueryPoolAccumulatorRewards
10171017
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -1160,6 +1160,57 @@ pub struct IncentiveRecordsResponse {
11601160
pub pagination:
11611161
::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
11621162
}
1163+
/// =============================== CFMMPoolIdLinkFromConcentratedPoolId
1164+
#[allow(clippy::derive_partial_eq_without_eq)]
1165+
#[derive(
1166+
Clone,
1167+
PartialEq,
1168+
Eq,
1169+
::prost::Message,
1170+
::serde::Serialize,
1171+
::serde::Deserialize,
1172+
::schemars::JsonSchema,
1173+
CosmwasmExt,
1174+
)]
1175+
#[proto_message(
1176+
type_url = "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdRequest"
1177+
)]
1178+
#[proto_query(
1179+
path = "/osmosis.concentratedliquidity.v1beta1.Query/CFMMPoolIdLinkFromConcentratedPoolId",
1180+
response_type = CfmmPoolIdLinkFromConcentratedPoolIdResponse
1181+
)]
1182+
pub struct CfmmPoolIdLinkFromConcentratedPoolIdRequest {
1183+
#[prost(uint64, tag = "1")]
1184+
#[serde(alias = "concentrated_poolID")]
1185+
#[serde(
1186+
serialize_with = "crate::serde::as_str::serialize",
1187+
deserialize_with = "crate::serde::as_str::deserialize"
1188+
)]
1189+
pub concentrated_pool_id: u64,
1190+
}
1191+
#[allow(clippy::derive_partial_eq_without_eq)]
1192+
#[derive(
1193+
Clone,
1194+
PartialEq,
1195+
Eq,
1196+
::prost::Message,
1197+
::serde::Serialize,
1198+
::serde::Deserialize,
1199+
::schemars::JsonSchema,
1200+
CosmwasmExt,
1201+
)]
1202+
#[proto_message(
1203+
type_url = "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdResponse"
1204+
)]
1205+
pub struct CfmmPoolIdLinkFromConcentratedPoolIdResponse {
1206+
#[prost(uint64, tag = "1")]
1207+
#[serde(alias = "cfmm_poolID")]
1208+
#[serde(
1209+
serialize_with = "crate::serde::as_str::serialize",
1210+
deserialize_with = "crate::serde::as_str::deserialize"
1211+
)]
1212+
pub cfmm_pool_id: u64,
1213+
}
11631214
/// ===================== MsgCreatePosition
11641215
#[allow(clippy::derive_partial_eq_without_eq)]
11651216
#[derive(
@@ -1230,8 +1281,6 @@ pub struct MsgCreatePositionResponse {
12301281
pub amount0: ::prost::alloc::string::String,
12311282
#[prost(string, tag = "3")]
12321283
pub amount1: ::prost::alloc::string::String,
1233-
#[prost(message, optional, tag = "4")]
1234-
pub join_time: ::core::option::Option<crate::shim::Timestamp>,
12351284
#[prost(string, tag = "5")]
12361285
pub liquidity_created: ::prost::alloc::string::String,
12371286
/// the lower and upper tick are in the response because there are
@@ -1439,7 +1488,7 @@ pub struct MsgCollectIncentivesResponse {
14391488
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
14401489
#[prost(message, repeated, tag = "2")]
14411490
pub forfeited_incentives:
1442-
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
1491+
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::DecCoin>,
14431492
}
14441493
/// ===================== MsgFungifyChargedPositions
14451494
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -1590,4 +1639,13 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ConcentratedliquidityQuerier<'a, Q> {
15901639
}
15911640
.query(self.querier)
15921641
}
1642+
pub fn cfmm_pool_id_link_from_concentrated_pool_id(
1643+
&self,
1644+
concentrated_pool_id: u64,
1645+
) -> Result<CfmmPoolIdLinkFromConcentratedPoolIdResponse, cosmwasm_std::StdError> {
1646+
CfmmPoolIdLinkFromConcentratedPoolIdRequest {
1647+
concentrated_pool_id,
1648+
}
1649+
.query(self.querier)
1650+
}
15931651
}

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

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ pub struct MsgCreateCosmWasmPoolResponse {
742742
)]
743743
pub pool_id: u64,
744744
}
745-
/// =============================== Params
745+
/// =============================== ContractInfoByPoolId
746746
#[allow(clippy::derive_partial_eq_without_eq)]
747747
#[derive(
748748
Clone,
@@ -776,14 +776,124 @@ pub struct ParamsResponse {
776776
#[prost(message, optional, tag = "1")]
777777
pub params: ::core::option::Option<Params>,
778778
}
779+
/// =============================== Pools
780+
#[allow(clippy::derive_partial_eq_without_eq)]
781+
#[derive(
782+
Clone,
783+
PartialEq,
784+
Eq,
785+
::prost::Message,
786+
::serde::Serialize,
787+
::serde::Deserialize,
788+
::schemars::JsonSchema,
789+
CosmwasmExt,
790+
)]
791+
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.PoolsRequest")]
792+
#[proto_query(
793+
path = "/osmosis.cosmwasmpool.v1beta1.Query/Pools",
794+
response_type = PoolsResponse
795+
)]
796+
pub struct PoolsRequest {
797+
/// pagination defines an optional pagination for the request.
798+
#[prost(message, optional, tag = "2")]
799+
pub pagination:
800+
::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
801+
}
802+
#[allow(clippy::derive_partial_eq_without_eq)]
803+
#[derive(
804+
Clone,
805+
PartialEq,
806+
Eq,
807+
::prost::Message,
808+
::serde::Serialize,
809+
::serde::Deserialize,
810+
::schemars::JsonSchema,
811+
CosmwasmExt,
812+
)]
813+
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.PoolsResponse")]
814+
pub struct PoolsResponse {
815+
#[prost(message, repeated, tag = "1")]
816+
pub pools: ::prost::alloc::vec::Vec<crate::shim::Any>,
817+
/// pagination defines the pagination in the response.
818+
#[prost(message, optional, tag = "2")]
819+
pub pagination:
820+
::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
821+
}
822+
/// =============================== ContractInfoByPoolId
823+
#[allow(clippy::derive_partial_eq_without_eq)]
824+
#[derive(
825+
Clone,
826+
PartialEq,
827+
Eq,
828+
::prost::Message,
829+
::serde::Serialize,
830+
::serde::Deserialize,
831+
::schemars::JsonSchema,
832+
CosmwasmExt,
833+
)]
834+
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdRequest")]
835+
#[proto_query(
836+
path = "/osmosis.cosmwasmpool.v1beta1.Query/ContractInfoByPoolId",
837+
response_type = ContractInfoByPoolIdResponse
838+
)]
839+
pub struct ContractInfoByPoolIdRequest {
840+
/// pool_id is the pool id of the requested pool.
841+
#[prost(uint64, tag = "1")]
842+
#[serde(alias = "poolID")]
843+
#[serde(
844+
serialize_with = "crate::serde::as_str::serialize",
845+
deserialize_with = "crate::serde::as_str::deserialize"
846+
)]
847+
pub pool_id: u64,
848+
}
849+
#[allow(clippy::derive_partial_eq_without_eq)]
850+
#[derive(
851+
Clone,
852+
PartialEq,
853+
Eq,
854+
::prost::Message,
855+
::serde::Serialize,
856+
::serde::Deserialize,
857+
::schemars::JsonSchema,
858+
CosmwasmExt,
859+
)]
860+
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdResponse")]
861+
pub struct ContractInfoByPoolIdResponse {
862+
/// contract_address is the pool address and contract address
863+
/// of the requested pool id.
864+
#[prost(string, tag = "1")]
865+
pub contract_address: ::prost::alloc::string::String,
866+
/// code_id is the code id of the requested pool id.
867+
#[prost(uint64, tag = "2")]
868+
#[serde(alias = "codeID")]
869+
#[serde(
870+
serialize_with = "crate::serde::as_str::serialize",
871+
deserialize_with = "crate::serde::as_str::deserialize"
872+
)]
873+
pub code_id: u64,
874+
}
779875
pub struct CosmwasmpoolQuerier<'a, Q: cosmwasm_std::CustomQuery> {
780876
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
781877
}
782878
impl<'a, Q: cosmwasm_std::CustomQuery> CosmwasmpoolQuerier<'a, Q> {
783879
pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
784880
Self { querier }
785881
}
882+
pub fn pools(
883+
&self,
884+
pagination: ::core::option::Option<
885+
super::super::super::cosmos::base::query::v1beta1::PageRequest,
886+
>,
887+
) -> Result<PoolsResponse, cosmwasm_std::StdError> {
888+
PoolsRequest { pagination }.query(self.querier)
889+
}
786890
pub fn params(&self) -> Result<ParamsResponse, cosmwasm_std::StdError> {
787891
ParamsRequest {}.query(self.querier)
788892
}
893+
pub fn contract_info_by_pool_id(
894+
&self,
895+
pool_id: u64,
896+
) -> Result<ContractInfoByPoolIdResponse, cosmwasm_std::StdError> {
897+
ContractInfoByPoolIdRequest { pool_id }.query(self.querier)
898+
}
789899
}

packages/osmosis-std/src/types/osmosis/incentives.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,20 @@ pub struct MsgCreateGauge {
550550
deserialize_with = "crate::serde::as_str::deserialize"
551551
)]
552552
pub num_epochs_paid_over: u64,
553+
/// pool_id is the ID of the pool that the gauge is meant to be associated
554+
/// with. if pool_id is set, then the "QueryCondition.LockQueryType" must be
555+
/// "NoLock" with all other fields of the "QueryCondition.LockQueryType" struct
556+
/// unset, including "QueryCondition.Denom". However, note that, internally,
557+
/// the empty string in "QueryCondition.Denom" ends up being overwritten with
558+
/// incentivestypes.NoLockExternalGaugeDenom(<pool-id>) so that the gauges
559+
/// associated with a pool can be queried by this prefix if needed.
560+
#[prost(uint64, tag = "7")]
561+
#[serde(alias = "poolID")]
562+
#[serde(
563+
serialize_with = "crate::serde::as_str::serialize",
564+
deserialize_with = "crate::serde::as_str::deserialize"
565+
)]
566+
pub pool_id: u64,
553567
}
554568
#[allow(clippy::derive_partial_eq_without_eq)]
555569
#[derive(

packages/osmosis-std/src/types/osmosis/lockup.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ pub struct SyntheticLock {
133133
pub enum LockQueryType {
134134
ByDuration = 0,
135135
ByTime = 1,
136+
NoLock = 2,
136137
}
137138
impl LockQueryType {
138139
/// String value of the enum field names used in the ProtoBuf definition.
@@ -143,13 +144,15 @@ impl LockQueryType {
143144
match self {
144145
LockQueryType::ByDuration => "ByDuration",
145146
LockQueryType::ByTime => "ByTime",
147+
LockQueryType::NoLock => "NoLock",
146148
}
147149
}
148150
/// Creates an enum from field names used in the ProtoBuf definition.
149151
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
150152
match value {
151153
"ByDuration" => Some(Self::ByDuration),
152154
"ByTime" => Some(Self::ByTime),
155+
"NoLock" => Some(Self::NoLock),
153156
_ => None,
154157
}
155158
}

packages/proto-build/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use proto_build::{
1414
const COSMOS_SDK_REV: &str = "osmosis-main";
1515

1616
/// The osmosis commit or tag to be cloned and used to build the proto files
17-
const OSMOSIS_REV: &str = "main";
17+
const OSMOSIS_REV: &str = "roman/cw-pool-final";
1818

1919
/// The wasmd commit or tag to be cloned and used to build the proto files
2020
const WASMD_REV: &str = "v0.31.0-osmo-v16";

0 commit comments

Comments
 (0)