From 45007a56c193224e1b71e9368e4cedefe8eb5325 Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Wed, 14 Aug 2024 14:09:54 +0300 Subject: [PATCH 1/6] regen proto for Neutron Cron module --- packages/neutron-sdk/src/bindings/msg.rs | 17 ++++++++- .../src/proto_types/NEUTRON_COMMIT | 2 +- .../src/proto_types/neutron/cron.rs | 38 +++++++++++++++++++ proto-build/src/main.rs | 2 +- 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index 5b8daf9c..e859d84c 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -217,6 +217,8 @@ pub enum NeutronMsg { period: u64, /// list of cosmwasm messages to be executed msgs: Vec, + /// blocker where schedule should be executed + blocker: u64, }, /// RemoveSchedule removes the schedule with a given `name`. @@ -509,8 +511,19 @@ impl NeutronMsg { /// * **name** is a name of the schedule; /// * **period** is a period of schedule execution in blocks; /// * **msgs** is the messages that will be executed. - pub fn submit_add_schedule(name: String, period: u64, msgs: Vec) -> Self { - NeutronMsg::AddSchedule { name, period, msgs } + /// * **blocker** is a blocker where schedule will be executed. + pub fn submit_add_schedule( + name: String, + period: u64, + msgs: Vec, + blocker: u64, + ) -> Self { + NeutronMsg::AddSchedule { + name, + period, + msgs, + blocker, + } } /// Basic helper to define remove schedule passed to Cron module: 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"; From c965f9df8978ba2af00e2aeae60fa2c3233a4aea Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Wed, 21 Aug 2024 13:32:03 +0300 Subject: [PATCH 2/6] regen proto --- packages/neutron-sdk/src/bindings/msg.rs | 11 +- .../src/proto_types/NEUTRON_COMMIT | 2 +- .../neutron/{cron.rs => cron/mod.rs} | 115 +++++++++++++++--- .../src/proto_types/neutron/cron/v1.rs | 76 ++++++++++++ proto-build/src/main.rs | 2 +- 5 files changed, 184 insertions(+), 22 deletions(-) rename packages/neutron-sdk/src/proto_types/neutron/{cron.rs => cron/mod.rs} (74%) create mode 100644 packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index e859d84c..7085787d 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -1,6 +1,7 @@ use crate::{ bindings::types::{KVKey, ProtobufAny}, interchain_queries::types::{QueryPayload, QueryType, TransactionFilterItem, MAX_TX_FILTERS}, + proto_types::neutron::cron::ExecutionStage, sudo::msg::RequestPacketTimeoutHeight, NeutronError, NeutronResult, }; @@ -217,8 +218,8 @@ pub enum NeutronMsg { period: u64, /// list of cosmwasm messages to be executed msgs: Vec, - /// blocker where schedule should be executed - blocker: u64, + /// execution stage where schedule will be executed + execution_stage: String, }, /// RemoveSchedule removes the schedule with a given `name`. @@ -511,18 +512,18 @@ impl NeutronMsg { /// * **name** is a name of the schedule; /// * **period** is a period of schedule execution in blocks; /// * **msgs** is the messages that will be executed. - /// * **blocker** is a blocker where schedule will be executed. + /// * **execution_stage** is a stage where schedule will be executed. pub fn submit_add_schedule( name: String, period: u64, msgs: Vec, - blocker: u64, + execution_stage: ExecutionStage, ) -> Self { NeutronMsg::AddSchedule { name, period, msgs, - blocker, + execution_stage: execution_stage.as_str_name().to_string(), } } diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index ad742879..6b2dc5da 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -ef1d7992fbdd6a927a2c7c4b4eebe2dfe2cdd27a \ No newline at end of file +fd5e5e5bd6d061f19a566e71aaaeaabe59406069 \ 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/mod.rs similarity index 74% rename from packages/neutron-sdk/src/proto_types/neutron/cron.rs rename to packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs index 2b12121a..d8463b70 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs @@ -1,3 +1,4 @@ +pub mod v1; use neutron_std_derive::CosmwasmExt; /// Params defines the parameters for the module. #[allow(clippy::derive_partial_eq_without_eq)] @@ -57,13 +58,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")] + /// Execution stage when messages will be executed + #[prost(enumeration = "ExecutionStage", tag = "5")] #[serde( serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] - pub blocker: i32, + pub execution_stage: i32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive( @@ -106,33 +107,33 @@ pub struct ScheduleCount { )] pub count: i32, } -/// BlockerType defines when messages will be executed in the block +/// ExecutionStage 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, +pub enum ExecutionStage { + BeginBlocker = 0, + EndBlocker = 1, + BothBlockers = 2, } -impl BlockerType { +impl ExecutionStage { /// 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", + ExecutionStage::BeginBlocker => "BEGIN_BLOCKER", + ExecutionStage::EndBlocker => "END_BLOCKER", + ExecutionStage::BothBlockers => "BOTH_BLOCKERS", } } /// 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), + "BEGIN_BLOCKER" => Some(Self::BeginBlocker), + "END_BLOCKER" => Some(Self::EndBlocker), + "BOTH_BLOCKERS" => Some(Self::BothBlockers), _ => None, } } @@ -263,6 +264,90 @@ pub struct QuerySchedulesResponse { pub pagination: ::core::option::Option, } +/// MsgAddSchedule is the MsgAddSchedule request type. +#[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.cron.MsgAddSchedule")] +pub struct MsgAddSchedule { + /// Authority is the address of the governance account. + #[prost(string, tag = "1")] + pub authority: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub name: ::prost::alloc::string::String, + #[prost(uint64, tag = "3")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub period: u64, + #[prost(message, repeated, tag = "4")] + pub msgs: ::prost::alloc::vec::Vec, + #[prost(enumeration = "ExecutionStage", tag = "5")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub execution_stage: i32, +} +/// MsgAddScheduleResponse defines the response structure for executing a +/// MsgAddSchedule message. +#[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.cron.MsgAddScheduleResponse")] +pub struct MsgAddScheduleResponse {} +/// MsgRemoveSchedule is the MsgRemoveSchedule request type. +#[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.cron.MsgRemoveSchedule")] +pub struct MsgRemoveSchedule { + /// Authority is the address of the governance account. + #[prost(string, tag = "1")] + pub authority: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub name: ::prost::alloc::string::String, +} +/// MsgRemoveScheduleResponse defines the response structure for executing a +/// MsgRemoveSchedule message. +#[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.cron.MsgRemoveScheduleResponse")] +pub struct MsgRemoveScheduleResponse {} /// MsgUpdateParams is the MsgUpdateParams request type. /// /// Since: 0.47 diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs new file mode 100644 index 00000000..9b0cd757 --- /dev/null +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs @@ -0,0 +1,76 @@ +use neutron_std_derive::CosmwasmExt; +#[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.cron.v1.Schedule")] +pub struct Schedule { + /// Name of schedule + #[prost(string, tag = "1")] + pub name: ::prost::alloc::string::String, + /// Period in blocks + #[prost(uint64, tag = "2")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub period: u64, + /// Msgs that will be executed every period amount of time + #[prost(message, repeated, tag = "3")] + pub msgs: ::prost::alloc::vec::Vec, + /// Last execution's block height + #[prost(uint64, tag = "4")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub last_execute_height: u64, +} +#[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.cron.v1.MsgExecuteContract")] +pub struct MsgExecuteContract { + /// Contract is the address of the smart contract + #[prost(string, tag = "1")] + pub contract: ::prost::alloc::string::String, + /// Msg is json encoded message to be passed to the contract + #[prost(string, tag = "2")] + pub msg: ::prost::alloc::string::String, +} +#[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.cron.v1.ScheduleCount")] +pub struct ScheduleCount { + /// Count is the number of current schedules + #[prost(int32, tag = "1")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub count: i32, +} diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 1632ee24..47d86d82 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 = "ef1d7992fbdd6a927a2c7c4b4eebe2dfe2cdd27a"; +const NEUTRON_REV: &str = "fd5e5e5bd6d061f19a566e71aaaeaabe59406069"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0"; From 58cf1ada9d0f7c7d357103c05533ac8b0449bb1a Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Sun, 25 Aug 2024 16:43:55 +0300 Subject: [PATCH 3/6] regen proto --- packages/neutron-sdk/src/bindings/msg.rs | 13 +++-- .../src/proto_types/NEUTRON_COMMIT | 2 +- .../src/proto_types/neutron/cron/mod.rs | 51 ++++++++++++------- .../src/proto_types/neutron/cron/v1.rs | 5 +- proto-build/src/main.rs | 2 +- 5 files changed, 46 insertions(+), 27 deletions(-) diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index 7085787d..440fa324 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -218,8 +218,8 @@ pub enum NeutronMsg { period: u64, /// list of cosmwasm messages to be executed msgs: Vec, - /// execution stage where schedule will be executed - execution_stage: String, + /// execution stages where schedule will be executed + execution_stages: Vec, }, /// RemoveSchedule removes the schedule with a given `name`. @@ -512,18 +512,21 @@ impl NeutronMsg { /// * **name** is a name of the schedule; /// * **period** is a period of schedule execution in blocks; /// * **msgs** is the messages that will be executed. - /// * **execution_stage** is a stage where schedule will be executed. + /// * **execution_stages** is the stages where schedule will be executed. pub fn submit_add_schedule( name: String, period: u64, msgs: Vec, - execution_stage: ExecutionStage, + execution_stages: Vec, ) -> Self { NeutronMsg::AddSchedule { name, period, msgs, - execution_stage: execution_stage.as_str_name().to_string(), + execution_stages: execution_stages + .into_iter() + .map(|x| x.as_str_name().to_string()) + .collect(), } } diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 6b2dc5da..597eff6d 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -fd5e5e5bd6d061f19a566e71aaaeaabe59406069 \ No newline at end of file +5c3d8f19a0c47dbd8644257536279f55cbe8b40f \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs index d8463b70..02b1bee7 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs @@ -25,6 +25,7 @@ pub struct Params { )] pub limit: u64, } +/// Schedule defines the schedule for execution #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -48,7 +49,7 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub period: u64, - /// Msgs that will be executed every period amount of time + /// Msgs that will be executed every certain number of blocks, specified in the `period` field #[prost(message, repeated, tag = "3")] pub msgs: ::prost::alloc::vec::Vec, /// Last execution's block height @@ -58,14 +59,15 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub last_execute_height: u64, - /// Execution stage when messages will be executed - #[prost(enumeration = "ExecutionStage", tag = "5")] + /// Execution stages when messages will be executed + #[prost(enumeration = "ExecutionStage", repeated, packed = "false", tag = "5")] #[serde( - serialize_with = "crate::serde::as_str::serialize", - deserialize_with = "crate::serde::as_str::deserialize" + serialize_with = "crate::serde::as_str_vec::serialize", + deserialize_with = "crate::serde::as_str_vec::deserialize" )] - pub execution_stage: i32, + pub execution_stages: ::prost::alloc::vec::Vec, } +/// MsgExecuteContract defines the contract and the message to pass #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -86,6 +88,7 @@ pub struct MsgExecuteContract { #[prost(string, tag = "2")] pub msg: ::prost::alloc::string::String, } +/// ScheduleCount defines the number of current schedules #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -112,9 +115,10 @@ pub struct ScheduleCount { #[repr(i32)] #[derive(::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema)] pub enum ExecutionStage { - BeginBlocker = 0, - EndBlocker = 1, - BothBlockers = 2, + /// Execution at the end of the block + EndBlocker = 0, + /// Execution at the beginning of the block + BeginBlocker = 1, } impl ExecutionStage { /// String value of the enum field names used in the ProtoBuf definition. @@ -123,17 +127,15 @@ impl ExecutionStage { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ExecutionStage::BeginBlocker => "BEGIN_BLOCKER", - ExecutionStage::EndBlocker => "END_BLOCKER", - ExecutionStage::BothBlockers => "BOTH_BLOCKERS", + ExecutionStage::EndBlocker => "EXECUTION_STAGE_END_BLOCKER", + ExecutionStage::BeginBlocker => "EXECUTION_STAGE_BEGIN_BLOCKER", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { - "BEGIN_BLOCKER" => Some(Self::BeginBlocker), - "END_BLOCKER" => Some(Self::EndBlocker), - "BOTH_BLOCKERS" => Some(Self::BothBlockers), + "EXECUTION_STAGE_END_BLOCKER" => Some(Self::EndBlocker), + "EXECUTION_STAGE_BEGIN_BLOCKER" => Some(Self::BeginBlocker), _ => None, } } @@ -158,6 +160,7 @@ pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +/// QueryParamsRequest is the request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -172,6 +175,7 @@ pub struct GenesisState { #[proto_message(type_url = "/neutron.cron.QueryParamsRequest")] #[proto_query(path = "/neutron.cron.Query/Params", response_type = QueryParamsResponse)] pub struct QueryParamsRequest {} +/// QueryParamsResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -189,6 +193,7 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +/// QueryGetScheduleRequest is the request type for the Query/Schedule RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -209,6 +214,7 @@ pub struct QueryGetScheduleRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } +/// QueryGetScheduleResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -225,6 +231,7 @@ pub struct QueryGetScheduleResponse { #[prost(message, optional, tag = "1")] pub schedule: ::core::option::Option, } +/// QuerySchedulesRequest is the request type for the Query/Schedules RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -245,6 +252,7 @@ pub struct QuerySchedulesRequest { #[prost(message, optional, tag = "1")] pub pagination: ::core::option::Option, } +/// QuerySchedulesResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -281,22 +289,26 @@ pub struct MsgAddSchedule { /// Authority is the address of the governance account. #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, + /// Name of the schedule #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String, + /// Period in blocks #[prost(uint64, tag = "3")] #[serde( serialize_with = "crate::serde::as_str::serialize", deserialize_with = "crate::serde::as_str::deserialize" )] pub period: u64, + /// Msgs that will be executed every certain number of blocks, specified in the `period` field #[prost(message, repeated, tag = "4")] pub msgs: ::prost::alloc::vec::Vec, - #[prost(enumeration = "ExecutionStage", tag = "5")] + /// Execution stages when messages will be executed + #[prost(enumeration = "ExecutionStage", repeated, packed = "false", tag = "5")] #[serde( - serialize_with = "crate::serde::as_str::serialize", - deserialize_with = "crate::serde::as_str::deserialize" + serialize_with = "crate::serde::as_str_vec::serialize", + deserialize_with = "crate::serde::as_str_vec::deserialize" )] - pub execution_stage: i32, + pub execution_stages: ::prost::alloc::vec::Vec, } /// MsgAddScheduleResponse defines the response structure for executing a /// MsgAddSchedule message. @@ -330,6 +342,7 @@ pub struct MsgRemoveSchedule { /// Authority is the address of the governance account. #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, + /// Name of the schedule #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String, } diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs index 9b0cd757..41d06fe8 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs @@ -1,4 +1,5 @@ use neutron_std_derive::CosmwasmExt; +/// Schedule defines the schedule for execution #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -22,7 +23,7 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub period: u64, - /// Msgs that will be executed every period amount of time + /// Msgs that will be executed every certain number of blocks, specified in the `period` field #[prost(message, repeated, tag = "3")] pub msgs: ::prost::alloc::vec::Vec, /// Last execution's block height @@ -33,6 +34,7 @@ pub struct Schedule { )] pub last_execute_height: u64, } +/// MsgExecuteContract defines the contract and the message to pass #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -53,6 +55,7 @@ pub struct MsgExecuteContract { #[prost(string, tag = "2")] pub msg: ::prost::alloc::string::String, } +/// ScheduleCount defines the number of current schedules #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 47d86d82..4cc7b524 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 = "fd5e5e5bd6d061f19a566e71aaaeaabe59406069"; +const NEUTRON_REV: &str = "5c3d8f19a0c47dbd8644257536279f55cbe8b40f"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0"; From 5c4f60dfdebf9eacb293d59cff2a6cf17f54b1ed Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Tue, 27 Aug 2024 14:03:58 +0300 Subject: [PATCH 4/6] regen proto --- packages/neutron-sdk/src/bindings/msg.rs | 13 +++----- .../src/proto_types/NEUTRON_COMMIT | 2 +- .../src/proto_types/neutron/cron/mod.rs | 32 +++++++++---------- proto-build/src/main.rs | 2 +- 4 files changed, 23 insertions(+), 26 deletions(-) diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index 440fa324..8da2abaf 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -218,8 +218,8 @@ pub enum NeutronMsg { period: u64, /// list of cosmwasm messages to be executed msgs: Vec, - /// execution stages where schedule will be executed - execution_stages: Vec, + /// execution stage where schedule will be executed + execution_stage: String, }, /// RemoveSchedule removes the schedule with a given `name`. @@ -512,21 +512,18 @@ impl NeutronMsg { /// * **name** is a name of the schedule; /// * **period** is a period of schedule execution in blocks; /// * **msgs** is the messages that will be executed. - /// * **execution_stages** is the stages where schedule will be executed. + /// * **execution_stage** is the stage where schedule will be executed. pub fn submit_add_schedule( name: String, period: u64, msgs: Vec, - execution_stages: Vec, + execution_stage: ExecutionStage, ) -> Self { NeutronMsg::AddSchedule { name, period, msgs, - execution_stages: execution_stages - .into_iter() - .map(|x| x.as_str_name().to_string()) - .collect(), + execution_stage: execution_stage.as_str_name().to_string(), } } diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 597eff6d..1aeb8456 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -5c3d8f19a0c47dbd8644257536279f55cbe8b40f \ No newline at end of file +8d1c58d0c84d3d25e721428dbcb719bce8700437 \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs index 02b1bee7..b6506574 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs @@ -59,13 +59,13 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub last_execute_height: u64, - /// Execution stages when messages will be executed - #[prost(enumeration = "ExecutionStage", repeated, packed = "false", tag = "5")] + /// Execution stage when messages will be executed + #[prost(enumeration = "ExecutionStage", tag = "5")] #[serde( - serialize_with = "crate::serde::as_str_vec::serialize", - deserialize_with = "crate::serde::as_str_vec::deserialize" + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" )] - pub execution_stages: ::prost::alloc::vec::Vec, + pub execution_stage: i32, } /// MsgExecuteContract defines the contract and the message to pass #[allow(clippy::derive_partial_eq_without_eq)] @@ -160,7 +160,7 @@ pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -/// QueryParamsRequest is the request type for the Query/Params RPC method. +/// The request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -175,7 +175,7 @@ pub struct GenesisState { #[proto_message(type_url = "/neutron.cron.QueryParamsRequest")] #[proto_query(path = "/neutron.cron.Query/Params", response_type = QueryParamsResponse)] pub struct QueryParamsRequest {} -/// QueryParamsResponse is the response type for the Query/Params RPC method. +/// The response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -193,7 +193,7 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -/// QueryGetScheduleRequest is the request type for the Query/Schedule RPC method. +/// The request type for the Query/Schedule RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -214,7 +214,7 @@ pub struct QueryGetScheduleRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } -/// QueryGetScheduleResponse is the response type for the Query/Params RPC method. +/// The response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -231,7 +231,7 @@ pub struct QueryGetScheduleResponse { #[prost(message, optional, tag = "1")] pub schedule: ::core::option::Option, } -/// QuerySchedulesRequest is the request type for the Query/Schedules RPC method. +/// The request type for the Query/Schedules RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -252,7 +252,7 @@ pub struct QuerySchedulesRequest { #[prost(message, optional, tag = "1")] pub pagination: ::core::option::Option, } -/// QuerySchedulesResponse is the response type for the Query/Params RPC method. +/// The response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -302,13 +302,13 @@ pub struct MsgAddSchedule { /// Msgs that will be executed every certain number of blocks, specified in the `period` field #[prost(message, repeated, tag = "4")] pub msgs: ::prost::alloc::vec::Vec, - /// Execution stages when messages will be executed - #[prost(enumeration = "ExecutionStage", repeated, packed = "false", tag = "5")] + /// Execution stage when messages will be executed + #[prost(enumeration = "ExecutionStage", tag = "5")] #[serde( - serialize_with = "crate::serde::as_str_vec::serialize", - deserialize_with = "crate::serde::as_str_vec::deserialize" + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" )] - pub execution_stages: ::prost::alloc::vec::Vec, + pub execution_stage: i32, } /// MsgAddScheduleResponse defines the response structure for executing a /// MsgAddSchedule message. diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 4cc7b524..e2946d37 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 = "5c3d8f19a0c47dbd8644257536279f55cbe8b40f"; +const NEUTRON_REV: &str = "8d1c58d0c84d3d25e721428dbcb719bce8700437"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0"; From 9a99aecbc68955691a51218c21e1435409996c51 Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Fri, 30 Aug 2024 16:40:23 +0300 Subject: [PATCH 5/6] regen proto --- .../src/proto_types/NEUTRON_COMMIT | 2 +- .../src/proto_types/neutron/cron/mod.rs | 45 +++++++++---------- .../src/proto_types/neutron/cron/v1.rs | 12 ++--- proto-build/src/main.rs | 2 +- 4 files changed, 29 insertions(+), 32 deletions(-) diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 1aeb8456..fb688cab 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -8d1c58d0c84d3d25e721428dbcb719bce8700437 \ No newline at end of file +5087037130b68ef58b39026d8cedffabfb07f35d \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs index b6506574..f22c6ab9 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs @@ -1,6 +1,6 @@ pub mod v1; use neutron_std_derive::CosmwasmExt; -/// Params defines the parameters for the module. +/// Defines the parameters for the module. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -25,7 +25,7 @@ pub struct Params { )] pub limit: u64, } -/// Schedule defines the schedule for execution +/// Defines the schedule for execution #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -59,7 +59,7 @@ pub struct Schedule { deserialize_with = "crate::serde::as_str::deserialize" )] pub last_execute_height: u64, - /// Execution stage when messages will be executed + /// Stage when messages will be executed #[prost(enumeration = "ExecutionStage", tag = "5")] #[serde( serialize_with = "crate::serde::as_str::serialize", @@ -67,7 +67,7 @@ pub struct Schedule { )] pub execution_stage: i32, } -/// MsgExecuteContract defines the contract and the message to pass +/// Defines the contract and the message to pass #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -81,14 +81,14 @@ pub struct Schedule { )] #[proto_message(type_url = "/neutron.cron.MsgExecuteContract")] pub struct MsgExecuteContract { - /// Contract is the address of the smart contract + /// The address of the smart contract #[prost(string, tag = "1")] pub contract: ::prost::alloc::string::String, - /// Msg is json encoded message to be passed to the contract + /// JSON encoded message to be passed to the contract #[prost(string, tag = "2")] pub msg: ::prost::alloc::string::String, } -/// ScheduleCount defines the number of current schedules +/// Defines the number of current schedules #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -102,7 +102,7 @@ pub struct MsgExecuteContract { )] #[proto_message(type_url = "/neutron.cron.ScheduleCount")] pub struct ScheduleCount { - /// Count is the number of current schedules + /// The number of current schedules #[prost(int32, tag = "1")] #[serde( serialize_with = "crate::serde::as_str::serialize", @@ -110,7 +110,7 @@ pub struct ScheduleCount { )] pub count: i32, } -/// ExecutionStage defines when messages will be executed in the block +/// 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)] @@ -140,7 +140,7 @@ impl ExecutionStage { } } } -/// GenesisState defines the cron module's genesis state. +/// Defines the cron module's genesis state. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -272,7 +272,7 @@ pub struct QuerySchedulesResponse { pub pagination: ::core::option::Option, } -/// MsgAddSchedule is the MsgAddSchedule request type. +/// The MsgAddSchedule request type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -286,7 +286,7 @@ pub struct QuerySchedulesResponse { )] #[proto_message(type_url = "/neutron.cron.MsgAddSchedule")] pub struct MsgAddSchedule { - /// Authority is the address of the governance account. + /// The address of the governance account. #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, /// Name of the schedule @@ -302,7 +302,7 @@ pub struct MsgAddSchedule { /// Msgs that will be executed every certain number of blocks, specified in the `period` field #[prost(message, repeated, tag = "4")] pub msgs: ::prost::alloc::vec::Vec, - /// Execution stage when messages will be executed + /// Stage when messages will be executed #[prost(enumeration = "ExecutionStage", tag = "5")] #[serde( serialize_with = "crate::serde::as_str::serialize", @@ -310,8 +310,7 @@ pub struct MsgAddSchedule { )] pub execution_stage: i32, } -/// MsgAddScheduleResponse defines the response structure for executing a -/// MsgAddSchedule message. +/// Defines the response structure for executing a MsgAddSchedule message. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -325,7 +324,7 @@ pub struct MsgAddSchedule { )] #[proto_message(type_url = "/neutron.cron.MsgAddScheduleResponse")] pub struct MsgAddScheduleResponse {} -/// MsgRemoveSchedule is the MsgRemoveSchedule request type. +/// The MsgRemoveSchedule request type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -339,15 +338,14 @@ pub struct MsgAddScheduleResponse {} )] #[proto_message(type_url = "/neutron.cron.MsgRemoveSchedule")] pub struct MsgRemoveSchedule { - /// Authority is the address of the governance account. + /// The address of the governance account. #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, /// Name of the schedule #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String, } -/// MsgRemoveScheduleResponse defines the response structure for executing a -/// MsgRemoveSchedule message. +/// Defines the response structure for executing a MsgRemoveSchedule message. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -361,7 +359,7 @@ pub struct MsgRemoveSchedule { )] #[proto_message(type_url = "/neutron.cron.MsgRemoveScheduleResponse")] pub struct MsgRemoveScheduleResponse {} -/// MsgUpdateParams is the MsgUpdateParams request type. +/// The MsgUpdateParams request type. /// /// Since: 0.47 #[allow(clippy::derive_partial_eq_without_eq)] @@ -377,17 +375,16 @@ pub struct MsgRemoveScheduleResponse {} )] #[proto_message(type_url = "/neutron.cron.MsgUpdateParams")] pub struct MsgUpdateParams { - /// Authority is the address of the governance account. + /// The address of the governance account. #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, - /// params defines the x/cron parameters to update. + /// Defines the x/cron parameters to update. /// /// NOTE: All parameters must be supplied. #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } -/// MsgUpdateParamsResponse defines the response structure for executing a -/// MsgUpdateParams message. +/// Defines the response structure for executing a MsgUpdateParams message. /// /// Since: 0.47 #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs index 41d06fe8..6776522a 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs @@ -1,5 +1,5 @@ use neutron_std_derive::CosmwasmExt; -/// Schedule defines the schedule for execution +/// Defines the schedule for execution #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -34,7 +34,7 @@ pub struct Schedule { )] pub last_execute_height: u64, } -/// MsgExecuteContract defines the contract and the message to pass +/// Defines the contract and the message to pass #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -48,14 +48,14 @@ pub struct Schedule { )] #[proto_message(type_url = "/neutron.cron.v1.MsgExecuteContract")] pub struct MsgExecuteContract { - /// Contract is the address of the smart contract + /// The address of the smart contract #[prost(string, tag = "1")] pub contract: ::prost::alloc::string::String, - /// Msg is json encoded message to be passed to the contract + /// JSON encoded message to be passed to the contract #[prost(string, tag = "2")] pub msg: ::prost::alloc::string::String, } -/// ScheduleCount defines the number of current schedules +/// Defines the number of current schedules #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -69,7 +69,7 @@ pub struct MsgExecuteContract { )] #[proto_message(type_url = "/neutron.cron.v1.ScheduleCount")] pub struct ScheduleCount { - /// Count is the number of current schedules + /// The number of current schedules #[prost(int32, tag = "1")] #[serde( serialize_with = "crate::serde::as_str::serialize", diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index e2946d37..6bf833e9 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 = "8d1c58d0c84d3d25e721428dbcb719bce8700437"; +const NEUTRON_REV: &str = "5087037130b68ef58b39026d8cedffabfb07f35d"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0"; From 6164ce8d76b7dbf03202b9e754830bad81fc34aa Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Mon, 2 Sep 2024 22:47:54 +0300 Subject: [PATCH 6/6] regen proto --- packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT | 2 +- .../neutron-sdk/src/proto_types/neutron/interchainqueries.rs | 2 ++ proto-build/src/main.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index fb688cab..4b8d9597 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -5087037130b68ef58b39026d8cedffabfb07f35d \ No newline at end of file +403292ad198dd528fab93e2e0673ba261da99576 \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/interchainqueries.rs b/packages/neutron-sdk/src/proto_types/neutron/interchainqueries.rs index 218970d1..75abbb1b 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/interchainqueries.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/interchainqueries.rs @@ -234,6 +234,8 @@ pub struct MsgSubmitQueryResult { pub sender: ::prost::alloc::string::String, /// is the IBC client ID for an IBC connection between Neutron chain and target /// chain (where the result was obtained from) + /// Deprecated: populating this field does not make any affect + #[deprecated] #[prost(string, tag = "3")] #[serde(alias = "clientID")] pub client_id: ::prost::alloc::string::String, diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 6bf833e9..810f5195 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 = "5087037130b68ef58b39026d8cedffabfb07f35d"; +const NEUTRON_REV: &str = "403292ad198dd528fab93e2e0673ba261da99576"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0";