diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 5469c48c..ad742879 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -v4.1.0 \ No newline at end of file +ef1d7992fbdd6a927a2c7c4b4eebe2dfe2cdd27a \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron.rs b/packages/neutron-sdk/src/proto_types/neutron/cron.rs index 8afa0a3f..2b12121a 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron.rs @@ -57,6 +57,13 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub last_execute_height: u64, + /// Blocker where the messages will be executed + #[prost(enumeration = "BlockerType", tag = "5")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub blocker: i32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive( @@ -99,6 +106,37 @@ pub struct ScheduleCount { )] pub count: i32, } +/// BlockerType defines when messages will be executed in the block +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +#[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] +pub enum BlockerType { + Begin = 0, + End = 1, + Both = 2, +} +impl BlockerType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + BlockerType::Begin => "BEGIN", + BlockerType::End => "END", + BlockerType::Both => "BOTH", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "BEGIN" => Some(Self::Begin), + "END" => Some(Self::End), + "BOTH" => Some(Self::Both), + _ => None, + } + } +} /// GenesisState defines the cron module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 52f00d8c..1632ee24 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -23,7 +23,7 @@ const SLINKY_REPO: &str = "https://github.com/skip-mev/slinky.git"; const COSMOS_SDK_REV: &str = "v0.50.8-neutron"; /// The Neutron commit or tag to be cloned and used to build the proto files -const NEUTRON_REV: &str = "v4.1.0"; +const NEUTRON_REV: &str = "ef1d7992fbdd6a927a2c7c4b4eebe2dfe2cdd27a"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0";