Skip to content

Commit

Permalink
regen proto
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Aug 30, 2024
1 parent 5c4f60d commit 9a99aec
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 32 deletions.
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 @@
8d1c58d0c84d3d25e721428dbcb719bce8700437
5087037130b68ef58b39026d8cedffabfb07f35d
45 changes: 21 additions & 24 deletions packages/neutron-sdk/src/proto_types/neutron/cron/mod.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -59,15 +59,15 @@ 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",
deserialize_with = "crate::serde::as_str::deserialize"
)]
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,
Expand All @@ -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,
Expand All @@ -102,15 +102,15 @@ 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",
deserialize_with = "crate::serde::as_str::deserialize"
)]
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)]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -272,7 +272,7 @@ pub struct QuerySchedulesResponse {
pub pagination:
::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
}
/// MsgAddSchedule is the MsgAddSchedule request type.
/// The MsgAddSchedule request type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -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
Expand All @@ -302,16 +302,15 @@ 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 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",
deserialize_with = "crate::serde::as_str::deserialize"
)]
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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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)]
Expand All @@ -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<Params>,
}
/// 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)]
Expand Down
12 changes: 6 additions & 6 deletions packages/neutron-sdk/src/proto_types/neutron/cron/v1.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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",
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 = "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";
Expand Down

0 comments on commit 9a99aec

Please sign in to comment.