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

1// @generated
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct EventEpochStart {
5    /// Epoch number, starting from 1.
6    #[prost(uint64, tag="1")]
7    pub epoch_number: u64,
8    /// The start timestamp of the epoch.
9    #[prost(message, optional, tag="2")]
10    pub epoch_start_time: ::core::option::Option<::prost_types::Timestamp>,
11}
12#[allow(clippy::derive_partial_eq_without_eq)]
13#[derive(Clone, PartialEq, ::prost::Message)]
14pub struct EventEpochEnd {
15    /// Epoch number, starting from 1.
16    #[prost(uint64, tag="1")]
17    pub epoch_number: u64,
18}
19#[allow(clippy::derive_partial_eq_without_eq)]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct EpochInfo {
22    /// A string identifier for the epoch. e.g. "15min" or "1hour"
23    #[prost(string, tag="1")]
24    pub identifier: ::prost::alloc::string::String,
25    /// When the epoch repetitino should start.
26    #[prost(message, optional, tag="2")]
27    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
28    /// How long each epoch lasts for.
29    #[prost(message, optional, tag="3")]
30    pub duration: ::core::option::Option<::prost_types::Duration>,
31    /// The current epoch number, starting from 1.
32    #[prost(uint64, tag="4")]
33    pub current_epoch: u64,
34    /// The start timestamp of the current epoch.
35    #[prost(message, optional, tag="5")]
36    pub current_epoch_start_time: ::core::option::Option<::prost_types::Timestamp>,
37    /// Whether or not this epoch has started. Set to true if current blocktime >=
38    /// start_time.
39    #[prost(bool, tag="6")]
40    pub epoch_counting_started: bool,
41    /// The block height at which the current epoch started at.
42    #[prost(int64, tag="7")]
43    pub current_epoch_start_height: i64,
44}
45/// GenesisState defines the epochs module's genesis state.
46#[allow(clippy::derive_partial_eq_without_eq)]
47#[derive(Clone, PartialEq, ::prost::Message)]
48pub struct GenesisState {
49    #[prost(message, repeated, tag="1")]
50    pub epochs: ::prost::alloc::vec::Vec<EpochInfo>,
51}
52#[allow(clippy::derive_partial_eq_without_eq)]
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct QueryEpochInfosRequest {
55}
56#[allow(clippy::derive_partial_eq_without_eq)]
57#[derive(Clone, PartialEq, ::prost::Message)]
58pub struct QueryEpochInfosResponse {
59    #[prost(message, repeated, tag="1")]
60    pub epochs: ::prost::alloc::vec::Vec<EpochInfo>,
61}
62#[allow(clippy::derive_partial_eq_without_eq)]
63#[derive(Clone, PartialEq, ::prost::Message)]
64pub struct QueryCurrentEpochRequest {
65    #[prost(string, tag="1")]
66    pub identifier: ::prost::alloc::string::String,
67}
68#[allow(clippy::derive_partial_eq_without_eq)]
69#[derive(Clone, PartialEq, ::prost::Message)]
70pub struct QueryCurrentEpochResponse {
71    #[prost(uint64, tag="1")]
72    pub current_epoch: u64,
73}
74// @@protoc_insertion_point(module)