Skip to content

Commit

Permalink
regen proto
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Aug 27, 2024
1 parent 58cf1ad commit 5c4f60d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 26 deletions.
13 changes: 5 additions & 8 deletions packages/neutron-sdk/src/bindings/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ pub enum NeutronMsg {
period: u64,
/// list of cosmwasm messages to be executed
msgs: Vec<MsgExecuteContract>,
/// execution stages where schedule will be executed
execution_stages: Vec<String>,
/// execution stage where schedule will be executed
execution_stage: String,
},

/// RemoveSchedule removes the schedule with a given `name`.
Expand Down Expand Up @@ -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<MsgExecuteContract>,
execution_stages: Vec<ExecutionStage>,
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(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5c3d8f19a0c47dbd8644257536279f55cbe8b40f
8d1c58d0c84d3d25e721428dbcb719bce8700437
32 changes: 16 additions & 16 deletions packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i32>,
pub execution_stage: i32,
}
/// MsgExecuteContract defines the contract and the message to pass
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -160,7 +160,7 @@ pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
/// 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,
Expand All @@ -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,
Expand All @@ -193,7 +193,7 @@ pub struct QueryParamsResponse {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
/// 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,
Expand All @@ -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,
Expand All @@ -231,7 +231,7 @@ pub struct QueryGetScheduleResponse {
#[prost(message, optional, tag = "1")]
pub schedule: ::core::option::Option<Schedule>,
}
/// 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,
Expand All @@ -252,7 +252,7 @@ pub struct QuerySchedulesRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
/// 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,
Expand Down Expand Up @@ -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<MsgExecuteContract>,
/// 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<i32>,
pub execution_stage: i32,
}
/// MsgAddScheduleResponse defines the response structure for executing a
/// MsgAddSchedule message.
Expand Down
2 changes: 1 addition & 1 deletion proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5c4f60d

Please sign in to comment.