Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

release: v0.21 pre-release #26

Merged
merged 14 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions nibiru_proto/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
30 changes: 30 additions & 0 deletions nibiru_proto/amino/amino_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions nibiru_proto/amino/amino_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.descriptor_pb2
import google.protobuf.internal.extension_dict

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

NAME_FIELD_NUMBER: builtins.int
MESSAGE_ENCODING_FIELD_NUMBER: builtins.int
ENCODING_FIELD_NUMBER: builtins.int
FIELD_NAME_FIELD_NUMBER: builtins.int
DONT_OMITEMPTY_FIELD_NUMBER: builtins.int
name: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.str]
"""name is the string used when registering a concrete
type into the Amino type registry, via the Amino codec's
`RegisterConcrete()` method. This string MUST be at most 39
characters long, or else the message will be rejected by the
Ledger hardware device.
"""
message_encoding: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.str]
"""encoding describes the encoding format used by Amino for the given
message. The field type is chosen to be a string for
flexibility, but it should ideally be short and expected to be
machine-readable, for example "base64" or "utf8_json". We
highly recommend to use underscores for word separation instead of spaces.

If left empty, then the Amino encoding is expected to be the same as the
Protobuf one.

This annotation should not be confused with the `encoding`
one which operates on the field level.
"""
encoding: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str]
"""encoding describes the encoding format used by Amino for
the given field. The field type is chosen to be a string for
flexibility, but it should ideally be short and expected to be
machine-readable, for example "base64" or "utf8_json". We
highly recommend to use underscores for word separation instead of spaces.

If left empty, then the Amino encoding is expected to be the same as the
Protobuf one.

This annotation should not be confused with the
`message_encoding` one which operates on the message level.
"""
field_name: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str]
"""field_name sets a different field name (i.e. key name) in
the amino JSON object for the given field.

Example:

message Foo {
string bar = 1 [(amino.field_name) = "baz"];
}

Then the Amino encoding of Foo will be:
`{"baz":"some value"}`
"""
dont_omitempty: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool]
"""dont_omitempty sets the field in the JSON object even if
its value is empty, i.e. equal to the Golang zero value. To learn what
the zero values are, see https://go.dev/ref/spec#The_zero_value.

Fields default to `omitempty`, which is the default behavior when this
annotation is unset. When set to true, then the field value in the
JSON object will be set, i.e. not `undefined`.

Example:

message Foo {
string bar = 1;
string baz = 2 [(amino.dont_omitempty) = true];
}

f := Foo{};
out := AminoJSONEncoder(&f);
out == {"baz":""}
"""
30 changes: 30 additions & 0 deletions nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
class Module(google.protobuf.message.Message):
"""Module is the config object for the runtime module."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

APP_NAME_FIELD_NUMBER: builtins.int
BEGIN_BLOCKERS_FIELD_NUMBER: builtins.int
END_BLOCKERS_FIELD_NUMBER: builtins.int
INIT_GENESIS_FIELD_NUMBER: builtins.int
EXPORT_GENESIS_FIELD_NUMBER: builtins.int
OVERRIDE_STORE_KEYS_FIELD_NUMBER: builtins.int
app_name: builtins.str
"""app_name is the name of the app."""
@property
def begin_blockers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""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.
"""
@property
def end_blockers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""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.
"""
@property
def init_genesis(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""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.
"""
@property
def export_genesis(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""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.
"""
@property
def override_store_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoreKeyConfig]:
"""override_store_keys is an optional list of overrides for the module store keys
to be used in keeper construction.
"""
def __init__(
self,
*,
app_name: builtins.str = ...,
begin_blockers: collections.abc.Iterable[builtins.str] | None = ...,
end_blockers: collections.abc.Iterable[builtins.str] | None = ...,
init_genesis: collections.abc.Iterable[builtins.str] | None = ...,
export_genesis: collections.abc.Iterable[builtins.str] | None = ...,
override_store_keys: collections.abc.Iterable[global___StoreKeyConfig] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "begin_blockers", b"begin_blockers", "end_blockers", b"end_blockers", "export_genesis", b"export_genesis", "init_genesis", b"init_genesis", "override_store_keys", b"override_store_keys"]) -> None: ...

global___Module = Module

@typing_extensions.final
class StoreKeyConfig(google.protobuf.message.Message):
"""StoreKeyConfig may be supplied to override the default module store key, which
is the module name.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

MODULE_NAME_FIELD_NUMBER: builtins.int
KV_STORE_KEY_FIELD_NUMBER: builtins.int
module_name: builtins.str
"""name of the module to override the store key of"""
kv_store_key: builtins.str
"""the kv store key to use instead of the module name."""
def __init__(
self,
*,
module_name: builtins.str = ...,
kv_store_key: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["kv_store_key", b"kv_store_key", "module_name", b"module_name"]) -> None: ...

global___StoreKeyConfig = StoreKeyConfig
30 changes: 30 additions & 0 deletions nibiru_proto/cosmos/app/v1alpha1/config_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 118 additions & 0 deletions nibiru_proto/cosmos/app/v1alpha1/config_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import google.protobuf.any_pb2
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
class Config(google.protobuf.message.Message):
"""Config represents the configuration for a Cosmos SDK ABCI app.
It is intended that all state machine logic including the version of
baseapp and tx handlers (and possibly even Tendermint) that an app needs
can be described in a config object. For compatibility, the framework should
allow a mixture of declarative and imperative app wiring, however, apps
that strive for the maximum ease of maintainability should be able to describe
their state machine with a config object alone.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

MODULES_FIELD_NUMBER: builtins.int
GOLANG_BINDINGS_FIELD_NUMBER: builtins.int
@property
def modules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModuleConfig]:
"""modules are the module configurations for the app."""
@property
def golang_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GolangBinding]:
"""golang_bindings specifies explicit interface to implementation type bindings which
depinject uses to resolve interface inputs to provider functions. The scope of this
field's configuration is global (not module specific).
"""
def __init__(
self,
*,
modules: collections.abc.Iterable[global___ModuleConfig] | None = ...,
golang_bindings: collections.abc.Iterable[global___GolangBinding] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["golang_bindings", b"golang_bindings", "modules", b"modules"]) -> None: ...

global___Config = Config

@typing_extensions.final
class ModuleConfig(google.protobuf.message.Message):
"""ModuleConfig is a module configuration for an app."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

NAME_FIELD_NUMBER: builtins.int
CONFIG_FIELD_NUMBER: builtins.int
GOLANG_BINDINGS_FIELD_NUMBER: builtins.int
name: builtins.str
"""name is the unique name of the module within the app. It should be a name
that persists between different versions of a module so that modules
can be smoothly upgraded to new versions.

For example, for the module cosmos.bank.module.v1.Module, we may chose
to simply name the module "bank" in the app. When we upgrade to
cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same
and the framework knows that the v2 module should receive all the same state
that the v1 module had. Note: modules should provide info on which versions
they can migrate from in the ModuleDescriptor.can_migration_from field.
"""
@property
def config(self) -> google.protobuf.any_pb2.Any:
"""config is the config object for the module. Module config messages should
define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension.
"""
@property
def golang_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GolangBinding]:
"""golang_bindings specifies explicit interface to implementation type bindings which
depinject uses to resolve interface inputs to provider functions. The scope of this
field's configuration is module specific.
"""
def __init__(
self,
*,
name: builtins.str = ...,
config: google.protobuf.any_pb2.Any | None = ...,
golang_bindings: collections.abc.Iterable[global___GolangBinding] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["config", b"config"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "golang_bindings", b"golang_bindings", "name", b"name"]) -> None: ...

global___ModuleConfig = ModuleConfig

@typing_extensions.final
class GolangBinding(google.protobuf.message.Message):
"""GolangBinding is an explicit interface type to implementing type binding for dependency injection."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

INTERFACE_TYPE_FIELD_NUMBER: builtins.int
IMPLEMENTATION_FIELD_NUMBER: builtins.int
interface_type: builtins.str
"""interface_type is the interface type which will be bound to a specific implementation type"""
implementation: builtins.str
"""implementation is the implementing type which will be supplied when an input of type interface is requested"""
def __init__(
self,
*,
interface_type: builtins.str = ...,
implementation: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["implementation", b"implementation", "interface_type", b"interface_type"]) -> None: ...

global___GolangBinding = GolangBinding
Loading