nibiru_std/proto/buf/
nibiru.sudo.v1.rs

1// @generated
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct Sudoers {
5    /// Root: The "root" user.
6    #[prost(string, tag="1")]
7    pub root: ::prost::alloc::string::String,
8    /// Contracts: The set of contracts with elevated permissions.
9    #[prost(string, repeated, tag="2")]
10    pub contracts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
11}
12/// GenesisState: State for migrations and genesis for the x/sudo module.
13#[allow(clippy::derive_partial_eq_without_eq)]
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct GenesisState {
16    #[prost(message, optional, tag="1")]
17    pub sudoers: ::core::option::Option<Sudoers>,
18}
19/// EventUpdateSudoers: ABCI event emitted upon execution of "MsgEditSudoers".
20#[allow(clippy::derive_partial_eq_without_eq)]
21#[derive(Clone, PartialEq, ::prost::Message)]
22pub struct EventUpdateSudoers {
23    #[prost(message, optional, tag="1")]
24    pub sudoers: ::core::option::Option<Sudoers>,
25    /// Action is the type of update that occurred to the "sudoers"
26    #[prost(string, tag="2")]
27    pub action: ::prost::alloc::string::String,
28}
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct QuerySudoersRequest {
32}
33/// QuerySudoersResponse indicates the successful execution of MsgEditSudeors.
34#[allow(clippy::derive_partial_eq_without_eq)]
35#[derive(Clone, PartialEq, ::prost::Message)]
36pub struct QuerySudoersResponse {
37    #[prost(message, optional, tag="1")]
38    pub sudoers: ::core::option::Option<Sudoers>,
39}
40// -------------------------- EditSudoers --------------------------
41
42/// MsgEditSudoers: Msg to update the "Sudoers" state. 
43#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct MsgEditSudoers {
46    /// Action: identifier for the type of edit that will take place. Using this
47    ///    action field prevents us from needing to create several similar message
48    ///    types.
49    #[prost(string, tag="1")]
50    pub action: ::prost::alloc::string::String,
51    /// Contracts: An input payload.
52    #[prost(string, repeated, tag="2")]
53    pub contracts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
54    /// Sender: Address for the signer of the transaction.
55    #[prost(string, tag="3")]
56    pub sender: ::prost::alloc::string::String,
57}
58/// MsgEditSudoersResponse indicates the successful execution of MsgEditSudeors.
59#[allow(clippy::derive_partial_eq_without_eq)]
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct MsgEditSudoersResponse {
62}
63// -------------------------- ChangeRoot --------------------------
64
65/// MsgChangeRoot: Msg to update the "Sudoers" state. 
66#[allow(clippy::derive_partial_eq_without_eq)]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct MsgChangeRoot {
69    /// Sender: Address for the signer of the transaction.
70    #[prost(string, tag="1")]
71    pub sender: ::prost::alloc::string::String,
72    /// NewRoot: New root address.
73    #[prost(string, tag="2")]
74    pub new_root: ::prost::alloc::string::String,
75}
76/// MsgChangeRootResponse indicates the successful execution of MsgChangeRoot.
77#[allow(clippy::derive_partial_eq_without_eq)]
78#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct MsgChangeRootResponse {
80}
81// @@protoc_insertion_point(module)