-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from neutron-org/feat/remove-stargate
feat: replace proto build #NTRN-326
- Loading branch information
Showing
285 changed files
with
46,612 additions
and
3,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a6eae66545df6e128da2c7cac81ff4c1c02deb7b | ||
v4.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod v1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
use neutron_std_derive::CosmwasmExt; | ||
/// Capability defines an implementation of an object capability. The index | ||
/// provided to a Capability must be globally unique. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/capability.v1.Capability")] | ||
pub struct Capability { | ||
#[prost(uint64, tag = "1")] | ||
#[serde( | ||
serialize_with = "crate::serde::as_str::serialize", | ||
deserialize_with = "crate::serde::as_str::deserialize" | ||
)] | ||
pub index: u64, | ||
} | ||
/// Owner defines a single capability owner. An owner is defined by the name of | ||
/// capability and the module name. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/capability.v1.Owner")] | ||
pub struct Owner { | ||
#[prost(string, tag = "1")] | ||
pub module: ::prost::alloc::string::String, | ||
#[prost(string, tag = "2")] | ||
pub name: ::prost::alloc::string::String, | ||
} | ||
/// CapabilityOwners defines a set of owners of a single Capability. The set of | ||
/// owners must be unique. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/capability.v1.CapabilityOwners")] | ||
pub struct CapabilityOwners { | ||
#[prost(message, repeated, tag = "1")] | ||
pub owners: ::prost::alloc::vec::Vec<Owner>, | ||
} | ||
/// GenesisOwners defines the capability owners with their corresponding index. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/capability.v1.GenesisOwners")] | ||
pub struct GenesisOwners { | ||
/// index is the index of the capability owner. | ||
#[prost(uint64, tag = "1")] | ||
#[serde( | ||
serialize_with = "crate::serde::as_str::serialize", | ||
deserialize_with = "crate::serde::as_str::deserialize" | ||
)] | ||
pub index: u64, | ||
/// index_owners are the owners at the given index. | ||
#[prost(message, optional, tag = "2")] | ||
pub index_owners: ::core::option::Option<CapabilityOwners>, | ||
} | ||
/// GenesisState defines the capability module's genesis state. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/capability.v1.GenesisState")] | ||
pub struct GenesisState { | ||
/// index is the capability global index. | ||
#[prost(uint64, tag = "1")] | ||
#[serde( | ||
serialize_with = "crate::serde::as_str::serialize", | ||
deserialize_with = "crate::serde::as_str::deserialize" | ||
)] | ||
pub index: u64, | ||
/// owners represents a map from index to owners of the capability index | ||
/// index key is string to allow amino marshalling. | ||
#[prost(message, repeated, tag = "2")] | ||
pub owners: ::prost::alloc::vec::Vec<GenesisOwners>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod runtime; | ||
pub mod v1alpha1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod v1alpha1; |
80 changes: 80 additions & 0 deletions
80
packages/neutron-sdk/src/proto_types/cosmos/app/runtime/v1alpha1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
use neutron_std_derive::CosmwasmExt; | ||
/// Module is the config object for the runtime module. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/cosmos.app.runtime.v1alpha1.Module")] | ||
pub struct Module { | ||
/// app_name is the name of the app. | ||
#[prost(string, tag = "1")] | ||
pub app_name: ::prost::alloc::string::String, | ||
/// begin_blockers specifies the module names of begin blockers | ||
/// to call in the order in which they should be called. If this is left empty | ||
/// no begin blocker will be registered. | ||
#[prost(string, repeated, tag = "2")] | ||
pub begin_blockers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
/// end_blockers specifies the module names of the end blockers | ||
/// to call in the order in which they should be called. If this is left empty | ||
/// no end blocker will be registered. | ||
#[prost(string, repeated, tag = "3")] | ||
pub end_blockers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
/// init_genesis specifies the module names of init genesis functions | ||
/// to call in the order in which they should be called. If this is left empty | ||
/// no init genesis function will be registered. | ||
#[prost(string, repeated, tag = "4")] | ||
pub init_genesis: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
/// export_genesis specifies the order in which to export module genesis data. | ||
/// If this is left empty, the init_genesis order will be used for export genesis | ||
/// if it is specified. | ||
#[prost(string, repeated, tag = "5")] | ||
pub export_genesis: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
/// override_store_keys is an optional list of overrides for the module store keys | ||
/// 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. | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive( | ||
Clone, | ||
PartialEq, | ||
Eq, | ||
::prost::Message, | ||
::serde::Serialize, | ||
::serde::Deserialize, | ||
::schemars::JsonSchema, | ||
CosmwasmExt, | ||
)] | ||
#[proto_message(type_url = "/cosmos.app.runtime.v1alpha1.StoreKeyConfig")] | ||
pub struct StoreKeyConfig { | ||
/// name of the module to override the store key of | ||
#[prost(string, tag = "1")] | ||
pub module_name: ::prost::alloc::string::String, | ||
/// the kv store key to use instead of the module name. | ||
#[prost(string, tag = "2")] | ||
pub kv_store_key: ::prost::alloc::string::String, | ||
} |
Oops, something went wrong.