Skip to content

Commit

Permalink
rebuild with a55bbb9
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 5, 2023
1 parent 6841a23 commit 765f391
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 92 deletions.
2 changes: 1 addition & 1 deletion dependencies/osmosis
Submodule osmosis updated 166 files
257 changes: 166 additions & 91 deletions packages/osmosis-std/src/types/osmosis/concentratedliquidity/v1beta1.rs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/osmosis-std/src/types/osmosis/cosmwasmpool/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1beta1;
154 changes: 154 additions & 0 deletions packages/osmosis-std/src/types/osmosis/cosmwasmpool/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
use osmosis_std_derive::CosmwasmExt;
/// Params holds parameters for the cosmwasmpool module
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.Params")]
pub struct Params {}
/// GenesisState defines the cosmwasmpool module's genesis state.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.GenesisState")]
pub struct GenesisState {
/// params is the container of cosmwasmpool parameters.
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.CosmWasmPool")]
pub struct CosmWasmPool {
#[prost(string, tag = "1")]
pub pool_address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub contract_address: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
#[prost(uint64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub code_id: u64,
}
/// ===================== MsgCreateCosmwasmPool
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPool")]
pub struct MsgCreateCosmWasmPool {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub code_id: u64,
#[prost(bytes = "vec", tag = "2")]
pub instantiate_msg: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "3")]
pub sender: ::prost::alloc::string::String,
}
/// Returns a unique poolID to identify the pool with.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPoolResponse")]
pub struct MsgCreateCosmWasmPoolResponse {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub pool_id: u64,
}
/// =============================== Params
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.ParamsRequest")]
#[proto_query(
path = "/osmosis.cosmwasmpool.v1beta1.Query/Params",
response_type = ParamsResponse
)]
pub struct ParamsRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/osmosis.cosmwasmpool.v1beta1.ParamsResponse")]
pub struct ParamsResponse {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
pub struct CosmwasmpoolQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
impl<'a, Q: cosmwasm_std::CustomQuery> CosmwasmpoolQuerier<'a, Q> {
pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
Self { querier }
}
pub fn params(&self) -> Result<ParamsResponse, cosmwasm_std::StdError> {
ParamsRequest {}.query(self.querier)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use osmosis_std_derive::CosmwasmExt;
pub struct PoolParams {
#[prost(string, tag = "1")]
pub swap_fee: ::prost::alloc::string::String,
/// N.B.: exit fee is disabled during pool creation in x/poolmanager. While old
/// pools can maintain a non-zero fee. No new pool can be created with non-zero
/// fee anymore
#[prost(string, tag = "2")]
pub exit_fee: ::prost::alloc::string::String,
}
Expand Down
3 changes: 3 additions & 0 deletions packages/osmosis-std/src/types/osmosis/gamm/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ pub struct SmoothWeightChangeParams {
pub struct PoolParams {
#[prost(string, tag = "1")]
pub swap_fee: ::prost::alloc::string::String,
/// N.B.: exit fee is disabled during pool creation in x/poolmanager. While old
/// pools can maintain a non-zero fee. No new pool can be created with non-zero
/// fee anymore
#[prost(string, tag = "2")]
pub exit_fee: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
Expand Down
1 change: 1 addition & 0 deletions packages/osmosis-std/src/types/osmosis/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub mod accum;
pub mod concentratedliquidity;
pub mod cosmwasmpool;
pub mod downtimedetector;
pub mod epochs;
pub mod gamm;
Expand Down
5 changes: 5 additions & 0 deletions packages/osmosis-std/src/types/osmosis/poolmanager/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ pub enum PoolType {
/// Concentrated is the pool model specific to concentrated liquidity. It is
/// defined in x/concentrated-liquidity.
Concentrated = 2,
/// CosmWasm is the pool model specific to CosmWasm. It is defined in
/// x/cosmwasmpool.
CosmWasm = 3,
}
impl PoolType {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -98,6 +101,7 @@ impl PoolType {
PoolType::Balancer => "Balancer",
PoolType::Stableswap => "Stableswap",
PoolType::Concentrated => "Concentrated",
PoolType::CosmWasm => "CosmWasm",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -106,6 +110,7 @@ impl PoolType {
"Balancer" => Some(Self::Balancer),
"Stableswap" => Some(Self::Stableswap),
"Concentrated" => Some(Self::Concentrated),
"CosmWasm" => Some(Self::CosmWasm),
_ => None,
}
}
Expand Down

0 comments on commit 765f391

Please sign in to comment.