Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosmos-sdk-go: bump to v0.50.9 #488

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cosmos-sdk-go
Submodule cosmos-sdk-go updated 2684 files
25 changes: 6 additions & 19 deletions cosmos-sdk-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ pub mod cosmos {
}
}

/// Key-value pairs.
pub mod kv {
/// Node requests.
pub mod node {
pub mod v1beta1 {
include!("prost/cosmos-sdk/cosmos.base.kv.v1beta1.rs");
include!("prost/cosmos-sdk/cosmos.base.node.v1beta1.rs");
}
}

Expand All @@ -84,29 +84,16 @@ pub mod cosmos {
}
}

/// Snapshots containing Tendermint state sync info.
pub mod snapshots {
pub mod v1beta1 {
include!("prost/cosmos-sdk/cosmos.base.snapshots.v1beta1.rs");
}
}

/// Data structure that holds the state of the application.
pub mod store {
/// Tendermint support.
pub mod tendermint {
pub mod v1beta1 {
include!("prost/cosmos-sdk/cosmos.base.store.v1beta1.rs");
include!("prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.rs");
}
}

pub mod v1beta1 {
include!("prost/cosmos-sdk/cosmos.base.v1beta1.rs");
}

pub mod tendermint {
pub mod v1beta1 {
include!("prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.rs");
}
}
}

/// Crisis handling
Expand Down
2 changes: 1 addition & 1 deletion cosmos-sdk-proto/src/prost/cosmos-sdk/COSMOS_SDK_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.47.10
v0.50.9
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ pub struct Module {
/// to be used in keeper construction.
#[prost(message, repeated, tag = "6")]
pub override_store_keys: ::prost::alloc::vec::Vec<StoreKeyConfig>,
/// order_migrations defines the order in which module migrations are performed.
/// If this is left empty, it uses the default migration order.
/// <https://pkg.go.dev/github.com/cosmos/[email protected]/types/module#DefaultMigrationsOrder>
#[prost(string, repeated, tag = "7")]
pub order_migrations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// precommiters specifies the module names of the precommiters
/// to call in the order in which they should be called. If this is left empty
/// no precommit function will be registered.
#[prost(string, repeated, tag = "8")]
pub precommiters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// prepare_check_staters specifies the module names of the prepare_check_staters
/// to call in the order in which they should be called. If this is left empty
/// no preparecheckstate function will be registered.
#[prost(string, repeated, tag = "9")]
pub prepare_check_staters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// StoreKeyConfig may be supplied to override the default module store key, which
/// is the module name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ impl serde::Serialize for Module {
if !self.override_store_keys.is_empty() {
len += 1;
}
if !self.order_migrations.is_empty() {
len += 1;
}
if !self.precommiters.is_empty() {
len += 1;
}
if !self.prepare_check_staters.is_empty() {
len += 1;
}
let mut struct_ser =
serializer.serialize_struct("cosmos.app.runtime.v1alpha1.Module", len)?;
if !self.app_name.is_empty() {
Expand All @@ -46,6 +55,15 @@ impl serde::Serialize for Module {
if !self.override_store_keys.is_empty() {
struct_ser.serialize_field("overrideStoreKeys", &self.override_store_keys)?;
}
if !self.order_migrations.is_empty() {
struct_ser.serialize_field("orderMigrations", &self.order_migrations)?;
}
if !self.precommiters.is_empty() {
struct_ser.serialize_field("precommiters", &self.precommiters)?;
}
if !self.prepare_check_staters.is_empty() {
struct_ser.serialize_field("prepareCheckStaters", &self.prepare_check_staters)?;
}
struct_ser.end()
}
}
Expand All @@ -69,6 +87,11 @@ impl<'de> serde::Deserialize<'de> for Module {
"exportGenesis",
"override_store_keys",
"overrideStoreKeys",
"order_migrations",
"orderMigrations",
"precommiters",
"prepare_check_staters",
"prepareCheckStaters",
];

#[allow(clippy::enum_variant_names)]
Expand All @@ -79,6 +102,9 @@ impl<'de> serde::Deserialize<'de> for Module {
InitGenesis,
ExportGenesis,
OverrideStoreKeys,
OrderMigrations,
Precommiters,
PrepareCheckStaters,
}
#[cfg(feature = "serde")]
impl<'de> serde::Deserialize<'de> for GeneratedField {
Expand Down Expand Up @@ -112,6 +138,13 @@ impl<'de> serde::Deserialize<'de> for Module {
"overrideStoreKeys" | "override_store_keys" => {
Ok(GeneratedField::OverrideStoreKeys)
}
"orderMigrations" | "order_migrations" => {
Ok(GeneratedField::OrderMigrations)
}
"precommiters" => Ok(GeneratedField::Precommiters),
"prepareCheckStaters" | "prepare_check_staters" => {
Ok(GeneratedField::PrepareCheckStaters)
}
_ => Err(serde::de::Error::unknown_field(value, FIELDS)),
}
}
Expand All @@ -137,6 +170,9 @@ impl<'de> serde::Deserialize<'de> for Module {
let mut init_genesis__ = None;
let mut export_genesis__ = None;
let mut override_store_keys__ = None;
let mut order_migrations__ = None;
let mut precommiters__ = None;
let mut prepare_check_staters__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::AppName => {
Expand Down Expand Up @@ -175,6 +211,26 @@ impl<'de> serde::Deserialize<'de> for Module {
}
override_store_keys__ = Some(map_.next_value()?);
}
GeneratedField::OrderMigrations => {
if order_migrations__.is_some() {
return Err(serde::de::Error::duplicate_field("orderMigrations"));
}
order_migrations__ = Some(map_.next_value()?);
}
GeneratedField::Precommiters => {
if precommiters__.is_some() {
return Err(serde::de::Error::duplicate_field("precommiters"));
}
precommiters__ = Some(map_.next_value()?);
}
GeneratedField::PrepareCheckStaters => {
if prepare_check_staters__.is_some() {
return Err(serde::de::Error::duplicate_field(
"prepareCheckStaters",
));
}
prepare_check_staters__ = Some(map_.next_value()?);
}
}
}
Ok(Module {
Expand All @@ -184,6 +240,9 @@ impl<'de> serde::Deserialize<'de> for Module {
init_genesis: init_genesis__.unwrap_or_default(),
export_genesis: export_genesis__.unwrap_or_default(),
override_store_keys: override_store_keys__.unwrap_or_default(),
order_migrations: order_migrations__.unwrap_or_default(),
precommiters: precommiters__.unwrap_or_default(),
prepare_check_staters: prepare_check_staters__.unwrap_or_default(),
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct PackageReference {
///
/// When a new version of a module is released and items are added to existing
/// .proto files, these definitions should contain comments of the form
/// "Since Revision N" where N is an integer revision.
/// "Since: Revision N" where N is an integer revision.
///
/// When the module runtime starts up, it will check the pinned proto
/// image and panic if there are runtime protobuf definitions that are not
Expand Down
16 changes: 8 additions & 8 deletions cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.authz.v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub struct QueryGranterGrantsResponse {
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
/// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.
/// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGranteeGrantsRequest {
Expand Down Expand Up @@ -158,13 +158,10 @@ pub struct MsgGrant {
#[prost(message, optional, tag = "3")]
pub grant: ::core::option::Option<Grant>,
}
/// MsgExecResponse defines the Msg/MsgExecResponse response type.
/// MsgGrantResponse defines the Msg/MsgGrant response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgExecResponse {
#[prost(bytes = "vec", repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
pub struct MsgGrantResponse {}
/// MsgExec attempts to execute the provided messages using
/// authorizations granted to the grantee. Each message should have only
/// one signer corresponding to the granter of the authorization.
Expand All @@ -179,10 +176,13 @@ pub struct MsgExec {
#[prost(message, repeated, tag = "2")]
pub msgs: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
}
/// MsgGrantResponse defines the Msg/MsgGrant response type.
/// MsgExecResponse defines the Msg/MsgExecResponse response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgGrantResponse {}
pub struct MsgExecResponse {
#[prost(bytes = "vec", repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
/// MsgRevoke revokes any authorization with the provided sdk.Msg type on the
/// granter's account with that has been granted to the grantee.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
7 changes: 2 additions & 5 deletions cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.autocli.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleOptions {
/// tx describes the tx command for the module.
/// tx describes the tx commands for the module.
#[prost(message, optional, tag = "1")]
pub tx: ::core::option::Option<ServiceCommandDescriptor>,
/// query describes the tx command for the module.
/// query describes the queries commands for the module.
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<ServiceCommandDescriptor>,
}
Expand Down Expand Up @@ -103,9 +103,6 @@ pub struct FlagOptions {
/// default_value is the default value as text.
#[prost(string, tag = "4")]
pub default_value: ::prost::alloc::string::String,
/// default value is the default value as text if the flag is used without any value.
#[prost(string, tag = "5")]
pub no_opt_default_value: ::prost::alloc::string::String,
/// deprecated is the usage text to show if this flag is deprecated.
#[prost(string, tag = "6")]
pub deprecated: ::prost::alloc::string::String,
Expand Down
20 changes: 0 additions & 20 deletions cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.autocli.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ impl serde::Serialize for FlagOptions {
if !self.default_value.is_empty() {
len += 1;
}
if !self.no_opt_default_value.is_empty() {
len += 1;
}
if !self.deprecated.is_empty() {
len += 1;
}
Expand All @@ -224,9 +221,6 @@ impl serde::Serialize for FlagOptions {
if !self.default_value.is_empty() {
struct_ser.serialize_field("defaultValue", &self.default_value)?;
}
if !self.no_opt_default_value.is_empty() {
struct_ser.serialize_field("noOptDefaultValue", &self.no_opt_default_value)?;
}
if !self.deprecated.is_empty() {
struct_ser.serialize_field("deprecated", &self.deprecated)?;
}
Expand All @@ -252,8 +246,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
"usage",
"default_value",
"defaultValue",
"no_opt_default_value",
"noOptDefaultValue",
"deprecated",
"shorthand_deprecated",
"shorthandDeprecated",
Expand All @@ -266,7 +258,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
Shorthand,
Usage,
DefaultValue,
NoOptDefaultValue,
Deprecated,
ShorthandDeprecated,
Hidden,
Expand Down Expand Up @@ -299,9 +290,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
"shorthand" => Ok(GeneratedField::Shorthand),
"usage" => Ok(GeneratedField::Usage),
"defaultValue" | "default_value" => Ok(GeneratedField::DefaultValue),
"noOptDefaultValue" | "no_opt_default_value" => {
Ok(GeneratedField::NoOptDefaultValue)
}
"deprecated" => Ok(GeneratedField::Deprecated),
"shorthandDeprecated" | "shorthand_deprecated" => {
Ok(GeneratedField::ShorthandDeprecated)
Expand Down Expand Up @@ -330,7 +318,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
let mut shorthand__ = None;
let mut usage__ = None;
let mut default_value__ = None;
let mut no_opt_default_value__ = None;
let mut deprecated__ = None;
let mut shorthand_deprecated__ = None;
let mut hidden__ = None;
Expand Down Expand Up @@ -360,12 +347,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
}
default_value__ = Some(map_.next_value()?);
}
GeneratedField::NoOptDefaultValue => {
if no_opt_default_value__.is_some() {
return Err(serde::de::Error::duplicate_field("noOptDefaultValue"));
}
no_opt_default_value__ = Some(map_.next_value()?);
}
GeneratedField::Deprecated => {
if deprecated__.is_some() {
return Err(serde::de::Error::duplicate_field("deprecated"));
Expand Down Expand Up @@ -393,7 +374,6 @@ impl<'de> serde::Deserialize<'de> for FlagOptions {
shorthand: shorthand__.unwrap_or_default(),
usage: usage__.unwrap_or_default(),
default_value: default_value__.unwrap_or_default(),
no_opt_default_value: no_opt_default_value__.unwrap_or_default(),
deprecated: deprecated__.unwrap_or_default(),
shorthand_deprecated: shorthand_deprecated__.unwrap_or_default(),
hidden: hidden__.unwrap_or_default(),
Expand Down
10 changes: 8 additions & 2 deletions cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.module.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Module {
/// blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds.
/// If left empty it defaults to the list of account names supplied in the auth module configuration as
/// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
/// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
/// module_account_permissions
#[prost(string, repeated, tag = "1")]
pub blocked_module_accounts_override: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// authority defines the custom module authority. If not set, defaults to the governance module.
#[prost(string, tag = "2")]
pub authority: ::prost::alloc::string::String,
/// restrictions_order specifies the order of send restrictions and should be
/// a list of module names which provide a send restriction instance. If no
/// order is provided, then restrictions will be applied in alphabetical order
/// of module names.
#[prost(string, repeated, tag = "3")]
pub restrictions_order: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
include!("cosmos.bank.module.v1.serde.rs");
// @@protoc_insertion_point(module)
Loading
Loading