Skip to content
Open
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: 2 additions & 0 deletions packages/neutron-std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pub const NEUTROND_VERSION: &str = include_str!("types/NEUTRON_COMMIT");
mod serde;
pub mod shim;

pub mod util;

#[allow(deprecated)]
pub mod types;

Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-std/src/types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
main
feat/cosmos-sdk-53
112 changes: 0 additions & 112 deletions packages/neutron-std/src/types/capability/v1.rs

This file was deleted.

12 changes: 11 additions & 1 deletion packages/neutron-std/src/types/cosmos/app/runtime/v1alpha1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ pub struct Module {
/// to be used in keeper construction.
#[prost(message, repeated, tag = "6")]
pub override_store_keys: ::prost::alloc::vec::Vec<StoreKeyConfig>,
/// skip_store_keys is an optional list of store keys to skip when constructing the
/// module's keeper. This is useful when a module does not have a store key.
/// NOTE: the provided environment variable will have a fake store service.
#[prost(string, repeated, tag = "11")]
pub skip_store_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// 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/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder>
/// <https://pkg.go.dev/github.com/cosmos/cosmos-sdk/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
Expand All @@ -55,6 +60,11 @@ pub struct Module {
/// no preparecheckstate function will be registered.
#[prost(string, repeated, tag = "9")]
pub prepare_check_staters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// pre_blockers specifies the module names of pre blockers
/// to call in the order in which they should be called. If this is left empty
/// no pre blocker will be registered.
#[prost(string, repeated, tag = "10")]
pub pre_blockers: ::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
3 changes: 2 additions & 1 deletion packages/neutron-std/src/types/cosmos/app/v1alpha1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub struct GolangBinding {
response_type = QueryConfigResponse
)]
pub struct QueryConfigRequest {}
/// QueryConfigRequest is the Query/Config response type.
/// QueryConfigResponse is the Query/Config response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -242,6 +242,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> V1alpha1Querier<'a, Q> {
pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
Self { querier }
}
#[deprecated]
pub fn config(&self) -> Result<QueryConfigResponse, cosmwasm_std::StdError> {
QueryConfigRequest {}.query(self.querier)
}
Expand Down
5 changes: 5 additions & 0 deletions packages/neutron-std/src/types/cosmos/auth/module/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ pub struct Module {
/// authority defines the custom module authority. If not set, defaults to the governance module.
#[prost(string, tag = "3")]
pub authority: ::prost::alloc::string::String,
/// enable_unordered_transactions determines whether unordered transactions should be supported or not.
/// When true, unordered transactions will be validated and processed.
/// When false, unordered transactions will be rejected.
#[prost(bool, tag = "4")]
pub enable_unordered_transactions: bool,
}
/// ModuleAccountPermission represents permissions for a module account.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
36 changes: 0 additions & 36 deletions packages/neutron-std/src/types/cosmos/auth/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ pub struct ModuleAccount {
pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand Down Expand Up @@ -144,8 +142,6 @@ pub struct GenesisState {
pub accounts: ::prost::alloc::vec::Vec<crate::shim::Any>,
}
/// QueryAccountsRequest is the request type for the Query/Accounts RPC method.
///
/// Since: cosmos-sdk 0.43
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -168,8 +164,6 @@ pub struct QueryAccountsRequest {
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
}
/// QueryAccountsResponse is the response type for the Query/Accounts RPC method.
///
/// Since: cosmos-sdk 0.43
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand Down Expand Up @@ -267,8 +261,6 @@ pub struct QueryParamsResponse {
pub params: ::core::option::Option<Params>,
}
/// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -287,8 +279,6 @@ pub struct QueryParamsResponse {
)]
pub struct QueryModuleAccountsRequest {}
/// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand Down Expand Up @@ -344,8 +334,6 @@ pub struct QueryModuleAccountByNameResponse {
pub account: ::core::option::Option<crate::shim::Any>,
}
/// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -364,8 +352,6 @@ pub struct QueryModuleAccountByNameResponse {
)]
pub struct Bech32PrefixRequest {}
/// Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -383,8 +369,6 @@ pub struct Bech32PrefixResponse {
pub bech32_prefix: ::prost::alloc::string::String,
}
/// AddressBytesToStringRequest is the request type for AddressString rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -410,8 +394,6 @@ pub struct AddressBytesToStringRequest {
pub address_bytes: ::prost::alloc::vec::Vec<u8>,
}
/// AddressBytesToStringResponse is the response type for AddressString rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -429,8 +411,6 @@ pub struct AddressBytesToStringResponse {
pub address_string: ::prost::alloc::string::String,
}
/// AddressStringToBytesRequest is the request type for AccountBytes rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -452,8 +432,6 @@ pub struct AddressStringToBytesRequest {
pub address_string: ::prost::alloc::string::String,
}
/// AddressStringToBytesResponse is the response type for AddressBytes rpc method.
///
/// Since: cosmos-sdk 0.46
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -475,8 +453,6 @@ pub struct AddressStringToBytesResponse {
pub address_bytes: ::prost::alloc::vec::Vec<u8>,
}
/// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
///
/// Since: cosmos-sdk 0.46.2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand Down Expand Up @@ -508,8 +484,6 @@ pub struct QueryAccountAddressByIdRequest {
)]
pub id: i64,
/// account_id is the account number of the address to be queried.
///
/// Since: cosmos-sdk 0.47
#[prost(uint64, tag = "2")]
#[serde(alias = "accountID")]
#[serde(
Expand All @@ -519,8 +493,6 @@ pub struct QueryAccountAddressByIdRequest {
pub account_id: u64,
}
/// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
///
/// Since: cosmos-sdk 0.46.2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -538,8 +510,6 @@ pub struct QueryAccountAddressByIdResponse {
pub account_address: ::prost::alloc::string::String,
}
/// QueryAccountInfoRequest is the Query/AccountInfo request type.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -562,8 +532,6 @@ pub struct QueryAccountInfoRequest {
pub address: ::prost::alloc::string::String,
}
/// QueryAccountInfoResponse is the Query/AccountInfo response type.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -582,8 +550,6 @@ pub struct QueryAccountInfoResponse {
pub info: ::core::option::Option<BaseAccount>,
}
/// MsgUpdateParams is the Msg/UpdateParams request type.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand All @@ -608,8 +574,6 @@ pub struct MsgUpdateParams {
}
/// MsgUpdateParamsResponse defines the response structure for executing a
/// MsgUpdateParams message.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
Expand Down
Loading