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

1// @generated
2/// EventInflationDistribution: Emitted when NIBI tokens are minted on the
3/// network based on Nibiru's inflation schedule.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct EventInflationDistribution {
7    #[prost(message, optional, tag="1")]
8    pub staking_rewards: ::core::option::Option<crate::proto::cosmos::base::v1beta1::Coin>,
9    #[prost(message, optional, tag="2")]
10    pub strategic_reserve: ::core::option::Option<crate::proto::cosmos::base::v1beta1::Coin>,
11    #[prost(message, optional, tag="3")]
12    pub community_pool: ::core::option::Option<crate::proto::cosmos::base::v1beta1::Coin>,
13}
14/// InflationDistribution defines the distribution in which inflation is
15/// allocated through minting on each epoch (staking, community, strategic). It
16/// excludes the team vesting distribution.
17#[allow(clippy::derive_partial_eq_without_eq)]
18#[derive(Clone, PartialEq, ::prost::Message)]
19pub struct InflationDistribution {
20    /// staking_rewards defines the proportion of the minted_denom that is
21    /// to be allocated as staking rewards
22    #[prost(string, tag="1")]
23    pub staking_rewards: ::prost::alloc::string::String,
24    /// community_pool defines the proportion of the minted_denom that is to
25    /// be allocated to the community pool
26    #[prost(string, tag="2")]
27    pub community_pool: ::prost::alloc::string::String,
28    /// strategic_reserves defines the proportion of the minted_denom that
29    /// is to be allocated to the strategic reserves module address
30    #[prost(string, tag="3")]
31    pub strategic_reserves: ::prost::alloc::string::String,
32}
33/// GenesisState defines the inflation module's genesis state.
34#[allow(clippy::derive_partial_eq_without_eq)]
35#[derive(Clone, PartialEq, ::prost::Message)]
36pub struct GenesisState {
37    /// params defines all the parameters of the module.
38    #[prost(message, optional, tag="1")]
39    pub params: ::core::option::Option<Params>,
40    /// period is the amount of past periods, based on the epochs per period param
41    #[prost(uint64, tag="2")]
42    pub period: u64,
43    /// skipped_epochs is the number of epochs that have passed while inflation is
44    /// disabled
45    #[prost(uint64, tag="3")]
46    pub skipped_epochs: u64,
47}
48/// Params holds parameters for the inflation module.
49#[allow(clippy::derive_partial_eq_without_eq)]
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct Params {
52    /// inflation_enabled is the parameter that enables inflation and halts
53    /// increasing the skipped_epochs
54    #[prost(bool, tag="1")]
55    pub inflation_enabled: bool,
56    /// polynomial_factors takes in the variables to calculate polynomial
57    /// inflation
58    #[prost(string, repeated, tag="2")]
59    pub polynomial_factors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
60    /// inflation_distribution of the minted denom
61    #[prost(message, optional, tag="3")]
62    pub inflation_distribution: ::core::option::Option<InflationDistribution>,
63    /// epochs_per_period is the number of epochs that must pass before a new
64    /// period is created
65    #[prost(uint64, tag="4")]
66    pub epochs_per_period: u64,
67    /// periods_per_year is the number of periods that occur in a year
68    #[prost(uint64, tag="5")]
69    pub periods_per_year: u64,
70    /// max_period is the maximum number of periods that have inflation being 
71    /// paid off. After this period, inflation will be disabled.
72    #[prost(uint64, tag="6")]
73    pub max_period: u64,
74    /// has_inflation_started is the parameter that indicates if inflation has
75    /// started. It's set to false at the starts, and stays at true when we toggle
76    /// inflation on. It's used to track num skipped epochs
77    #[prost(bool, tag="7")]
78    pub has_inflation_started: bool,
79}
80/// QueryPeriodRequest is the request type for the Query/Period RPC method.
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct QueryPeriodRequest {
84}
85/// QueryPeriodResponse is the response type for the Query/Period RPC method.
86#[allow(clippy::derive_partial_eq_without_eq)]
87#[derive(Clone, PartialEq, ::prost::Message)]
88pub struct QueryPeriodResponse {
89    /// period is the current minting per epoch provision value.
90    #[prost(uint64, tag="1")]
91    pub period: u64,
92}
93/// QueryEpochMintProvisionRequest is the request type for the
94/// Query/EpochMintProvision RPC method.
95#[allow(clippy::derive_partial_eq_without_eq)]
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct QueryEpochMintProvisionRequest {
98}
99/// QueryEpochMintProvisionResponse is the response type for the
100/// Query/EpochMintProvision RPC method.
101#[allow(clippy::derive_partial_eq_without_eq)]
102#[derive(Clone, PartialEq, ::prost::Message)]
103pub struct QueryEpochMintProvisionResponse {
104    /// epoch_mint_provision is the current minting per epoch provision value.
105    #[prost(message, optional, tag="1")]
106    pub epoch_mint_provision: ::core::option::Option<crate::proto::cosmos::base::v1beta1::DecCoin>,
107}
108/// QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC
109/// method.
110#[allow(clippy::derive_partial_eq_without_eq)]
111#[derive(Clone, PartialEq, ::prost::Message)]
112pub struct QuerySkippedEpochsRequest {
113}
114/// QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs
115/// RPC method.
116#[allow(clippy::derive_partial_eq_without_eq)]
117#[derive(Clone, PartialEq, ::prost::Message)]
118pub struct QuerySkippedEpochsResponse {
119    /// skipped_epochs is the number of epochs that the inflation module has been
120    /// disabled.
121    #[prost(uint64, tag="1")]
122    pub skipped_epochs: u64,
123}
124/// QueryCirculatingSupplyRequest is the request type for the
125/// Query/CirculatingSupply RPC method.
126#[allow(clippy::derive_partial_eq_without_eq)]
127#[derive(Clone, PartialEq, ::prost::Message)]
128pub struct QueryCirculatingSupplyRequest {
129}
130/// QueryCirculatingSupplyResponse is the response type for the
131/// Query/CirculatingSupply RPC method.
132#[allow(clippy::derive_partial_eq_without_eq)]
133#[derive(Clone, PartialEq, ::prost::Message)]
134pub struct QueryCirculatingSupplyResponse {
135    /// circulating_supply is the total amount of coins in circulation
136    #[prost(message, optional, tag="1")]
137    pub circulating_supply: ::core::option::Option<crate::proto::cosmos::base::v1beta1::DecCoin>,
138}
139/// QueryInflationRateRequest is the request type for the Query/InflationRate RPC
140/// method.
141#[allow(clippy::derive_partial_eq_without_eq)]
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct QueryInflationRateRequest {
144}
145/// QueryInflationRateResponse is the response type for the Query/InflationRate
146/// RPC method.
147#[allow(clippy::derive_partial_eq_without_eq)]
148#[derive(Clone, PartialEq, ::prost::Message)]
149pub struct QueryInflationRateResponse {
150    /// inflation_rate by which the total supply increases within one period
151    #[prost(string, tag="1")]
152    pub inflation_rate: ::prost::alloc::string::String,
153}
154/// QueryParamsRequest is the request type for the Query/Params RPC method.
155#[allow(clippy::derive_partial_eq_without_eq)]
156#[derive(Clone, PartialEq, ::prost::Message)]
157pub struct QueryParamsRequest {
158}
159/// QueryParamsResponse is the response type for the Query/Params RPC method.
160#[allow(clippy::derive_partial_eq_without_eq)]
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct QueryParamsResponse {
163    /// params defines the parameters of the module.
164    #[prost(message, optional, tag="1")]
165    pub params: ::core::option::Option<Params>,
166}
167/// MsgToggleInflation defines a message to enable or disable inflation.
168#[allow(clippy::derive_partial_eq_without_eq)]
169#[derive(Clone, PartialEq, ::prost::Message)]
170pub struct MsgToggleInflation {
171    #[prost(string, tag="1")]
172    pub sender: ::prost::alloc::string::String,
173    #[prost(bool, tag="2")]
174    pub enable: bool,
175}
176#[allow(clippy::derive_partial_eq_without_eq)]
177#[derive(Clone, PartialEq, ::prost::Message)]
178pub struct MsgEditInflationParams {
179    #[prost(string, tag="1")]
180    pub sender: ::prost::alloc::string::String,
181    #[prost(bool, tag="2")]
182    pub inflation_enabled: bool,
183    #[prost(string, repeated, tag="3")]
184    pub polynomial_factors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
185    #[prost(message, optional, tag="4")]
186    pub inflation_distribution: ::core::option::Option<InflationDistribution>,
187    #[prost(string, tag="5")]
188    pub epochs_per_period: ::prost::alloc::string::String,
189    #[prost(string, tag="6")]
190    pub periods_per_year: ::prost::alloc::string::String,
191    #[prost(string, tag="7")]
192    pub max_period: ::prost::alloc::string::String,
193}
194#[allow(clippy::derive_partial_eq_without_eq)]
195#[derive(Clone, PartialEq, ::prost::Message)]
196pub struct MsgToggleInflationResponse {
197}
198#[allow(clippy::derive_partial_eq_without_eq)]
199#[derive(Clone, PartialEq, ::prost::Message)]
200pub struct MsgEditInflationParamsResponse {
201}
202/// MsgBurn: allows burning of any token
203#[allow(clippy::derive_partial_eq_without_eq)]
204#[derive(Clone, PartialEq, ::prost::Message)]
205pub struct MsgBurn {
206    #[prost(string, tag="1")]
207    pub sender: ::prost::alloc::string::String,
208    #[prost(message, optional, tag="2")]
209    pub coin: ::core::option::Option<crate::proto::cosmos::base::v1beta1::Coin>,
210}
211#[allow(clippy::derive_partial_eq_without_eq)]
212#[derive(Clone, PartialEq, ::prost::Message)]
213pub struct MsgBurnResponse {
214}
215// @@protoc_insertion_point(module)