This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: v0.15.0-alpha.1 nibiru_proto code gen
- Loading branch information
1 parent
58e7501
commit b4f4215
Showing
52 changed files
with
1,146 additions
and
763 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,60 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import builtins | ||
import google.protobuf.descriptor | ||
import google.protobuf.duration_pb2 | ||
import google.protobuf.message | ||
import google.protobuf.timestamp_pb2 | ||
import typing | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
||
class EpochInfo(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
IDENTIFIER_FIELD_NUMBER: builtins.int | ||
START_TIME_FIELD_NUMBER: builtins.int | ||
DURATION_FIELD_NUMBER: builtins.int | ||
CURRENT_EPOCH_FIELD_NUMBER: builtins.int | ||
CURRENT_EPOCH_START_TIME_FIELD_NUMBER: builtins.int | ||
EPOCH_COUNTING_STARTED_FIELD_NUMBER: builtins.int | ||
CURRENT_EPOCH_START_HEIGHT_FIELD_NUMBER: builtins.int | ||
identifier: typing.Text | ||
"""A string identifier for the epoch. e.g. "15min" or "1hour" """ | ||
|
||
@property | ||
def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: | ||
"""When the epoch repetitino should start.""" | ||
pass | ||
@property | ||
def duration(self) -> google.protobuf.duration_pb2.Duration: | ||
"""How long each epoch lasts for.""" | ||
pass | ||
current_epoch: builtins.int | ||
"""The current epoch number, starting from 1.""" | ||
|
||
@property | ||
def current_epoch_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: | ||
"""The start timestamp of the current epoch.""" | ||
pass | ||
epoch_counting_started: builtins.bool | ||
"""Whether or not this epoch has started. Set to true if current blocktime >= start_time.""" | ||
|
||
current_epoch_start_height: builtins.int | ||
"""The block height at which the current epoch started at.""" | ||
|
||
def __init__(self, | ||
*, | ||
identifier: typing.Text = ..., | ||
start_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., | ||
duration: typing.Optional[google.protobuf.duration_pb2.Duration] = ..., | ||
current_epoch: builtins.int = ..., | ||
current_epoch_start_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., | ||
epoch_counting_started: builtins.bool = ..., | ||
current_epoch_start_height: builtins.int = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal["current_epoch_start_time",b"current_epoch_start_time","duration",b"duration","start_time",b"start_time"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal["current_epoch",b"current_epoch","current_epoch_start_height",b"current_epoch_start_height","current_epoch_start_time",b"current_epoch_start_time","duration",b"duration","epoch_counting_started",b"epoch_counting_started","identifier",b"identifier","start_time",b"start_time"]) -> None: ... | ||
global___EpochInfo = EpochInfo |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.