diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0f19509e..ebc80c09 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,11 +13,8 @@ jobs: lint-py: runs-on: ubuntu-latest timeout-minutes: 2 - # `jobs..defaults`: + # `jobs..defaults`: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun - # defaults: - # run: - # working-directory: "pysdk" steps: - name: Check out the repo uses: actions/checkout@v3 @@ -27,19 +24,6 @@ jobs: with: python-version: "3.8.16" - - name: "Load pip cache if cache exists" - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip - restore-keys: ${{ runner.os }}-pip - - name: "Install and run flake8" - run: | - python -m pip install flake8 - flake8 pysdk - flake8 tests - flake8 examples - # ---------------------------------------------- # Try to load a cached poetry binary # See https://github.com/snok/install-poetry#caching-the-poetry-installation for the source @@ -69,59 +53,9 @@ jobs: # if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root - - name: Run checks for black and isort + - name: Run black, isort, flake8 and mypy run: | poetry run black . --check - poetry run isort . - - mypy-static: - runs-on: ubuntu-latest - # `jobs..defaults`: - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun - defaults: - run: - working-directory: "pysdk" - timeout-minutes: 2 - steps: - - name: "Check out the repo" - uses: actions/checkout@v3 - - - name: "Setup Python" - uses: actions/setup-python@v2 - with: - python-version: "3.8.16" - # ---------------------------------------------- - # Try to load a cached poetry binary - # See https://github.com/snok/install-poetry#caching-the-poetry-installation for the source - # ---------------------------------------------- - - name: "Load cached Poetry installation" - uses: actions/cache@v2 - with: - path: ~/.local - key: poetry-2 # increment to reset cache - - - name: "Install poetry" - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - version: latest - - name: "Load cached venv" - id: cached-poetry-dependencies - uses: actions/cache@v2 - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - - - name: "Install dependencies with poetry (using cache)" - # if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root - - - name: "poetry run mypy [files ...] [-h] [-v]" - run: | + poetry run isort . --check + poetry run flake8 poetry run mypy --version - # poetry run mypy tests --exclude 'pysdk/*' - - # TODO: epic(pysdk): Add static type checking for pysdk (uncomment above) - # https://github.com/NibiruChain/py-sdk/issues/245 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8aac1a64..c6e3ab2d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,35 +1,34 @@ repos: - - repo: https://github.com/floatingpurr/sync_with_poetry - rev: "1.1.0" # the revision or tag to clone at - hooks: - - id: sync_with_poetry - args: [] # optional args - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: end-of-file-fixer - exclude: nibiru/proto/.+ - - - id: trailing-whitespace - exclude: nibiru/proto/.+ - - - repo: https://github.com/psf/black - rev: 22.12.0 - hooks: - - id: black - files: \.py$ - exclude: nibiru/proto/.+ - - - repo: https://github.com/PyCQA/isort - rev: 5.12.0 - hooks: - - id: isort - files: \.py$ - exclude: nibiru/proto/.+ - args: ["--profile", "black"] - - - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 - hooks: - - id: flake8 - args: ["--max-line-length", "120"] +- repo: local + hooks: + - id: black + name: black + entry: poetry run black + language: system + types: [python] + exclude: > + (?x)^( + nibiru_proto/.+ + )$ +- repo: local + hooks: + - id: isort + name: isort + entry: poetry run isort + language: system + types: [python] + exclude: > + (?x)^( + nibiru_proto/.+ + )$ +- repo: local + hooks: + - id: flake8 + name: flake8 + entry: poetry run flake8 + language: system + types: [python] + exclude: > + (?x)^( + nibiru_proto/.+ + )$ diff --git a/CHANGELOG.md b/CHANGELOG.md index 98c729c8..8c6e7da5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,17 +5,17 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -## [v0.21.9](https://github.com/NibiruChain/py-sdk/tree/v0.21.9) +## [v0.21.10](https://github.com/NibiruChain/py-sdk/tree/v0.21.10) - [#252](https://github.com/NibiruChain/py-sdk/pull/252) Updates the `nibiru-proto` dependency to v0.21.9, corresponding to the same version of NibiruChain/nibiru. - deps!: This version of the chain uses Cosmos-SDK v0.47 - [#250](https://github.com/NibiruChain/py-sdk/pull/250): feat(perp): add query markets - [#243](https://github.com/NibiruChain/py-sdk/pull/243): epic(tmrpc): all passing tests for v0.21 -- [#238](https://github.com/NibiruChain/py-sdk/pull/238): epic: migration for v0.21 with passing tests -- [#238](https://github.com/NibiruChain/py-sdk/pull/238): epic: migration for v0.21 with passing tests +- [#238](https://github.com/NibiruChain/py-sdk/pull/238): epic: migration for v0.21 with passing tests +- [#238](https://github.com/NibiruChain/py-sdk/pull/238): epic: migration for v0.21 with passing tests - [#235](https://github.com/NibiruChain/py-sdk/pull/235): ci: Run tests on release branches - [#225](https://github.com/NibiruChain/py-sdk/pull/225): chore(deps): bump requests from 2.28.2 to 2.31.0 -- [#249](https://github.com/NibiruChain/py-sdk/pull/249): chore(deps): Bump aiohttp from 3.8.4 to 3.8.5 in /pysdk +- [#249](https://github.com/NibiruChain/py-sdk/pull/249): chore(deps): Bump aiohttp from 3.8.4 to 3.8.5 in /pysdk ## v0.19.0 diff --git a/HACKING.md b/HACKING.md index 27e38741..431fceaa 100644 --- a/HACKING.md +++ b/HACKING.md @@ -112,6 +112,12 @@ poetry install This will resolve dependencies between each of the project's packages and install them into a virtual environment. +## Generating nibiru protos + +```bash +poetry run ./scripts/proto-gen-py.sh +``` + ## Running tests #### Setting environment variables diff --git a/nibiru_proto/__init__.py b/nibiru_proto/__init__.py new file mode 100644 index 00000000..51038631 --- /dev/null +++ b/nibiru_proto/__init__.py @@ -0,0 +1,5 @@ +import os +import sys + +sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) +version = '0.21.10' diff --git a/nibiru_proto/amino/amino_pb2.py b/nibiru_proto/amino/amino_pb2.py new file mode 100644 index 00000000..2c6be15e --- /dev/null +++ b/nibiru_proto/amino/amino_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: amino/amino.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x61mino/amino.proto\x12\x05\x61mino\x1a google/protobuf/descriptor.proto:6\n\x04name\x12\x1f.google.protobuf.MessageOptions\x18\xf1\x8c\xa6\x05 \x01(\tR\x04name:M\n\x10message_encoding\x12\x1f.google.protobuf.MessageOptions\x18\xf2\x8c\xa6\x05 \x01(\tR\x0fmessageEncoding:<\n\x08\x65ncoding\x12\x1d.google.protobuf.FieldOptions\x18\xf3\x8c\xa6\x05 \x01(\tR\x08\x65ncoding:?\n\nfield_name\x12\x1d.google.protobuf.FieldOptions\x18\xf4\x8c\xa6\x05 \x01(\tR\tfieldName:G\n\x0e\x64ont_omitempty\x12\x1d.google.protobuf.FieldOptions\x18\xf5\x8c\xa6\x05 \x01(\x08R\rdontOmitemptyB-Z+github.com/cosmos/cosmos-sdk/types/tx/aminob\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'amino.amino_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(name) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(message_encoding) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(encoding) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(field_name) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(dont_omitempty) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/types/tx/amino' +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/amino/amino_pb2.pyi b/nibiru_proto/amino/amino_pb2.pyi new file mode 100644 index 00000000..8d3ea94a --- /dev/null +++ b/nibiru_proto/amino/amino_pb2.pyi @@ -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":""} +""" diff --git a/nibiru_proto/amino/amino_pb2_grpc.py b/nibiru_proto/amino/amino_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/amino/amino_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.py b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.py new file mode 100644 index 00000000..ae4815c8 --- /dev/null +++ b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/app/runtime/v1alpha1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(cosmos/app/runtime/v1alpha1/module.proto\x12\x1b\x63osmos.app.runtime.v1alpha1\x1a cosmos/app/v1alpha1/module.proto\"\xd9\x02\n\x06Module\x12\x19\n\x08\x61pp_name\x18\x01 \x01(\tR\x07\x61ppName\x12%\n\x0e\x62\x65gin_blockers\x18\x02 \x03(\tR\rbeginBlockers\x12!\n\x0c\x65nd_blockers\x18\x03 \x03(\tR\x0b\x65ndBlockers\x12!\n\x0cinit_genesis\x18\x04 \x03(\tR\x0binitGenesis\x12%\n\x0e\x65xport_genesis\x18\x05 \x03(\tR\rexportGenesis\x12[\n\x13override_store_keys\x18\x06 \x03(\x0b\x32+.cosmos.app.runtime.v1alpha1.StoreKeyConfigR\x11overrideStoreKeys:C\xba\xc0\x96\xda\x01=\n$github.com/cosmos/cosmos-sdk/runtime\x12\x15\n\x13\x63osmos.app.v1alpha1\"S\n\x0eStoreKeyConfig\x12\x1f\n\x0bmodule_name\x18\x01 \x01(\tR\nmoduleName\x12 \n\x0ckv_store_key\x18\x02 \x01(\tR\nkvStoreKeyb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.app.runtime.v1alpha1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001=\n$github.com/cosmos/cosmos-sdk/runtime\022\025\n\023cosmos.app.v1alpha1' + _MODULE._serialized_start=108 + _MODULE._serialized_end=453 + _STOREKEYCONFIG._serialized_start=455 + _STOREKEYCONFIG._serialized_end=538 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.pyi b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.pyi new file mode 100644 index 00000000..7c5ee927 --- /dev/null +++ b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2.pyi @@ -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 diff --git a/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2_grpc.py b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/app/runtime/v1alpha1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/app/v1alpha1/config_pb2.py b/nibiru_proto/cosmos/app/v1alpha1/config_pb2.py new file mode 100644 index 00000000..4e025df1 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/config_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/app/v1alpha1/config.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/app/v1alpha1/config.proto\x12\x13\x63osmos.app.v1alpha1\x1a\x19google/protobuf/any.proto\"\x92\x01\n\x06\x43onfig\x12;\n\x07modules\x18\x01 \x03(\x0b\x32!.cosmos.app.v1alpha1.ModuleConfigR\x07modules\x12K\n\x0fgolang_bindings\x18\x02 \x03(\x0b\x32\".cosmos.app.v1alpha1.GolangBindingR\x0egolangBindings\"\x9d\x01\n\x0cModuleConfig\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x63onfig\x12K\n\x0fgolang_bindings\x18\x03 \x03(\x0b\x32\".cosmos.app.v1alpha1.GolangBindingR\x0egolangBindings\"^\n\rGolangBinding\x12%\n\x0einterface_type\x18\x01 \x01(\tR\rinterfaceType\x12&\n\x0eimplementation\x18\x02 \x01(\tR\x0eimplementationb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.app.v1alpha1.config_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _CONFIG._serialized_start=85 + _CONFIG._serialized_end=231 + _MODULECONFIG._serialized_start=234 + _MODULECONFIG._serialized_end=391 + _GOLANGBINDING._serialized_start=393 + _GOLANGBINDING._serialized_end=487 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/app/v1alpha1/config_pb2.pyi b/nibiru_proto/cosmos/app/v1alpha1/config_pb2.pyi new file mode 100644 index 00000000..6c4baa31 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/config_pb2.pyi @@ -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 diff --git a/nibiru_proto/cosmos/app/v1alpha1/config_pb2_grpc.py b/nibiru_proto/cosmos/app/v1alpha1/config_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/config_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/app/v1alpha1/module_pb2.py b/nibiru_proto/cosmos/app/v1alpha1/module_pb2.py new file mode 100644 index 00000000..6e6d0b20 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/module_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/app/v1alpha1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/app/v1alpha1/module.proto\x12\x13\x63osmos.app.v1alpha1\x1a google/protobuf/descriptor.proto\"\xc7\x01\n\x10ModuleDescriptor\x12\x1b\n\tgo_import\x18\x01 \x01(\tR\x08goImport\x12\x46\n\x0buse_package\x18\x02 \x03(\x0b\x32%.cosmos.app.v1alpha1.PackageReferenceR\nusePackage\x12N\n\x10\x63\x61n_migrate_from\x18\x03 \x03(\x0b\x32$.cosmos.app.v1alpha1.MigrateFromInfoR\x0e\x63\x61nMigrateFrom\"B\n\x10PackageReference\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n\x08revision\x18\x02 \x01(\rR\x08revision\")\n\x0fMigrateFromInfo\x12\x16\n\x06module\x18\x01 \x01(\tR\x06module:a\n\x06module\x12\x1f.google.protobuf.MessageOptions\x18\x87\xe8\xa2\x1b \x01(\x0b\x32%.cosmos.app.v1alpha1.ModuleDescriptorR\x06moduleb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.app.v1alpha1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(module) + + DESCRIPTOR._options = None + _MODULEDESCRIPTOR._serialized_start=92 + _MODULEDESCRIPTOR._serialized_end=291 + _PACKAGEREFERENCE._serialized_start=293 + _PACKAGEREFERENCE._serialized_end=359 + _MIGRATEFROMINFO._serialized_start=361 + _MIGRATEFROMINFO._serialized_end=402 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/app/v1alpha1/module_pb2.pyi b/nibiru_proto/cosmos/app/v1alpha1/module_pb2.pyi new file mode 100644 index 00000000..f2e7fdc6 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/module_pb2.pyi @@ -0,0 +1,151 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.extension_dict +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 ModuleDescriptor(google.protobuf.message.Message): + """ModuleDescriptor describes an app module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GO_IMPORT_FIELD_NUMBER: builtins.int + USE_PACKAGE_FIELD_NUMBER: builtins.int + CAN_MIGRATE_FROM_FIELD_NUMBER: builtins.int + go_import: builtins.str + """go_import names the package that should be imported by an app to load the + module in the runtime module registry. It is required to make debugging + of configuration errors easier for users. + """ + @property + def use_package(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PackageReference]: + """use_package refers to a protobuf package that this module + uses and exposes to the world. In an app, only one module should "use" + or own a single protobuf package. It is assumed that the module uses + all of the .proto files in a single package. + """ + @property + def can_migrate_from(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MigrateFromInfo]: + """can_migrate_from defines which module versions this module can migrate + state from. The framework will check that one module version is able to + migrate from a previous module version before attempting to update its + config. It is assumed that modules can transitively migrate from earlier + versions. For instance if v3 declares it can migrate from v2, and v2 + declares it can migrate from v1, the framework knows how to migrate + from v1 to v3, assuming all 3 module versions are registered at runtime. + """ + def __init__( + self, + *, + go_import: builtins.str = ..., + use_package: collections.abc.Iterable[global___PackageReference] | None = ..., + can_migrate_from: collections.abc.Iterable[global___MigrateFromInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["can_migrate_from", b"can_migrate_from", "go_import", b"go_import", "use_package", b"use_package"]) -> None: ... + +global___ModuleDescriptor = ModuleDescriptor + +@typing_extensions.final +class PackageReference(google.protobuf.message.Message): + """PackageReference is a reference to a protobuf package used by a module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + REVISION_FIELD_NUMBER: builtins.int + name: builtins.str + """name is the fully-qualified name of the package.""" + revision: builtins.int + """revision is the optional revision of the package that is being used. + Protobuf packages used in Cosmos should generally have a major version + as the last part of the package name, ex. foo.bar.baz.v1. + The revision of a package can be thought of as the minor version of a + package which has additional backwards compatible definitions that weren't + present in a previous version. + + A package should indicate its revision with a source code comment + above the package declaration in one of its files containing the + text "Revision N" where N is an integer revision. All packages start + at revision 0 the first time they are released in a module. + + When a new version of a module is released and items are added to existing + .proto files, these definitions should contain comments of the form + "Since Revision N" where N is an integer revision. + + When the module runtime starts up, it will check the pinned proto + image and panic if there are runtime protobuf definitions that are not + in the pinned descriptor which do not have + a "Since Revision N" comment or have a "Since Revision N" comment where + N is <= to the revision specified here. This indicates that the protobuf + files have been updated, but the pinned file descriptor hasn't. + + If there are items in the pinned file descriptor with a revision + greater than the value indicated here, this will also cause a panic + as it may mean that the pinned descriptor for a legacy module has been + improperly updated or that there is some other versioning discrepancy. + Runtime protobuf definitions will also be checked for compatibility + with pinned file descriptors to make sure there are no incompatible changes. + + This behavior ensures that: + * pinned proto images are up-to-date + * protobuf files are carefully annotated with revision comments which + are important good client UX + * protobuf files are changed in backwards and forwards compatible ways + """ + def __init__( + self, + *, + name: builtins.str = ..., + revision: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "revision", b"revision"]) -> None: ... + +global___PackageReference = PackageReference + +@typing_extensions.final +class MigrateFromInfo(google.protobuf.message.Message): + """MigrateFromInfo is information on a module version that a newer module + can migrate from. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_FIELD_NUMBER: builtins.int + module: builtins.str + """module is the fully-qualified protobuf name of the module config object + for the previous module version, ex: "cosmos.group.module.v1.Module". + """ + def __init__( + self, + *, + module: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module", b"module"]) -> None: ... + +global___MigrateFromInfo = MigrateFromInfo + +MODULE_FIELD_NUMBER: builtins.int +module: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, global___ModuleDescriptor] +"""module indicates that this proto type is a config object for an app module +and optionally provides other descriptive information about the module. +It is recommended that a new module config object and go module is versioned +for every state machine breaking version of a module. The recommended +pattern for doing this is to put module config objects in a separate proto +package from the API they expose. Ex: the cosmos.group.v1 API would be +exposed by module configs cosmos.group.module.v1, cosmos.group.module.v2, etc. +""" diff --git a/nibiru_proto/cosmos/app/v1alpha1/module_pb2_grpc.py b/nibiru_proto/cosmos/app/v1alpha1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/app/v1alpha1/query_pb2.py b/nibiru_proto/cosmos/app/v1alpha1/query_pb2.py new file mode 100644 index 00000000..fb824647 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/query_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/app/v1alpha1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import config_pb2 as cosmos_dot_app_dot_v1alpha1_dot_config__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/app/v1alpha1/query.proto\x12\x13\x63osmos.app.v1alpha1\x1a cosmos/app/v1alpha1/config.proto\"\x14\n\x12QueryConfigRequest\"J\n\x13QueryConfigResponse\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1b.cosmos.app.v1alpha1.ConfigR\x06\x63onfig2f\n\x05Query\x12]\n\x06\x43onfig\x12\'.cosmos.app.v1alpha1.QueryConfigRequest\x1a(.cosmos.app.v1alpha1.QueryConfigResponse\"\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.app.v1alpha1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _QUERYCONFIGREQUEST._serialized_start=90 + _QUERYCONFIGREQUEST._serialized_end=110 + _QUERYCONFIGRESPONSE._serialized_start=112 + _QUERYCONFIGRESPONSE._serialized_end=186 + _QUERY._serialized_start=188 + _QUERY._serialized_end=290 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/app/v1alpha1/query_pb2.pyi b/nibiru_proto/cosmos/app/v1alpha1/query_pb2.pyi new file mode 100644 index 00000000..0f119881 --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/query_pb2.pyi @@ -0,0 +1,48 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.app.v1alpha1.config_pb2 +import google.protobuf.descriptor +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 QueryConfigRequest(google.protobuf.message.Message): + """QueryConfigRequest is the Query/Config request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryConfigRequest = QueryConfigRequest + +@typing_extensions.final +class QueryConfigResponse(google.protobuf.message.Message): + """QueryConfigRequest is the Query/Config response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONFIG_FIELD_NUMBER: builtins.int + @property + def config(self) -> cosmos.app.v1alpha1.config_pb2.Config: + """config is the current app config.""" + def __init__( + self, + *, + config: cosmos.app.v1alpha1.config_pb2.Config | 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"]) -> None: ... + +global___QueryConfigResponse = QueryConfigResponse diff --git a/nibiru_proto/cosmos/app/v1alpha1/query_pb2_grpc.py b/nibiru_proto/cosmos/app/v1alpha1/query_pb2_grpc.py new file mode 100644 index 00000000..95285eff --- /dev/null +++ b/nibiru_proto/cosmos/app/v1alpha1/query_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.app.v1alpha1 import query_pb2 as cosmos_dot_app_dot_v1alpha1_dot_query__pb2 + + +class QueryStub(object): + """Query is the app module query service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Config = channel.unary_unary( + '/cosmos.app.v1alpha1.Query/Config', + request_serializer=cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigRequest.SerializeToString, + response_deserializer=cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigResponse.FromString, + ) + + +class QueryServicer(object): + """Query is the app module query service. + """ + + def Config(self, request, context): + """Config returns the current app config. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Config': grpc.unary_unary_rpc_method_handler( + servicer.Config, + request_deserializer=cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigRequest.FromString, + response_serializer=cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.app.v1alpha1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query is the app module query service. + """ + + @staticmethod + def Config(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.app.v1alpha1.Query/Config', + cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigRequest.SerializeToString, + cosmos_dot_app_dot_v1alpha1_dot_query__pb2.QueryConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/auth/module/v1/module_pb2.py b/nibiru_proto/cosmos/auth/module/v1/module_pb2.py new file mode 100644 index 00000000..21756c09 --- /dev/null +++ b/nibiru_proto/cosmos/auth/module/v1/module_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/auth/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/auth/module/v1/module.proto\x12\x15\x63osmos.auth.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\xe6\x01\n\x06Module\x12#\n\rbech32_prefix\x18\x01 \x01(\tR\x0c\x62\x65\x63h32Prefix\x12l\n\x1amodule_account_permissions\x18\x02 \x03(\x0b\x32..cosmos.auth.module.v1.ModuleAccountPermissionR\x18moduleAccountPermissions\x12\x1c\n\tauthority\x18\x03 \x01(\tR\tauthority:+\xba\xc0\x96\xda\x01%\n#github.com/cosmos/cosmos-sdk/x/auth\"U\n\x17ModuleAccountPermission\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12 \n\x0bpermissions\x18\x02 \x03(\tR\x0bpermissionsb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.auth.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001%\n#github.com/cosmos/cosmos-sdk/x/auth' + _MODULE._serialized_start=96 + _MODULE._serialized_end=326 + _MODULEACCOUNTPERMISSION._serialized_start=328 + _MODULEACCOUNTPERMISSION._serialized_end=413 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/auth/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/auth/module/v1/module_pb2.pyi new file mode 100644 index 00000000..4448a3ee --- /dev/null +++ b/nibiru_proto/cosmos/auth/module/v1/module_pb2.pyi @@ -0,0 +1,69 @@ +""" +@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 auth module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BECH32_PREFIX_FIELD_NUMBER: builtins.int + MODULE_ACCOUNT_PERMISSIONS_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + bech32_prefix: builtins.str + """bech32_prefix is the bech32 account prefix for the app.""" + @property + def module_account_permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModuleAccountPermission]: + """module_account_permissions are module account permissions.""" + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + bech32_prefix: builtins.str = ..., + module_account_permissions: collections.abc.Iterable[global___ModuleAccountPermission] | None = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "bech32_prefix", b"bech32_prefix", "module_account_permissions", b"module_account_permissions"]) -> None: ... + +global___Module = Module + +@typing_extensions.final +class ModuleAccountPermission(google.protobuf.message.Message): + """ModuleAccountPermission represents permissions for a module account.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNT_FIELD_NUMBER: builtins.int + PERMISSIONS_FIELD_NUMBER: builtins.int + account: builtins.str + """account is the name of the module.""" + @property + def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """permissions are the permissions this module has. Currently recognized + values are minter, burner and staking. + """ + def __init__( + self, + *, + account: builtins.str = ..., + permissions: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account", b"account", "permissions", b"permissions"]) -> None: ... + +global___ModuleAccountPermission = ModuleAccountPermission diff --git a/nibiru_proto/cosmos/auth/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/auth/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/auth/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.py b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.py new file mode 100644 index 00000000..9f95133d --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/auth/v1beta1/auth.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/auth/v1beta1/auth.proto\x12\x13\x63osmos.auth.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\xa1\x02\n\x0b\x42\x61seAccount\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12V\n\x07pub_key\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\'\xea\xde\x1f\x14public_key,omitempty\xa2\xe7\xb0*\npublic_keyR\x06pubKey\x12%\n\x0e\x61\x63\x63ount_number\x18\x03 \x01(\x04R\raccountNumber\x12\x1a\n\x08sequence\x18\x04 \x01(\x04R\x08sequence:C\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1c\x63osmos.auth.v1beta1.AccountI\x8a\xe7\xb0*\x16\x63osmos-sdk/BaseAccount\"\xd9\x01\n\rModuleAccount\x12I\n\x0c\x62\x61se_account\x18\x01 \x01(\x0b\x32 .cosmos.auth.v1beta1.BaseAccountB\x04\xd0\xde\x1f\x01R\x0b\x62\x61seAccount\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0bpermissions\x18\x03 \x03(\tR\x0bpermissions:G\x88\xa0\x1f\x00\xca\xb4-\"cosmos.auth.v1beta1.ModuleAccountI\x8a\xe7\xb0*\x18\x63osmos-sdk/ModuleAccount\"\\\n\x10ModuleCredential\x12\x1f\n\x0bmodule_name\x18\x01 \x01(\tR\nmoduleName\x12\'\n\x0f\x64\x65rivation_keys\x18\x02 \x03(\x0cR\x0e\x64\x65rivationKeys\"\xd7\x02\n\x06Params\x12.\n\x13max_memo_characters\x18\x01 \x01(\x04R\x11maxMemoCharacters\x12 \n\x0ctx_sig_limit\x18\x02 \x01(\x04R\ntxSigLimit\x12\x30\n\x15tx_size_cost_per_byte\x18\x03 \x01(\x04R\x11txSizeCostPerByte\x12O\n\x17sig_verify_cost_ed25519\x18\x04 \x01(\x04\x42\x18\xe2\xde\x1f\x14SigVerifyCostED25519R\x14sigVerifyCostEd25519\x12U\n\x19sig_verify_cost_secp256k1\x18\x05 \x01(\x04\x42\x1a\xe2\xde\x1f\x16SigVerifyCostSecp256k1R\x16sigVerifyCostSecp256k1:!\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x18\x63osmos-sdk/x/auth/ParamsB+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.auth.v1beta1.auth_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/auth/types' + _BASEACCOUNT.fields_by_name['address']._options = None + _BASEACCOUNT.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _BASEACCOUNT.fields_by_name['pub_key']._options = None + _BASEACCOUNT.fields_by_name['pub_key']._serialized_options = b'\352\336\037\024public_key,omitempty\242\347\260*\npublic_key' + _BASEACCOUNT._options = None + _BASEACCOUNT._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\034cosmos.auth.v1beta1.AccountI\212\347\260*\026cosmos-sdk/BaseAccount' + _MODULEACCOUNT.fields_by_name['base_account']._options = None + _MODULEACCOUNT.fields_by_name['base_account']._serialized_options = b'\320\336\037\001' + _MODULEACCOUNT._options = None + _MODULEACCOUNT._serialized_options = b'\210\240\037\000\312\264-\"cosmos.auth.v1beta1.ModuleAccountI\212\347\260*\030cosmos-sdk/ModuleAccount' + _PARAMS.fields_by_name['sig_verify_cost_ed25519']._options = None + _PARAMS.fields_by_name['sig_verify_cost_ed25519']._serialized_options = b'\342\336\037\024SigVerifyCostED25519' + _PARAMS.fields_by_name['sig_verify_cost_secp256k1']._options = None + _PARAMS.fields_by_name['sig_verify_cost_secp256k1']._serialized_options = b'\342\336\037\026SigVerifyCostSecp256k1' + _PARAMS._options = None + _PARAMS._serialized_options = b'\350\240\037\001\212\347\260*\030cosmos-sdk/x/auth/Params' + _BASEACCOUNT._serialized_start=151 + _BASEACCOUNT._serialized_end=440 + _MODULEACCOUNT._serialized_start=443 + _MODULEACCOUNT._serialized_end=660 + _MODULECREDENTIAL._serialized_start=662 + _MODULECREDENTIAL._serialized_end=754 + _PARAMS._serialized_start=757 + _PARAMS._serialized_end=1100 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.pyi b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.pyi new file mode 100644 index 00000000..aa10e114 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2.pyi @@ -0,0 +1,132 @@ +""" +@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 BaseAccount(google.protobuf.message.Message): + """BaseAccount defines a base account type. It contains all the necessary fields + for basic account functionality. Any custom account type should extend this + type for additional functionality (e.g. vesting). + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + address: builtins.str + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: ... + account_number: builtins.int + sequence: builtins.int + def __init__( + self, + *, + address: builtins.str = ..., + pub_key: google.protobuf.any_pb2.Any | None = ..., + account_number: builtins.int = ..., + sequence: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["account_number", b"account_number", "address", b"address", "pub_key", b"pub_key", "sequence", b"sequence"]) -> None: ... + +global___BaseAccount = BaseAccount + +@typing_extensions.final +class ModuleAccount(google.protobuf.message.Message): + """ModuleAccount defines an account for modules that holds coins on a pool.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_ACCOUNT_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + PERMISSIONS_FIELD_NUMBER: builtins.int + @property + def base_account(self) -> global___BaseAccount: ... + name: builtins.str + @property + def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + base_account: global___BaseAccount | None = ..., + name: builtins.str = ..., + permissions: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_account", b"base_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_account", b"base_account", "name", b"name", "permissions", b"permissions"]) -> None: ... + +global___ModuleAccount = ModuleAccount + +@typing_extensions.final +class ModuleCredential(google.protobuf.message.Message): + """ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_NAME_FIELD_NUMBER: builtins.int + DERIVATION_KEYS_FIELD_NUMBER: builtins.int + module_name: builtins.str + """module_name is the name of the module used for address derivation (passed into address.Module).""" + @property + def derivation_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """derivation_keys is for deriving a module account address (passed into address.Module) + adding more keys creates sub-account addresses (passed into address.Derive) + """ + def __init__( + self, + *, + module_name: builtins.str = ..., + derivation_keys: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["derivation_keys", b"derivation_keys", "module_name", b"module_name"]) -> None: ... + +global___ModuleCredential = ModuleCredential + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params defines the parameters for the auth module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_MEMO_CHARACTERS_FIELD_NUMBER: builtins.int + TX_SIG_LIMIT_FIELD_NUMBER: builtins.int + TX_SIZE_COST_PER_BYTE_FIELD_NUMBER: builtins.int + SIG_VERIFY_COST_ED25519_FIELD_NUMBER: builtins.int + SIG_VERIFY_COST_SECP256K1_FIELD_NUMBER: builtins.int + max_memo_characters: builtins.int + tx_sig_limit: builtins.int + tx_size_cost_per_byte: builtins.int + sig_verify_cost_ed25519: builtins.int + sig_verify_cost_secp256k1: builtins.int + def __init__( + self, + *, + max_memo_characters: builtins.int = ..., + tx_sig_limit: builtins.int = ..., + tx_size_cost_per_byte: builtins.int = ..., + sig_verify_cost_ed25519: builtins.int = ..., + sig_verify_cost_secp256k1: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["max_memo_characters", b"max_memo_characters", "sig_verify_cost_ed25519", b"sig_verify_cost_ed25519", "sig_verify_cost_secp256k1", b"sig_verify_cost_secp256k1", "tx_sig_limit", b"tx_sig_limit", "tx_size_cost_per_byte", b"tx_size_cost_per_byte"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/cosmos/auth/v1beta1/auth_pb2_grpc.py b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/auth_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..562322c2 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/auth/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.auth.v1beta1 import auth_pb2 as cosmos_dot_auth_dot_v1beta1_dot_auth__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/auth/v1beta1/genesis.proto\x12\x13\x63osmos.auth.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\x1a\x11\x61mino/amino.proto\"\x80\x01\n\x0cGenesisState\x12>\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.auth.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\x12\x30\n\x08\x61\x63\x63ounts\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08\x61\x63\x63ountsB+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.auth.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/auth/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=159 + _GENESISSTATE._serialized_end=287 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..9e4632c1 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.auth.v1beta1.auth_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the auth module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + ACCOUNTS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: + """params defines all the parameters of the module.""" + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """accounts are the accounts present at genesis.""" + def __init__( + self, + *, + params: cosmos.auth.v1beta1.auth_pb2.Params | None = ..., + accounts: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts", "params", b"params"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/auth/v1beta1/query_pb2.py b/nibiru_proto/cosmos/auth/v1beta1/query_pb2.py new file mode 100644 index 00000000..685bbbb7 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/query_pb2.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/auth/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.auth.v1beta1 import auth_pb2 as cosmos_dot_auth_dot_v1beta1_dot_auth__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.query.v1 import query_pb2 as cosmos_dot_query_dot_v1_dot_query__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/auth/v1beta1/query.proto\x12\x13\x63osmos.auth.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1b\x63osmos/query/v1/query.proto\"^\n\x14QueryAccountsRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb4\x01\n\x15QueryAccountsResponse\x12R\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyB \xca\xb4-\x1c\x63osmos.auth.v1beta1.AccountIR\x08\x61\x63\x63ounts\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"S\n\x13QueryAccountRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"h\n\x14QueryAccountResponse\x12P\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB \xca\xb4-\x1c\x63osmos.auth.v1beta1.AccountIR\x07\x61\x63\x63ount\"\x14\n\x12QueryParamsRequest\"P\n\x13QueryParamsResponse\x12\x39\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.auth.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\x1c\n\x1aQueryModuleAccountsRequest\"w\n\x1bQueryModuleAccountsResponse\x12X\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyB&\xca\xb4-\"cosmos.auth.v1beta1.ModuleAccountIR\x08\x61\x63\x63ounts\"5\n\x1fQueryModuleAccountByNameRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"z\n QueryModuleAccountByNameResponse\x12V\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB&\xca\xb4-\"cosmos.auth.v1beta1.ModuleAccountIR\x07\x61\x63\x63ount\"\x15\n\x13\x42\x65\x63h32PrefixRequest\";\n\x14\x42\x65\x63h32PrefixResponse\x12#\n\rbech32_prefix\x18\x01 \x01(\tR\x0c\x62\x65\x63h32Prefix\"B\n\x1b\x41\x64\x64ressBytesToStringRequest\x12#\n\raddress_bytes\x18\x01 \x01(\x0cR\x0c\x61\x64\x64ressBytes\"E\n\x1c\x41\x64\x64ressBytesToStringResponse\x12%\n\x0e\x61\x64\x64ress_string\x18\x01 \x01(\tR\raddressString\"D\n\x1b\x41\x64\x64ressStringToBytesRequest\x12%\n\x0e\x61\x64\x64ress_string\x18\x01 \x01(\tR\raddressString\"C\n\x1c\x41\x64\x64ressStringToBytesResponse\x12#\n\raddress_bytes\x18\x01 \x01(\x0cR\x0c\x61\x64\x64ressBytes\"S\n\x1eQueryAccountAddressByIDRequest\x12\x12\n\x02id\x18\x01 \x01(\x03\x42\x02\x18\x01R\x02id\x12\x1d\n\naccount_id\x18\x02 \x01(\x04R\taccountId\"d\n\x1fQueryAccountAddressByIDResponse\x12\x41\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0e\x61\x63\x63ountAddress\"M\n\x17QueryAccountInfoRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"P\n\x18QueryAccountInfoResponse\x12\x34\n\x04info\x18\x01 \x01(\x0b\x32 .cosmos.auth.v1beta1.BaseAccountR\x04info2\xef\x0c\n\x05Query\x12\x8d\x01\n\x08\x41\x63\x63ounts\x12).cosmos.auth.v1beta1.QueryAccountsRequest\x1a*.cosmos.auth.v1beta1.QueryAccountsResponse\"*\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/auth/v1beta1/accounts\x12\x94\x01\n\x07\x41\x63\x63ount\x12(.cosmos.auth.v1beta1.QueryAccountRequest\x1a).cosmos.auth.v1beta1.QueryAccountResponse\"4\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02)\x12\'/cosmos/auth/v1beta1/accounts/{address}\x12\xb5\x01\n\x12\x41\x63\x63ountAddressByID\x12\x33.cosmos.auth.v1beta1.QueryAccountAddressByIDRequest\x1a\x34.cosmos.auth.v1beta1.QueryAccountAddressByIDResponse\"4\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02)\x12\'/cosmos/auth/v1beta1/address_by_id/{id}\x12\x85\x01\n\x06Params\x12\'.cosmos.auth.v1beta1.QueryParamsRequest\x1a(.cosmos.auth.v1beta1.QueryParamsResponse\"(\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/auth/v1beta1/params\x12\xa6\x01\n\x0eModuleAccounts\x12/.cosmos.auth.v1beta1.QueryModuleAccountsRequest\x1a\x30.cosmos.auth.v1beta1.QueryModuleAccountsResponse\"1\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02&\x12$/cosmos/auth/v1beta1/module_accounts\x12\xbc\x01\n\x13ModuleAccountByName\x12\x34.cosmos.auth.v1beta1.QueryModuleAccountByNameRequest\x1a\x35.cosmos.auth.v1beta1.QueryModuleAccountByNameResponse\"8\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02-\x12+/cosmos/auth/v1beta1/module_accounts/{name}\x12\x88\x01\n\x0c\x42\x65\x63h32Prefix\x12(.cosmos.auth.v1beta1.Bech32PrefixRequest\x1a).cosmos.auth.v1beta1.Bech32PrefixResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/auth/v1beta1/bech32\x12\xb0\x01\n\x14\x41\x64\x64ressBytesToString\x12\x30.cosmos.auth.v1beta1.AddressBytesToStringRequest\x1a\x31.cosmos.auth.v1beta1.AddressBytesToStringResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/auth/v1beta1/bech32/{address_bytes}\x12\xb1\x01\n\x14\x41\x64\x64ressStringToBytes\x12\x30.cosmos.auth.v1beta1.AddressStringToBytesRequest\x1a\x31.cosmos.auth.v1beta1.AddressStringToBytesResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/auth/v1beta1/bech32/{address_string}\x12\xa4\x01\n\x0b\x41\x63\x63ountInfo\x12,.cosmos.auth.v1beta1.QueryAccountInfoRequest\x1a-.cosmos.auth.v1beta1.QueryAccountInfoResponse\"8\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02-\x12+/cosmos/auth/v1beta1/account_info/{address}B+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.auth.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/auth/types' + _QUERYACCOUNTSRESPONSE.fields_by_name['accounts']._options = None + _QUERYACCOUNTSRESPONSE.fields_by_name['accounts']._serialized_options = b'\312\264-\034cosmos.auth.v1beta1.AccountI' + _QUERYACCOUNTREQUEST.fields_by_name['address']._options = None + _QUERYACCOUNTREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYACCOUNTREQUEST._options = None + _QUERYACCOUNTREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYACCOUNTRESPONSE.fields_by_name['account']._options = None + _QUERYACCOUNTRESPONSE.fields_by_name['account']._serialized_options = b'\312\264-\034cosmos.auth.v1beta1.AccountI' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._options = None + _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._serialized_options = b'\312\264-\"cosmos.auth.v1beta1.ModuleAccountI' + _QUERYMODULEACCOUNTBYNAMERESPONSE.fields_by_name['account']._options = None + _QUERYMODULEACCOUNTBYNAMERESPONSE.fields_by_name['account']._serialized_options = b'\312\264-\"cosmos.auth.v1beta1.ModuleAccountI' + _QUERYACCOUNTADDRESSBYIDREQUEST.fields_by_name['id']._options = None + _QUERYACCOUNTADDRESSBYIDREQUEST.fields_by_name['id']._serialized_options = b'\030\001' + _QUERYACCOUNTADDRESSBYIDRESPONSE.fields_by_name['account_address']._options = None + _QUERYACCOUNTADDRESSBYIDRESPONSE.fields_by_name['account_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYACCOUNTINFOREQUEST.fields_by_name['address']._options = None + _QUERYACCOUNTINFOREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERY.methods_by_name['Accounts']._options = None + _QUERY.methods_by_name['Accounts']._serialized_options = b'\210\347\260*\001\202\323\344\223\002\037\022\035/cosmos/auth/v1beta1/accounts' + _QUERY.methods_by_name['Account']._options = None + _QUERY.methods_by_name['Account']._serialized_options = b'\210\347\260*\001\202\323\344\223\002)\022\'/cosmos/auth/v1beta1/accounts/{address}' + _QUERY.methods_by_name['AccountAddressByID']._options = None + _QUERY.methods_by_name['AccountAddressByID']._serialized_options = b'\210\347\260*\001\202\323\344\223\002)\022\'/cosmos/auth/v1beta1/address_by_id/{id}' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\210\347\260*\001\202\323\344\223\002\035\022\033/cosmos/auth/v1beta1/params' + _QUERY.methods_by_name['ModuleAccounts']._options = None + _QUERY.methods_by_name['ModuleAccounts']._serialized_options = b'\210\347\260*\001\202\323\344\223\002&\022$/cosmos/auth/v1beta1/module_accounts' + _QUERY.methods_by_name['ModuleAccountByName']._options = None + _QUERY.methods_by_name['ModuleAccountByName']._serialized_options = b'\210\347\260*\001\202\323\344\223\002-\022+/cosmos/auth/v1beta1/module_accounts/{name}' + _QUERY.methods_by_name['Bech32Prefix']._options = None + _QUERY.methods_by_name['Bech32Prefix']._serialized_options = b'\202\323\344\223\002\035\022\033/cosmos/auth/v1beta1/bech32' + _QUERY.methods_by_name['AddressBytesToString']._options = None + _QUERY.methods_by_name['AddressBytesToString']._serialized_options = b'\202\323\344\223\002-\022+/cosmos/auth/v1beta1/bech32/{address_bytes}' + _QUERY.methods_by_name['AddressStringToBytes']._options = None + _QUERY.methods_by_name['AddressStringToBytes']._serialized_options = b'\202\323\344\223\002.\022,/cosmos/auth/v1beta1/bech32/{address_string}' + _QUERY.methods_by_name['AccountInfo']._options = None + _QUERY.methods_by_name['AccountInfo']._serialized_options = b'\210\347\260*\001\202\323\344\223\002-\022+/cosmos/auth/v1beta1/account_info/{address}' + _QUERYACCOUNTSREQUEST._serialized_start=267 + _QUERYACCOUNTSREQUEST._serialized_end=361 + _QUERYACCOUNTSRESPONSE._serialized_start=364 + _QUERYACCOUNTSRESPONSE._serialized_end=544 + _QUERYACCOUNTREQUEST._serialized_start=546 + _QUERYACCOUNTREQUEST._serialized_end=629 + _QUERYACCOUNTRESPONSE._serialized_start=631 + _QUERYACCOUNTRESPONSE._serialized_end=735 + _QUERYPARAMSREQUEST._serialized_start=737 + _QUERYPARAMSREQUEST._serialized_end=757 + _QUERYPARAMSRESPONSE._serialized_start=759 + _QUERYPARAMSRESPONSE._serialized_end=839 + _QUERYMODULEACCOUNTSREQUEST._serialized_start=841 + _QUERYMODULEACCOUNTSREQUEST._serialized_end=869 + _QUERYMODULEACCOUNTSRESPONSE._serialized_start=871 + _QUERYMODULEACCOUNTSRESPONSE._serialized_end=990 + _QUERYMODULEACCOUNTBYNAMEREQUEST._serialized_start=992 + _QUERYMODULEACCOUNTBYNAMEREQUEST._serialized_end=1045 + _QUERYMODULEACCOUNTBYNAMERESPONSE._serialized_start=1047 + _QUERYMODULEACCOUNTBYNAMERESPONSE._serialized_end=1169 + _BECH32PREFIXREQUEST._serialized_start=1171 + _BECH32PREFIXREQUEST._serialized_end=1192 + _BECH32PREFIXRESPONSE._serialized_start=1194 + _BECH32PREFIXRESPONSE._serialized_end=1253 + _ADDRESSBYTESTOSTRINGREQUEST._serialized_start=1255 + _ADDRESSBYTESTOSTRINGREQUEST._serialized_end=1321 + _ADDRESSBYTESTOSTRINGRESPONSE._serialized_start=1323 + _ADDRESSBYTESTOSTRINGRESPONSE._serialized_end=1392 + _ADDRESSSTRINGTOBYTESREQUEST._serialized_start=1394 + _ADDRESSSTRINGTOBYTESREQUEST._serialized_end=1462 + _ADDRESSSTRINGTOBYTESRESPONSE._serialized_start=1464 + _ADDRESSSTRINGTOBYTESRESPONSE._serialized_end=1531 + _QUERYACCOUNTADDRESSBYIDREQUEST._serialized_start=1533 + _QUERYACCOUNTADDRESSBYIDREQUEST._serialized_end=1616 + _QUERYACCOUNTADDRESSBYIDRESPONSE._serialized_start=1618 + _QUERYACCOUNTADDRESSBYIDRESPONSE._serialized_end=1718 + _QUERYACCOUNTINFOREQUEST._serialized_start=1720 + _QUERYACCOUNTINFOREQUEST._serialized_end=1797 + _QUERYACCOUNTINFORESPONSE._serialized_start=1799 + _QUERYACCOUNTINFORESPONSE._serialized_end=1879 + _QUERY._serialized_start=1882 + _QUERY._serialized_end=3529 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/auth/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/auth/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..84ee695c --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/query_pb2.pyi @@ -0,0 +1,425 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.auth.v1beta1.auth_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +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 QueryAccountsRequest(google.protobuf.message.Message): + """QueryAccountsRequest is the request type for the Query/Accounts RPC method. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryAccountsRequest = QueryAccountsRequest + +@typing_extensions.final +class QueryAccountsResponse(google.protobuf.message.Message): + """QueryAccountsResponse is the response type for the Query/Accounts RPC method. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """accounts are the existing accounts""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + accounts: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts", "pagination", b"pagination"]) -> None: ... + +global___QueryAccountsResponse = QueryAccountsResponse + +@typing_extensions.final +class QueryAccountRequest(google.protobuf.message.Message): + """QueryAccountRequest is the request type for the Query/Account RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address defines the address to query for.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___QueryAccountRequest = QueryAccountRequest + +@typing_extensions.final +class QueryAccountResponse(google.protobuf.message.Message): + """QueryAccountResponse is the response type for the Query/Account RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNT_FIELD_NUMBER: builtins.int + @property + def account(self) -> google.protobuf.any_pb2.Any: + """account defines the account of the corresponding address.""" + def __init__( + self, + *, + account: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["account", b"account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["account", b"account"]) -> None: ... + +global___QueryAccountResponse = QueryAccountResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: + """params defines the parameters of the module.""" + def __init__( + self, + *, + params: cosmos.auth.v1beta1.auth_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryModuleAccountsRequest(google.protobuf.message.Message): + """QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryModuleAccountsRequest = QueryModuleAccountsRequest + +@typing_extensions.final +class QueryModuleAccountsResponse(google.protobuf.message.Message): + """QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNTS_FIELD_NUMBER: builtins.int + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__( + self, + *, + accounts: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts"]) -> None: ... + +global___QueryModuleAccountsResponse = QueryModuleAccountsResponse + +@typing_extensions.final +class QueryModuleAccountByNameRequest(google.protobuf.message.Message): + """QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ... + +global___QueryModuleAccountByNameRequest = QueryModuleAccountByNameRequest + +@typing_extensions.final +class QueryModuleAccountByNameResponse(google.protobuf.message.Message): + """QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNT_FIELD_NUMBER: builtins.int + @property + def account(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + account: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["account", b"account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["account", b"account"]) -> None: ... + +global___QueryModuleAccountByNameResponse = QueryModuleAccountByNameResponse + +@typing_extensions.final +class Bech32PrefixRequest(google.protobuf.message.Message): + """Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Bech32PrefixRequest = Bech32PrefixRequest + +@typing_extensions.final +class Bech32PrefixResponse(google.protobuf.message.Message): + """Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BECH32_PREFIX_FIELD_NUMBER: builtins.int + bech32_prefix: builtins.str + def __init__( + self, + *, + bech32_prefix: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bech32_prefix", b"bech32_prefix"]) -> None: ... + +global___Bech32PrefixResponse = Bech32PrefixResponse + +@typing_extensions.final +class AddressBytesToStringRequest(google.protobuf.message.Message): + """AddressBytesToStringRequest is the request type for AddressString rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_BYTES_FIELD_NUMBER: builtins.int + address_bytes: builtins.bytes + def __init__( + self, + *, + address_bytes: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address_bytes", b"address_bytes"]) -> None: ... + +global___AddressBytesToStringRequest = AddressBytesToStringRequest + +@typing_extensions.final +class AddressBytesToStringResponse(google.protobuf.message.Message): + """AddressBytesToStringResponse is the response type for AddressString rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_STRING_FIELD_NUMBER: builtins.int + address_string: builtins.str + def __init__( + self, + *, + address_string: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address_string", b"address_string"]) -> None: ... + +global___AddressBytesToStringResponse = AddressBytesToStringResponse + +@typing_extensions.final +class AddressStringToBytesRequest(google.protobuf.message.Message): + """AddressStringToBytesRequest is the request type for AccountBytes rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_STRING_FIELD_NUMBER: builtins.int + address_string: builtins.str + def __init__( + self, + *, + address_string: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address_string", b"address_string"]) -> None: ... + +global___AddressStringToBytesRequest = AddressStringToBytesRequest + +@typing_extensions.final +class AddressStringToBytesResponse(google.protobuf.message.Message): + """AddressStringToBytesResponse is the response type for AddressBytes rpc method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_BYTES_FIELD_NUMBER: builtins.int + address_bytes: builtins.bytes + def __init__( + self, + *, + address_bytes: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address_bytes", b"address_bytes"]) -> None: ... + +global___AddressStringToBytesResponse = AddressStringToBytesResponse + +@typing_extensions.final +class QueryAccountAddressByIDRequest(google.protobuf.message.Message): + """QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + + Since: cosmos-sdk 0.46.2 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + ACCOUNT_ID_FIELD_NUMBER: builtins.int + id: builtins.int + """Deprecated, use account_id instead + + id is the account number of the address to be queried. This field + should have been an uint64 (like all account numbers), and will be + updated to uint64 in a future version of the auth query. + """ + account_id: builtins.int + """account_id is the account number of the address to be queried. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + id: builtins.int = ..., + account_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account_id", b"account_id", "id", b"id"]) -> None: ... + +global___QueryAccountAddressByIDRequest = QueryAccountAddressByIDRequest + +@typing_extensions.final +class QueryAccountAddressByIDResponse(google.protobuf.message.Message): + """QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + + Since: cosmos-sdk 0.46.2 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNT_ADDRESS_FIELD_NUMBER: builtins.int + account_address: builtins.str + def __init__( + self, + *, + account_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account_address", b"account_address"]) -> None: ... + +global___QueryAccountAddressByIDResponse = QueryAccountAddressByIDResponse + +@typing_extensions.final +class QueryAccountInfoRequest(google.protobuf.message.Message): + """QueryAccountInfoRequest is the Query/AccountInfo request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address string.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___QueryAccountInfoRequest = QueryAccountInfoRequest + +@typing_extensions.final +class QueryAccountInfoResponse(google.protobuf.message.Message): + """QueryAccountInfoResponse is the Query/AccountInfo response type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> cosmos.auth.v1beta1.auth_pb2.BaseAccount: + """info is the account info which is represented by BaseAccount.""" + def __init__( + self, + *, + info: cosmos.auth.v1beta1.auth_pb2.BaseAccount | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... + +global___QueryAccountInfoResponse = QueryAccountInfoResponse diff --git a/nibiru_proto/cosmos/auth/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/auth/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..1dd66e8a --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/query_pb2_grpc.py @@ -0,0 +1,393 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.auth.v1beta1 import query_pb2 as cosmos_dot_auth_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Accounts = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/Accounts', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.FromString, + ) + self.Account = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/Account', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountResponse.FromString, + ) + self.AccountAddressByID = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/AccountAddressByID', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDResponse.FromString, + ) + self.Params = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/Params', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.ModuleAccounts = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/ModuleAccounts', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsResponse.FromString, + ) + self.ModuleAccountByName = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/ModuleAccountByName', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameResponse.FromString, + ) + self.Bech32Prefix = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/Bech32Prefix', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixResponse.FromString, + ) + self.AddressBytesToString = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/AddressBytesToString', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringResponse.FromString, + ) + self.AddressStringToBytes = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/AddressStringToBytes', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesResponse.FromString, + ) + self.AccountInfo = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/AccountInfo', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Accounts(self, request, context): + """Accounts returns all the existing accounts. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + + Since: cosmos-sdk 0.43 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Account(self, request, context): + """Account returns account details based on address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AccountAddressByID(self, request, context): + """AccountAddressByID returns account address based on account number. + + Since: cosmos-sdk 0.46.2 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params queries all parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModuleAccounts(self, request, context): + """ModuleAccounts returns all the existing module accounts. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModuleAccountByName(self, request, context): + """ModuleAccountByName returns the module account info by module name + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Bech32Prefix(self, request, context): + """Bech32Prefix queries bech32Prefix + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddressBytesToString(self, request, context): + """AddressBytesToString converts Account Address bytes to string + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddressStringToBytes(self, request, context): + """AddressStringToBytes converts Address string to bytes + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AccountInfo(self, request, context): + """AccountInfo queries account info which is common to all account types. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Accounts': grpc.unary_unary_rpc_method_handler( + servicer.Accounts, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.SerializeToString, + ), + 'Account': grpc.unary_unary_rpc_method_handler( + servicer.Account, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountResponse.SerializeToString, + ), + 'AccountAddressByID': grpc.unary_unary_rpc_method_handler( + servicer.AccountAddressByID, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'ModuleAccounts': grpc.unary_unary_rpc_method_handler( + servicer.ModuleAccounts, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsResponse.SerializeToString, + ), + 'ModuleAccountByName': grpc.unary_unary_rpc_method_handler( + servicer.ModuleAccountByName, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameResponse.SerializeToString, + ), + 'Bech32Prefix': grpc.unary_unary_rpc_method_handler( + servicer.Bech32Prefix, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixResponse.SerializeToString, + ), + 'AddressBytesToString': grpc.unary_unary_rpc_method_handler( + servicer.AddressBytesToString, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringResponse.SerializeToString, + ), + 'AddressStringToBytes': grpc.unary_unary_rpc_method_handler( + servicer.AddressStringToBytes, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesResponse.SerializeToString, + ), + 'AccountInfo': grpc.unary_unary_rpc_method_handler( + servicer.AccountInfo, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.auth.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Accounts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/Accounts', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Account(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/Account', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AccountAddressByID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/AccountAddressByID', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountAddressByIDResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/Params', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleAccounts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/ModuleAccounts', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleAccountByName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/ModuleAccountByName', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryModuleAccountByNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Bech32Prefix(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/Bech32Prefix', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.Bech32PrefixResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddressBytesToString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/AddressBytesToString', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressBytesToStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddressStringToBytes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/AddressStringToBytes', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.AddressStringToBytesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AccountInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/AccountInfo', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.py new file mode 100644 index 00000000..a98bdb22 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/auth/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos.auth.v1beta1 import auth_pb2 as cosmos_dot_auth_dot_v1beta1_dot_auth__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/auth/v1beta1/tx.proto\x12\x13\x63osmos.auth.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\"\xbf\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12>\n\x06params\x18\x02 \x01(\x0b\x32\x1b.cosmos.auth.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:4\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*!cosmos-sdk/x/auth/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2p\n\x03Msg\x12\x62\n\x0cUpdateParams\x12$.cosmos.auth.v1beta1.MsgUpdateParams\x1a,.cosmos.auth.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.auth.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/auth/types' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*!cosmos-sdk/x/auth/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGUPDATEPARAMS._serialized_start=179 + _MSGUPDATEPARAMS._serialized_end=370 + _MSGUPDATEPARAMSRESPONSE._serialized_start=372 + _MSGUPDATEPARAMSRESPONSE._serialized_end=397 + _MSG._serialized_start=399 + _MSG._serialized_end=511 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..d7ca9787 --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2.pyi @@ -0,0 +1,62 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.auth.v1beta1.auth_pb2 +import google.protobuf.descriptor +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 MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: + """params defines the x/auth parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.auth.v1beta1.auth_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/auth/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..351d3ccf --- /dev/null +++ b/nibiru_proto/cosmos/auth/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,73 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.auth.v1beta1 import tx_pb2 as cosmos_dot_auth_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the x/auth Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UpdateParams = channel.unary_unary( + '/cosmos.auth.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the x/auth Msg service. + """ + + def UpdateParams(self, request, context): + """UpdateParams defines a (governance) operation for updating the x/auth module + parameters. The authority defaults to the x/gov module account. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.auth.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the x/auth Msg service. + """ + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Msg/UpdateParams', + cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/authz/module/v1/module_pb2.py b/nibiru_proto/cosmos/authz/module/v1/module_pb2.py new file mode 100644 index 00000000..53120d7b --- /dev/null +++ b/nibiru_proto/cosmos/authz/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/authz/module/v1/module.proto\x12\x16\x63osmos.authz.module.v1\x1a cosmos/app/v1alpha1/module.proto\"6\n\x06Module:,\xba\xc0\x96\xda\x01&\n$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001&\n$github.com/cosmos/cosmos-sdk/x/authz' + _MODULE._serialized_start=97 + _MODULE._serialized_end=151 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/authz/module/v1/module_pb2.pyi new file mode 100644 index 00000000..44051763 --- /dev/null +++ b/nibiru_proto/cosmos/authz/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the authz module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/authz/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/authz/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/authz/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.py b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.py new file mode 100644 index 00000000..3bd44ba0 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/authz/v1beta1/authz.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"t\n\x14GenericAuthorization\x12\x10\n\x03msg\x18\x01 \x01(\tR\x03msg:J\xca\xb4-\"cosmos.authz.v1beta1.Authorization\x8a\xe7\xb0*\x1f\x63osmos-sdk/GenericAuthorization\"\xb1\x01\n\x05Grant\x12\x62\n\rauthorization\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB&\xca\xb4-\"cosmos.authz.v1beta1.AuthorizationR\rauthorization\x12\x44\n\nexpiration\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x01\x90\xdf\x1f\x01R\nexpiration\"\xa2\x02\n\x12GrantAuthorization\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12\x62\n\rauthorization\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB&\xca\xb4-\"cosmos.authz.v1beta1.AuthorizationR\rauthorization\x12@\n\nexpiration\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\nexpiration\"4\n\x0eGrantQueueItem\x12\"\n\rmsg_type_urls\x18\x01 \x03(\tR\x0bmsgTypeUrlsB*Z$github.com/cosmos/cosmos-sdk/x/authz\xc8\xe1\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.v1beta1.authz_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/authz\310\341\036\000' + _GENERICAUTHORIZATION._options = None + _GENERICAUTHORIZATION._serialized_options = b'\312\264-\"cosmos.authz.v1beta1.Authorization\212\347\260*\037cosmos-sdk/GenericAuthorization' + _GRANT.fields_by_name['authorization']._options = None + _GRANT.fields_by_name['authorization']._serialized_options = b'\312\264-\"cosmos.authz.v1beta1.Authorization' + _GRANT.fields_by_name['expiration']._options = None + _GRANT.fields_by_name['expiration']._serialized_options = b'\310\336\037\001\220\337\037\001' + _GRANTAUTHORIZATION.fields_by_name['granter']._options = None + _GRANTAUTHORIZATION.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GRANTAUTHORIZATION.fields_by_name['grantee']._options = None + _GRANTAUTHORIZATION.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GRANTAUTHORIZATION.fields_by_name['authorization']._options = None + _GRANTAUTHORIZATION.fields_by_name['authorization']._serialized_options = b'\312\264-\"cosmos.authz.v1beta1.Authorization' + _GRANTAUTHORIZATION.fields_by_name['expiration']._options = None + _GRANTAUTHORIZATION.fields_by_name['expiration']._serialized_options = b'\220\337\037\001' + _GENERICAUTHORIZATION._serialized_start=186 + _GENERICAUTHORIZATION._serialized_end=302 + _GRANT._serialized_start=305 + _GRANT._serialized_end=482 + _GRANTAUTHORIZATION._serialized_start=485 + _GRANTAUTHORIZATION._serialized_end=775 + _GRANTQUEUEITEM._serialized_start=777 + _GRANTQUEUEITEM._serialized_end=829 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.pyi b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.pyi new file mode 100644 index 00000000..89de0fd9 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2.pyi @@ -0,0 +1,118 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 GenericAuthorization(google.protobuf.message.Message): + """GenericAuthorization gives the grantee unrestricted permissions to execute + the provided method on behalf of the granter's account. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_FIELD_NUMBER: builtins.int + msg: builtins.str + """Msg, identified by it's type URL, to grant unrestricted permissions to execute""" + def __init__( + self, + *, + msg: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["msg", b"msg"]) -> None: ... + +global___GenericAuthorization = GenericAuthorization + +@typing_extensions.final +class Grant(google.protobuf.message.Message): + """Grant gives permissions to execute + the provide method with expiration time. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORIZATION_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + @property + def authorization(self) -> google.protobuf.any_pb2.Any: ... + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: + """time when the grant will expire and will be pruned. If null, then the grant + doesn't have a time expiration (other conditions in `authorization` + may apply to invalidate the grant) + """ + def __init__( + self, + *, + authorization: google.protobuf.any_pb2.Any | None = ..., + expiration: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["authorization", b"authorization", "expiration", b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authorization", b"authorization", "expiration", b"expiration"]) -> None: ... + +global___Grant = Grant + +@typing_extensions.final +class GrantAuthorization(google.protobuf.message.Message): + """GrantAuthorization extends a grant with both the addresses of the grantee and granter. + It is used in genesis.proto and query.proto + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + AUTHORIZATION_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + granter: builtins.str + grantee: builtins.str + @property + def authorization(self) -> google.protobuf.any_pb2.Any: ... + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + authorization: google.protobuf.any_pb2.Any | None = ..., + expiration: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["authorization", b"authorization", "expiration", b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authorization", b"authorization", "expiration", b"expiration", "grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___GrantAuthorization = GrantAuthorization + +@typing_extensions.final +class GrantQueueItem(google.protobuf.message.Message): + """GrantQueueItem contains the list of TypeURL of a sdk.Msg.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_TYPE_URLS_FIELD_NUMBER: builtins.int + @property + def msg_type_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """msg_type_urls contains the list of TypeURL of a sdk.Msg.""" + def __init__( + self, + *, + msg_type_urls: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["msg_type_urls", b"msg_type_urls"]) -> None: ... + +global___GrantQueueItem = GrantQueueItem diff --git a/nibiru_proto/cosmos/authz/v1beta1/authz_pb2_grpc.py b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/authz/v1beta1/event_pb2.py b/nibiru_proto/cosmos/authz/v1beta1/event_pb2.py new file mode 100644 index 00000000..246375b8 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/event_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/authz/v1beta1/event.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x19\x63osmos_proto/cosmos.proto\"\x96\x01\n\nEventGrant\x12 \n\x0cmsg_type_url\x18\x02 \x01(\tR\nmsgTypeUrl\x12\x32\n\x07granter\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\"\x97\x01\n\x0b\x45ventRevoke\x12 \n\x0cmsg_type_url\x18\x02 \x01(\tR\nmsgTypeUrl\x12\x32\n\x07granter\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granteeB&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.v1beta1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/authz' + _EVENTGRANT.fields_by_name['granter']._options = None + _EVENTGRANT.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTGRANT.fields_by_name['grantee']._options = None + _EVENTGRANT.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTREVOKE.fields_by_name['granter']._options = None + _EVENTREVOKE.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTREVOKE.fields_by_name['grantee']._options = None + _EVENTREVOKE.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTGRANT._serialized_start=86 + _EVENTGRANT._serialized_end=236 + _EVENTREVOKE._serialized_start=239 + _EVENTREVOKE._serialized_end=390 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/v1beta1/event_pb2.pyi b/nibiru_proto/cosmos/authz/v1beta1/event_pb2.pyi new file mode 100644 index 00000000..9f60f165 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/event_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import google.protobuf.descriptor +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 EventGrant(google.protobuf.message.Message): + """EventGrant is emitted on Msg/Grant""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + msg_type_url: builtins.str + """Msg type URL for which an autorization is granted""" + granter: builtins.str + """Granter account address""" + grantee: builtins.str + """Grantee account address""" + def __init__( + self, + *, + msg_type_url: builtins.str = ..., + granter: builtins.str = ..., + grantee: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter", "msg_type_url", b"msg_type_url"]) -> None: ... + +global___EventGrant = EventGrant + +@typing_extensions.final +class EventRevoke(google.protobuf.message.Message): + """EventRevoke is emitted on Msg/Revoke""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + msg_type_url: builtins.str + """Msg type URL for which an autorization is revoked""" + granter: builtins.str + """Granter account address""" + grantee: builtins.str + """Grantee account address""" + def __init__( + self, + *, + msg_type_url: builtins.str = ..., + granter: builtins.str = ..., + grantee: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter", "msg_type_url", b"msg_type_url"]) -> None: ... + +global___EventRevoke = EventRevoke diff --git a/nibiru_proto/cosmos/authz/v1beta1/event_pb2_grpc.py b/nibiru_proto/cosmos/authz/v1beta1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..ae95dfb9 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.authz.v1beta1 import authz_pb2 as cosmos_dot_authz_dot_v1beta1_dot_authz__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/authz/v1beta1/genesis.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x14gogoproto/gogo.proto\x1a cosmos/authz/v1beta1/authz.proto\x1a\x11\x61mino/amino.proto\"i\n\x0cGenesisState\x12Y\n\rauthorization\x18\x01 \x03(\x0b\x32(.cosmos.authz.v1beta1.GrantAuthorizationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rauthorizationB&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/authz' + _GENESISSTATE.fields_by_name['authorization']._options = None + _GENESISSTATE.fields_by_name['authorization']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=135 + _GENESISSTATE._serialized_end=240 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..6ccdd6ef --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.authz.v1beta1.authz_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the authz module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORIZATION_FIELD_NUMBER: builtins.int + @property + def authorization(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization]: ... + def __init__( + self, + *, + authorization: collections.abc.Iterable[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authorization", b"authorization"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/authz/v1beta1/query_pb2.py b/nibiru_proto/cosmos/authz/v1beta1/query_pb2.py new file mode 100644 index 00000000..381469e5 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/query_pb2.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from cosmos.authz.v1beta1 import authz_pb2 as cosmos_dot_authz_dot_v1beta1_dot_authz__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/authz/v1beta1/query.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a cosmos/authz/v1beta1/authz.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xe6\x01\n\x12QueryGrantsRequest\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12 \n\x0cmsg_type_url\x18\x03 \x01(\tR\nmsgTypeUrl\x12\x46\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x93\x01\n\x13QueryGrantsResponse\x12\x33\n\x06grants\x18\x01 \x03(\x0b\x32\x1b.cosmos.authz.v1beta1.GrantR\x06grants\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x97\x01\n\x19QueryGranterGrantsRequest\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa7\x01\n\x1aQueryGranterGrantsResponse\x12@\n\x06grants\x18\x01 \x03(\x0b\x32(.cosmos.authz.v1beta1.GrantAuthorizationR\x06grants\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x97\x01\n\x19QueryGranteeGrantsRequest\x12\x32\n\x07grantee\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa7\x01\n\x1aQueryGranteeGrantsResponse\x12@\n\x06grants\x18\x01 \x03(\x0b\x32(.cosmos.authz.v1beta1.GrantAuthorizationR\x06grants\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xe7\x03\n\x05Query\x12\x83\x01\n\x06Grants\x12(.cosmos.authz.v1beta1.QueryGrantsRequest\x1a).cosmos.authz.v1beta1.QueryGrantsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/cosmos/authz/v1beta1/grants\x12\xaa\x01\n\rGranterGrants\x12/.cosmos.authz.v1beta1.QueryGranterGrantsRequest\x1a\x30.cosmos.authz.v1beta1.QueryGranterGrantsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./cosmos/authz/v1beta1/grants/granter/{granter}\x12\xaa\x01\n\rGranteeGrants\x12/.cosmos.authz.v1beta1.QueryGranteeGrantsRequest\x1a\x30.cosmos.authz.v1beta1.QueryGranteeGrantsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./cosmos/authz/v1beta1/grants/grantee/{grantee}B&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/authz' + _QUERYGRANTSREQUEST.fields_by_name['granter']._options = None + _QUERYGRANTSREQUEST.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGRANTSREQUEST.fields_by_name['grantee']._options = None + _QUERYGRANTSREQUEST.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGRANTERGRANTSREQUEST.fields_by_name['granter']._options = None + _QUERYGRANTERGRANTSREQUEST.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGRANTEEGRANTSREQUEST.fields_by_name['grantee']._options = None + _QUERYGRANTEEGRANTSREQUEST.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERY.methods_by_name['Grants']._options = None + _QUERY.methods_by_name['Grants']._serialized_options = b'\202\323\344\223\002\036\022\034/cosmos/authz/v1beta1/grants' + _QUERY.methods_by_name['GranterGrants']._options = None + _QUERY.methods_by_name['GranterGrants']._serialized_options = b'\202\323\344\223\0020\022./cosmos/authz/v1beta1/grants/granter/{granter}' + _QUERY.methods_by_name['GranteeGrants']._options = None + _QUERY.methods_by_name['GranteeGrants']._serialized_options = b'\202\323\344\223\0020\022./cosmos/authz/v1beta1/grants/grantee/{grantee}' + _QUERYGRANTSREQUEST._serialized_start=194 + _QUERYGRANTSREQUEST._serialized_end=424 + _QUERYGRANTSRESPONSE._serialized_start=427 + _QUERYGRANTSRESPONSE._serialized_end=574 + _QUERYGRANTERGRANTSREQUEST._serialized_start=577 + _QUERYGRANTERGRANTSREQUEST._serialized_end=728 + _QUERYGRANTERGRANTSRESPONSE._serialized_start=731 + _QUERYGRANTERGRANTSRESPONSE._serialized_end=898 + _QUERYGRANTEEGRANTSREQUEST._serialized_start=901 + _QUERYGRANTEEGRANTSREQUEST._serialized_end=1052 + _QUERYGRANTEEGRANTSRESPONSE._serialized_start=1055 + _QUERYGRANTEEGRANTSRESPONSE._serialized_end=1222 + _QUERY._serialized_start=1225 + _QUERY._serialized_end=1712 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/authz/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..7473bfd5 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/query_pb2.pyi @@ -0,0 +1,170 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.authz.v1beta1.authz_pb2 +import cosmos.base.query.v1beta1.pagination_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 QueryGrantsRequest(google.protobuf.message.Message): + """QueryGrantsRequest is the request type for the Query/Grants RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + granter: builtins.str + grantee: builtins.str + msg_type_url: builtins.str + """Optional, msg_type_url, when set, will query only grants matching given msg type.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + msg_type_url: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter", "msg_type_url", b"msg_type_url", "pagination", b"pagination"]) -> None: ... + +global___QueryGrantsRequest = QueryGrantsRequest + +@typing_extensions.final +class QueryGrantsResponse(google.protobuf.message.Message): + """QueryGrantsResponse is the response type for the Query/Authorizations RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def grants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.Grant]: + """authorizations is a list of grants granted for grantee by granter.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + grants: collections.abc.Iterable[cosmos.authz.v1beta1.authz_pb2.Grant] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grants", b"grants", "pagination", b"pagination"]) -> None: ... + +global___QueryGrantsResponse = QueryGrantsResponse + +@typing_extensions.final +class QueryGranterGrantsRequest(google.protobuf.message.Message): + """QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + granter: builtins.str + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + granter: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["granter", b"granter", "pagination", b"pagination"]) -> None: ... + +global___QueryGranterGrantsRequest = QueryGranterGrantsRequest + +@typing_extensions.final +class QueryGranterGrantsResponse(google.protobuf.message.Message): + """QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def grants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization]: + """grants is a list of grants granted by the granter.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + grants: collections.abc.Iterable[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grants", b"grants", "pagination", b"pagination"]) -> None: ... + +global___QueryGranterGrantsResponse = QueryGranterGrantsResponse + +@typing_extensions.final +class QueryGranteeGrantsRequest(google.protobuf.message.Message): + """QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTEE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + grantee: builtins.str + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + grantee: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "pagination", b"pagination"]) -> None: ... + +global___QueryGranteeGrantsRequest = QueryGranteeGrantsRequest + +@typing_extensions.final +class QueryGranteeGrantsResponse(google.protobuf.message.Message): + """QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def grants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization]: + """grants is a list of grants granted to the grantee.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + grants: collections.abc.Iterable[cosmos.authz.v1beta1.authz_pb2.GrantAuthorization] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grants", b"grants", "pagination", b"pagination"]) -> None: ... + +global___QueryGranteeGrantsResponse = QueryGranteeGrantsResponse diff --git a/nibiru_proto/cosmos/authz/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/authz/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..ad034a1c --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/query_pb2_grpc.py @@ -0,0 +1,142 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.authz.v1beta1 import query_pb2 as cosmos_dot_authz_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Grants = channel.unary_unary( + '/cosmos.authz.v1beta1.Query/Grants', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.FromString, + ) + self.GranterGrants = channel.unary_unary( + '/cosmos.authz.v1beta1.Query/GranterGrants', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsRequest.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsResponse.FromString, + ) + self.GranteeGrants = channel.unary_unary( + '/cosmos.authz.v1beta1.Query/GranteeGrants', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsRequest.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Grants(self, request, context): + """Returns list of `Authorization`, granted to the grantee by the granter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GranterGrants(self, request, context): + """GranterGrants returns list of `GrantAuthorization`, granted by granter. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GranteeGrants(self, request, context): + """GranteeGrants returns a list of `GrantAuthorization` by grantee. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Grants': grpc.unary_unary_rpc_method_handler( + servicer.Grants, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.SerializeToString, + ), + 'GranterGrants': grpc.unary_unary_rpc_method_handler( + servicer.GranterGrants, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsRequest.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsResponse.SerializeToString, + ), + 'GranteeGrants': grpc.unary_unary_rpc_method_handler( + servicer.GranteeGrants, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsRequest.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.authz.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Grants(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Query/Grants', + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GranterGrants(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Query/GranterGrants', + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsRequest.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranterGrantsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GranteeGrants(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Query/GranteeGrants', + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsRequest.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGranteeGrantsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.py new file mode 100644 index 00000000..2c09cb1a --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.authz.v1beta1 import authz_pb2 as cosmos_dot_authz_dot_v1beta1_dot_authz__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63osmos/authz/v1beta1/tx.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a cosmos/authz/v1beta1/authz.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xd6\x01\n\x08MsgGrant\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12<\n\x05grant\x18\x03 \x01(\x0b\x32\x1b.cosmos.authz.v1beta1.GrantB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05grant:$\x82\xe7\xb0*\x07granter\x8a\xe7\xb0*\x13\x63osmos-sdk/MsgGrant\"+\n\x0fMsgExecResponse\x12\x18\n\x07results\x18\x01 \x03(\x0cR\x07results\"\xa9\x01\n\x07MsgExec\x12\x32\n\x07grantee\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12\x45\n\x04msgs\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyB\x1b\xca\xb4-\x17\x63osmos.base.v1beta1.MsgR\x04msgs:#\x82\xe7\xb0*\x07grantee\x8a\xe7\xb0*\x12\x63osmos-sdk/MsgExec\"\x12\n\x10MsgGrantResponse\"\xbc\x01\n\tMsgRevoke\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12 \n\x0cmsg_type_url\x18\x03 \x01(\tR\nmsgTypeUrl:%\x82\xe7\xb0*\x07granter\x8a\xe7\xb0*\x14\x63osmos-sdk/MsgRevoke\"\x13\n\x11MsgRevokeResponse2\xff\x01\n\x03Msg\x12O\n\x05Grant\x12\x1e.cosmos.authz.v1beta1.MsgGrant\x1a&.cosmos.authz.v1beta1.MsgGrantResponse\x12L\n\x04\x45xec\x12\x1d.cosmos.authz.v1beta1.MsgExec\x1a%.cosmos.authz.v1beta1.MsgExecResponse\x12R\n\x06Revoke\x12\x1f.cosmos.authz.v1beta1.MsgRevoke\x1a\'.cosmos.authz.v1beta1.MsgRevokeResponse\x1a\x05\x80\xe7\xb0*\x01\x42*Z$github.com/cosmos/cosmos-sdk/x/authz\xc8\xe1\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.authz.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/authz\310\341\036\000' + _MSGGRANT.fields_by_name['granter']._options = None + _MSGGRANT.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGGRANT.fields_by_name['grantee']._options = None + _MSGGRANT.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGGRANT.fields_by_name['grant']._options = None + _MSGGRANT.fields_by_name['grant']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGGRANT._options = None + _MSGGRANT._serialized_options = b'\202\347\260*\007granter\212\347\260*\023cosmos-sdk/MsgGrant' + _MSGEXEC.fields_by_name['grantee']._options = None + _MSGEXEC.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGEXEC.fields_by_name['msgs']._options = None + _MSGEXEC.fields_by_name['msgs']._serialized_options = b'\312\264-\027cosmos.base.v1beta1.Msg' + _MSGEXEC._options = None + _MSGEXEC._serialized_options = b'\202\347\260*\007grantee\212\347\260*\022cosmos-sdk/MsgExec' + _MSGREVOKE.fields_by_name['granter']._options = None + _MSGREVOKE.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGREVOKE.fields_by_name['grantee']._options = None + _MSGREVOKE.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGREVOKE._options = None + _MSGREVOKE._serialized_options = b'\202\347\260*\007granter\212\347\260*\024cosmos-sdk/MsgRevoke' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGGRANT._serialized_start=210 + _MSGGRANT._serialized_end=424 + _MSGEXECRESPONSE._serialized_start=426 + _MSGEXECRESPONSE._serialized_end=469 + _MSGEXEC._serialized_start=472 + _MSGEXEC._serialized_end=641 + _MSGGRANTRESPONSE._serialized_start=643 + _MSGGRANTRESPONSE._serialized_end=661 + _MSGREVOKE._serialized_start=664 + _MSGREVOKE._serialized_end=852 + _MSGREVOKERESPONSE._serialized_start=854 + _MSGREVOKERESPONSE._serialized_end=873 + _MSG._serialized_start=876 + _MSG._serialized_end=1131 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..8afd1f60 --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2.pyi @@ -0,0 +1,141 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.authz.v1beta1.authz_pb2 +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 MsgGrant(google.protobuf.message.Message): + """MsgGrant is a request type for Grant method. It declares authorization to the grantee + on behalf of the granter with the provided expiration time. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + GRANT_FIELD_NUMBER: builtins.int + granter: builtins.str + grantee: builtins.str + @property + def grant(self) -> cosmos.authz.v1beta1.authz_pb2.Grant: ... + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + grant: cosmos.authz.v1beta1.authz_pb2.Grant | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["grant", b"grant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grant", b"grant", "grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___MsgGrant = MsgGrant + +@typing_extensions.final +class MsgExecResponse(google.protobuf.message.Message): + """MsgExecResponse defines the Msg/MsgExecResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULTS_FIELD_NUMBER: builtins.int + @property + def results(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__( + self, + *, + results: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ... + +global___MsgExecResponse = MsgExecResponse + +@typing_extensions.final +class MsgExec(google.protobuf.message.Message): + """MsgExec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTEE_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + grantee: builtins.str + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """Execute Msg. + The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + triple and validate it. + """ + def __init__( + self, + *, + grantee: builtins.str = ..., + msgs: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "msgs", b"msgs"]) -> None: ... + +global___MsgExec = MsgExec + +@typing_extensions.final +class MsgGrantResponse(google.protobuf.message.Message): + """MsgGrantResponse defines the Msg/MsgGrant response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgGrantResponse = MsgGrantResponse + +@typing_extensions.final +class MsgRevoke(google.protobuf.message.Message): + """MsgRevoke revokes any authorization with the provided sdk.Msg type on the + granter's account with that has been granted to the grantee. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + granter: builtins.str + grantee: builtins.str + msg_type_url: builtins.str + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + msg_type_url: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter", "msg_type_url", b"msg_type_url"]) -> None: ... + +global___MsgRevoke = MsgRevoke + +@typing_extensions.final +class MsgRevokeResponse(google.protobuf.message.Message): + """MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgRevokeResponse = MsgRevokeResponse diff --git a/nibiru_proto/cosmos/authz/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..c91de7dc --- /dev/null +++ b/nibiru_proto/cosmos/authz/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,144 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.authz.v1beta1 import tx_pb2 as cosmos_dot_authz_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the authz Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Grant = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Grant', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.FromString, + ) + self.Exec = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Exec', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.FromString, + ) + self.Revoke = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Revoke', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the authz Msg service. + """ + + def Grant(self, request, context): + """Grant grants the provided authorization to the grantee on the granter's + account with the provided expiration time. If there is already a grant + for the given (granter, grantee, Authorization) triple, then the grant + will be overwritten. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Exec(self, request, context): + """Exec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Revoke(self, request, context): + """Revoke revokes any authorization corresponding to the provided method name on the + granter's account that has been granted to the grantee. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Grant': grpc.unary_unary_rpc_method_handler( + servicer.Grant, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.SerializeToString, + ), + 'Exec': grpc.unary_unary_rpc_method_handler( + servicer.Exec, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.SerializeToString, + ), + 'Revoke': grpc.unary_unary_rpc_method_handler( + servicer.Revoke, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.authz.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the authz Msg service. + """ + + @staticmethod + def Grant(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Grant', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Exec(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Exec', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Revoke(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Revoke', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/autocli/v1/options_pb2.py b/nibiru_proto/cosmos/autocli/v1/options_pb2.py new file mode 100644 index 00000000..8fc4cb30 --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/options_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/autocli/v1/options.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/autocli/v1/options.proto\x12\x11\x63osmos.autocli.v1\"\x8f\x01\n\rModuleOptions\x12;\n\x02tx\x18\x01 \x01(\x0b\x32+.cosmos.autocli.v1.ServiceCommandDescriptorR\x02tx\x12\x41\n\x05query\x18\x02 \x01(\x0b\x32+.cosmos.autocli.v1.ServiceCommandDescriptorR\x05query\"\xd8\x02\n\x18ServiceCommandDescriptor\x12\x18\n\x07service\x18\x01 \x01(\tR\x07service\x12T\n\x13rpc_command_options\x18\x02 \x03(\x0b\x32$.cosmos.autocli.v1.RpcCommandOptionsR\x11rpcCommandOptions\x12_\n\x0csub_commands\x18\x03 \x03(\x0b\x32<.cosmos.autocli.v1.ServiceCommandDescriptor.SubCommandsEntryR\x0bsubCommands\x1ak\n\x10SubCommandsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32+.cosmos.autocli.v1.ServiceCommandDescriptorR\x05value:\x02\x38\x01\"\x9c\x04\n\x11RpcCommandOptions\x12\x1d\n\nrpc_method\x18\x01 \x01(\tR\trpcMethod\x12\x10\n\x03use\x18\x02 \x01(\tR\x03use\x12\x12\n\x04long\x18\x03 \x01(\tR\x04long\x12\x14\n\x05short\x18\x04 \x01(\tR\x05short\x12\x18\n\x07\x65xample\x18\x05 \x01(\tR\x07\x65xample\x12\x14\n\x05\x61lias\x18\x06 \x03(\tR\x05\x61lias\x12\x1f\n\x0bsuggest_for\x18\x07 \x03(\tR\nsuggestFor\x12\x1e\n\ndeprecated\x18\x08 \x01(\tR\ndeprecated\x12\x18\n\x07version\x18\t \x01(\tR\x07version\x12X\n\x0c\x66lag_options\x18\n \x03(\x0b\x32\x35.cosmos.autocli.v1.RpcCommandOptions.FlagOptionsEntryR\x0b\x66lagOptions\x12S\n\x0fpositional_args\x18\x0b \x03(\x0b\x32*.cosmos.autocli.v1.PositionalArgDescriptorR\x0epositionalArgs\x12\x12\n\x04skip\x18\x0c \x01(\x08R\x04skip\x1a^\n\x10\x46lagOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32\x1e.cosmos.autocli.v1.FlagOptionsR\x05value:\x02\x38\x01\"\x96\x02\n\x0b\x46lagOptions\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n\tshorthand\x18\x02 \x01(\tR\tshorthand\x12\x14\n\x05usage\x18\x03 \x01(\tR\x05usage\x12#\n\rdefault_value\x18\x04 \x01(\tR\x0c\x64\x65\x66\x61ultValue\x12/\n\x14no_opt_default_value\x18\x05 \x01(\tR\x11noOptDefaultValue\x12\x1e\n\ndeprecated\x18\x06 \x01(\tR\ndeprecated\x12\x31\n\x14shorthand_deprecated\x18\x07 \x01(\tR\x13shorthandDeprecated\x12\x16\n\x06hidden\x18\x08 \x01(\x08R\x06hidden\"T\n\x17PositionalArgDescriptor\x12\x1f\n\x0bproto_field\x18\x01 \x01(\tR\nprotoField\x12\x18\n\x07varargs\x18\x02 \x01(\x08R\x07varargsB+Z)cosmossdk.io/api/cosmos/base/cli/v1;cliv1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.autocli.v1.options_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)cosmossdk.io/api/cosmos/base/cli/v1;cliv1' + _SERVICECOMMANDDESCRIPTOR_SUBCOMMANDSENTRY._options = None + _SERVICECOMMANDDESCRIPTOR_SUBCOMMANDSENTRY._serialized_options = b'8\001' + _RPCCOMMANDOPTIONS_FLAGOPTIONSENTRY._options = None + _RPCCOMMANDOPTIONS_FLAGOPTIONSENTRY._serialized_options = b'8\001' + _MODULEOPTIONS._serialized_start=55 + _MODULEOPTIONS._serialized_end=198 + _SERVICECOMMANDDESCRIPTOR._serialized_start=201 + _SERVICECOMMANDDESCRIPTOR._serialized_end=545 + _SERVICECOMMANDDESCRIPTOR_SUBCOMMANDSENTRY._serialized_start=438 + _SERVICECOMMANDDESCRIPTOR_SUBCOMMANDSENTRY._serialized_end=545 + _RPCCOMMANDOPTIONS._serialized_start=548 + _RPCCOMMANDOPTIONS._serialized_end=1088 + _RPCCOMMANDOPTIONS_FLAGOPTIONSENTRY._serialized_start=994 + _RPCCOMMANDOPTIONS_FLAGOPTIONSENTRY._serialized_end=1088 + _FLAGOPTIONS._serialized_start=1091 + _FLAGOPTIONS._serialized_end=1369 + _POSITIONALARGDESCRIPTOR._serialized_start=1371 + _POSITIONALARGDESCRIPTOR._serialized_end=1455 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/autocli/v1/options_pb2.pyi b/nibiru_proto/cosmos/autocli/v1/options_pb2.pyi new file mode 100644 index 00000000..7960d9f8 --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/options_pb2.pyi @@ -0,0 +1,276 @@ +""" +@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 ModuleOptions(google.protobuf.message.Message): + """ModuleOptions describes the CLI options for a Cosmos SDK module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + @property + def tx(self) -> global___ServiceCommandDescriptor: + """tx describes the tx command for the module.""" + @property + def query(self) -> global___ServiceCommandDescriptor: + """query describes the tx command for the module.""" + def __init__( + self, + *, + tx: global___ServiceCommandDescriptor | None = ..., + query: global___ServiceCommandDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["query", b"query", "tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "tx", b"tx"]) -> None: ... + +global___ModuleOptions = ModuleOptions + +@typing_extensions.final +class ServiceCommandDescriptor(google.protobuf.message.Message): + """ServiceCommandDescriptor describes a CLI command based on a protobuf service.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class SubCommandsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___ServiceCommandDescriptor: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___ServiceCommandDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + + SERVICE_FIELD_NUMBER: builtins.int + RPC_COMMAND_OPTIONS_FIELD_NUMBER: builtins.int + SUB_COMMANDS_FIELD_NUMBER: builtins.int + service: builtins.str + """service is the fully qualified name of the protobuf service to build + the command from. It can be left empty if sub_commands are used instead + which may be the case if a module provides multiple tx and/or query services. + """ + @property + def rpc_command_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RpcCommandOptions]: + """rpc_command_options are options for commands generated from rpc methods. + If no options are specified for a given rpc method on the service, a + command will be generated for that method with the default options. + """ + @property + def sub_commands(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ServiceCommandDescriptor]: + """sub_commands is a map of optional sub-commands for this command based on + different protobuf services. The map key is used as the name of the + sub-command. + """ + def __init__( + self, + *, + service: builtins.str = ..., + rpc_command_options: collections.abc.Iterable[global___RpcCommandOptions] | None = ..., + sub_commands: collections.abc.Mapping[builtins.str, global___ServiceCommandDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rpc_command_options", b"rpc_command_options", "service", b"service", "sub_commands", b"sub_commands"]) -> None: ... + +global___ServiceCommandDescriptor = ServiceCommandDescriptor + +@typing_extensions.final +class RpcCommandOptions(google.protobuf.message.Message): + """RpcCommandOptions specifies options for commands generated from protobuf + rpc methods. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class FlagOptionsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___FlagOptions: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___FlagOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + + RPC_METHOD_FIELD_NUMBER: builtins.int + USE_FIELD_NUMBER: builtins.int + LONG_FIELD_NUMBER: builtins.int + SHORT_FIELD_NUMBER: builtins.int + EXAMPLE_FIELD_NUMBER: builtins.int + ALIAS_FIELD_NUMBER: builtins.int + SUGGEST_FOR_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + FLAG_OPTIONS_FIELD_NUMBER: builtins.int + POSITIONAL_ARGS_FIELD_NUMBER: builtins.int + SKIP_FIELD_NUMBER: builtins.int + rpc_method: builtins.str + """rpc_method is short name of the protobuf rpc method that this command is + generated from. + """ + use: builtins.str + """use is the one-line usage method. It also allows specifying an alternate + name for the command as the first word of the usage text. + + By default the name of an rpc command is the kebab-case short name of the + rpc method. + """ + long: builtins.str + """long is the long message shown in the 'help ' output.""" + short: builtins.str + """short is the short description shown in the 'help' output.""" + example: builtins.str + """example is examples of how to use the command.""" + @property + def alias(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """alias is an array of aliases that can be used instead of the first word in Use.""" + @property + def suggest_for(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """suggest_for is an array of command names for which this command will be suggested - + similar to aliases but only suggests. + """ + deprecated: builtins.str + """deprecated defines, if this command is deprecated and should print this string when used.""" + version: builtins.str + """version defines the version for this command. If this value is non-empty and the command does not + define a "version" flag, a "version" boolean flag will be added to the command and, if specified, + will print content of the "Version" variable. A shorthand "v" flag will also be added if the + command does not define one. + """ + @property + def flag_options(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___FlagOptions]: + """flag_options are options for flags generated from rpc request fields. + By default all request fields are configured as flags. They can + also be configured as positional args instead using positional_args. + """ + @property + def positional_args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PositionalArgDescriptor]: + """positional_args specifies positional arguments for the command.""" + skip: builtins.bool + """skip specifies whether to skip this rpc method when generating commands.""" + def __init__( + self, + *, + rpc_method: builtins.str = ..., + use: builtins.str = ..., + long: builtins.str = ..., + short: builtins.str = ..., + example: builtins.str = ..., + alias: collections.abc.Iterable[builtins.str] | None = ..., + suggest_for: collections.abc.Iterable[builtins.str] | None = ..., + deprecated: builtins.str = ..., + version: builtins.str = ..., + flag_options: collections.abc.Mapping[builtins.str, global___FlagOptions] | None = ..., + positional_args: collections.abc.Iterable[global___PositionalArgDescriptor] | None = ..., + skip: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["alias", b"alias", "deprecated", b"deprecated", "example", b"example", "flag_options", b"flag_options", "long", b"long", "positional_args", b"positional_args", "rpc_method", b"rpc_method", "short", b"short", "skip", b"skip", "suggest_for", b"suggest_for", "use", b"use", "version", b"version"]) -> None: ... + +global___RpcCommandOptions = RpcCommandOptions + +@typing_extensions.final +class FlagOptions(google.protobuf.message.Message): + """FlagOptions are options for flags generated from rpc request fields. + By default, all request fields are configured as flags based on the + kebab-case name of the field. Fields can be turned into positional arguments + instead by using RpcCommandOptions.positional_args. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + SHORTHAND_FIELD_NUMBER: builtins.int + USAGE_FIELD_NUMBER: builtins.int + DEFAULT_VALUE_FIELD_NUMBER: builtins.int + NO_OPT_DEFAULT_VALUE_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + SHORTHAND_DEPRECATED_FIELD_NUMBER: builtins.int + HIDDEN_FIELD_NUMBER: builtins.int + name: builtins.str + """name is an alternate name to use for the field flag.""" + shorthand: builtins.str + """shorthand is a one-letter abbreviated flag.""" + usage: builtins.str + """usage is the help message.""" + default_value: builtins.str + """default_value is the default value as text.""" + no_opt_default_value: builtins.str + """default value is the default value as text if the flag is used without any value.""" + deprecated: builtins.str + """deprecated is the usage text to show if this flag is deprecated.""" + shorthand_deprecated: builtins.str + """shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated.""" + hidden: builtins.bool + """hidden hides the flag from help/usage text""" + def __init__( + self, + *, + name: builtins.str = ..., + shorthand: builtins.str = ..., + usage: builtins.str = ..., + default_value: builtins.str = ..., + no_opt_default_value: builtins.str = ..., + deprecated: builtins.str = ..., + shorthand_deprecated: builtins.str = ..., + hidden: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["default_value", b"default_value", "deprecated", b"deprecated", "hidden", b"hidden", "name", b"name", "no_opt_default_value", b"no_opt_default_value", "shorthand", b"shorthand", "shorthand_deprecated", b"shorthand_deprecated", "usage", b"usage"]) -> None: ... + +global___FlagOptions = FlagOptions + +@typing_extensions.final +class PositionalArgDescriptor(google.protobuf.message.Message): + """PositionalArgDescriptor describes a positional argument.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROTO_FIELD_FIELD_NUMBER: builtins.int + VARARGS_FIELD_NUMBER: builtins.int + proto_field: builtins.str + """proto_field specifies the proto field to use as the positional arg. Any + fields used as positional args will not have a flag generated. + """ + varargs: builtins.bool + """varargs makes a positional parameter a varargs parameter. This can only be + applied to last positional parameter and the proto_field must a repeated + field. + """ + def __init__( + self, + *, + proto_field: builtins.str = ..., + varargs: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proto_field", b"proto_field", "varargs", b"varargs"]) -> None: ... + +global___PositionalArgDescriptor = PositionalArgDescriptor diff --git a/nibiru_proto/cosmos/autocli/v1/options_pb2_grpc.py b/nibiru_proto/cosmos/autocli/v1/options_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/options_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/autocli/v1/query_pb2.py b/nibiru_proto/cosmos/autocli/v1/query_pb2.py new file mode 100644 index 00000000..ed3ae01f --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/query_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/autocli/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.autocli.v1 import options_pb2 as cosmos_dot_autocli_dot_v1_dot_options__pb2 +from cosmos.query.v1 import query_pb2 as cosmos_dot_query_dot_v1_dot_query__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63osmos/autocli/v1/query.proto\x12\x11\x63osmos.autocli.v1\x1a\x1f\x63osmos/autocli/v1/options.proto\x1a\x1b\x63osmos/query/v1/query.proto\"\x13\n\x11\x41ppOptionsRequest\"\xd9\x01\n\x12\x41ppOptionsResponse\x12_\n\x0emodule_options\x18\x01 \x03(\x0b\x32\x38.cosmos.autocli.v1.AppOptionsResponse.ModuleOptionsEntryR\rmoduleOptions\x1a\x62\n\x12ModuleOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32 .cosmos.autocli.v1.ModuleOptionsR\x05value:\x02\x38\x01\x32i\n\x05Query\x12`\n\nAppOptions\x12$.cosmos.autocli.v1.AppOptionsRequest\x1a%.cosmos.autocli.v1.AppOptionsResponse\"\x05\x88\xe7\xb0*\x00\x42+Z)cosmossdk.io/api/cosmos/base/cli/v1;cliv1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.autocli.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)cosmossdk.io/api/cosmos/base/cli/v1;cliv1' + _APPOPTIONSRESPONSE_MODULEOPTIONSENTRY._options = None + _APPOPTIONSRESPONSE_MODULEOPTIONSENTRY._serialized_options = b'8\001' + _QUERY.methods_by_name['AppOptions']._options = None + _QUERY.methods_by_name['AppOptions']._serialized_options = b'\210\347\260*\000' + _APPOPTIONSREQUEST._serialized_start=114 + _APPOPTIONSREQUEST._serialized_end=133 + _APPOPTIONSRESPONSE._serialized_start=136 + _APPOPTIONSRESPONSE._serialized_end=353 + _APPOPTIONSRESPONSE_MODULEOPTIONSENTRY._serialized_start=255 + _APPOPTIONSRESPONSE_MODULEOPTIONSENTRY._serialized_end=353 + _QUERY._serialized_start=355 + _QUERY._serialized_end=460 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/autocli/v1/query_pb2.pyi b/nibiru_proto/cosmos/autocli/v1/query_pb2.pyi new file mode 100644 index 00000000..e1cb6f49 --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/query_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.autocli.v1.options_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 AppOptionsRequest(google.protobuf.message.Message): + """AppOptionsRequest is the RemoteInfoService/AppOptions request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___AppOptionsRequest = AppOptionsRequest + +@typing_extensions.final +class AppOptionsResponse(google.protobuf.message.Message): + """AppOptionsResponse is the RemoteInfoService/AppOptions response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class ModuleOptionsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> cosmos.autocli.v1.options_pb2.ModuleOptions: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: cosmos.autocli.v1.options_pb2.ModuleOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + + MODULE_OPTIONS_FIELD_NUMBER: builtins.int + @property + def module_options(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, cosmos.autocli.v1.options_pb2.ModuleOptions]: + """module_options is a map of module name to autocli module options.""" + def __init__( + self, + *, + module_options: collections.abc.Mapping[builtins.str, cosmos.autocli.v1.options_pb2.ModuleOptions] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module_options", b"module_options"]) -> None: ... + +global___AppOptionsResponse = AppOptionsResponse diff --git a/nibiru_proto/cosmos/autocli/v1/query_pb2_grpc.py b/nibiru_proto/cosmos/autocli/v1/query_pb2_grpc.py new file mode 100644 index 00000000..e53c89ba --- /dev/null +++ b/nibiru_proto/cosmos/autocli/v1/query_pb2_grpc.py @@ -0,0 +1,73 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.autocli.v1 import query_pb2 as cosmos_dot_autocli_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """RemoteInfoService provides clients with the information they need + to build dynamically CLI clients for remote chains. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.AppOptions = channel.unary_unary( + '/cosmos.autocli.v1.Query/AppOptions', + request_serializer=cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsRequest.SerializeToString, + response_deserializer=cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsResponse.FromString, + ) + + +class QueryServicer(object): + """RemoteInfoService provides clients with the information they need + to build dynamically CLI clients for remote chains. + """ + + def AppOptions(self, request, context): + """AppOptions returns the autocli options for all of the modules in an app. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'AppOptions': grpc.unary_unary_rpc_method_handler( + servicer.AppOptions, + request_deserializer=cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsRequest.FromString, + response_serializer=cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.autocli.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """RemoteInfoService provides clients with the information they need + to build dynamically CLI clients for remote chains. + """ + + @staticmethod + def AppOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.autocli.v1.Query/AppOptions', + cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsRequest.SerializeToString, + cosmos_dot_autocli_dot_v1_dot_query__pb2.AppOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/bank/module/v1/module_pb2.py b/nibiru_proto/cosmos/bank/module/v1/module_pb2.py new file mode 100644 index 00000000..e2f07f29 --- /dev/null +++ b/nibiru_proto/cosmos/bank/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/bank/module/v1/module.proto\x12\x15\x63osmos.bank.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\x9c\x01\n\x06Module\x12G\n blocked_module_accounts_override\x18\x01 \x03(\tR\x1d\x62lockedModuleAccountsOverride\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:+\xba\xc0\x96\xda\x01%\n#github.com/cosmos/cosmos-sdk/x/bankb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001%\n#github.com/cosmos/cosmos-sdk/x/bank' + _MODULE._serialized_start=96 + _MODULE._serialized_end=252 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/bank/module/v1/module_pb2.pyi new file mode 100644 index 00000000..c576022a --- /dev/null +++ b/nibiru_proto/cosmos/bank/module/v1/module_pb2.pyi @@ -0,0 +1,43 @@ +""" +@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 of the bank module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCKED_MODULE_ACCOUNTS_OVERRIDE_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + @property + def blocked_module_accounts_override(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. + If left empty it defaults to the list of account names supplied in the auth module configuration as + module_account_permissions + """ + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + blocked_module_accounts_override: collections.abc.Iterable[builtins.str] | None = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "blocked_module_accounts_override", b"blocked_module_accounts_override"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/bank/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/bank/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/bank/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.py b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.py new file mode 100644 index 00000000..d0c682bb --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/bank/v1beta1/authz.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x88\x02\n\x11SendAuthorization\x12q\n\x0bspend_limit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\nspendLimit\x12\x37\n\nallow_list\x18\x02 \x03(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tallowList:G\xca\xb4-\"cosmos.authz.v1beta1.Authorization\x8a\xe7\xb0*\x1c\x63osmos-sdk/SendAuthorizationB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.v1beta1.authz_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/bank/types' + _SENDAUTHORIZATION.fields_by_name['spend_limit']._options = None + _SENDAUTHORIZATION.fields_by_name['spend_limit']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _SENDAUTHORIZATION.fields_by_name['allow_list']._options = None + _SENDAUTHORIZATION.fields_by_name['allow_list']._serialized_options = b'\322\264-\024cosmos.AddressString' + _SENDAUTHORIZATION._options = None + _SENDAUTHORIZATION._serialized_options = b'\312\264-\"cosmos.authz.v1beta1.Authorization\212\347\260*\034cosmos-sdk/SendAuthorization' + _SENDAUTHORIZATION._serialized_start=157 + _SENDAUTHORIZATION._serialized_end=421 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.pyi b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.pyi new file mode 100644 index 00000000..ae86918c --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2.pyi @@ -0,0 +1,49 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_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 SendAuthorization(google.protobuf.message.Message): + """SendAuthorization allows the grantee to spend up to spend_limit coins from + the granter's account. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPEND_LIMIT_FIELD_NUMBER: builtins.int + ALLOW_LIST_FIELD_NUMBER: builtins.int + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def allow_list(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the + granter. If omitted, any recipient is allowed. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + spend_limit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + allow_list: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_list", b"allow_list", "spend_limit", b"spend_limit"]) -> None: ... + +global___SendAuthorization = SendAuthorization diff --git a/nibiru_proto/cosmos/bank/v1beta1/authz_pb2_grpc.py b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.py b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.py new file mode 100644 index 00000000..4d50f3f9 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/bank.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/bank/v1beta1/bank.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xa6\x01\n\x06Params\x12G\n\x0csend_enabled\x18\x01 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledB\x02\x18\x01R\x0bsendEnabled\x12\x30\n\x14\x64\x65\x66\x61ult_send_enabled\x18\x02 \x01(\x08R\x12\x64\x65\x66\x61ultSendEnabled:!\x98\xa0\x1f\x00\x8a\xe7\xb0*\x18\x63osmos-sdk/x/bank/Params\"G\n\x0bSendEnabled\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07\x65nabled\x18\x02 \x01(\x08R\x07\x65nabled:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xb9\x01\n\x05Input\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x66\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x05\x63oins:\x14\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x07\x61\x64\x64ress\"\xae\x01\n\x06Output\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x66\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x05\x63oins:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x9b\x01\n\x06Supply\x12\x66\n\x05total\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x05total:)\x18\x01\x88\xa0\x1f\x00\xe8\xa0\x1f\x01\xca\xb4-\x1b\x63osmos.bank.v1beta1.SupplyI\"W\n\tDenomUnit\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1a\n\x08\x65xponent\x18\x02 \x01(\rR\x08\x65xponent\x12\x18\n\x07\x61liases\x18\x03 \x03(\tR\x07\x61liases\"\x8a\x02\n\x08Metadata\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12?\n\x0b\x64\x65nom_units\x18\x02 \x03(\x0b\x32\x1e.cosmos.bank.v1beta1.DenomUnitR\ndenomUnits\x12\x12\n\x04\x62\x61se\x18\x03 \x01(\tR\x04\x62\x61se\x12\x18\n\x07\x64isplay\x18\x04 \x01(\tR\x07\x64isplay\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x06 \x01(\tR\x06symbol\x12\x19\n\x03uri\x18\x07 \x01(\tB\x07\xe2\xde\x1f\x03URIR\x03uri\x12&\n\x08uri_hash\x18\x08 \x01(\tB\x0b\xe2\xde\x1f\x07URIHashR\x07uriHashB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.v1beta1.bank_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/bank/types' + _PARAMS.fields_by_name['send_enabled']._options = None + _PARAMS.fields_by_name['send_enabled']._serialized_options = b'\030\001' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000\212\347\260*\030cosmos-sdk/x/bank/Params' + _SENDENABLED._options = None + _SENDENABLED._serialized_options = b'\230\240\037\000\350\240\037\001' + _INPUT.fields_by_name['address']._options = None + _INPUT.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _INPUT.fields_by_name['coins']._options = None + _INPUT.fields_by_name['coins']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _INPUT._options = None + _INPUT._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\007address' + _OUTPUT.fields_by_name['address']._options = None + _OUTPUT.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _OUTPUT.fields_by_name['coins']._options = None + _OUTPUT.fields_by_name['coins']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _OUTPUT._options = None + _OUTPUT._serialized_options = b'\210\240\037\000\350\240\037\000' + _SUPPLY.fields_by_name['total']._options = None + _SUPPLY.fields_by_name['total']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _SUPPLY._options = None + _SUPPLY._serialized_options = b'\030\001\210\240\037\000\350\240\037\001\312\264-\033cosmos.bank.v1beta1.SupplyI' + _METADATA.fields_by_name['uri']._options = None + _METADATA.fields_by_name['uri']._serialized_options = b'\342\336\037\003URI' + _METADATA.fields_by_name['uri_hash']._options = None + _METADATA.fields_by_name['uri_hash']._serialized_options = b'\342\336\037\007URIHash' + _PARAMS._serialized_start=181 + _PARAMS._serialized_end=347 + _SENDENABLED._serialized_start=349 + _SENDENABLED._serialized_end=420 + _INPUT._serialized_start=423 + _INPUT._serialized_end=608 + _OUTPUT._serialized_start=611 + _OUTPUT._serialized_end=785 + _SUPPLY._serialized_start=788 + _SUPPLY._serialized_end=943 + _DENOMUNIT._serialized_start=945 + _DENOMUNIT._serialized_end=1032 + _METADATA._serialized_start=1035 + _METADATA._serialized_end=1301 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.pyi b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.pyi new file mode 100644 index 00000000..bf85e651 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2.pyi @@ -0,0 +1,228 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_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 Params(google.protobuf.message.Message): + """Params defines the parameters for the bank module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SEND_ENABLED_FIELD_NUMBER: builtins.int + DEFAULT_SEND_ENABLED_FIELD_NUMBER: builtins.int + @property + def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SendEnabled]: + """Deprecated: Use of SendEnabled in params is deprecated. + For genesis, use the newly added send_enabled field in the genesis object. + Storage, lookup, and manipulation of this information is now in the keeper. + + As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files. + """ + default_send_enabled: builtins.bool + def __init__( + self, + *, + send_enabled: collections.abc.Iterable[global___SendEnabled] | None = ..., + default_send_enabled: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["default_send_enabled", b"default_send_enabled", "send_enabled", b"send_enabled"]) -> None: ... + +global___Params = Params + +@typing_extensions.final +class SendEnabled(google.protobuf.message.Message): + """SendEnabled maps coin denom to a send_enabled status (whether a denom is + sendable). + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + denom: builtins.str + enabled: builtins.bool + def __init__( + self, + *, + denom: builtins.str = ..., + enabled: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["denom", b"denom", "enabled", b"enabled"]) -> None: ... + +global___SendEnabled = SendEnabled + +@typing_extensions.final +class Input(google.protobuf.message.Message): + """Input models transaction input.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: builtins.str + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + address: builtins.str = ..., + coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "coins", b"coins"]) -> None: ... + +global___Input = Input + +@typing_extensions.final +class Output(google.protobuf.message.Message): + """Output models transaction outputs.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: builtins.str + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + address: builtins.str = ..., + coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "coins", b"coins"]) -> None: ... + +global___Output = Output + +@typing_extensions.final +class Supply(google.protobuf.message.Message): + """Supply represents a struct that passively keeps track of the total supply + amounts in the network. + This message is deprecated now that supply is indexed by denom. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_FIELD_NUMBER: builtins.int + @property + def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + total: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["total", b"total"]) -> None: ... + +global___Supply = Supply + +@typing_extensions.final +class DenomUnit(google.protobuf.message.Message): + """DenomUnit represents a struct that describes a given + denomination unit of the basic token. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + EXPONENT_FIELD_NUMBER: builtins.int + ALIASES_FIELD_NUMBER: builtins.int + denom: builtins.str + """denom represents the string name of the given denom unit (e.g uatom).""" + exponent: builtins.int + """exponent represents power of 10 exponent that one must + raise the base_denom to in order to equal the given DenomUnit's denom + 1 denom = 10^exponent base_denom + (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + exponent = 6, thus: 1 atom = 10^6 uatom). + """ + @property + def aliases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """aliases is a list of string aliases for the given denom""" + def __init__( + self, + *, + denom: builtins.str = ..., + exponent: builtins.int = ..., + aliases: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["aliases", b"aliases", "denom", b"denom", "exponent", b"exponent"]) -> None: ... + +global___DenomUnit = DenomUnit + +@typing_extensions.final +class Metadata(google.protobuf.message.Message): + """Metadata represents a struct that describes + a basic token. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DESCRIPTION_FIELD_NUMBER: builtins.int + DENOM_UNITS_FIELD_NUMBER: builtins.int + BASE_FIELD_NUMBER: builtins.int + DISPLAY_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + SYMBOL_FIELD_NUMBER: builtins.int + URI_FIELD_NUMBER: builtins.int + URI_HASH_FIELD_NUMBER: builtins.int + description: builtins.str + @property + def denom_units(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenomUnit]: + """denom_units represents the list of DenomUnit's for a given coin""" + base: builtins.str + """base represents the base denom (should be the DenomUnit with exponent = 0).""" + display: builtins.str + """display indicates the suggested denom that should be + displayed in clients. + """ + name: builtins.str + """name defines the name of the token (eg: Cosmos Atom) + + Since: cosmos-sdk 0.43 + """ + symbol: builtins.str + """symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + be the same as the display. + + Since: cosmos-sdk 0.43 + """ + uri: builtins.str + """URI to a document (on or off-chain) that contains additional information. Optional. + + Since: cosmos-sdk 0.46 + """ + uri_hash: builtins.str + """URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + the document didn't change. Optional. + + Since: cosmos-sdk 0.46 + """ + def __init__( + self, + *, + description: builtins.str = ..., + denom_units: collections.abc.Iterable[global___DenomUnit] | None = ..., + base: builtins.str = ..., + display: builtins.str = ..., + name: builtins.str = ..., + symbol: builtins.str = ..., + uri: builtins.str = ..., + uri_hash: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["base", b"base", "denom_units", b"denom_units", "description", b"description", "display", b"display", "name", b"name", "symbol", b"symbol", "uri", b"uri", "uri_hash", b"uri_hash"]) -> None: ... + +global___Metadata = Metadata diff --git a/nibiru_proto/cosmos/bank/v1beta1/bank_pb2_grpc.py b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/bank_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..05f0e816 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.bank.v1beta1 import bank_pb2 as cosmos_dot_bank_dot_v1beta1_dot_bank__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/bank/v1beta1/genesis.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/bank/v1beta1/bank.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\x9e\x03\n\x0cGenesisState\x12>\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.bank.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\x12\x43\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32\x1c.cosmos.bank.v1beta1.BalanceB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08\x62\x61lances\x12h\n\x06supply\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06supply\x12O\n\x0e\x64\x65nom_metadata\x18\x04 \x03(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rdenomMetadata\x12N\n\x0csend_enabled\x18\x05 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0bsendEnabled\"\xaf\x01\n\x07\x42\x61lance\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x66\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x05\x63oins:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x42+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/bank/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['balances']._options = None + _GENESISSTATE.fields_by_name['balances']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['supply']._options = None + _GENESISSTATE.fields_by_name['supply']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _GENESISSTATE.fields_by_name['denom_metadata']._options = None + _GENESISSTATE.fields_by_name['denom_metadata']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['send_enabled']._options = None + _GENESISSTATE.fields_by_name['send_enabled']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _BALANCE.fields_by_name['address']._options = None + _BALANCE.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _BALANCE.fields_by_name['coins']._options = None + _BALANCE.fields_by_name['coins']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _BALANCE._options = None + _BALANCE._serialized_options = b'\210\240\037\000\350\240\037\000' + _GENESISSTATE._serialized_start=191 + _GENESISSTATE._serialized_end=605 + _BALANCE._serialized_start=608 + _BALANCE._serialized_end=783 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..b71a8cc3 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2.pyi @@ -0,0 +1,89 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.v1beta1.coin_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the bank module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + BALANCES_FIELD_NUMBER: builtins.int + SUPPLY_FIELD_NUMBER: builtins.int + DENOM_METADATA_FIELD_NUMBER: builtins.int + SEND_ENABLED_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: + """params defines all the parameters of the module.""" + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Balance]: + """balances is an array containing the balances of all the accounts.""" + @property + def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + """ + @property + def denom_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: + """denom_metadata defines the metadata of the different coins.""" + @property + def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.SendEnabled]: + """send_enabled defines the denoms where send is enabled or disabled. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + params: cosmos.bank.v1beta1.bank_pb2.Params | None = ..., + balances: collections.abc.Iterable[global___Balance] | None = ..., + supply: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + denom_metadata: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata] | None = ..., + send_enabled: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.SendEnabled] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balances", b"balances", "denom_metadata", b"denom_metadata", "params", b"params", "send_enabled", b"send_enabled", "supply", b"supply"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class Balance(google.protobuf.message.Message): + """Balance defines an account address and balance pair used in the bank module's + genesis state. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address of the balance holder.""" + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """coins defines the different coins this balance holds.""" + def __init__( + self, + *, + address: builtins.str = ..., + coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "coins", b"coins"]) -> None: ... + +global___Balance = Balance diff --git a/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/bank/v1beta1/query_pb2.py b/nibiru_proto/cosmos/bank/v1beta1/query_pb2.py new file mode 100644 index 00000000..dc507ae8 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/query_pb2.py @@ -0,0 +1,138 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.bank.v1beta1 import bank_pb2 as cosmos_dot_bank_dot_v1beta1_dot_bank__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.query.v1 import query_pb2 as cosmos_dot_query_dot_v1_dot_query__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/bank/v1beta1/query.proto\x12\x13\x63osmos.bank.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/bank/v1beta1/bank.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1b\x63osmos/query/v1/query.proto\x1a\x11\x61mino/amino.proto\"i\n\x13QueryBalanceRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"K\n\x14QueryBalanceResponse\x12\x33\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinR\x07\x62\x61lance\"\x9f\x01\n\x17QueryAllBalancesRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xd1\x01\n\x18QueryAllBalancesResponse\x12l\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x08\x62\x61lances\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xa5\x01\n\x1dQuerySpendableBalancesRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xd7\x01\n\x1eQuerySpendableBalancesResponse\x12l\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x08\x62\x61lances\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"y\n#QuerySpendableBalanceByDenomRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"[\n$QuerySpendableBalanceByDenomResponse\x12\x33\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinR\x07\x62\x61lance\"k\n\x17QueryTotalSupplyRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xcd\x01\n\x18QueryTotalSupplyResponse\x12h\n\x06supply\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06supply\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\",\n\x14QuerySupplyOfRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"U\n\x15QuerySupplyOfResponse\x12<\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount\"\x14\n\x12QueryParamsRequest\"U\n\x13QueryParamsResponse\x12>\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.bank.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\"d\n\x1aQueryDenomsMetadataRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xae\x01\n\x1bQueryDenomsMetadataResponse\x12\x46\n\tmetadatas\x18\x01 \x03(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tmetadatas\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"1\n\x19QueryDenomMetadataRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"b\n\x1aQueryDenomMetadataResponse\x12\x44\n\x08metadata\x18\x01 \x01(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08metadata\"w\n\x17QueryDenomOwnersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x80\x01\n\nDenomOwner\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12>\n\x07\x62\x61lance\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x62\x61lance\"\xa7\x01\n\x18QueryDenomOwnersResponse\x12\x42\n\x0c\x64\x65nom_owners\x18\x01 \x03(\x0b\x32\x1f.cosmos.bank.v1beta1.DenomOwnerR\x0b\x64\x65nomOwners\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"y\n\x17QuerySendEnabledRequest\x12\x16\n\x06\x64\x65noms\x18\x01 \x03(\tR\x06\x64\x65noms\x12\x46\n\npagination\x18\x63 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa8\x01\n\x18QuerySendEnabledResponse\x12\x43\n\x0csend_enabled\x18\x01 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledR\x0bsendEnabled\x12G\n\npagination\x18\x63 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xb2\x0e\n\x05Query\x12\x9d\x01\n\x07\x42\x61lance\x12(.cosmos.bank.v1beta1.QueryBalanceRequest\x1a).cosmos.bank.v1beta1.QueryBalanceResponse\"=\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x32\x12\x30/cosmos/bank/v1beta1/balances/{address}/by_denom\x12\xa0\x01\n\x0b\x41llBalances\x12,.cosmos.bank.v1beta1.QueryAllBalancesRequest\x1a-.cosmos.bank.v1beta1.QueryAllBalancesResponse\"4\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02)\x12\'/cosmos/bank/v1beta1/balances/{address}\x12\xbc\x01\n\x11SpendableBalances\x12\x32.cosmos.bank.v1beta1.QuerySpendableBalancesRequest\x1a\x33.cosmos.bank.v1beta1.QuerySpendableBalancesResponse\">\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x33\x12\x31/cosmos/bank/v1beta1/spendable_balances/{address}\x12\xd7\x01\n\x17SpendableBalanceByDenom\x12\x38.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest\x1a\x39.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse\"G\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02<\x12:/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom\x12\x94\x01\n\x0bTotalSupply\x12,.cosmos.bank.v1beta1.QueryTotalSupplyRequest\x1a-.cosmos.bank.v1beta1.QueryTotalSupplyResponse\"(\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/supply\x12\x94\x01\n\x08SupplyOf\x12).cosmos.bank.v1beta1.QuerySupplyOfRequest\x1a*.cosmos.bank.v1beta1.QuerySupplyOfResponse\"1\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02&\x12$/cosmos/bank/v1beta1/supply/by_denom\x12\x85\x01\n\x06Params\x12\'.cosmos.bank.v1beta1.QueryParamsRequest\x1a(.cosmos.bank.v1beta1.QueryParamsResponse\"(\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/params\x12\xab\x01\n\rDenomMetadata\x12..cosmos.bank.v1beta1.QueryDenomMetadataRequest\x1a/.cosmos.bank.v1beta1.QueryDenomMetadataResponse\"9\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02.\x12,/cosmos/bank/v1beta1/denoms_metadata/{denom}\x12\xa6\x01\n\x0e\x44\x65nomsMetadata\x12/.cosmos.bank.v1beta1.QueryDenomsMetadataRequest\x1a\x30.cosmos.bank.v1beta1.QueryDenomsMetadataResponse\"1\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02&\x12$/cosmos/bank/v1beta1/denoms_metadata\x12\xa2\x01\n\x0b\x44\x65nomOwners\x12,.cosmos.bank.v1beta1.QueryDenomOwnersRequest\x1a-.cosmos.bank.v1beta1.QueryDenomOwnersResponse\"6\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02+\x12)/cosmos/bank/v1beta1/denom_owners/{denom}\x12\x9a\x01\n\x0bSendEnabled\x12,.cosmos.bank.v1beta1.QuerySendEnabledRequest\x1a-.cosmos.bank.v1beta1.QuerySendEnabledResponse\".\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02#\x12!/cosmos/bank/v1beta1/send_enabledB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/bank/types' + _QUERYBALANCEREQUEST.fields_by_name['address']._options = None + _QUERYBALANCEREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYBALANCEREQUEST._options = None + _QUERYBALANCEREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYALLBALANCESREQUEST.fields_by_name['address']._options = None + _QUERYALLBALANCESREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYALLBALANCESREQUEST._options = None + _QUERYALLBALANCESREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYALLBALANCESRESPONSE.fields_by_name['balances']._options = None + _QUERYALLBALANCESRESPONSE.fields_by_name['balances']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _QUERYSPENDABLEBALANCESREQUEST.fields_by_name['address']._options = None + _QUERYSPENDABLEBALANCESREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYSPENDABLEBALANCESREQUEST._options = None + _QUERYSPENDABLEBALANCESREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYSPENDABLEBALANCESRESPONSE.fields_by_name['balances']._options = None + _QUERYSPENDABLEBALANCESRESPONSE.fields_by_name['balances']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _QUERYSPENDABLEBALANCEBYDENOMREQUEST.fields_by_name['address']._options = None + _QUERYSPENDABLEBALANCEBYDENOMREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYSPENDABLEBALANCEBYDENOMREQUEST._options = None + _QUERYSPENDABLEBALANCEBYDENOMREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYTOTALSUPPLYREQUEST._options = None + _QUERYTOTALSUPPLYREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYTOTALSUPPLYRESPONSE.fields_by_name['supply']._options = None + _QUERYTOTALSUPPLYRESPONSE.fields_by_name['supply']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _QUERYSUPPLYOFRESPONSE.fields_by_name['amount']._options = None + _QUERYSUPPLYOFRESPONSE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDENOMSMETADATARESPONSE.fields_by_name['metadatas']._options = None + _QUERYDENOMSMETADATARESPONSE.fields_by_name['metadatas']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDENOMMETADATARESPONSE.fields_by_name['metadata']._options = None + _QUERYDENOMMETADATARESPONSE.fields_by_name['metadata']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DENOMOWNER.fields_by_name['address']._options = None + _DENOMOWNER.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DENOMOWNER.fields_by_name['balance']._options = None + _DENOMOWNER.fields_by_name['balance']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['Balance']._options = None + _QUERY.methods_by_name['Balance']._serialized_options = b'\210\347\260*\001\202\323\344\223\0022\0220/cosmos/bank/v1beta1/balances/{address}/by_denom' + _QUERY.methods_by_name['AllBalances']._options = None + _QUERY.methods_by_name['AllBalances']._serialized_options = b'\210\347\260*\001\202\323\344\223\002)\022\'/cosmos/bank/v1beta1/balances/{address}' + _QUERY.methods_by_name['SpendableBalances']._options = None + _QUERY.methods_by_name['SpendableBalances']._serialized_options = b'\210\347\260*\001\202\323\344\223\0023\0221/cosmos/bank/v1beta1/spendable_balances/{address}' + _QUERY.methods_by_name['SpendableBalanceByDenom']._options = None + _QUERY.methods_by_name['SpendableBalanceByDenom']._serialized_options = b'\210\347\260*\001\202\323\344\223\002<\022:/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom' + _QUERY.methods_by_name['TotalSupply']._options = None + _QUERY.methods_by_name['TotalSupply']._serialized_options = b'\210\347\260*\001\202\323\344\223\002\035\022\033/cosmos/bank/v1beta1/supply' + _QUERY.methods_by_name['SupplyOf']._options = None + _QUERY.methods_by_name['SupplyOf']._serialized_options = b'\210\347\260*\001\202\323\344\223\002&\022$/cosmos/bank/v1beta1/supply/by_denom' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\210\347\260*\001\202\323\344\223\002\035\022\033/cosmos/bank/v1beta1/params' + _QUERY.methods_by_name['DenomMetadata']._options = None + _QUERY.methods_by_name['DenomMetadata']._serialized_options = b'\210\347\260*\001\202\323\344\223\002.\022,/cosmos/bank/v1beta1/denoms_metadata/{denom}' + _QUERY.methods_by_name['DenomsMetadata']._options = None + _QUERY.methods_by_name['DenomsMetadata']._serialized_options = b'\210\347\260*\001\202\323\344\223\002&\022$/cosmos/bank/v1beta1/denoms_metadata' + _QUERY.methods_by_name['DenomOwners']._options = None + _QUERY.methods_by_name['DenomOwners']._serialized_options = b'\210\347\260*\001\202\323\344\223\002+\022)/cosmos/bank/v1beta1/denom_owners/{denom}' + _QUERY.methods_by_name['SendEnabled']._options = None + _QUERY.methods_by_name['SendEnabled']._serialized_options = b'\210\347\260*\001\202\323\344\223\002#\022!/cosmos/bank/v1beta1/send_enabled' + _QUERYBALANCEREQUEST._serialized_start=291 + _QUERYBALANCEREQUEST._serialized_end=396 + _QUERYBALANCERESPONSE._serialized_start=398 + _QUERYBALANCERESPONSE._serialized_end=473 + _QUERYALLBALANCESREQUEST._serialized_start=476 + _QUERYALLBALANCESREQUEST._serialized_end=635 + _QUERYALLBALANCESRESPONSE._serialized_start=638 + _QUERYALLBALANCESRESPONSE._serialized_end=847 + _QUERYSPENDABLEBALANCESREQUEST._serialized_start=850 + _QUERYSPENDABLEBALANCESREQUEST._serialized_end=1015 + _QUERYSPENDABLEBALANCESRESPONSE._serialized_start=1018 + _QUERYSPENDABLEBALANCESRESPONSE._serialized_end=1233 + _QUERYSPENDABLEBALANCEBYDENOMREQUEST._serialized_start=1235 + _QUERYSPENDABLEBALANCEBYDENOMREQUEST._serialized_end=1356 + _QUERYSPENDABLEBALANCEBYDENOMRESPONSE._serialized_start=1358 + _QUERYSPENDABLEBALANCEBYDENOMRESPONSE._serialized_end=1449 + _QUERYTOTALSUPPLYREQUEST._serialized_start=1451 + _QUERYTOTALSUPPLYREQUEST._serialized_end=1558 + _QUERYTOTALSUPPLYRESPONSE._serialized_start=1561 + _QUERYTOTALSUPPLYRESPONSE._serialized_end=1766 + _QUERYSUPPLYOFREQUEST._serialized_start=1768 + _QUERYSUPPLYOFREQUEST._serialized_end=1812 + _QUERYSUPPLYOFRESPONSE._serialized_start=1814 + _QUERYSUPPLYOFRESPONSE._serialized_end=1899 + _QUERYPARAMSREQUEST._serialized_start=1901 + _QUERYPARAMSREQUEST._serialized_end=1921 + _QUERYPARAMSRESPONSE._serialized_start=1923 + _QUERYPARAMSRESPONSE._serialized_end=2008 + _QUERYDENOMSMETADATAREQUEST._serialized_start=2010 + _QUERYDENOMSMETADATAREQUEST._serialized_end=2110 + _QUERYDENOMSMETADATARESPONSE._serialized_start=2113 + _QUERYDENOMSMETADATARESPONSE._serialized_end=2287 + _QUERYDENOMMETADATAREQUEST._serialized_start=2289 + _QUERYDENOMMETADATAREQUEST._serialized_end=2338 + _QUERYDENOMMETADATARESPONSE._serialized_start=2340 + _QUERYDENOMMETADATARESPONSE._serialized_end=2438 + _QUERYDENOMOWNERSREQUEST._serialized_start=2440 + _QUERYDENOMOWNERSREQUEST._serialized_end=2559 + _DENOMOWNER._serialized_start=2562 + _DENOMOWNER._serialized_end=2690 + _QUERYDENOMOWNERSRESPONSE._serialized_start=2693 + _QUERYDENOMOWNERSRESPONSE._serialized_end=2860 + _QUERYSENDENABLEDREQUEST._serialized_start=2862 + _QUERYSENDENABLEDREQUEST._serialized_end=2983 + _QUERYSENDENABLEDRESPONSE._serialized_start=2986 + _QUERYSENDENABLEDRESPONSE._serialized_end=3154 + _QUERY._serialized_start=3157 + _QUERY._serialized_end=4999 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/bank/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..4b56e40a --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/query_pb2.pyi @@ -0,0 +1,573 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.v1beta1.coin_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 QueryBalanceRequest(google.protobuf.message.Message): + """QueryBalanceRequest is the request type for the Query/Balance RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + DENOM_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address to query balances for.""" + denom: builtins.str + """denom is the coin denom to query balances for.""" + def __init__( + self, + *, + address: builtins.str = ..., + denom: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "denom", b"denom"]) -> None: ... + +global___QueryBalanceRequest = QueryBalanceRequest + +@typing_extensions.final +class QueryBalanceResponse(google.protobuf.message.Message): + """QueryBalanceResponse is the response type for the Query/Balance RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BALANCE_FIELD_NUMBER: builtins.int + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """balance is the balance of the coin.""" + def __init__( + self, + *, + balance: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["balance", b"balance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balance", b"balance"]) -> None: ... + +global___QueryBalanceResponse = QueryBalanceResponse + +@typing_extensions.final +class QueryAllBalancesRequest(google.protobuf.message.Message): + """QueryBalanceRequest is the request type for the Query/AllBalances RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address to query balances for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + address: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "pagination", b"pagination"]) -> None: ... + +global___QueryAllBalancesRequest = QueryAllBalancesRequest + +@typing_extensions.final +class QueryAllBalancesResponse(google.protobuf.message.Message): + """QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BALANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """balances is the balances of all the coins.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + balances: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balances", b"balances", "pagination", b"pagination"]) -> None: ... + +global___QueryAllBalancesResponse = QueryAllBalancesResponse + +@typing_extensions.final +class QuerySpendableBalancesRequest(google.protobuf.message.Message): + """QuerySpendableBalancesRequest defines the gRPC request structure for querying + an account's spendable balances. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address to query spendable balances for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + address: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "pagination", b"pagination"]) -> None: ... + +global___QuerySpendableBalancesRequest = QuerySpendableBalancesRequest + +@typing_extensions.final +class QuerySpendableBalancesResponse(google.protobuf.message.Message): + """QuerySpendableBalancesResponse defines the gRPC response structure for querying + an account's spendable balances. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BALANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """balances is the spendable balances of all the coins.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + balances: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balances", b"balances", "pagination", b"pagination"]) -> None: ... + +global___QuerySpendableBalancesResponse = QuerySpendableBalancesResponse + +@typing_extensions.final +class QuerySpendableBalanceByDenomRequest(google.protobuf.message.Message): + """QuerySpendableBalanceByDenomRequest defines the gRPC request structure for + querying an account's spendable balance for a specific denom. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + DENOM_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address to query balances for.""" + denom: builtins.str + """denom is the coin denom to query balances for.""" + def __init__( + self, + *, + address: builtins.str = ..., + denom: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "denom", b"denom"]) -> None: ... + +global___QuerySpendableBalanceByDenomRequest = QuerySpendableBalanceByDenomRequest + +@typing_extensions.final +class QuerySpendableBalanceByDenomResponse(google.protobuf.message.Message): + """QuerySpendableBalanceByDenomResponse defines the gRPC response structure for + querying an account's spendable balance for a specific denom. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BALANCE_FIELD_NUMBER: builtins.int + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """balance is the balance of the coin.""" + def __init__( + self, + *, + balance: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["balance", b"balance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balance", b"balance"]) -> None: ... + +global___QuerySpendableBalanceByDenomResponse = QuerySpendableBalanceByDenomResponse + +@typing_extensions.final +class QueryTotalSupplyRequest(google.protobuf.message.Message): + """QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request. + + Since: cosmos-sdk 0.43 + """ + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryTotalSupplyRequest = QueryTotalSupplyRequest + +@typing_extensions.final +class QueryTotalSupplyResponse(google.protobuf.message.Message): + """QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUPPLY_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """supply is the supply of the coins""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response. + + Since: cosmos-sdk 0.43 + """ + def __init__( + self, + *, + supply: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "supply", b"supply"]) -> None: ... + +global___QueryTotalSupplyResponse = QueryTotalSupplyResponse + +@typing_extensions.final +class QuerySupplyOfRequest(google.protobuf.message.Message): + """QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + denom: builtins.str + """denom is the coin denom to query balances for.""" + def __init__( + self, + *, + denom: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["denom", b"denom"]) -> None: ... + +global___QuerySupplyOfRequest = QuerySupplyOfRequest + +@typing_extensions.final +class QuerySupplyOfResponse(google.protobuf.message.Message): + """QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """amount is the supply of the coin.""" + def __init__( + self, + *, + amount: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___QuerySupplyOfResponse = QuerySupplyOfResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest defines the request type for querying x/bank parameters.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse defines the response type for querying x/bank parameters.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... + def __init__( + self, + *, + params: cosmos.bank.v1beta1.bank_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryDenomsMetadataRequest(google.protobuf.message.Message): + """QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryDenomsMetadataRequest = QueryDenomsMetadataRequest + +@typing_extensions.final +class QueryDenomsMetadataResponse(google.protobuf.message.Message): + """QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + METADATAS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def metadatas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: + """metadata provides the client information for all the registered tokens.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + metadatas: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["metadatas", b"metadatas", "pagination", b"pagination"]) -> None: ... + +global___QueryDenomsMetadataResponse = QueryDenomsMetadataResponse + +@typing_extensions.final +class QueryDenomMetadataRequest(google.protobuf.message.Message): + """QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + denom: builtins.str + """denom is the coin denom to query the metadata for.""" + def __init__( + self, + *, + denom: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["denom", b"denom"]) -> None: ... + +global___QueryDenomMetadataRequest = QueryDenomMetadataRequest + +@typing_extensions.final +class QueryDenomMetadataResponse(google.protobuf.message.Message): + """QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + METADATA_FIELD_NUMBER: builtins.int + @property + def metadata(self) -> cosmos.bank.v1beta1.bank_pb2.Metadata: + """metadata describes and provides all the client information for the requested token.""" + def __init__( + self, + *, + metadata: cosmos.bank.v1beta1.bank_pb2.Metadata | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> None: ... + +global___QueryDenomMetadataResponse = QueryDenomMetadataResponse + +@typing_extensions.final +class QueryDenomOwnersRequest(google.protobuf.message.Message): + """QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + which queries for a paginated set of all account holders of a particular + denomination. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + denom: builtins.str + """denom defines the coin denomination to query all account holders for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + denom: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["denom", b"denom", "pagination", b"pagination"]) -> None: ... + +global___QueryDenomOwnersRequest = QueryDenomOwnersRequest + +@typing_extensions.final +class DenomOwner(google.protobuf.message.Message): + """DenomOwner defines structure representing an account that owns or holds a + particular denominated token. It contains the account address and account + balance of the denominated token. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + address: builtins.str + """address defines the address that owns a particular denomination.""" + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """balance is the balance of the denominated coin for an account.""" + def __init__( + self, + *, + address: builtins.str = ..., + balance: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["balance", b"balance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "balance", b"balance"]) -> None: ... + +global___DenomOwner = DenomOwner + +@typing_extensions.final +class QueryDenomOwnersResponse(google.protobuf.message.Message): + """QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_OWNERS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def denom_owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenomOwner]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + denom_owners: collections.abc.Iterable[global___DenomOwner] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["denom_owners", b"denom_owners", "pagination", b"pagination"]) -> None: ... + +global___QueryDenomOwnersResponse = QueryDenomOwnersResponse + +@typing_extensions.final +class QuerySendEnabledRequest(google.protobuf.message.Message): + """QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOMS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def denoms(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """denoms is the specific denoms you want look up. Leave empty to get all entries.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request. This field is + only read if the denoms field is empty. + """ + def __init__( + self, + *, + denoms: collections.abc.Iterable[builtins.str] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["denoms", b"denoms", "pagination", b"pagination"]) -> None: ... + +global___QuerySendEnabledRequest = QuerySendEnabledRequest + +@typing_extensions.final +class QuerySendEnabledResponse(google.protobuf.message.Message): + """QuerySendEnabledResponse defines the RPC response of a SendEnable query. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SEND_ENABLED_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.SendEnabled]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response. This field is only + populated if the denoms field in the request is empty. + """ + def __init__( + self, + *, + send_enabled: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.SendEnabled] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "send_enabled", b"send_enabled"]) -> None: ... + +global___QuerySendEnabledResponse = QuerySendEnabledResponse diff --git a/nibiru_proto/cosmos/bank/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/bank/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..60c979be --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/query_pb2_grpc.py @@ -0,0 +1,444 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.bank.v1beta1 import query_pb2 as cosmos_dot_bank_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Balance = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/Balance', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.FromString, + ) + self.AllBalances = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/AllBalances', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesResponse.FromString, + ) + self.SpendableBalances = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/SpendableBalances', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesResponse.FromString, + ) + self.SpendableBalanceByDenom = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/SpendableBalanceByDenom', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomResponse.FromString, + ) + self.TotalSupply = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/TotalSupply', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyResponse.FromString, + ) + self.SupplyOf = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/SupplyOf', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfResponse.FromString, + ) + self.Params = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/Params', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.DenomMetadata = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/DenomMetadata', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataResponse.FromString, + ) + self.DenomsMetadata = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/DenomsMetadata', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataResponse.FromString, + ) + self.DenomOwners = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/DenomOwners', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersResponse.FromString, + ) + self.SendEnabled = channel.unary_unary( + '/cosmos.bank.v1beta1.Query/SendEnabled', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledRequest.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Balance(self, request, context): + """Balance queries the balance of a single coin for a single account. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllBalances(self, request, context): + """AllBalances queries the balance of all coins for a single account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SpendableBalances(self, request, context): + """SpendableBalances queries the spendable balance of all coins for a single + account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SpendableBalanceByDenom(self, request, context): + """SpendableBalanceByDenom queries the spendable balance of a single denom for + a single account. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TotalSupply(self, request, context): + """TotalSupply queries the total supply of all coins. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SupplyOf(self, request, context): + """SupplyOf queries the supply of a single coin. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params queries the parameters of x/bank module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DenomMetadata(self, request, context): + """DenomsMetadata queries the client metadata of a given coin denomination. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DenomsMetadata(self, request, context): + """DenomsMetadata queries the client metadata for all registered coin + denominations. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DenomOwners(self, request, context): + """DenomOwners queries for all account addresses that own a particular token + denomination. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendEnabled(self, request, context): + """SendEnabled queries for SendEnabled entries. + + This query only returns denominations that have specific SendEnabled settings. + Any denomination that does not have a specific setting will use the default + params.default_send_enabled, and will not be returned by this query. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Balance': grpc.unary_unary_rpc_method_handler( + servicer.Balance, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.SerializeToString, + ), + 'AllBalances': grpc.unary_unary_rpc_method_handler( + servicer.AllBalances, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesResponse.SerializeToString, + ), + 'SpendableBalances': grpc.unary_unary_rpc_method_handler( + servicer.SpendableBalances, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesResponse.SerializeToString, + ), + 'SpendableBalanceByDenom': grpc.unary_unary_rpc_method_handler( + servicer.SpendableBalanceByDenom, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomResponse.SerializeToString, + ), + 'TotalSupply': grpc.unary_unary_rpc_method_handler( + servicer.TotalSupply, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyResponse.SerializeToString, + ), + 'SupplyOf': grpc.unary_unary_rpc_method_handler( + servicer.SupplyOf, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'DenomMetadata': grpc.unary_unary_rpc_method_handler( + servicer.DenomMetadata, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataResponse.SerializeToString, + ), + 'DenomsMetadata': grpc.unary_unary_rpc_method_handler( + servicer.DenomsMetadata, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataResponse.SerializeToString, + ), + 'DenomOwners': grpc.unary_unary_rpc_method_handler( + servicer.DenomOwners, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersResponse.SerializeToString, + ), + 'SendEnabled': grpc.unary_unary_rpc_method_handler( + servicer.SendEnabled, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledRequest.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.bank.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Balance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/Balance', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllBalances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/AllBalances', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryAllBalancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SpendableBalances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/SpendableBalances', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SpendableBalanceByDenom(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/SpendableBalanceByDenom', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySpendableBalanceByDenomResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TotalSupply(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/TotalSupply', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryTotalSupplyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SupplyOf(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/SupplyOf', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySupplyOfResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/Params', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DenomMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/DenomMetadata', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomMetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DenomsMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/DenomsMetadata', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomsMetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DenomOwners(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/DenomOwners', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QueryDenomOwnersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Query/SendEnabled', + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledRequest.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_query__pb2.QuerySendEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.py new file mode 100644 index 00000000..bbe7f8d8 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.bank.v1beta1 import bank_pb2 as cosmos_dot_bank_dot_v1beta1_dot_bank__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/bank/v1beta1/tx.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/bank/v1beta1/bank.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\x9b\x02\n\x07MsgSend\x12;\n\x0c\x66rom_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0b\x66romAddress\x12\x37\n\nto_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\ttoAddress\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:0\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x0c\x66rom_address\x8a\xe7\xb0*\x12\x63osmos-sdk/MsgSend\"\x11\n\x0fMsgSendResponse\"\xbc\x01\n\x0cMsgMultiSend\x12=\n\x06inputs\x18\x01 \x03(\x0b\x32\x1a.cosmos.bank.v1beta1.InputB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06inputs\x12@\n\x07outputs\x18\x02 \x03(\x0b\x32\x1b.cosmos.bank.v1beta1.OutputB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07outputs:+\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06inputs\x8a\xe7\xb0*\x17\x63osmos-sdk/MsgMultiSend\"\x16\n\x14MsgMultiSendResponse\"\xbf\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12>\n\x06params\x18\x02 \x01(\x0b\x32\x1b.cosmos.bank.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:4\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*!cosmos-sdk/x/bank/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\xe9\x01\n\x11MsgSetSendEnabled\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x43\n\x0csend_enabled\x18\x02 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledR\x0bsendEnabled\x12&\n\x0fuse_default_for\x18\x03 \x03(\tR\ruseDefaultFor:/\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x1c\x63osmos-sdk/MsgSetSendEnabled\"\x1b\n\x19MsgSetSendEnabledResponse2\x81\x03\n\x03Msg\x12J\n\x04Send\x12\x1c.cosmos.bank.v1beta1.MsgSend\x1a$.cosmos.bank.v1beta1.MsgSendResponse\x12Y\n\tMultiSend\x12!.cosmos.bank.v1beta1.MsgMultiSend\x1a).cosmos.bank.v1beta1.MsgMultiSendResponse\x12\x62\n\x0cUpdateParams\x12$.cosmos.bank.v1beta1.MsgUpdateParams\x1a,.cosmos.bank.v1beta1.MsgUpdateParamsResponse\x12h\n\x0eSetSendEnabled\x12&.cosmos.bank.v1beta1.MsgSetSendEnabled\x1a..cosmos.bank.v1beta1.MsgSetSendEnabledResponse\x1a\x05\x80\xe7\xb0*\x01\x42+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.bank.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/bank/types' + _MSGSEND.fields_by_name['from_address']._options = None + _MSGSEND.fields_by_name['from_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSEND.fields_by_name['to_address']._options = None + _MSGSEND.fields_by_name['to_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSEND.fields_by_name['amount']._options = None + _MSGSEND.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGSEND._options = None + _MSGSEND._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\014from_address\212\347\260*\022cosmos-sdk/MsgSend' + _MSGMULTISEND.fields_by_name['inputs']._options = None + _MSGMULTISEND.fields_by_name['inputs']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGMULTISEND.fields_by_name['outputs']._options = None + _MSGMULTISEND.fields_by_name['outputs']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGMULTISEND._options = None + _MSGMULTISEND._serialized_options = b'\350\240\037\000\202\347\260*\006inputs\212\347\260*\027cosmos-sdk/MsgMultiSend' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*!cosmos-sdk/x/bank/MsgUpdateParams' + _MSGSETSENDENABLED.fields_by_name['authority']._options = None + _MSGSETSENDENABLED.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSETSENDENABLED._options = None + _MSGSETSENDENABLED._serialized_options = b'\202\347\260*\tauthority\212\347\260*\034cosmos-sdk/MsgSetSendEnabled' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSEND._serialized_start=211 + _MSGSEND._serialized_end=494 + _MSGSENDRESPONSE._serialized_start=496 + _MSGSENDRESPONSE._serialized_end=513 + _MSGMULTISEND._serialized_start=516 + _MSGMULTISEND._serialized_end=704 + _MSGMULTISENDRESPONSE._serialized_start=706 + _MSGMULTISENDRESPONSE._serialized_end=728 + _MSGUPDATEPARAMS._serialized_start=731 + _MSGUPDATEPARAMS._serialized_end=922 + _MSGUPDATEPARAMSRESPONSE._serialized_start=924 + _MSGUPDATEPARAMSRESPONSE._serialized_end=949 + _MSGSETSENDENABLED._serialized_start=952 + _MSGSETSENDENABLED._serialized_end=1185 + _MSGSETSENDENABLEDRESPONSE._serialized_start=1187 + _MSGSETSENDENABLEDRESPONSE._serialized_end=1214 + _MSG._serialized_start=1217 + _MSG._serialized_end=1602 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..fa9befda --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2.pyi @@ -0,0 +1,191 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.v1beta1.coin_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 MsgSend(google.protobuf.message.Message): + """MsgSend represents a message to send coins from one account to another.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + from_address: builtins.str + to_address: builtins.str + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + from_address: builtins.str = ..., + to_address: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "from_address", b"from_address", "to_address", b"to_address"]) -> None: ... + +global___MsgSend = MsgSend + +@typing_extensions.final +class MsgSendResponse(google.protobuf.message.Message): + """MsgSendResponse defines the Msg/Send response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgSendResponse = MsgSendResponse + +@typing_extensions.final +class MsgMultiSend(google.protobuf.message.Message): + """MsgMultiSend represents an arbitrary multi-in, multi-out send message.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INPUTS_FIELD_NUMBER: builtins.int + OUTPUTS_FIELD_NUMBER: builtins.int + @property + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Input]: + """Inputs, despite being `repeated`, only allows one sender input. This is + checked in MsgMultiSend's ValidateBasic. + """ + @property + def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Output]: ... + def __init__( + self, + *, + inputs: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.Input] | None = ..., + outputs: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.Output] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["inputs", b"inputs", "outputs", b"outputs"]) -> None: ... + +global___MsgMultiSend = MsgMultiSend + +@typing_extensions.final +class MsgMultiSendResponse(google.protobuf.message.Message): + """MsgMultiSendResponse defines the Msg/MultiSend response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgMultiSendResponse = MsgMultiSendResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: + """params defines the x/bank parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.bank.v1beta1.bank_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse + +@typing_extensions.final +class MsgSetSendEnabled(google.protobuf.message.Message): + """MsgSetSendEnabled is the Msg/SetSendEnabled request type. + + Only entries to add/update/delete need to be included. + Existing SendEnabled entries that are not included in this + message are left unchanged. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + SEND_ENABLED_FIELD_NUMBER: builtins.int + USE_DEFAULT_FOR_FIELD_NUMBER: builtins.int + authority: builtins.str + @property + def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.SendEnabled]: + """send_enabled is the list of entries to add or update.""" + @property + def use_default_for(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """use_default_for is a list of denoms that should use the params.default_send_enabled value. + Denoms listed here will have their SendEnabled entries deleted. + If a denom is included that doesn't have a SendEnabled entry, + it will be ignored. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + send_enabled: collections.abc.Iterable[cosmos.bank.v1beta1.bank_pb2.SendEnabled] | None = ..., + use_default_for: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "send_enabled", b"send_enabled", "use_default_for", b"use_default_for"]) -> None: ... + +global___MsgSetSendEnabled = MsgSetSendEnabled + +@typing_extensions.final +class MsgSetSendEnabledResponse(google.protobuf.message.Message): + """MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgSetSendEnabledResponse = MsgSetSendEnabledResponse diff --git a/nibiru_proto/cosmos/bank/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..dbf39664 --- /dev/null +++ b/nibiru_proto/cosmos/bank/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,180 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.bank.v1beta1 import tx_pb2 as cosmos_dot_bank_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the bank Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Send = channel.unary_unary( + '/cosmos.bank.v1beta1.Msg/Send', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSend.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSendResponse.FromString, + ) + self.MultiSend = channel.unary_unary( + '/cosmos.bank.v1beta1.Msg/MultiSend', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSend.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSendResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.bank.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + self.SetSendEnabled = channel.unary_unary( + '/cosmos.bank.v1beta1.Msg/SetSendEnabled', + request_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabled.SerializeToString, + response_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabledResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the bank Msg service. + """ + + def Send(self, request, context): + """Send defines a method for sending coins from one account to another account. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiSend(self, request, context): + """MultiSend defines a method for sending coins from some accounts to other accounts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/bank module parameters. + The authority is defined in the keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetSendEnabled(self, request, context): + """SetSendEnabled is a governance operation for setting the SendEnabled flag + on any number of Denoms. Only the entries to add or update should be + included. Entries that already exist in the store, but that aren't + included in this message, will be left unchanged. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Send': grpc.unary_unary_rpc_method_handler( + servicer.Send, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSend.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSendResponse.SerializeToString, + ), + 'MultiSend': grpc.unary_unary_rpc_method_handler( + servicer.MultiSend, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSend.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSendResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + 'SetSendEnabled': grpc.unary_unary_rpc_method_handler( + servicer.SetSendEnabled, + request_deserializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabled.FromString, + response_serializer=cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabledResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.bank.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the bank Msg service. + """ + + @staticmethod + def Send(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Msg/Send', + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSend.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSendResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiSend(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Msg/MultiSend', + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSend.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgMultiSendResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Msg/UpdateParams', + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetSendEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.bank.v1beta1.Msg/SetSendEnabled', + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabled.SerializeToString, + cosmos_dot_bank_dot_v1beta1_dot_tx__pb2.MsgSetSendEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.py b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.py new file mode 100644 index 00000000..9939ff28 --- /dev/null +++ b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/abci/v1beta1/abci.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from tendermint.abci import types_pb2 as tendermint_dot_abci_dot_types__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/base/abci/v1beta1/abci.proto\x12\x18\x63osmos.base.abci.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1btendermint/abci/types.proto\x1a\x19google/protobuf/any.proto\"\xcc\x03\n\nTxResponse\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12\"\n\x06txhash\x18\x02 \x01(\tB\n\xe2\xde\x1f\x06TxHashR\x06txhash\x12\x1c\n\tcodespace\x18\x03 \x01(\tR\tcodespace\x12\x12\n\x04\x63ode\x18\x04 \x01(\rR\x04\x63ode\x12\x12\n\x04\x64\x61ta\x18\x05 \x01(\tR\x04\x64\x61ta\x12\x17\n\x07raw_log\x18\x06 \x01(\tR\x06rawLog\x12U\n\x04logs\x18\x07 \x03(\x0b\x32(.cosmos.base.abci.v1beta1.ABCIMessageLogB\x17\xc8\xde\x1f\x00\xaa\xdf\x1f\x0f\x41\x42\x43IMessageLogsR\x04logs\x12\x12\n\x04info\x18\x08 \x01(\tR\x04info\x12\x1d\n\ngas_wanted\x18\t \x01(\x03R\tgasWanted\x12\x19\n\x08gas_used\x18\n \x01(\x03R\x07gasUsed\x12$\n\x02tx\x18\x0b \x01(\x0b\x32\x14.google.protobuf.AnyR\x02tx\x12\x1c\n\ttimestamp\x18\x0c \x01(\tR\ttimestamp\x12\x34\n\x06\x65vents\x18\r \x03(\x0b\x32\x16.tendermint.abci.EventB\x04\xc8\xde\x1f\x00R\x06\x65vents:\x04\x88\xa0\x1f\x00\"\xa9\x01\n\x0e\x41\x42\x43IMessageLog\x12*\n\tmsg_index\x18\x01 \x01(\rB\r\xea\xde\x1f\tmsg_indexR\x08msgIndex\x12\x10\n\x03log\x18\x02 \x01(\tR\x03log\x12S\n\x06\x65vents\x18\x03 \x03(\x0b\x32%.cosmos.base.abci.v1beta1.StringEventB\x14\xc8\xde\x1f\x00\xaa\xdf\x1f\x0cStringEventsR\x06\x65vents:\x04\x80\xdc \x01\"r\n\x0bStringEvent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12I\n\nattributes\x18\x02 \x03(\x0b\x32#.cosmos.base.abci.v1beta1.AttributeB\x04\xc8\xde\x1f\x00R\nattributes:\x04\x80\xdc \x01\"3\n\tAttribute\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"C\n\x07GasInfo\x12\x1d\n\ngas_wanted\x18\x01 \x01(\x04R\tgasWanted\x12\x19\n\x08gas_used\x18\x02 \x01(\x04R\x07gasUsed\"\xa9\x01\n\x06Result\x12\x16\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\x02\x18\x01R\x04\x64\x61ta\x12\x10\n\x03log\x18\x02 \x01(\tR\x03log\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32\x16.tendermint.abci.EventB\x04\xc8\xde\x1f\x00R\x06\x65vents\x12\x39\n\rmsg_responses\x18\x04 \x03(\x0b\x32\x14.google.protobuf.AnyR\x0cmsgResponses:\x04\x88\xa0\x1f\x00\"\x96\x01\n\x12SimulationResponse\x12\x46\n\x08gas_info\x18\x01 \x01(\x0b\x32!.cosmos.base.abci.v1beta1.GasInfoB\x08\xc8\xde\x1f\x00\xd0\xde\x1f\x01R\x07gasInfo\x12\x38\n\x06result\x18\x02 \x01(\x0b\x32 .cosmos.base.abci.v1beta1.ResultR\x06result\"@\n\x07MsgData\x12\x19\n\x08msg_type\x18\x01 \x01(\tR\x07msgType\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta:\x06\x18\x01\x80\xdc \x01\"\x87\x01\n\tTxMsgData\x12\x39\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32!.cosmos.base.abci.v1beta1.MsgDataB\x02\x18\x01R\x04\x64\x61ta\x12\x39\n\rmsg_responses\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyR\x0cmsgResponses:\x04\x80\xdc \x01\"\xdc\x01\n\x0fSearchTxsResult\x12\x1f\n\x0btotal_count\x18\x01 \x01(\x04R\ntotalCount\x12\x14\n\x05\x63ount\x18\x02 \x01(\x04R\x05\x63ount\x12\x1f\n\x0bpage_number\x18\x03 \x01(\x04R\npageNumber\x12\x1d\n\npage_total\x18\x04 \x01(\x04R\tpageTotal\x12\x14\n\x05limit\x18\x05 \x01(\x04R\x05limit\x12\x36\n\x03txs\x18\x06 \x03(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponseR\x03txs:\x04\x80\xdc \x01\x42(Z\"github.com/cosmos/cosmos-sdk/types\xd8\xe1\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.abci.v1beta1.abci_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/types\330\341\036\000' + _TXRESPONSE.fields_by_name['txhash']._options = None + _TXRESPONSE.fields_by_name['txhash']._serialized_options = b'\342\336\037\006TxHash' + _TXRESPONSE.fields_by_name['logs']._options = None + _TXRESPONSE.fields_by_name['logs']._serialized_options = b'\310\336\037\000\252\337\037\017ABCIMessageLogs' + _TXRESPONSE.fields_by_name['events']._options = None + _TXRESPONSE.fields_by_name['events']._serialized_options = b'\310\336\037\000' + _TXRESPONSE._options = None + _TXRESPONSE._serialized_options = b'\210\240\037\000' + _ABCIMESSAGELOG.fields_by_name['msg_index']._options = None + _ABCIMESSAGELOG.fields_by_name['msg_index']._serialized_options = b'\352\336\037\tmsg_index' + _ABCIMESSAGELOG.fields_by_name['events']._options = None + _ABCIMESSAGELOG.fields_by_name['events']._serialized_options = b'\310\336\037\000\252\337\037\014StringEvents' + _ABCIMESSAGELOG._options = None + _ABCIMESSAGELOG._serialized_options = b'\200\334 \001' + _STRINGEVENT.fields_by_name['attributes']._options = None + _STRINGEVENT.fields_by_name['attributes']._serialized_options = b'\310\336\037\000' + _STRINGEVENT._options = None + _STRINGEVENT._serialized_options = b'\200\334 \001' + _RESULT.fields_by_name['data']._options = None + _RESULT.fields_by_name['data']._serialized_options = b'\030\001' + _RESULT.fields_by_name['events']._options = None + _RESULT.fields_by_name['events']._serialized_options = b'\310\336\037\000' + _RESULT._options = None + _RESULT._serialized_options = b'\210\240\037\000' + _SIMULATIONRESPONSE.fields_by_name['gas_info']._options = None + _SIMULATIONRESPONSE.fields_by_name['gas_info']._serialized_options = b'\310\336\037\000\320\336\037\001' + _MSGDATA._options = None + _MSGDATA._serialized_options = b'\030\001\200\334 \001' + _TXMSGDATA.fields_by_name['data']._options = None + _TXMSGDATA.fields_by_name['data']._serialized_options = b'\030\001' + _TXMSGDATA._options = None + _TXMSGDATA._serialized_options = b'\200\334 \001' + _SEARCHTXSRESULT._options = None + _SEARCHTXSRESULT._serialized_options = b'\200\334 \001' + _TXRESPONSE._serialized_start=144 + _TXRESPONSE._serialized_end=604 + _ABCIMESSAGELOG._serialized_start=607 + _ABCIMESSAGELOG._serialized_end=776 + _STRINGEVENT._serialized_start=778 + _STRINGEVENT._serialized_end=892 + _ATTRIBUTE._serialized_start=894 + _ATTRIBUTE._serialized_end=945 + _GASINFO._serialized_start=947 + _GASINFO._serialized_end=1014 + _RESULT._serialized_start=1017 + _RESULT._serialized_end=1186 + _SIMULATIONRESPONSE._serialized_start=1189 + _SIMULATIONRESPONSE._serialized_end=1339 + _MSGDATA._serialized_start=1341 + _MSGDATA._serialized_end=1405 + _TXMSGDATA._serialized_start=1408 + _TXMSGDATA._serialized_end=1543 + _SEARCHTXSRESULT._serialized_start=1546 + _SEARCHTXSRESULT._serialized_end=1766 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.pyi b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.pyi new file mode 100644 index 00000000..e8f0ac36 --- /dev/null +++ b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2.pyi @@ -0,0 +1,352 @@ +""" +@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 +import tendermint.abci.types_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class TxResponse(google.protobuf.message.Message): + """TxResponse defines a structure containing relevant tx data and metadata. The + tags are stringified and the log is JSON decoded. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + TXHASH_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + RAW_LOG_FIELD_NUMBER: builtins.int + LOGS_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + height: builtins.int + """The block height""" + txhash: builtins.str + """The transaction hash.""" + codespace: builtins.str + """Namespace for the Code""" + code: builtins.int + """Response code.""" + data: builtins.str + """Result bytes, if any.""" + raw_log: builtins.str + """The output of the application's logger (raw string). May be + non-deterministic. + """ + @property + def logs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ABCIMessageLog]: + """The output of the application's logger (typed). May be non-deterministic.""" + info: builtins.str + """Additional information. May be non-deterministic.""" + gas_wanted: builtins.int + """Amount of gas requested for transaction.""" + gas_used: builtins.int + """Amount of gas consumed by transaction.""" + @property + def tx(self) -> google.protobuf.any_pb2.Any: + """The request transaction bytes.""" + timestamp: builtins.str + """Time of the previous block. For heights > 1, it's the weighted median of + the timestamps of the valid votes in the block.LastCommit. For height == 1, + it's genesis time. + """ + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.Event]: + """Events defines all the events emitted by processing a transaction. Note, + these events include those emitted by processing all the messages and those + emitted from the ante. Whereas Logs contains the events, with + additional metadata, emitted only by processing the messages. + + Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + """ + def __init__( + self, + *, + height: builtins.int = ..., + txhash: builtins.str = ..., + codespace: builtins.str = ..., + code: builtins.int = ..., + data: builtins.str = ..., + raw_log: builtins.str = ..., + logs: collections.abc.Iterable[global___ABCIMessageLog] | None = ..., + info: builtins.str = ..., + gas_wanted: builtins.int = ..., + gas_used: builtins.int = ..., + tx: google.protobuf.any_pb2.Any | None = ..., + timestamp: builtins.str = ..., + events: collections.abc.Iterable[tendermint.abci.types_pb2.Event] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "codespace", b"codespace", "data", b"data", "events", b"events", "gas_used", b"gas_used", "gas_wanted", b"gas_wanted", "height", b"height", "info", b"info", "logs", b"logs", "raw_log", b"raw_log", "timestamp", b"timestamp", "tx", b"tx", "txhash", b"txhash"]) -> None: ... + +global___TxResponse = TxResponse + +@typing_extensions.final +class ABCIMessageLog(google.protobuf.message.Message): + """ABCIMessageLog defines a structure containing an indexed tx ABCI message log.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_INDEX_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + msg_index: builtins.int + log: builtins.str + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringEvent]: + """Events contains a slice of Event objects that were emitted during some + execution. + """ + def __init__( + self, + *, + msg_index: builtins.int = ..., + log: builtins.str = ..., + events: collections.abc.Iterable[global___StringEvent] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["events", b"events", "log", b"log", "msg_index", b"msg_index"]) -> None: ... + +global___ABCIMessageLog = ABCIMessageLog + +@typing_extensions.final +class StringEvent(google.protobuf.message.Message): + """StringEvent defines en Event object wrapper where all the attributes + contain key/value pairs that are strings instead of raw bytes. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: builtins.str + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Attribute]: ... + def __init__( + self, + *, + type: builtins.str = ..., + attributes: collections.abc.Iterable[global___Attribute] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["attributes", b"attributes", "type", b"type"]) -> None: ... + +global___StringEvent = StringEvent + +@typing_extensions.final +class Attribute(google.protobuf.message.Message): + """Attribute defines an attribute wrapper where the key and value are + strings instead of raw bytes. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + +global___Attribute = Attribute + +@typing_extensions.final +class GasInfo(google.protobuf.message.Message): + """GasInfo defines tx execution gas context.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + gas_wanted: builtins.int + """GasWanted is the maximum units of work we allow this tx to perform.""" + gas_used: builtins.int + """GasUsed is the amount of gas actually consumed.""" + def __init__( + self, + *, + gas_wanted: builtins.int = ..., + gas_used: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["gas_used", b"gas_used", "gas_wanted", b"gas_wanted"]) -> None: ... + +global___GasInfo = GasInfo + +@typing_extensions.final +class Result(google.protobuf.message.Message): + """Result is the union of ResponseFormat and ResponseCheckTx.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + MSG_RESPONSES_FIELD_NUMBER: builtins.int + data: builtins.bytes + """Data is any data returned from message or handler execution. It MUST be + length prefixed in order to separate data from multiple message executions. + Deprecated. This field is still populated, but prefer msg_response instead + because it also contains the Msg response typeURL. + """ + log: builtins.str + """Log contains the log information from message or handler execution.""" + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.Event]: + """Events contains a slice of Event objects that were emitted during message + or handler execution. + """ + @property + def msg_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """msg_responses contains the Msg handler responses type packed in Anys. + + Since: cosmos-sdk 0.46 + """ + def __init__( + self, + *, + data: builtins.bytes = ..., + log: builtins.str = ..., + events: collections.abc.Iterable[tendermint.abci.types_pb2.Event] | None = ..., + msg_responses: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "events", b"events", "log", b"log", "msg_responses", b"msg_responses"]) -> None: ... + +global___Result = Result + +@typing_extensions.final +class SimulationResponse(google.protobuf.message.Message): + """SimulationResponse defines the response generated when a transaction is + successfully simulated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GAS_INFO_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + @property + def gas_info(self) -> global___GasInfo: ... + @property + def result(self) -> global___Result: ... + def __init__( + self, + *, + gas_info: global___GasInfo | None = ..., + result: global___Result | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["gas_info", b"gas_info", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["gas_info", b"gas_info", "result", b"result"]) -> None: ... + +global___SimulationResponse = SimulationResponse + +@typing_extensions.final +class MsgData(google.protobuf.message.Message): + """MsgData defines the data returned in a Result object during message + execution. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + msg_type: builtins.str + data: builtins.bytes + def __init__( + self, + *, + msg_type: builtins.str = ..., + data: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "msg_type", b"msg_type"]) -> None: ... + +global___MsgData = MsgData + +@typing_extensions.final +class TxMsgData(google.protobuf.message.Message): + """TxMsgData defines a list of MsgData. A transaction will have a MsgData object + for each message. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + MSG_RESPONSES_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgData]: + """data field is deprecated and not populated.""" + @property + def msg_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """msg_responses contains the Msg handler responses packed into Anys. + + Since: cosmos-sdk 0.46 + """ + def __init__( + self, + *, + data: collections.abc.Iterable[global___MsgData] | None = ..., + msg_responses: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "msg_responses", b"msg_responses"]) -> None: ... + +global___TxMsgData = TxMsgData + +@typing_extensions.final +class SearchTxsResult(google.protobuf.message.Message): + """SearchTxsResult defines a structure for querying txs pageable""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_COUNT_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + PAGE_NUMBER_FIELD_NUMBER: builtins.int + PAGE_TOTAL_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + TXS_FIELD_NUMBER: builtins.int + total_count: builtins.int + """Count of all txs""" + count: builtins.int + """Count of txs in current page""" + page_number: builtins.int + """Index of current page, start from 1""" + page_total: builtins.int + """Count of total pages""" + limit: builtins.int + """Max count txs per page""" + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TxResponse]: + """List of txs in current page""" + def __init__( + self, + *, + total_count: builtins.int = ..., + count: builtins.int = ..., + page_number: builtins.int = ..., + page_total: builtins.int = ..., + limit: builtins.int = ..., + txs: collections.abc.Iterable[global___TxResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["count", b"count", "limit", b"limit", "page_number", b"page_number", "page_total", b"page_total", "total_count", b"total_count", "txs", b"txs"]) -> None: ... + +global___SearchTxsResult = SearchTxsResult diff --git a/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.py b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.py b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.py new file mode 100644 index 00000000..2d9499f2 --- /dev/null +++ b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/kv/v1beta1/kv.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/base/kv/v1beta1/kv.proto\x12\x16\x63osmos.base.kv.v1beta1\x1a\x14gogoproto/gogo.proto\"A\n\x05Pairs\x12\x38\n\x05pairs\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.kv.v1beta1.PairB\x04\xc8\xde\x1f\x00R\x05pairs\".\n\x04Pair\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05valueB\'Z%github.com/cosmos/cosmos-sdk/types/kvb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.kv.v1beta1.kv_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z%github.com/cosmos/cosmos-sdk/types/kv' + _PAIRS.fields_by_name['pairs']._options = None + _PAIRS.fields_by_name['pairs']._serialized_options = b'\310\336\037\000' + _PAIRS._serialized_start=81 + _PAIRS._serialized_end=146 + _PAIR._serialized_start=148 + _PAIR._serialized_end=194 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.pyi b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.pyi new file mode 100644 index 00000000..aaed2942 --- /dev/null +++ b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2.pyi @@ -0,0 +1,55 @@ +""" +@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 Pairs(google.protobuf.message.Message): + """Pairs defines a repeated slice of Pair objects.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIRS_FIELD_NUMBER: builtins.int + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Pair]: ... + def __init__( + self, + *, + pairs: collections.abc.Iterable[global___Pair] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pairs", b"pairs"]) -> None: ... + +global___Pairs = Pairs + +@typing_extensions.final +class Pair(google.protobuf.message.Message): + """Pair defines a key/value bytes tuple.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.bytes + value: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + value: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + +global___Pair = Pair diff --git a/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.py b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.py b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.py new file mode 100644 index 00000000..f93dc9f3 --- /dev/null +++ b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/node/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/base/node/v1beta1/query.proto\x12\x18\x63osmos.base.node.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\x0f\n\rConfigRequest\"<\n\x0e\x43onfigResponse\x12*\n\x11minimum_gas_price\x18\x01 \x01(\tR\x0fminimumGasPrice2\x91\x01\n\x07Service\x12\x85\x01\n\x06\x43onfig\x12\'.cosmos.base.node.v1beta1.ConfigRequest\x1a(.cosmos.base.node.v1beta1.ConfigResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /cosmos/base/node/v1beta1/configB/Z-github.com/cosmos/cosmos-sdk/client/grpc/nodeb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.node.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/client/grpc/node' + _SERVICE.methods_by_name['Config']._options = None + _SERVICE.methods_by_name['Config']._serialized_options = b'\202\323\344\223\002\"\022 /cosmos/base/node/v1beta1/config' + _CONFIGREQUEST._serialized_start=96 + _CONFIGREQUEST._serialized_end=111 + _CONFIGRESPONSE._serialized_start=113 + _CONFIGRESPONSE._serialized_end=173 + _SERVICE._serialized_start=176 + _SERVICE._serialized_end=321 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..3b013627 --- /dev/null +++ b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 ConfigRequest(google.protobuf.message.Message): + """ConfigRequest defines the request structure for the Config gRPC query.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ConfigRequest = ConfigRequest + +@typing_extensions.final +class ConfigResponse(google.protobuf.message.Message): + """ConfigResponse defines the response structure for the Config gRPC query.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MINIMUM_GAS_PRICE_FIELD_NUMBER: builtins.int + minimum_gas_price: builtins.str + def __init__( + self, + *, + minimum_gas_price: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["minimum_gas_price", b"minimum_gas_price"]) -> None: ... + +global___ConfigResponse = ConfigResponse diff --git a/nibiru_proto/cosmos/base/node/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..38ff222c --- /dev/null +++ b/nibiru_proto/cosmos/base/node/v1beta1/query_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.base.node.v1beta1 import query_pb2 as cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2 + + +class ServiceStub(object): + """Service defines the gRPC querier service for node related queries. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Config = channel.unary_unary( + '/cosmos.base.node.v1beta1.Service/Config', + request_serializer=cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigResponse.FromString, + ) + + +class ServiceServicer(object): + """Service defines the gRPC querier service for node related queries. + """ + + def Config(self, request, context): + """Config queries for the operator configuration. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Config': grpc.unary_unary_rpc_method_handler( + servicer.Config, + request_deserializer=cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigRequest.FromString, + response_serializer=cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.base.node.v1beta1.Service', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Service(object): + """Service defines the gRPC querier service for node related queries. + """ + + @staticmethod + def Config(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.node.v1beta1.Service/Config', + cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigRequest.SerializeToString, + cosmos_dot_base_dot_node_dot_v1beta1_dot_query__pb2.ConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.py b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.py new file mode 100644 index 00000000..c17a791c --- /dev/null +++ b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/query/v1beta1/pagination.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*cosmos/base/query/v1beta1/pagination.proto\x12\x19\x63osmos.base.query.v1beta1\"\x88\x01\n\x0bPageRequest\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key\x12\x16\n\x06offset\x18\x02 \x01(\x04R\x06offset\x12\x14\n\x05limit\x18\x03 \x01(\x04R\x05limit\x12\x1f\n\x0b\x63ount_total\x18\x04 \x01(\x08R\ncountTotal\x12\x18\n\x07reverse\x18\x05 \x01(\x08R\x07reverse\"?\n\x0cPageResponse\x12\x19\n\x08next_key\x18\x01 \x01(\x0cR\x07nextKey\x12\x14\n\x05total\x18\x02 \x01(\x04R\x05totalB*Z(github.com/cosmos/cosmos-sdk/types/queryb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.query.v1beta1.pagination_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z(github.com/cosmos/cosmos-sdk/types/query' + _PAGEREQUEST._serialized_start=74 + _PAGEREQUEST._serialized_end=210 + _PAGERESPONSE._serialized_start=212 + _PAGERESPONSE._serialized_end=275 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.pyi b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.pyi new file mode 100644 index 00000000..2a03a5a6 --- /dev/null +++ b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2.pyi @@ -0,0 +1,105 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 PageRequest(google.protobuf.message.Message): + """PageRequest is to be embedded in gRPC request messages for efficient + pagination. Ex: + + message SomeRequest { + Foo some_parameter = 1; + PageRequest pagination = 2; + } + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + COUNT_TOTAL_FIELD_NUMBER: builtins.int + REVERSE_FIELD_NUMBER: builtins.int + key: builtins.bytes + """key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + """ + offset: builtins.int + """offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + """ + limit: builtins.int + """limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + """ + count_total: builtins.bool + """count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + """ + reverse: builtins.bool + """reverse is set to true if results are to be returned in the descending order. + + Since: cosmos-sdk 0.43 + """ + def __init__( + self, + *, + key: builtins.bytes = ..., + offset: builtins.int = ..., + limit: builtins.int = ..., + count_total: builtins.bool = ..., + reverse: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["count_total", b"count_total", "key", b"key", "limit", b"limit", "offset", b"offset", "reverse", b"reverse"]) -> None: ... + +global___PageRequest = PageRequest + +@typing_extensions.final +class PageResponse(google.protobuf.message.Message): + """PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEXT_KEY_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + next_key: builtins.bytes + """next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + """ + total: builtins.int + """total is total number of results available if PageRequest.count_total + was set, its value is undefined otherwise + """ + def __init__( + self, + *, + next_key: builtins.bytes = ..., + total: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["next_key", b"next_key", "total", b"total"]) -> None: ... + +global___PageResponse = PageResponse diff --git a/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.py b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.py b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.py new file mode 100644 index 00000000..5c714d43 --- /dev/null +++ b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/reflection/v1beta1/reflection.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/cosmos/base/reflection/v1beta1/reflection.proto\x12\x1e\x63osmos.base.reflection.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\x1a\n\x18ListAllInterfacesRequest\"D\n\x19ListAllInterfacesResponse\x12\'\n\x0finterface_names\x18\x01 \x03(\tR\x0einterfaceNames\"C\n\x1aListImplementationsRequest\x12%\n\x0einterface_name\x18\x01 \x01(\tR\rinterfaceName\"_\n\x1bListImplementationsResponse\x12@\n\x1cimplementation_message_names\x18\x01 \x03(\tR\x1aimplementationMessageNames2\xb8\x03\n\x11ReflectionService\x12\xbc\x01\n\x11ListAllInterfaces\x12\x38.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest\x1a\x39.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse\"2\x82\xd3\xe4\x93\x02,\x12*/cosmos/base/reflection/v1beta1/interfaces\x12\xe3\x01\n\x13ListImplementations\x12:.cosmos.base.reflection.v1beta1.ListImplementationsRequest\x1a;.cosmos.base.reflection.v1beta1.ListImplementationsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/cosmos/base/reflection/v1beta1/interfaces/{interface_name}/implementationsB5Z3github.com/cosmos/cosmos-sdk/client/grpc/reflectionb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.reflection.v1beta1.reflection_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cosmos/cosmos-sdk/client/grpc/reflection' + _REFLECTIONSERVICE.methods_by_name['ListAllInterfaces']._options = None + _REFLECTIONSERVICE.methods_by_name['ListAllInterfaces']._serialized_options = b'\202\323\344\223\002,\022*/cosmos/base/reflection/v1beta1/interfaces' + _REFLECTIONSERVICE.methods_by_name['ListImplementations']._options = None + _REFLECTIONSERVICE.methods_by_name['ListImplementations']._serialized_options = b'\202\323\344\223\002M\022K/cosmos/base/reflection/v1beta1/interfaces/{interface_name}/implementations' + _LISTALLINTERFACESREQUEST._serialized_start=113 + _LISTALLINTERFACESREQUEST._serialized_end=139 + _LISTALLINTERFACESRESPONSE._serialized_start=141 + _LISTALLINTERFACESRESPONSE._serialized_end=209 + _LISTIMPLEMENTATIONSREQUEST._serialized_start=211 + _LISTIMPLEMENTATIONSREQUEST._serialized_end=278 + _LISTIMPLEMENTATIONSRESPONSE._serialized_start=280 + _LISTIMPLEMENTATIONSRESPONSE._serialized_end=375 + _REFLECTIONSERVICE._serialized_start=378 + _REFLECTIONSERVICE._serialized_end=818 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi new file mode 100644 index 00000000..55af8571 --- /dev/null +++ b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi @@ -0,0 +1,88 @@ +""" +@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 ListAllInterfacesRequest(google.protobuf.message.Message): + """ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ListAllInterfacesRequest = ListAllInterfacesRequest + +@typing_extensions.final +class ListAllInterfacesResponse(google.protobuf.message.Message): + """ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INTERFACE_NAMES_FIELD_NUMBER: builtins.int + @property + def interface_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """interface_names is an array of all the registered interfaces.""" + def __init__( + self, + *, + interface_names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["interface_names", b"interface_names"]) -> None: ... + +global___ListAllInterfacesResponse = ListAllInterfacesResponse + +@typing_extensions.final +class ListImplementationsRequest(google.protobuf.message.Message): + """ListImplementationsRequest is the request type of the ListImplementations + RPC. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INTERFACE_NAME_FIELD_NUMBER: builtins.int + interface_name: builtins.str + """interface_name defines the interface to query the implementations for.""" + def __init__( + self, + *, + interface_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["interface_name", b"interface_name"]) -> None: ... + +global___ListImplementationsRequest = ListImplementationsRequest + +@typing_extensions.final +class ListImplementationsResponse(google.protobuf.message.Message): + """ListImplementationsResponse is the response type of the ListImplementations + RPC. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER: builtins.int + @property + def implementation_message_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + implementation_message_names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["implementation_message_names", b"implementation_message_names"]) -> None: ... + +global___ListImplementationsResponse = ListImplementationsResponse diff --git a/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.py b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.py new file mode 100644 index 00000000..8ecd59a0 --- /dev/null +++ b/nibiru_proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.py @@ -0,0 +1,106 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.base.reflection.v1beta1 import reflection_pb2 as cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2 + + +class ReflectionServiceStub(object): + """ReflectionService defines a service for interface reflection. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListAllInterfaces = channel.unary_unary( + '/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces', + request_serializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesResponse.FromString, + ) + self.ListImplementations = channel.unary_unary( + '/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations', + request_serializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsResponse.FromString, + ) + + +class ReflectionServiceServicer(object): + """ReflectionService defines a service for interface reflection. + """ + + def ListAllInterfaces(self, request, context): + """ListAllInterfaces lists all the interfaces registered in the interface + registry. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListImplementations(self, request, context): + """ListImplementations list all the concrete types that implement a given + interface. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ReflectionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListAllInterfaces': grpc.unary_unary_rpc_method_handler( + servicer.ListAllInterfaces, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesResponse.SerializeToString, + ), + 'ListImplementations': grpc.unary_unary_rpc_method_handler( + servicer.ListImplementations, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.base.reflection.v1beta1.ReflectionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ReflectionService(object): + """ReflectionService defines a service for interface reflection. + """ + + @staticmethod + def ListAllInterfaces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces', + cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListAllInterfacesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListImplementations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations', + cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v1beta1_dot_reflection__pb2.ListImplementationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py b/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py new file mode 100644 index 00000000..b6a70276 --- /dev/null +++ b/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/reflection/v2alpha1/reflection.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0cosmos/base/reflection/v2alpha1/reflection.proto\x12\x1f\x63osmos.base.reflection.v2alpha1\x1a\x1cgoogle/api/annotations.proto\"\xe7\x03\n\rAppDescriptor\x12\x46\n\x05\x61uthn\x18\x01 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.AuthnDescriptorR\x05\x61uthn\x12\x46\n\x05\x63hain\x18\x02 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.ChainDescriptorR\x05\x63hain\x12\x46\n\x05\x63odec\x18\x03 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.CodecDescriptorR\x05\x63odec\x12^\n\rconfiguration\x18\x04 \x01(\x0b\x32\x38.cosmos.base.reflection.v2alpha1.ConfigurationDescriptorR\rconfiguration\x12_\n\x0equery_services\x18\x05 \x01(\x0b\x32\x38.cosmos.base.reflection.v2alpha1.QueryServicesDescriptorR\rqueryServices\x12=\n\x02tx\x18\x06 \x01(\x0b\x32-.cosmos.base.reflection.v2alpha1.TxDescriptorR\x02tx\"n\n\x0cTxDescriptor\x12\x1a\n\x08\x66ullname\x18\x01 \x01(\tR\x08\x66ullname\x12\x42\n\x04msgs\x18\x02 \x03(\x0b\x32..cosmos.base.reflection.v2alpha1.MsgDescriptorR\x04msgs\"h\n\x0f\x41uthnDescriptor\x12U\n\nsign_modes\x18\x01 \x03(\x0b\x32\x36.cosmos.base.reflection.v2alpha1.SigningModeDescriptorR\tsignModes\"\x91\x01\n\x15SigningModeDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06number\x18\x02 \x01(\x05R\x06number\x12L\n#authn_info_provider_method_fullname\x18\x03 \x01(\tR\x1f\x61uthnInfoProviderMethodFullname\"!\n\x0f\x43hainDescriptor\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"g\n\x0f\x43odecDescriptor\x12T\n\ninterfaces\x18\x01 \x03(\x0b\x32\x34.cosmos.base.reflection.v2alpha1.InterfaceDescriptorR\ninterfaces\"\xb2\x02\n\x13InterfaceDescriptor\x12\x1a\n\x08\x66ullname\x18\x01 \x01(\tR\x08\x66ullname\x12\x86\x01\n\x1cinterface_accepting_messages\x18\x02 \x03(\x0b\x32\x44.cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptorR\x1ainterfaceAcceptingMessages\x12v\n\x16interface_implementers\x18\x03 \x03(\x0b\x32?.cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptorR\x15interfaceImplementers\"W\n\x1eInterfaceImplementerDescriptor\x12\x1a\n\x08\x66ullname\x18\x01 \x01(\tR\x08\x66ullname\x12\x19\n\x08type_url\x18\x02 \x01(\tR\x07typeUrl\"w\n#InterfaceAcceptingMessageDescriptor\x12\x1a\n\x08\x66ullname\x18\x01 \x01(\tR\x08\x66ullname\x12\x34\n\x16\x66ield_descriptor_names\x18\x02 \x03(\tR\x14\x66ieldDescriptorNames\"\\\n\x17\x43onfigurationDescriptor\x12\x41\n\x1d\x62\x65\x63h32_account_address_prefix\x18\x01 \x01(\tR\x1a\x62\x65\x63h32AccountAddressPrefix\"1\n\rMsgDescriptor\x12 \n\x0cmsg_type_url\x18\x01 \x01(\tR\nmsgTypeUrl\"\x1b\n\x19GetAuthnDescriptorRequest\"d\n\x1aGetAuthnDescriptorResponse\x12\x46\n\x05\x61uthn\x18\x01 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.AuthnDescriptorR\x05\x61uthn\"\x1b\n\x19GetChainDescriptorRequest\"d\n\x1aGetChainDescriptorResponse\x12\x46\n\x05\x63hain\x18\x01 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.ChainDescriptorR\x05\x63hain\"\x1b\n\x19GetCodecDescriptorRequest\"d\n\x1aGetCodecDescriptorResponse\x12\x46\n\x05\x63odec\x18\x01 \x01(\x0b\x32\x30.cosmos.base.reflection.v2alpha1.CodecDescriptorR\x05\x63odec\"#\n!GetConfigurationDescriptorRequest\"v\n\"GetConfigurationDescriptorResponse\x12P\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x38.cosmos.base.reflection.v2alpha1.ConfigurationDescriptorR\x06\x63onfig\"#\n!GetQueryServicesDescriptorRequest\"x\n\"GetQueryServicesDescriptorResponse\x12R\n\x07queries\x18\x01 \x01(\x0b\x32\x38.cosmos.base.reflection.v2alpha1.QueryServicesDescriptorR\x07queries\"\x18\n\x16GetTxDescriptorRequest\"X\n\x17GetTxDescriptorResponse\x12=\n\x02tx\x18\x01 \x01(\x0b\x32-.cosmos.base.reflection.v2alpha1.TxDescriptorR\x02tx\"y\n\x17QueryServicesDescriptor\x12^\n\x0equery_services\x18\x01 \x03(\x0b\x32\x37.cosmos.base.reflection.v2alpha1.QueryServiceDescriptorR\rqueryServices\"\xa3\x01\n\x16QueryServiceDescriptor\x12\x1a\n\x08\x66ullname\x18\x01 \x01(\tR\x08\x66ullname\x12\x1b\n\tis_module\x18\x02 \x01(\x08R\x08isModule\x12P\n\x07methods\x18\x03 \x03(\x0b\x32\x36.cosmos.base.reflection.v2alpha1.QueryMethodDescriptorR\x07methods\"S\n\x15QueryMethodDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12&\n\x0f\x66ull_query_path\x18\x02 \x01(\tR\rfullQueryPath2\xa7\n\n\x11ReflectionService\x12\xcb\x01\n\x12GetAuthnDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/authn\x12\xcb\x01\n\x12GetChainDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/chain\x12\xcb\x01\n\x12GetCodecDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/codec\x12\xeb\x01\n\x1aGetConfigurationDescriptor\x12\x42.cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest\x1a\x43.cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse\"D\x82\xd3\xe4\x93\x02>\x12\x12Z\022\022= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class AppDescriptor(google.protobuf.message.Message): + """AppDescriptor describes a cosmos-sdk based application""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHN_FIELD_NUMBER: builtins.int + CHAIN_FIELD_NUMBER: builtins.int + CODEC_FIELD_NUMBER: builtins.int + CONFIGURATION_FIELD_NUMBER: builtins.int + QUERY_SERVICES_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + @property + def authn(self) -> global___AuthnDescriptor: + """AuthnDescriptor provides information on how to authenticate transactions on the application + NOTE: experimental and subject to change in future releases. + """ + @property + def chain(self) -> global___ChainDescriptor: + """chain provides the chain descriptor""" + @property + def codec(self) -> global___CodecDescriptor: + """codec provides metadata information regarding codec related types""" + @property + def configuration(self) -> global___ConfigurationDescriptor: + """configuration provides metadata information regarding the sdk.Config type""" + @property + def query_services(self) -> global___QueryServicesDescriptor: + """query_services provides metadata information regarding the available queriable endpoints""" + @property + def tx(self) -> global___TxDescriptor: + """tx provides metadata information regarding how to send transactions to the given application""" + def __init__( + self, + *, + authn: global___AuthnDescriptor | None = ..., + chain: global___ChainDescriptor | None = ..., + codec: global___CodecDescriptor | None = ..., + configuration: global___ConfigurationDescriptor | None = ..., + query_services: global___QueryServicesDescriptor | None = ..., + tx: global___TxDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["authn", b"authn", "chain", b"chain", "codec", b"codec", "configuration", b"configuration", "query_services", b"query_services", "tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authn", b"authn", "chain", b"chain", "codec", b"codec", "configuration", b"configuration", "query_services", b"query_services", "tx", b"tx"]) -> None: ... + +global___AppDescriptor = AppDescriptor + +@typing_extensions.final +class TxDescriptor(google.protobuf.message.Message): + """TxDescriptor describes the accepted transaction type""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULLNAME_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + fullname: builtins.str + """fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + it is not meant to support polymorphism of transaction types, it is supposed to be used by + reflection clients to understand if they can handle a specific transaction type in an application. + """ + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgDescriptor]: + """msgs lists the accepted application messages (sdk.Msg)""" + def __init__( + self, + *, + fullname: builtins.str = ..., + msgs: collections.abc.Iterable[global___MsgDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fullname", b"fullname", "msgs", b"msgs"]) -> None: ... + +global___TxDescriptor = TxDescriptor + +@typing_extensions.final +class AuthnDescriptor(google.protobuf.message.Message): + """AuthnDescriptor provides information on how to sign transactions without relying + on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGN_MODES_FIELD_NUMBER: builtins.int + @property + def sign_modes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningModeDescriptor]: + """sign_modes defines the supported signature algorithm""" + def __init__( + self, + *, + sign_modes: collections.abc.Iterable[global___SigningModeDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["sign_modes", b"sign_modes"]) -> None: ... + +global___AuthnDescriptor = AuthnDescriptor + +@typing_extensions.final +class SigningModeDescriptor(google.protobuf.message.Message): + """SigningModeDescriptor provides information on a signing flow of the application + NOTE(fdymylja): here we could go as far as providing an entire flow on how + to sign a message given a SigningModeDescriptor, but it's better to think about + this another time + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + AUTHN_INFO_PROVIDER_METHOD_FULLNAME_FIELD_NUMBER: builtins.int + name: builtins.str + """name defines the unique name of the signing mode""" + number: builtins.int + """number is the unique int32 identifier for the sign_mode enum""" + authn_info_provider_method_fullname: builtins.str + """authn_info_provider_method_fullname defines the fullname of the method to call to get + the metadata required to authenticate using the provided sign_modes + """ + def __init__( + self, + *, + name: builtins.str = ..., + number: builtins.int = ..., + authn_info_provider_method_fullname: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authn_info_provider_method_fullname", b"authn_info_provider_method_fullname", "name", b"name", "number", b"number"]) -> None: ... + +global___SigningModeDescriptor = SigningModeDescriptor + +@typing_extensions.final +class ChainDescriptor(google.protobuf.message.Message): + """ChainDescriptor describes chain information of the application""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + id: builtins.str + """id is the chain id""" + def __init__( + self, + *, + id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ... + +global___ChainDescriptor = ChainDescriptor + +@typing_extensions.final +class CodecDescriptor(google.protobuf.message.Message): + """CodecDescriptor describes the registered interfaces and provides metadata information on the types""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INTERFACES_FIELD_NUMBER: builtins.int + @property + def interfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceDescriptor]: + """interfaces is a list of the registerted interfaces descriptors""" + def __init__( + self, + *, + interfaces: collections.abc.Iterable[global___InterfaceDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["interfaces", b"interfaces"]) -> None: ... + +global___CodecDescriptor = CodecDescriptor + +@typing_extensions.final +class InterfaceDescriptor(google.protobuf.message.Message): + """InterfaceDescriptor describes the implementation of an interface""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULLNAME_FIELD_NUMBER: builtins.int + INTERFACE_ACCEPTING_MESSAGES_FIELD_NUMBER: builtins.int + INTERFACE_IMPLEMENTERS_FIELD_NUMBER: builtins.int + fullname: builtins.str + """fullname is the name of the interface""" + @property + def interface_accepting_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceAcceptingMessageDescriptor]: + """interface_accepting_messages contains information regarding the proto messages which contain the interface as + google.protobuf.Any field + """ + @property + def interface_implementers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceImplementerDescriptor]: + """interface_implementers is a list of the descriptors of the interface implementers""" + def __init__( + self, + *, + fullname: builtins.str = ..., + interface_accepting_messages: collections.abc.Iterable[global___InterfaceAcceptingMessageDescriptor] | None = ..., + interface_implementers: collections.abc.Iterable[global___InterfaceImplementerDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fullname", b"fullname", "interface_accepting_messages", b"interface_accepting_messages", "interface_implementers", b"interface_implementers"]) -> None: ... + +global___InterfaceDescriptor = InterfaceDescriptor + +@typing_extensions.final +class InterfaceImplementerDescriptor(google.protobuf.message.Message): + """InterfaceImplementerDescriptor describes an interface implementer""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULLNAME_FIELD_NUMBER: builtins.int + TYPE_URL_FIELD_NUMBER: builtins.int + fullname: builtins.str + """fullname is the protobuf queryable name of the interface implementer""" + type_url: builtins.str + """type_url defines the type URL used when marshalling the type as any + this is required so we can provide type safe google.protobuf.Any marshalling and + unmarshalling, making sure that we don't accept just 'any' type + in our interface fields + """ + def __init__( + self, + *, + fullname: builtins.str = ..., + type_url: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fullname", b"fullname", "type_url", b"type_url"]) -> None: ... + +global___InterfaceImplementerDescriptor = InterfaceImplementerDescriptor + +@typing_extensions.final +class InterfaceAcceptingMessageDescriptor(google.protobuf.message.Message): + """InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + an interface represented as a google.protobuf.Any + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULLNAME_FIELD_NUMBER: builtins.int + FIELD_DESCRIPTOR_NAMES_FIELD_NUMBER: builtins.int + fullname: builtins.str + """fullname is the protobuf fullname of the type containing the interface""" + @property + def field_descriptor_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """field_descriptor_names is a list of the protobuf name (not fullname) of the field + which contains the interface as google.protobuf.Any (the interface is the same, but + it can be in multiple fields of the same proto message) + """ + def __init__( + self, + *, + fullname: builtins.str = ..., + field_descriptor_names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["field_descriptor_names", b"field_descriptor_names", "fullname", b"fullname"]) -> None: ... + +global___InterfaceAcceptingMessageDescriptor = InterfaceAcceptingMessageDescriptor + +@typing_extensions.final +class ConfigurationDescriptor(google.protobuf.message.Message): + """ConfigurationDescriptor contains metadata information on the sdk.Config""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BECH32_ACCOUNT_ADDRESS_PREFIX_FIELD_NUMBER: builtins.int + bech32_account_address_prefix: builtins.str + """bech32_account_address_prefix is the account address prefix""" + def __init__( + self, + *, + bech32_account_address_prefix: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bech32_account_address_prefix", b"bech32_account_address_prefix"]) -> None: ... + +global___ConfigurationDescriptor = ConfigurationDescriptor + +@typing_extensions.final +class MsgDescriptor(google.protobuf.message.Message): + """MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + msg_type_url: builtins.str + """msg_type_url contains the TypeURL of a sdk.Msg.""" + def __init__( + self, + *, + msg_type_url: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["msg_type_url", b"msg_type_url"]) -> None: ... + +global___MsgDescriptor = MsgDescriptor + +@typing_extensions.final +class GetAuthnDescriptorRequest(google.protobuf.message.Message): + """GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetAuthnDescriptorRequest = GetAuthnDescriptorRequest + +@typing_extensions.final +class GetAuthnDescriptorResponse(google.protobuf.message.Message): + """GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHN_FIELD_NUMBER: builtins.int + @property + def authn(self) -> global___AuthnDescriptor: + """authn describes how to authenticate to the application when sending transactions""" + def __init__( + self, + *, + authn: global___AuthnDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["authn", b"authn"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authn", b"authn"]) -> None: ... + +global___GetAuthnDescriptorResponse = GetAuthnDescriptorResponse + +@typing_extensions.final +class GetChainDescriptorRequest(google.protobuf.message.Message): + """GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetChainDescriptorRequest = GetChainDescriptorRequest + +@typing_extensions.final +class GetChainDescriptorResponse(google.protobuf.message.Message): + """GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHAIN_FIELD_NUMBER: builtins.int + @property + def chain(self) -> global___ChainDescriptor: + """chain describes application chain information""" + def __init__( + self, + *, + chain: global___ChainDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["chain", b"chain"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["chain", b"chain"]) -> None: ... + +global___GetChainDescriptorResponse = GetChainDescriptorResponse + +@typing_extensions.final +class GetCodecDescriptorRequest(google.protobuf.message.Message): + """GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetCodecDescriptorRequest = GetCodecDescriptorRequest + +@typing_extensions.final +class GetCodecDescriptorResponse(google.protobuf.message.Message): + """GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODEC_FIELD_NUMBER: builtins.int + @property + def codec(self) -> global___CodecDescriptor: + """codec describes the application codec such as registered interfaces and implementations""" + def __init__( + self, + *, + codec: global___CodecDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["codec", b"codec"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["codec", b"codec"]) -> None: ... + +global___GetCodecDescriptorResponse = GetCodecDescriptorResponse + +@typing_extensions.final +class GetConfigurationDescriptorRequest(google.protobuf.message.Message): + """GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetConfigurationDescriptorRequest = GetConfigurationDescriptorRequest + +@typing_extensions.final +class GetConfigurationDescriptorResponse(google.protobuf.message.Message): + """GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONFIG_FIELD_NUMBER: builtins.int + @property + def config(self) -> global___ConfigurationDescriptor: + """config describes the application's sdk.Config""" + def __init__( + self, + *, + config: global___ConfigurationDescriptor | 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"]) -> None: ... + +global___GetConfigurationDescriptorResponse = GetConfigurationDescriptorResponse + +@typing_extensions.final +class GetQueryServicesDescriptorRequest(google.protobuf.message.Message): + """GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetQueryServicesDescriptorRequest = GetQueryServicesDescriptorRequest + +@typing_extensions.final +class GetQueryServicesDescriptorResponse(google.protobuf.message.Message): + """GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUERIES_FIELD_NUMBER: builtins.int + @property + def queries(self) -> global___QueryServicesDescriptor: + """queries provides information on the available queryable services""" + def __init__( + self, + *, + queries: global___QueryServicesDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["queries", b"queries"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["queries", b"queries"]) -> None: ... + +global___GetQueryServicesDescriptorResponse = GetQueryServicesDescriptorResponse + +@typing_extensions.final +class GetTxDescriptorRequest(google.protobuf.message.Message): + """GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetTxDescriptorRequest = GetTxDescriptorRequest + +@typing_extensions.final +class GetTxDescriptorResponse(google.protobuf.message.Message): + """GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + @property + def tx(self) -> global___TxDescriptor: + """tx provides information on msgs that can be forwarded to the application + alongside the accepted transaction protobuf type + """ + def __init__( + self, + *, + tx: global___TxDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> None: ... + +global___GetTxDescriptorResponse = GetTxDescriptorResponse + +@typing_extensions.final +class QueryServicesDescriptor(google.protobuf.message.Message): + """QueryServicesDescriptor contains the list of cosmos-sdk queriable services""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUERY_SERVICES_FIELD_NUMBER: builtins.int + @property + def query_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryServiceDescriptor]: + """query_services is a list of cosmos-sdk QueryServiceDescriptor""" + def __init__( + self, + *, + query_services: collections.abc.Iterable[global___QueryServiceDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["query_services", b"query_services"]) -> None: ... + +global___QueryServicesDescriptor = QueryServicesDescriptor + +@typing_extensions.final +class QueryServiceDescriptor(google.protobuf.message.Message): + """QueryServiceDescriptor describes a cosmos-sdk queryable service""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULLNAME_FIELD_NUMBER: builtins.int + IS_MODULE_FIELD_NUMBER: builtins.int + METHODS_FIELD_NUMBER: builtins.int + fullname: builtins.str + """fullname is the protobuf fullname of the service descriptor""" + is_module: builtins.bool + """is_module describes if this service is actually exposed by an application's module""" + @property + def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryMethodDescriptor]: + """methods provides a list of query service methods""" + def __init__( + self, + *, + fullname: builtins.str = ..., + is_module: builtins.bool = ..., + methods: collections.abc.Iterable[global___QueryMethodDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fullname", b"fullname", "is_module", b"is_module", "methods", b"methods"]) -> None: ... + +global___QueryServiceDescriptor = QueryServiceDescriptor + +@typing_extensions.final +class QueryMethodDescriptor(google.protobuf.message.Message): + """QueryMethodDescriptor describes a queryable method of a query service + no other info is provided beside method name and tendermint queryable path + because it would be redundant with the grpc reflection service + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + FULL_QUERY_PATH_FIELD_NUMBER: builtins.int + name: builtins.str + """name is the protobuf name (not fullname) of the method""" + full_query_path: builtins.str + """full_query_path is the path that can be used to query + this method via tendermint abci.Query + """ + def __init__( + self, + *, + name: builtins.str = ..., + full_query_path: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["full_query_path", b"full_query_path", "name", b"name"]) -> None: ... + +global___QueryMethodDescriptor = QueryMethodDescriptor diff --git a/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.py b/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.py new file mode 100644 index 00000000..ef857ab2 --- /dev/null +++ b/nibiru_proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.py @@ -0,0 +1,242 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.base.reflection.v2alpha1 import reflection_pb2 as cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2 + + +class ReflectionServiceStub(object): + """ReflectionService defines a service for application reflection. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAuthnDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetAuthnDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorResponse.FromString, + ) + self.GetChainDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetChainDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorResponse.FromString, + ) + self.GetCodecDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetCodecDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorResponse.FromString, + ) + self.GetConfigurationDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetConfigurationDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorResponse.FromString, + ) + self.GetQueryServicesDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetQueryServicesDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorResponse.FromString, + ) + self.GetTxDescriptor = channel.unary_unary( + '/cosmos.base.reflection.v2alpha1.ReflectionService/GetTxDescriptor', + request_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorResponse.FromString, + ) + + +class ReflectionServiceServicer(object): + """ReflectionService defines a service for application reflection. + """ + + def GetAuthnDescriptor(self, request, context): + """GetAuthnDescriptor returns information on how to authenticate transactions in the application + NOTE: this RPC is still experimental and might be subject to breaking changes or removal in + future releases of the cosmos-sdk. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChainDescriptor(self, request, context): + """GetChainDescriptor returns the description of the chain + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCodecDescriptor(self, request, context): + """GetCodecDescriptor returns the descriptor of the codec of the application + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetConfigurationDescriptor(self, request, context): + """GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetQueryServicesDescriptor(self, request, context): + """GetQueryServicesDescriptor returns the available gRPC queryable services of the application + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTxDescriptor(self, request, context): + """GetTxDescriptor returns information on the used transaction object and available msgs that can be used + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ReflectionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAuthnDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetAuthnDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorResponse.SerializeToString, + ), + 'GetChainDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetChainDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorResponse.SerializeToString, + ), + 'GetCodecDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetCodecDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorResponse.SerializeToString, + ), + 'GetConfigurationDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetConfigurationDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorResponse.SerializeToString, + ), + 'GetQueryServicesDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetQueryServicesDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorResponse.SerializeToString, + ), + 'GetTxDescriptor': grpc.unary_unary_rpc_method_handler( + servicer.GetTxDescriptor, + request_deserializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorRequest.FromString, + response_serializer=cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.base.reflection.v2alpha1.ReflectionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ReflectionService(object): + """ReflectionService defines a service for application reflection. + """ + + @staticmethod + def GetAuthnDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetAuthnDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetAuthnDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChainDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetChainDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetChainDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCodecDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetCodecDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetCodecDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetConfigurationDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetConfigurationDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetConfigurationDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetQueryServicesDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetQueryServicesDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetQueryServicesDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTxDescriptor(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.reflection.v2alpha1.ReflectionService/GetTxDescriptor', + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorRequest.SerializeToString, + cosmos_dot_base_dot_reflection_dot_v2alpha1_dot_reflection__pb2.GetTxDescriptorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.py b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.py new file mode 100644 index 00000000..55efc4ef --- /dev/null +++ b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/snapshots/v1beta1/snapshot.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,cosmos/base/snapshots/v1beta1/snapshot.proto\x12\x1d\x63osmos.base.snapshots.v1beta1\x1a\x14gogoproto/gogo.proto\"\xb1\x01\n\x08Snapshot\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x16\n\x06\x66ormat\x18\x02 \x01(\rR\x06\x66ormat\x12\x16\n\x06\x63hunks\x18\x03 \x01(\rR\x06\x63hunks\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\x12I\n\x08metadata\x18\x05 \x01(\x0b\x32\'.cosmos.base.snapshots.v1beta1.MetadataB\x04\xc8\xde\x1f\x00R\x08metadata\"-\n\x08Metadata\x12!\n\x0c\x63hunk_hashes\x18\x01 \x03(\x0cR\x0b\x63hunkHashes\"\x87\x04\n\x0cSnapshotItem\x12H\n\x05store\x18\x01 \x01(\x0b\x32\x30.cosmos.base.snapshots.v1beta1.SnapshotStoreItemH\x00R\x05store\x12O\n\x04iavl\x18\x02 \x01(\x0b\x32/.cosmos.base.snapshots.v1beta1.SnapshotIAVLItemB\x08\xe2\xde\x1f\x04IAVLH\x00R\x04iavl\x12T\n\textension\x18\x03 \x01(\x0b\x32\x34.cosmos.base.snapshots.v1beta1.SnapshotExtensionMetaH\x00R\textension\x12\x66\n\x11\x65xtension_payload\x18\x04 \x01(\x0b\x32\x37.cosmos.base.snapshots.v1beta1.SnapshotExtensionPayloadH\x00R\x10\x65xtensionPayload\x12I\n\x02kv\x18\x05 \x01(\x0b\x32-.cosmos.base.snapshots.v1beta1.SnapshotKVItemB\x08\x18\x01\xe2\xde\x1f\x02KVH\x00R\x02kv\x12K\n\x06schema\x18\x06 \x01(\x0b\x32-.cosmos.base.snapshots.v1beta1.SnapshotSchemaB\x02\x18\x01H\x00R\x06schemaB\x06\n\x04item\"\'\n\x11SnapshotStoreItem\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"l\n\x10SnapshotIAVLItem\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\x12\x16\n\x06height\x18\x04 \x01(\x05R\x06height\"C\n\x15SnapshotExtensionMeta\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06\x66ormat\x18\x02 \x01(\rR\x06\x66ormat\"4\n\x18SnapshotExtensionPayload\x12\x18\n\x07payload\x18\x01 \x01(\x0cR\x07payload\"<\n\x0eSnapshotKVItem\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value:\x02\x18\x01\"(\n\x0eSnapshotSchema\x12\x12\n\x04keys\x18\x01 \x03(\x0cR\x04keys:\x02\x18\x01\x42.Z,github.com/cosmos/cosmos-sdk/snapshots/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.snapshots.v1beta1.snapshot_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/snapshots/types' + _SNAPSHOT.fields_by_name['metadata']._options = None + _SNAPSHOT.fields_by_name['metadata']._serialized_options = b'\310\336\037\000' + _SNAPSHOTITEM.fields_by_name['iavl']._options = None + _SNAPSHOTITEM.fields_by_name['iavl']._serialized_options = b'\342\336\037\004IAVL' + _SNAPSHOTITEM.fields_by_name['kv']._options = None + _SNAPSHOTITEM.fields_by_name['kv']._serialized_options = b'\030\001\342\336\037\002KV' + _SNAPSHOTITEM.fields_by_name['schema']._options = None + _SNAPSHOTITEM.fields_by_name['schema']._serialized_options = b'\030\001' + _SNAPSHOTKVITEM._options = None + _SNAPSHOTKVITEM._serialized_options = b'\030\001' + _SNAPSHOTSCHEMA._options = None + _SNAPSHOTSCHEMA._serialized_options = b'\030\001' + _SNAPSHOT._serialized_start=102 + _SNAPSHOT._serialized_end=279 + _METADATA._serialized_start=281 + _METADATA._serialized_end=326 + _SNAPSHOTITEM._serialized_start=329 + _SNAPSHOTITEM._serialized_end=848 + _SNAPSHOTSTOREITEM._serialized_start=850 + _SNAPSHOTSTOREITEM._serialized_end=889 + _SNAPSHOTIAVLITEM._serialized_start=891 + _SNAPSHOTIAVLITEM._serialized_end=999 + _SNAPSHOTEXTENSIONMETA._serialized_start=1001 + _SNAPSHOTEXTENSIONMETA._serialized_end=1068 + _SNAPSHOTEXTENSIONPAYLOAD._serialized_start=1070 + _SNAPSHOTEXTENSIONPAYLOAD._serialized_end=1122 + _SNAPSHOTKVITEM._serialized_start=1124 + _SNAPSHOTKVITEM._serialized_end=1184 + _SNAPSHOTSCHEMA._serialized_start=1186 + _SNAPSHOTSCHEMA._serialized_end=1226 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi new file mode 100644 index 00000000..e90460fb --- /dev/null +++ b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi @@ -0,0 +1,250 @@ +""" +@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 Snapshot(google.protobuf.message.Message): + """Snapshot contains Tendermint state sync snapshot info.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNKS_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + height: builtins.int + format: builtins.int + chunks: builtins.int + hash: builtins.bytes + @property + def metadata(self) -> global___Metadata: ... + def __init__( + self, + *, + height: builtins.int = ..., + format: builtins.int = ..., + chunks: builtins.int = ..., + hash: builtins.bytes = ..., + metadata: global___Metadata | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["chunks", b"chunks", "format", b"format", "hash", b"hash", "height", b"height", "metadata", b"metadata"]) -> None: ... + +global___Snapshot = Snapshot + +@typing_extensions.final +class Metadata(google.protobuf.message.Message): + """Metadata contains SDK-specific snapshot metadata.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHUNK_HASHES_FIELD_NUMBER: builtins.int + @property + def chunk_hashes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """SHA-256 chunk hashes""" + def __init__( + self, + *, + chunk_hashes: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunk_hashes", b"chunk_hashes"]) -> None: ... + +global___Metadata = Metadata + +@typing_extensions.final +class SnapshotItem(google.protobuf.message.Message): + """SnapshotItem is an item contained in a rootmulti.Store snapshot. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_FIELD_NUMBER: builtins.int + IAVL_FIELD_NUMBER: builtins.int + EXTENSION_FIELD_NUMBER: builtins.int + EXTENSION_PAYLOAD_FIELD_NUMBER: builtins.int + KV_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + @property + def store(self) -> global___SnapshotStoreItem: ... + @property + def iavl(self) -> global___SnapshotIAVLItem: ... + @property + def extension(self) -> global___SnapshotExtensionMeta: ... + @property + def extension_payload(self) -> global___SnapshotExtensionPayload: ... + @property + def kv(self) -> global___SnapshotKVItem: ... + @property + def schema(self) -> global___SnapshotSchema: ... + def __init__( + self, + *, + store: global___SnapshotStoreItem | None = ..., + iavl: global___SnapshotIAVLItem | None = ..., + extension: global___SnapshotExtensionMeta | None = ..., + extension_payload: global___SnapshotExtensionPayload | None = ..., + kv: global___SnapshotKVItem | None = ..., + schema: global___SnapshotSchema | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["extension", b"extension", "extension_payload", b"extension_payload", "iavl", b"iavl", "item", b"item", "kv", b"kv", "schema", b"schema", "store", b"store"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["extension", b"extension", "extension_payload", b"extension_payload", "iavl", b"iavl", "item", b"item", "kv", b"kv", "schema", b"schema", "store", b"store"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["item", b"item"]) -> typing_extensions.Literal["store", "iavl", "extension", "extension_payload", "kv", "schema"] | None: ... + +global___SnapshotItem = SnapshotItem + +@typing_extensions.final +class SnapshotStoreItem(google.protobuf.message.Message): + """SnapshotStoreItem contains metadata about a snapshotted store. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ... + +global___SnapshotStoreItem = SnapshotStoreItem + +@typing_extensions.final +class SnapshotIAVLItem(google.protobuf.message.Message): + """SnapshotIAVLItem is an exported IAVL node. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + key: builtins.bytes + value: builtins.bytes + version: builtins.int + """version is block height""" + height: builtins.int + """height is depth of the tree.""" + def __init__( + self, + *, + key: builtins.bytes = ..., + value: builtins.bytes = ..., + version: builtins.int = ..., + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "key", b"key", "value", b"value", "version", b"version"]) -> None: ... + +global___SnapshotIAVLItem = SnapshotIAVLItem + +@typing_extensions.final +class SnapshotExtensionMeta(google.protobuf.message.Message): + """SnapshotExtensionMeta contains metadata about an external snapshotter. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + name: builtins.str + format: builtins.int + def __init__( + self, + *, + name: builtins.str = ..., + format: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["format", b"format", "name", b"name"]) -> None: ... + +global___SnapshotExtensionMeta = SnapshotExtensionMeta + +@typing_extensions.final +class SnapshotExtensionPayload(google.protobuf.message.Message): + """SnapshotExtensionPayload contains payloads of an external snapshotter. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAYLOAD_FIELD_NUMBER: builtins.int + payload: builtins.bytes + def __init__( + self, + *, + payload: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["payload", b"payload"]) -> None: ... + +global___SnapshotExtensionPayload = SnapshotExtensionPayload + +@typing_extensions.final +class SnapshotKVItem(google.protobuf.message.Message): + """SnapshotKVItem is an exported Key/Value Pair + + Since: cosmos-sdk 0.46 + Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.bytes + value: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + value: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + +global___SnapshotKVItem = SnapshotKVItem + +@typing_extensions.final +class SnapshotSchema(google.protobuf.message.Message): + """SnapshotSchema is an exported schema of smt store + + Since: cosmos-sdk 0.46 + Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEYS_FIELD_NUMBER: builtins.int + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__( + self, + *, + keys: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["keys", b"keys"]) -> None: ... + +global___SnapshotSchema = SnapshotSchema diff --git a/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.py b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.py b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.py new file mode 100644 index 00000000..6f023dae --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/store/v1beta1/commit_info.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+cosmos/base/store/v1beta1/commit_info.proto\x12\x19\x63osmos.base.store.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\x01\n\nCommitInfo\x12\x18\n\x07version\x18\x01 \x01(\x03R\x07version\x12K\n\x0bstore_infos\x18\x02 \x03(\x0b\x32$.cosmos.base.store.v1beta1.StoreInfoB\x04\xc8\xde\x1f\x00R\nstoreInfos\x12\x42\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\"g\n\tStoreInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x46\n\tcommit_id\x18\x02 \x01(\x0b\x32#.cosmos.base.store.v1beta1.CommitIDB\x04\xc8\xde\x1f\x00R\x08\x63ommitId\">\n\x08\x43ommitID\x12\x18\n\x07version\x18\x01 \x01(\x03R\x07version\x12\x12\n\x04hash\x18\x02 \x01(\x0cR\x04hash:\x04\x98\xa0\x1f\x00\x42*Z(github.com/cosmos/cosmos-sdk/store/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.store.v1beta1.commit_info_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z(github.com/cosmos/cosmos-sdk/store/types' + _COMMITINFO.fields_by_name['store_infos']._options = None + _COMMITINFO.fields_by_name['store_infos']._serialized_options = b'\310\336\037\000' + _COMMITINFO.fields_by_name['timestamp']._options = None + _COMMITINFO.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _STOREINFO.fields_by_name['commit_id']._options = None + _STOREINFO.fields_by_name['commit_id']._serialized_options = b'\310\336\037\000' + _COMMITID._options = None + _COMMITID._serialized_options = b'\230\240\037\000' + _COMMITINFO._serialized_start=130 + _COMMITINFO._serialized_end=313 + _STOREINFO._serialized_start=315 + _STOREINFO._serialized_end=418 + _COMMITID._serialized_start=420 + _COMMITID._serialized_end=482 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi new file mode 100644 index 00000000..64d9ca87 --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi @@ -0,0 +1,92 @@ +""" +@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 google.protobuf.timestamp_pb2 +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 CommitInfo(google.protobuf.message.Message): + """CommitInfo defines commit information used by the multi-store when committing + a version/height. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + STORE_INFOS_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + version: builtins.int + @property + def store_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoreInfo]: ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + version: builtins.int = ..., + store_infos: collections.abc.Iterable[global___StoreInfo] | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["store_infos", b"store_infos", "timestamp", b"timestamp", "version", b"version"]) -> None: ... + +global___CommitInfo = CommitInfo + +@typing_extensions.final +class StoreInfo(google.protobuf.message.Message): + """StoreInfo defines store-specific commit information. It contains a reference + between a store name and the commit ID. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + COMMIT_ID_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def commit_id(self) -> global___CommitID: ... + def __init__( + self, + *, + name: builtins.str = ..., + commit_id: global___CommitID | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_id", b"commit_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_id", b"commit_id", "name", b"name"]) -> None: ... + +global___StoreInfo = StoreInfo + +@typing_extensions.final +class CommitID(google.protobuf.message.Message): + """CommitID defines the commitment information when a specific store is + committed. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + version: builtins.int + hash: builtins.bytes + def __init__( + self, + *, + version: builtins.int = ..., + hash: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash", "version", b"version"]) -> None: ... + +global___CommitID = CommitID diff --git a/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.py b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.py b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.py new file mode 100644 index 00000000..c3549b57 --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/store/v1beta1/listening.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from tendermint.abci import types_pb2 as tendermint_dot_abci_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)cosmos/base/store/v1beta1/listening.proto\x12\x19\x63osmos.base.store.v1beta1\x1a\x1btendermint/abci/types.proto\"j\n\x0bStoreKVPair\x12\x1b\n\tstore_key\x18\x01 \x01(\tR\x08storeKey\x12\x16\n\x06\x64\x65lete\x18\x02 \x01(\x08R\x06\x64\x65lete\x12\x10\n\x03key\x18\x03 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x04 \x01(\x0cR\x05value\"\x83\x05\n\rBlockMetadata\x12R\n\x13request_begin_block\x18\x01 \x01(\x0b\x32\".tendermint.abci.RequestBeginBlockR\x11requestBeginBlock\x12U\n\x14response_begin_block\x18\x02 \x01(\x0b\x32#.tendermint.abci.ResponseBeginBlockR\x12responseBeginBlock\x12S\n\x0b\x64\x65liver_txs\x18\x03 \x03(\x0b\x32\x32.cosmos.base.store.v1beta1.BlockMetadata.DeliverTxR\ndeliverTxs\x12L\n\x11request_end_block\x18\x04 \x01(\x0b\x32 .tendermint.abci.RequestEndBlockR\x0frequestEndBlock\x12O\n\x12response_end_block\x18\x05 \x01(\x0b\x32!.tendermint.abci.ResponseEndBlockR\x10responseEndBlock\x12H\n\x0fresponse_commit\x18\x06 \x01(\x0b\x32\x1f.tendermint.abci.ResponseCommitR\x0eresponseCommit\x1a\x88\x01\n\tDeliverTx\x12;\n\x07request\x18\x01 \x01(\x0b\x32!.tendermint.abci.RequestDeliverTxR\x07request\x12>\n\x08response\x18\x02 \x01(\x0b\x32\".tendermint.abci.ResponseDeliverTxR\x08responseB*Z(github.com/cosmos/cosmos-sdk/store/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.store.v1beta1.listening_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z(github.com/cosmos/cosmos-sdk/store/types' + _STOREKVPAIR._serialized_start=101 + _STOREKVPAIR._serialized_end=207 + _BLOCKMETADATA._serialized_start=210 + _BLOCKMETADATA._serialized_end=853 + _BLOCKMETADATA_DELIVERTX._serialized_start=717 + _BLOCKMETADATA_DELIVERTX._serialized_end=853 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.pyi b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.pyi new file mode 100644 index 00000000..96d6937b --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2.pyi @@ -0,0 +1,113 @@ +""" +@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 +import tendermint.abci.types_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class StoreKVPair(google.protobuf.message.Message): + """StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) + It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and + Deletes + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_KEY_FIELD_NUMBER: builtins.int + DELETE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + store_key: builtins.str + """the store key for the KVStore this pair originates from""" + delete: builtins.bool + """true indicates a delete operation, false indicates a set operation""" + key: builtins.bytes + value: builtins.bytes + def __init__( + self, + *, + store_key: builtins.str = ..., + delete: builtins.bool = ..., + key: builtins.bytes = ..., + value: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delete", b"delete", "key", b"key", "store_key", b"store_key", "value", b"value"]) -> None: ... + +global___StoreKVPair = StoreKVPair + +@typing_extensions.final +class BlockMetadata(google.protobuf.message.Message): + """BlockMetadata contains all the abci event data of a block + the file streamer dump them into files together with the state changes. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class DeliverTx(google.protobuf.message.Message): + """DeliverTx encapulate deliver tx request and response.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REQUEST_FIELD_NUMBER: builtins.int + RESPONSE_FIELD_NUMBER: builtins.int + @property + def request(self) -> tendermint.abci.types_pb2.RequestDeliverTx: ... + @property + def response(self) -> tendermint.abci.types_pb2.ResponseDeliverTx: ... + def __init__( + self, + *, + request: tendermint.abci.types_pb2.RequestDeliverTx | None = ..., + response: tendermint.abci.types_pb2.ResponseDeliverTx | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["request", b"request", "response", b"response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["request", b"request", "response", b"response"]) -> None: ... + + REQUEST_BEGIN_BLOCK_FIELD_NUMBER: builtins.int + RESPONSE_BEGIN_BLOCK_FIELD_NUMBER: builtins.int + DELIVER_TXS_FIELD_NUMBER: builtins.int + REQUEST_END_BLOCK_FIELD_NUMBER: builtins.int + RESPONSE_END_BLOCK_FIELD_NUMBER: builtins.int + RESPONSE_COMMIT_FIELD_NUMBER: builtins.int + @property + def request_begin_block(self) -> tendermint.abci.types_pb2.RequestBeginBlock: ... + @property + def response_begin_block(self) -> tendermint.abci.types_pb2.ResponseBeginBlock: ... + @property + def deliver_txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BlockMetadata.DeliverTx]: ... + @property + def request_end_block(self) -> tendermint.abci.types_pb2.RequestEndBlock: ... + @property + def response_end_block(self) -> tendermint.abci.types_pb2.ResponseEndBlock: ... + @property + def response_commit(self) -> tendermint.abci.types_pb2.ResponseCommit: ... + def __init__( + self, + *, + request_begin_block: tendermint.abci.types_pb2.RequestBeginBlock | None = ..., + response_begin_block: tendermint.abci.types_pb2.ResponseBeginBlock | None = ..., + deliver_txs: collections.abc.Iterable[global___BlockMetadata.DeliverTx] | None = ..., + request_end_block: tendermint.abci.types_pb2.RequestEndBlock | None = ..., + response_end_block: tendermint.abci.types_pb2.ResponseEndBlock | None = ..., + response_commit: tendermint.abci.types_pb2.ResponseCommit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["request_begin_block", b"request_begin_block", "request_end_block", b"request_end_block", "response_begin_block", b"response_begin_block", "response_commit", b"response_commit", "response_end_block", b"response_end_block"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deliver_txs", b"deliver_txs", "request_begin_block", b"request_begin_block", "request_end_block", b"request_end_block", "response_begin_block", b"response_begin_block", "response_commit", b"response_commit", "response_end_block", b"response_end_block"]) -> None: ... + +global___BlockMetadata = BlockMetadata diff --git a/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.py b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.py new file mode 100644 index 00000000..5eb372a2 --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/tendermint/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from tendermint.p2p import types_pb2 as tendermint_dot_p2p_dot_types__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from cosmos.base.tendermint.v1beta1 import types_pb2 as cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_types__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from tendermint.types import block_pb2 as tendermint_dot_types_dot_block__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*cosmos/base/tendermint/v1beta1/query.proto\x12\x1e\x63osmos.base.tendermint.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1atendermint/p2p/types.proto\x1a\x1ctendermint/types/types.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a*cosmos/base/tendermint/v1beta1/types.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1ctendermint/types/block.proto\x1a\x11\x61mino/amino.proto\"\x80\x01\n\x1eGetValidatorSetByHeightRequest\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xd8\x01\n\x1fGetValidatorSetByHeightResponse\x12!\n\x0c\x62lock_height\x18\x01 \x01(\x03R\x0b\x62lockHeight\x12I\n\nvalidators\x18\x02 \x03(\x0b\x32).cosmos.base.tendermint.v1beta1.ValidatorR\nvalidators\x12G\n\npagination\x18\x03 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"f\n\x1cGetLatestValidatorSetRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xd6\x01\n\x1dGetLatestValidatorSetResponse\x12!\n\x0c\x62lock_height\x18\x01 \x01(\x03R\x0b\x62lockHeight\x12I\n\nvalidators\x18\x02 \x03(\x0b\x32).cosmos.base.tendermint.v1beta1.ValidatorR\nvalidators\x12G\n\npagination\x18\x03 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xbe\x01\n\tValidator\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12-\n\x07pub_key\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06pubKey\x12!\n\x0cvoting_power\x18\x03 \x01(\x03R\x0bvotingPower\x12+\n\x11proposer_priority\x18\x04 \x01(\x03R\x10proposerPriority\"1\n\x17GetBlockByHeightRequest\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\"\xc3\x01\n\x18GetBlockByHeightResponse\x12\x34\n\x08\x62lock_id\x18\x01 \x01(\x0b\x32\x19.tendermint.types.BlockIDR\x07\x62lockId\x12-\n\x05\x62lock\x18\x02 \x01(\x0b\x32\x17.tendermint.types.BlockR\x05\x62lock\x12\x42\n\tsdk_block\x18\x03 \x01(\x0b\x32%.cosmos.base.tendermint.v1beta1.BlockR\x08sdkBlock\"\x17\n\x15GetLatestBlockRequest\"\xc1\x01\n\x16GetLatestBlockResponse\x12\x34\n\x08\x62lock_id\x18\x01 \x01(\x0b\x32\x19.tendermint.types.BlockIDR\x07\x62lockId\x12-\n\x05\x62lock\x18\x02 \x01(\x0b\x32\x17.tendermint.types.BlockR\x05\x62lock\x12\x42\n\tsdk_block\x18\x03 \x01(\x0b\x32%.cosmos.base.tendermint.v1beta1.BlockR\x08sdkBlock\"\x13\n\x11GetSyncingRequest\".\n\x12GetSyncingResponse\x12\x18\n\x07syncing\x18\x01 \x01(\x08R\x07syncing\"\x14\n\x12GetNodeInfoRequest\"\xc0\x01\n\x13GetNodeInfoResponse\x12K\n\x11\x64\x65\x66\x61ult_node_info\x18\x01 \x01(\x0b\x32\x1f.tendermint.p2p.DefaultNodeInfoR\x0f\x64\x65\x66\x61ultNodeInfo\x12\\\n\x13\x61pplication_version\x18\x02 \x01(\x0b\x32+.cosmos.base.tendermint.v1beta1.VersionInfoR\x12\x61pplicationVersion\"\xa8\x02\n\x0bVersionInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n\x08\x61pp_name\x18\x02 \x01(\tR\x07\x61ppName\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x1d\n\ngit_commit\x18\x04 \x01(\tR\tgitCommit\x12\x1d\n\nbuild_tags\x18\x05 \x01(\tR\tbuildTags\x12\x1d\n\ngo_version\x18\x06 \x01(\tR\tgoVersion\x12\x45\n\nbuild_deps\x18\x07 \x03(\x0b\x32&.cosmos.base.tendermint.v1beta1.ModuleR\tbuildDeps\x12,\n\x12\x63osmos_sdk_version\x18\x08 \x01(\tR\x10\x63osmosSdkVersion\"H\n\x06Module\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x10\n\x03sum\x18\x03 \x01(\tR\x03sum\"h\n\x10\x41\x42\x43IQueryRequest\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\x12\x12\n\x04path\x18\x02 \x01(\tR\x04path\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12\x14\n\x05prove\x18\x04 \x01(\x08R\x05prove\"\x8e\x02\n\x11\x41\x42\x43IQueryResponse\x12\x12\n\x04\x63ode\x18\x01 \x01(\rR\x04\x63ode\x12\x10\n\x03log\x18\x03 \x01(\tR\x03log\x12\x12\n\x04info\x18\x04 \x01(\tR\x04info\x12\x14\n\x05index\x18\x05 \x01(\x03R\x05index\x12\x10\n\x03key\x18\x06 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x07 \x01(\x0cR\x05value\x12\x45\n\tproof_ops\x18\x08 \x01(\x0b\x32(.cosmos.base.tendermint.v1beta1.ProofOpsR\x08proofOps\x12\x16\n\x06height\x18\t \x01(\x03R\x06height\x12\x1c\n\tcodespace\x18\n \x01(\tR\tcodespaceJ\x04\x08\x02\x10\x03\"C\n\x07ProofOp\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n\x03key\x18\x02 \x01(\x0cR\x03key\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\"P\n\x08ProofOps\x12\x44\n\x03ops\x18\x01 \x03(\x0b\x32\'.cosmos.base.tendermint.v1beta1.ProofOpB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x03ops2\xaf\n\n\x07Service\x12\xa9\x01\n\x0bGetNodeInfo\x12\x32.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest\x1a\x33.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse\"1\x82\xd3\xe4\x93\x02+\x12)/cosmos/base/tendermint/v1beta1/node_info\x12\xa4\x01\n\nGetSyncing\x12\x31.cosmos.base.tendermint.v1beta1.GetSyncingRequest\x1a\x32.cosmos.base.tendermint.v1beta1.GetSyncingResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/base/tendermint/v1beta1/syncing\x12\xb6\x01\n\x0eGetLatestBlock\x12\x35.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest\x1a\x36.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse\"5\x82\xd3\xe4\x93\x02/\x12-/cosmos/base/tendermint/v1beta1/blocks/latest\x12\xbe\x01\n\x10GetBlockByHeight\x12\x37.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest\x1a\x38.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//cosmos/base/tendermint/v1beta1/blocks/{height}\x12\xd2\x01\n\x15GetLatestValidatorSet\x12<.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest\x1a=.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/tendermint/v1beta1/validatorsets/latest\x12\xda\x01\n\x17GetValidatorSetByHeight\x12>.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest\x1a?.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/cosmos/base/tendermint/v1beta1/validatorsets/{height}\x12\xa4\x01\n\tABCIQuery\x12\x30.cosmos.base.tendermint.v1beta1.ABCIQueryRequest\x1a\x31.cosmos.base.tendermint.v1beta1.ABCIQueryResponse\"2\x82\xd3\xe4\x93\x02,\x12*/cosmos/base/tendermint/v1beta1/abci_queryB4Z2github.com/cosmos/cosmos-sdk/client/grpc/tmserviceb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.tendermint.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z2github.com/cosmos/cosmos-sdk/client/grpc/tmservice' + _VALIDATOR.fields_by_name['address']._options = None + _VALIDATOR.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _PROOFOPS.fields_by_name['ops']._options = None + _PROOFOPS.fields_by_name['ops']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _SERVICE.methods_by_name['GetNodeInfo']._options = None + _SERVICE.methods_by_name['GetNodeInfo']._serialized_options = b'\202\323\344\223\002+\022)/cosmos/base/tendermint/v1beta1/node_info' + _SERVICE.methods_by_name['GetSyncing']._options = None + _SERVICE.methods_by_name['GetSyncing']._serialized_options = b'\202\323\344\223\002)\022\'/cosmos/base/tendermint/v1beta1/syncing' + _SERVICE.methods_by_name['GetLatestBlock']._options = None + _SERVICE.methods_by_name['GetLatestBlock']._serialized_options = b'\202\323\344\223\002/\022-/cosmos/base/tendermint/v1beta1/blocks/latest' + _SERVICE.methods_by_name['GetBlockByHeight']._options = None + _SERVICE.methods_by_name['GetBlockByHeight']._serialized_options = b'\202\323\344\223\0021\022//cosmos/base/tendermint/v1beta1/blocks/{height}' + _SERVICE.methods_by_name['GetLatestValidatorSet']._options = None + _SERVICE.methods_by_name['GetLatestValidatorSet']._serialized_options = b'\202\323\344\223\0026\0224/cosmos/base/tendermint/v1beta1/validatorsets/latest' + _SERVICE.methods_by_name['GetValidatorSetByHeight']._options = None + _SERVICE.methods_by_name['GetValidatorSetByHeight']._serialized_options = b'\202\323\344\223\0028\0226/cosmos/base/tendermint/v1beta1/validatorsets/{height}' + _SERVICE.methods_by_name['ABCIQuery']._options = None + _SERVICE.methods_by_name['ABCIQuery']._serialized_options = b'\202\323\344\223\002,\022*/cosmos/base/tendermint/v1beta1/abci_query' + _GETVALIDATORSETBYHEIGHTREQUEST._serialized_start=380 + _GETVALIDATORSETBYHEIGHTREQUEST._serialized_end=508 + _GETVALIDATORSETBYHEIGHTRESPONSE._serialized_start=511 + _GETVALIDATORSETBYHEIGHTRESPONSE._serialized_end=727 + _GETLATESTVALIDATORSETREQUEST._serialized_start=729 + _GETLATESTVALIDATORSETREQUEST._serialized_end=831 + _GETLATESTVALIDATORSETRESPONSE._serialized_start=834 + _GETLATESTVALIDATORSETRESPONSE._serialized_end=1048 + _VALIDATOR._serialized_start=1051 + _VALIDATOR._serialized_end=1241 + _GETBLOCKBYHEIGHTREQUEST._serialized_start=1243 + _GETBLOCKBYHEIGHTREQUEST._serialized_end=1292 + _GETBLOCKBYHEIGHTRESPONSE._serialized_start=1295 + _GETBLOCKBYHEIGHTRESPONSE._serialized_end=1490 + _GETLATESTBLOCKREQUEST._serialized_start=1492 + _GETLATESTBLOCKREQUEST._serialized_end=1515 + _GETLATESTBLOCKRESPONSE._serialized_start=1518 + _GETLATESTBLOCKRESPONSE._serialized_end=1711 + _GETSYNCINGREQUEST._serialized_start=1713 + _GETSYNCINGREQUEST._serialized_end=1732 + _GETSYNCINGRESPONSE._serialized_start=1734 + _GETSYNCINGRESPONSE._serialized_end=1780 + _GETNODEINFOREQUEST._serialized_start=1782 + _GETNODEINFOREQUEST._serialized_end=1802 + _GETNODEINFORESPONSE._serialized_start=1805 + _GETNODEINFORESPONSE._serialized_end=1997 + _VERSIONINFO._serialized_start=2000 + _VERSIONINFO._serialized_end=2296 + _MODULE._serialized_start=2298 + _MODULE._serialized_end=2370 + _ABCIQUERYREQUEST._serialized_start=2372 + _ABCIQUERYREQUEST._serialized_end=2476 + _ABCIQUERYRESPONSE._serialized_start=2479 + _ABCIQUERYRESPONSE._serialized_end=2749 + _PROOFOP._serialized_start=2751 + _PROOFOP._serialized_end=2818 + _PROOFOPS._serialized_start=2820 + _PROOFOPS._serialized_end=2900 + _SERVICE._serialized_start=2903 + _SERVICE._serialized_end=4230 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..eb129aa4 --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi @@ -0,0 +1,489 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.tendermint.v1beta1.types_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import tendermint.p2p.types_pb2 +import tendermint.types.block_pb2 +import tendermint.types.types_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class GetValidatorSetByHeightRequest(google.protobuf.message.Message): + """GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + height: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + height: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "pagination", b"pagination"]) -> None: ... + +global___GetValidatorSetByHeightRequest = GetValidatorSetByHeightRequest + +@typing_extensions.final +class GetValidatorSetByHeightResponse(google.protobuf.message.Message): + """GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + block_height: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + block_height: builtins.int = ..., + validators: collections.abc.Iterable[global___Validator] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_height", b"block_height", "pagination", b"pagination", "validators", b"validators"]) -> None: ... + +global___GetValidatorSetByHeightResponse = GetValidatorSetByHeightResponse + +@typing_extensions.final +class GetLatestValidatorSetRequest(google.protobuf.message.Message): + """GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___GetLatestValidatorSetRequest = GetLatestValidatorSetRequest + +@typing_extensions.final +class GetLatestValidatorSetResponse(google.protobuf.message.Message): + """GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + block_height: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + block_height: builtins.int = ..., + validators: collections.abc.Iterable[global___Validator] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_height", b"block_height", "pagination", b"pagination", "validators", b"validators"]) -> None: ... + +global___GetLatestValidatorSetResponse = GetLatestValidatorSetResponse + +@typing_extensions.final +class Validator(google.protobuf.message.Message): + """Validator is the type for the validator-set.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int + address: builtins.str + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: ... + voting_power: builtins.int + proposer_priority: builtins.int + def __init__( + self, + *, + address: builtins.str = ..., + pub_key: google.protobuf.any_pb2.Any | None = ..., + voting_power: builtins.int = ..., + proposer_priority: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "proposer_priority", b"proposer_priority", "pub_key", b"pub_key", "voting_power", b"voting_power"]) -> None: ... + +global___Validator = Validator + +@typing_extensions.final +class GetBlockByHeightRequest(google.protobuf.message.Message): + """GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int + def __init__( + self, + *, + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height"]) -> None: ... + +global___GetBlockByHeightRequest = GetBlockByHeightRequest + +@typing_extensions.final +class GetBlockByHeightResponse(google.protobuf.message.Message): + """GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + SDK_BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: + """Deprecated: please use `sdk_block` instead""" + @property + def sdk_block(self) -> cosmos.base.tendermint.v1beta1.types_pb2.Block: + """Since: cosmos-sdk 0.47""" + def __init__( + self, + *, + block_id: tendermint.types.types_pb2.BlockID | None = ..., + block: tendermint.types.block_pb2.Block | None = ..., + sdk_block: cosmos.base.tendermint.v1beta1.types_pb2.Block | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "sdk_block", b"sdk_block"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "sdk_block", b"sdk_block"]) -> None: ... + +global___GetBlockByHeightResponse = GetBlockByHeightResponse + +@typing_extensions.final +class GetLatestBlockRequest(google.protobuf.message.Message): + """GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetLatestBlockRequest = GetLatestBlockRequest + +@typing_extensions.final +class GetLatestBlockResponse(google.protobuf.message.Message): + """GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + SDK_BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: + """Deprecated: please use `sdk_block` instead""" + @property + def sdk_block(self) -> cosmos.base.tendermint.v1beta1.types_pb2.Block: + """Since: cosmos-sdk 0.47""" + def __init__( + self, + *, + block_id: tendermint.types.types_pb2.BlockID | None = ..., + block: tendermint.types.block_pb2.Block | None = ..., + sdk_block: cosmos.base.tendermint.v1beta1.types_pb2.Block | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "sdk_block", b"sdk_block"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "sdk_block", b"sdk_block"]) -> None: ... + +global___GetLatestBlockResponse = GetLatestBlockResponse + +@typing_extensions.final +class GetSyncingRequest(google.protobuf.message.Message): + """GetSyncingRequest is the request type for the Query/GetSyncing RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetSyncingRequest = GetSyncingRequest + +@typing_extensions.final +class GetSyncingResponse(google.protobuf.message.Message): + """GetSyncingResponse is the response type for the Query/GetSyncing RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SYNCING_FIELD_NUMBER: builtins.int + syncing: builtins.bool + def __init__( + self, + *, + syncing: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["syncing", b"syncing"]) -> None: ... + +global___GetSyncingResponse = GetSyncingResponse + +@typing_extensions.final +class GetNodeInfoRequest(google.protobuf.message.Message): + """GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GetNodeInfoRequest = GetNodeInfoRequest + +@typing_extensions.final +class GetNodeInfoResponse(google.protobuf.message.Message): + """GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEFAULT_NODE_INFO_FIELD_NUMBER: builtins.int + APPLICATION_VERSION_FIELD_NUMBER: builtins.int + @property + def default_node_info(self) -> tendermint.p2p.types_pb2.DefaultNodeInfo: ... + @property + def application_version(self) -> global___VersionInfo: ... + def __init__( + self, + *, + default_node_info: tendermint.p2p.types_pb2.DefaultNodeInfo | None = ..., + application_version: global___VersionInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["application_version", b"application_version", "default_node_info", b"default_node_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["application_version", b"application_version", "default_node_info", b"default_node_info"]) -> None: ... + +global___GetNodeInfoResponse = GetNodeInfoResponse + +@typing_extensions.final +class VersionInfo(google.protobuf.message.Message): + """VersionInfo is the type for the GetNodeInfoResponse message.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + APP_NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + GIT_COMMIT_FIELD_NUMBER: builtins.int + BUILD_TAGS_FIELD_NUMBER: builtins.int + GO_VERSION_FIELD_NUMBER: builtins.int + BUILD_DEPS_FIELD_NUMBER: builtins.int + COSMOS_SDK_VERSION_FIELD_NUMBER: builtins.int + name: builtins.str + app_name: builtins.str + version: builtins.str + git_commit: builtins.str + build_tags: builtins.str + go_version: builtins.str + @property + def build_deps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Module]: ... + cosmos_sdk_version: builtins.str + """Since: cosmos-sdk 0.43""" + def __init__( + self, + *, + name: builtins.str = ..., + app_name: builtins.str = ..., + version: builtins.str = ..., + git_commit: builtins.str = ..., + build_tags: builtins.str = ..., + go_version: builtins.str = ..., + build_deps: collections.abc.Iterable[global___Module] | None = ..., + cosmos_sdk_version: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "build_deps", b"build_deps", "build_tags", b"build_tags", "cosmos_sdk_version", b"cosmos_sdk_version", "git_commit", b"git_commit", "go_version", b"go_version", "name", b"name", "version", b"version"]) -> None: ... + +global___VersionInfo = VersionInfo + +@typing_extensions.final +class Module(google.protobuf.message.Message): + """Module is the type for VersionInfo""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PATH_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + path: builtins.str + """module path""" + version: builtins.str + """module version""" + sum: builtins.str + """checksum""" + def __init__( + self, + *, + path: builtins.str = ..., + version: builtins.str = ..., + sum: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["path", b"path", "sum", b"sum", "version", b"version"]) -> None: ... + +global___Module = Module + +@typing_extensions.final +class ABCIQueryRequest(google.protobuf.message.Message): + """ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + PROVE_FIELD_NUMBER: builtins.int + data: builtins.bytes + path: builtins.str + height: builtins.int + prove: builtins.bool + def __init__( + self, + *, + data: builtins.bytes = ..., + path: builtins.str = ..., + height: builtins.int = ..., + prove: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "height", b"height", "path", b"path", "prove", b"prove"]) -> None: ... + +global___ABCIQueryRequest = ABCIQueryRequest + +@typing_extensions.final +class ABCIQueryResponse(google.protobuf.message.Message): + """ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. + + Note: This type is a duplicate of the ResponseQuery proto type defined in + Tendermint. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + PROOF_OPS_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int + log: builtins.str + """nondeterministic""" + info: builtins.str + """nondeterministic""" + index: builtins.int + key: builtins.bytes + value: builtins.bytes + @property + def proof_ops(self) -> global___ProofOps: ... + height: builtins.int + codespace: builtins.str + def __init__( + self, + *, + code: builtins.int = ..., + log: builtins.str = ..., + info: builtins.str = ..., + index: builtins.int = ..., + key: builtins.bytes = ..., + value: builtins.bytes = ..., + proof_ops: global___ProofOps | None = ..., + height: builtins.int = ..., + codespace: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proof_ops", b"proof_ops"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "codespace", b"codespace", "height", b"height", "index", b"index", "info", b"info", "key", b"key", "log", b"log", "proof_ops", b"proof_ops", "value", b"value"]) -> None: ... + +global___ABCIQueryResponse = ABCIQueryResponse + +@typing_extensions.final +class ProofOp(google.protobuf.message.Message): + """ProofOp defines an operation used for calculating Merkle root. The data could + be arbitrary format, providing necessary data for example neighbouring node + hash. + + Note: This type is a duplicate of the ProofOp proto type defined in Tendermint. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + type: builtins.str + key: builtins.bytes + data: builtins.bytes + def __init__( + self, + *, + type: builtins.str = ..., + key: builtins.bytes = ..., + data: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "key", b"key", "type", b"type"]) -> None: ... + +global___ProofOp = ProofOp + +@typing_extensions.final +class ProofOps(google.protobuf.message.Message): + """ProofOps is Merkle proof defined by the list of ProofOps. + + Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPS_FIELD_NUMBER: builtins.int + @property + def ops(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProofOp]: ... + def __init__( + self, + *, + ops: collections.abc.Iterable[global___ProofOp] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ops", b"ops"]) -> None: ... + +global___ProofOps = ProofOps diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..984b5f8a --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.py @@ -0,0 +1,278 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.base.tendermint.v1beta1 import query_pb2 as cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2 + + +class ServiceStub(object): + """Service defines the gRPC querier service for tendermint queries. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetNodeInfo = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoResponse.FromString, + ) + self.GetSyncing = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingResponse.FromString, + ) + self.GetLatestBlock = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockResponse.FromString, + ) + self.GetBlockByHeight = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightResponse.FromString, + ) + self.GetLatestValidatorSet = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetResponse.FromString, + ) + self.GetValidatorSetByHeight = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightResponse.FromString, + ) + self.ABCIQuery = channel.unary_unary( + '/cosmos.base.tendermint.v1beta1.Service/ABCIQuery', + request_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryRequest.SerializeToString, + response_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryResponse.FromString, + ) + + +class ServiceServicer(object): + """Service defines the gRPC querier service for tendermint queries. + """ + + def GetNodeInfo(self, request, context): + """GetNodeInfo queries the current node info. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSyncing(self, request, context): + """GetSyncing queries node syncing. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLatestBlock(self, request, context): + """GetLatestBlock returns the latest block. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBlockByHeight(self, request, context): + """GetBlockByHeight queries block for given height. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLatestValidatorSet(self, request, context): + """GetLatestValidatorSet queries latest validator-set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetValidatorSetByHeight(self, request, context): + """GetValidatorSetByHeight queries validator-set at a given height. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ABCIQuery(self, request, context): + """ABCIQuery defines a query handler that supports ABCI queries directly to the + application, bypassing Tendermint completely. The ABCI query must contain + a valid and supported path, including app, custom, p2p, and store. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetNodeInfo': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeInfo, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoResponse.SerializeToString, + ), + 'GetSyncing': grpc.unary_unary_rpc_method_handler( + servicer.GetSyncing, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingResponse.SerializeToString, + ), + 'GetLatestBlock': grpc.unary_unary_rpc_method_handler( + servicer.GetLatestBlock, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockResponse.SerializeToString, + ), + 'GetBlockByHeight': grpc.unary_unary_rpc_method_handler( + servicer.GetBlockByHeight, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightResponse.SerializeToString, + ), + 'GetLatestValidatorSet': grpc.unary_unary_rpc_method_handler( + servicer.GetLatestValidatorSet, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetResponse.SerializeToString, + ), + 'GetValidatorSetByHeight': grpc.unary_unary_rpc_method_handler( + servicer.GetValidatorSetByHeight, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightResponse.SerializeToString, + ), + 'ABCIQuery': grpc.unary_unary_rpc_method_handler( + servicer.ABCIQuery, + request_deserializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryRequest.FromString, + response_serializer=cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.base.tendermint.v1beta1.Service', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Service(object): + """Service defines the gRPC querier service for tendermint queries. + """ + + @staticmethod + def GetNodeInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetNodeInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSyncing(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetSyncing', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetSyncingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLatestBlock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestBlockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetBlockByHeight(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetBlockByHeightResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLatestValidatorSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetLatestValidatorSetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetValidatorSetByHeight(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.GetValidatorSetByHeightResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ABCIQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.base.tendermint.v1beta1.Service/ABCIQuery', + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryRequest.SerializeToString, + cosmos_dot_base_dot_tendermint_dot_v1beta1_dot_query__pb2.ABCIQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.py b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.py new file mode 100644 index 00000000..51236b5a --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/tendermint/v1beta1/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from tendermint.types import evidence_pb2 as tendermint_dot_types_dot_evidence__pb2 +from tendermint.version import types_pb2 as tendermint_dot_version_dot_types__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*cosmos/base/tendermint/v1beta1/types.proto\x12\x1e\x63osmos.base.tendermint.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1ctendermint/types/types.proto\x1a\x1ftendermint/types/evidence.proto\x1a\x1etendermint/version/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x11\x61mino/amino.proto\"\x8b\x02\n\x05\x42lock\x12I\n\x06header\x18\x01 \x01(\x0b\x32&.cosmos.base.tendermint.v1beta1.HeaderB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06header\x12\x35\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.tendermint.types.DataB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04\x64\x61ta\x12\x45\n\x08\x65vidence\x18\x03 \x01(\x0b\x32\x1e.tendermint.types.EvidenceListB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08\x65vidence\x12\x39\n\x0blast_commit\x18\x04 \x01(\x0b\x32\x18.tendermint.types.CommitR\nlastCommit\"\xf5\x04\n\x06Header\x12\x42\n\x07version\x18\x01 \x01(\x0b\x32\x1d.tendermint.version.ConsensusB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07version\x12&\n\x08\x63hain_id\x18\x02 \x01(\tB\x0b\xe2\xde\x1f\x07\x43hainIDR\x07\x63hainId\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12=\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x04time\x12H\n\rlast_block_id\x18\x05 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0blastBlockId\x12(\n\x10last_commit_hash\x18\x06 \x01(\x0cR\x0elastCommitHash\x12\x1b\n\tdata_hash\x18\x07 \x01(\x0cR\x08\x64\x61taHash\x12\'\n\x0fvalidators_hash\x18\x08 \x01(\x0cR\x0evalidatorsHash\x12\x30\n\x14next_validators_hash\x18\t \x01(\x0cR\x12nextValidatorsHash\x12%\n\x0e\x63onsensus_hash\x18\n \x01(\x0cR\rconsensusHash\x12\x19\n\x08\x61pp_hash\x18\x0b \x01(\x0cR\x07\x61ppHash\x12*\n\x11last_results_hash\x18\x0c \x01(\x0cR\x0flastResultsHash\x12#\n\revidence_hash\x18\r \x01(\x0cR\x0c\x65videnceHash\x12)\n\x10proposer_address\x18\x0e \x01(\tR\x0fproposerAddressB4Z2github.com/cosmos/cosmos-sdk/client/grpc/tmserviceb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.tendermint.v1beta1.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z2github.com/cosmos/cosmos-sdk/client/grpc/tmservice' + _BLOCK.fields_by_name['header']._options = None + _BLOCK.fields_by_name['header']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _BLOCK.fields_by_name['data']._options = None + _BLOCK.fields_by_name['data']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _BLOCK.fields_by_name['evidence']._options = None + _BLOCK.fields_by_name['evidence']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _HEADER.fields_by_name['version']._options = None + _HEADER.fields_by_name['version']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _HEADER.fields_by_name['chain_id']._options = None + _HEADER.fields_by_name['chain_id']._serialized_options = b'\342\336\037\007ChainID' + _HEADER.fields_by_name['time']._options = None + _HEADER.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _HEADER.fields_by_name['last_block_id']._options = None + _HEADER.fields_by_name['last_block_id']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _BLOCK._serialized_start=248 + _BLOCK._serialized_end=515 + _HEADER._serialized_start=518 + _HEADER._serialized_end=1147 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.pyi b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.pyi new file mode 100644 index 00000000..3c01fbcc --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2.pyi @@ -0,0 +1,133 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import tendermint.types.evidence_pb2 +import tendermint.types.types_pb2 +import tendermint.version.types_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class Block(google.protobuf.message.Message): + """Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEADER_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + LAST_COMMIT_FIELD_NUMBER: builtins.int + @property + def header(self) -> global___Header: ... + @property + def data(self) -> tendermint.types.types_pb2.Data: ... + @property + def evidence(self) -> tendermint.types.evidence_pb2.EvidenceList: ... + @property + def last_commit(self) -> tendermint.types.types_pb2.Commit: ... + def __init__( + self, + *, + header: global___Header | None = ..., + data: tendermint.types.types_pb2.Data | None = ..., + evidence: tendermint.types.evidence_pb2.EvidenceList | None = ..., + last_commit: tendermint.types.types_pb2.Commit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data", b"data", "evidence", b"evidence", "header", b"header", "last_commit", b"last_commit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "evidence", b"evidence", "header", b"header", "last_commit", b"last_commit"]) -> None: ... + +global___Block = Block + +@typing_extensions.final +class Header(google.protobuf.message.Message): + """Header defines the structure of a Tendermint block header.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + LAST_BLOCK_ID_FIELD_NUMBER: builtins.int + LAST_COMMIT_HASH_FIELD_NUMBER: builtins.int + DATA_HASH_FIELD_NUMBER: builtins.int + VALIDATORS_HASH_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + CONSENSUS_HASH_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + LAST_RESULTS_HASH_FIELD_NUMBER: builtins.int + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int + @property + def version(self) -> tendermint.version.types_pb2.Consensus: + """basic block info""" + chain_id: builtins.str + height: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def last_block_id(self) -> tendermint.types.types_pb2.BlockID: + """prev block info""" + last_commit_hash: builtins.bytes + """hashes of block data + commit from validators from the last block + """ + data_hash: builtins.bytes + """transactions""" + validators_hash: builtins.bytes + """hashes from the app output from the prev block + validators for the current block + """ + next_validators_hash: builtins.bytes + """validators for the next block""" + consensus_hash: builtins.bytes + """consensus params for current block""" + app_hash: builtins.bytes + """state after txs from the previous block""" + last_results_hash: builtins.bytes + """root hash of all results from the txs from the previous block""" + evidence_hash: builtins.bytes + """consensus info + evidence included in the block + """ + proposer_address: builtins.str + """proposer_address is the original block proposer address, formatted as a Bech32 string. + In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string + for better UX. + original proposer of the block + """ + def __init__( + self, + *, + version: tendermint.version.types_pb2.Consensus | None = ..., + chain_id: builtins.str = ..., + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_block_id: tendermint.types.types_pb2.BlockID | None = ..., + last_commit_hash: builtins.bytes = ..., + data_hash: builtins.bytes = ..., + validators_hash: builtins.bytes = ..., + next_validators_hash: builtins.bytes = ..., + consensus_hash: builtins.bytes = ..., + app_hash: builtins.bytes = ..., + last_results_hash: builtins.bytes = ..., + evidence_hash: builtins.bytes = ..., + proposer_address: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_block_id", b"last_block_id", "time", b"time", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["app_hash", b"app_hash", "chain_id", b"chain_id", "consensus_hash", b"consensus_hash", "data_hash", b"data_hash", "evidence_hash", b"evidence_hash", "height", b"height", "last_block_id", b"last_block_id", "last_commit_hash", b"last_commit_hash", "last_results_hash", b"last_results_hash", "next_validators_hash", b"next_validators_hash", "proposer_address", b"proposer_address", "time", b"time", "validators_hash", b"validators_hash", "version", b"version"]) -> None: ... + +global___Header = Header diff --git a/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2_grpc.py b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/tendermint/v1beta1/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/base/v1beta1/coin_pb2.py b/nibiru_proto/cosmos/base/v1beta1/coin_pb2.py new file mode 100644 index 00000000..4eac7213 --- /dev/null +++ b/nibiru_proto/cosmos/base/v1beta1/coin_pb2.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/v1beta1/coin.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/base/v1beta1/coin.proto\x12\x13\x63osmos.base.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"Z\n\x04\x43oin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x36\n\x06\x61mount\x18\x02 \x01(\tB\x1e\xc8\xde\x1f\x00\xda\xde\x1f\x03Int\xd2\xb4-\ncosmos.Int\xa8\xe7\xb0*\x01R\x06\x61mount:\x04\xe8\xa0\x1f\x01\"X\n\x07\x44\x65\x63\x43oin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x31\n\x06\x61mount\x18\x02 \x01(\tB\x19\xc8\xde\x1f\x00\xda\xde\x1f\x03\x44\x65\x63\xd2\xb4-\ncosmos.DecR\x06\x61mount:\x04\xe8\xa0\x1f\x01\"7\n\x08IntProto\x12+\n\x03int\x18\x01 \x01(\tB\x19\xc8\xde\x1f\x00\xda\xde\x1f\x03Int\xd2\xb4-\ncosmos.IntR\x03int\"7\n\x08\x44\x65\x63Proto\x12+\n\x03\x64\x65\x63\x18\x01 \x01(\tB\x19\xc8\xde\x1f\x00\xda\xde\x1f\x03\x44\x65\x63\xd2\xb4-\ncosmos.DecR\x03\x64\x65\x63\x42,Z\"github.com/cosmos/cosmos-sdk/types\xd8\xe1\x1e\x00\x80\xe2\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.base.v1beta1.coin_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/types\330\341\036\000\200\342\036\000' + _COIN.fields_by_name['amount']._options = None + _COIN.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\003Int\322\264-\ncosmos.Int\250\347\260*\001' + _COIN._options = None + _COIN._serialized_options = b'\350\240\037\001' + _DECCOIN.fields_by_name['amount']._options = None + _DECCOIN.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\003Dec\322\264-\ncosmos.Dec' + _DECCOIN._options = None + _DECCOIN._serialized_options = b'\350\240\037\001' + _INTPROTO.fields_by_name['int']._options = None + _INTPROTO.fields_by_name['int']._serialized_options = b'\310\336\037\000\332\336\037\003Int\322\264-\ncosmos.Int' + _DECPROTO.fields_by_name['dec']._options = None + _DECPROTO.fields_by_name['dec']._serialized_options = b'\310\336\037\000\332\336\037\003Dec\322\264-\ncosmos.Dec' + _COIN._serialized_start=123 + _COIN._serialized_end=213 + _DECCOIN._serialized_start=215 + _DECCOIN._serialized_end=303 + _INTPROTO._serialized_start=305 + _INTPROTO._serialized_end=360 + _DECPROTO._serialized_start=362 + _DECPROTO._serialized_end=417 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/base/v1beta1/coin_pb2.pyi b/nibiru_proto/cosmos/base/v1beta1/coin_pb2.pyi new file mode 100644 index 00000000..950b53f5 --- /dev/null +++ b/nibiru_proto/cosmos/base/v1beta1/coin_pb2.pyi @@ -0,0 +1,97 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 Coin(google.protobuf.message.Message): + """Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: builtins.str + amount: builtins.str + def __init__( + self, + *, + denom: builtins.str = ..., + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "denom", b"denom"]) -> None: ... + +global___Coin = Coin + +@typing_extensions.final +class DecCoin(google.protobuf.message.Message): + """DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: builtins.str + amount: builtins.str + def __init__( + self, + *, + denom: builtins.str = ..., + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "denom", b"denom"]) -> None: ... + +global___DecCoin = DecCoin + +@typing_extensions.final +class IntProto(google.protobuf.message.Message): + """IntProto defines a Protobuf wrapper around an Int object.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INT_FIELD_NUMBER: builtins.int + int: builtins.str + def __init__( + self, + *, + int: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["int", b"int"]) -> None: ... + +global___IntProto = IntProto + +@typing_extensions.final +class DecProto(google.protobuf.message.Message): + """DecProto defines a Protobuf wrapper around a Dec object.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEC_FIELD_NUMBER: builtins.int + dec: builtins.str + def __init__( + self, + *, + dec: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["dec", b"dec"]) -> None: ... + +global___DecProto = DecProto diff --git a/nibiru_proto/cosmos/base/v1beta1/coin_pb2_grpc.py b/nibiru_proto/cosmos/base/v1beta1/coin_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/base/v1beta1/coin_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/capability/module/v1/module_pb2.py b/nibiru_proto/cosmos/capability/module/v1/module_pb2.py new file mode 100644 index 00000000..3ecc7a40 --- /dev/null +++ b/nibiru_proto/cosmos/capability/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/capability/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(cosmos/capability/module/v1/module.proto\x12\x1b\x63osmos.capability.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\\\n\x06Module\x12\x1f\n\x0bseal_keeper\x18\x01 \x01(\x08R\nsealKeeper:1\xba\xc0\x96\xda\x01+\n)github.com/cosmos/cosmos-sdk/x/capabilityb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.capability.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001+\n)github.com/cosmos/cosmos-sdk/x/capability' + _MODULE._serialized_start=107 + _MODULE._serialized_end=199 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/capability/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/capability/module/v1/module_pb2.pyi new file mode 100644 index 00000000..c3a2019c --- /dev/null +++ b/nibiru_proto/cosmos/capability/module/v1/module_pb2.pyi @@ -0,0 +1,35 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the capability module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SEAL_KEEPER_FIELD_NUMBER: builtins.int + seal_keeper: builtins.bool + """seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped + keeper. For more details check x/capability/keeper.go. + """ + def __init__( + self, + *, + seal_keeper: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["seal_keeper", b"seal_keeper"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/capability/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/capability/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/capability/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.py b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.py new file mode 100644 index 00000000..275ffa99 --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/capability/v1beta1/capability.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*cosmos/capability/v1beta1/capability.proto\x12\x19\x63osmos.capability.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\"(\n\nCapability\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index:\x04\x98\xa0\x1f\x00\"=\n\x05Owner\x12\x16\n\x06module\x18\x01 \x01(\tR\x06module\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"W\n\x10\x43\x61pabilityOwners\x12\x43\n\x06owners\x18\x01 \x03(\x0b\x32 .cosmos.capability.v1beta1.OwnerB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06ownersB1Z/github.com/cosmos/cosmos-sdk/x/capability/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.capability.v1beta1.capability_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z/github.com/cosmos/cosmos-sdk/x/capability/types' + _CAPABILITY._options = None + _CAPABILITY._serialized_options = b'\230\240\037\000' + _OWNER._options = None + _OWNER._serialized_options = b'\210\240\037\000\230\240\037\000' + _CAPABILITYOWNERS.fields_by_name['owners']._options = None + _CAPABILITYOWNERS.fields_by_name['owners']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _CAPABILITY._serialized_start=114 + _CAPABILITY._serialized_end=154 + _OWNER._serialized_start=156 + _OWNER._serialized_end=217 + _CAPABILITYOWNERS._serialized_start=219 + _CAPABILITYOWNERS._serialized_end=306 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.pyi b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.pyi new file mode 100644 index 00000000..f3779f0b --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2.pyi @@ -0,0 +1,78 @@ +""" +@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 Capability(google.protobuf.message.Message): + """Capability defines an implementation of an object capability. The index + provided to a Capability must be globally unique. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + index: builtins.int + def __init__( + self, + *, + index: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index"]) -> None: ... + +global___Capability = Capability + +@typing_extensions.final +class Owner(google.protobuf.message.Message): + """Owner defines a single capability owner. An owner is defined by the name of + capability and the module name. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + module: builtins.str + name: builtins.str + def __init__( + self, + *, + module: builtins.str = ..., + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module", b"module", "name", b"name"]) -> None: ... + +global___Owner = Owner + +@typing_extensions.final +class CapabilityOwners(google.protobuf.message.Message): + """CapabilityOwners defines a set of owners of a single Capability. The set of + owners must be unique. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OWNERS_FIELD_NUMBER: builtins.int + @property + def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Owner]: ... + def __init__( + self, + *, + owners: collections.abc.Iterable[global___Owner] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["owners", b"owners"]) -> None: ... + +global___CapabilityOwners = CapabilityOwners diff --git a/nibiru_proto/cosmos/capability/v1beta1/capability_pb2_grpc.py b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/capability_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..20ce0d31 --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/capability/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.capability.v1beta1 import capability_pb2 as cosmos_dot_capability_dot_v1beta1_dot_capability__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/capability/v1beta1/genesis.proto\x12\x19\x63osmos.capability.v1beta1\x1a\x14gogoproto/gogo.proto\x1a*cosmos/capability/v1beta1/capability.proto\x1a\x11\x61mino/amino.proto\"\x80\x01\n\rGenesisOwners\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12Y\n\x0cindex_owners\x18\x02 \x01(\x0b\x32+.cosmos.capability.v1beta1.CapabilityOwnersB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0bindexOwners\"q\n\x0cGenesisState\x12\x14\n\x05index\x18\x01 \x01(\x04R\x05index\x12K\n\x06owners\x18\x02 \x03(\x0b\x32(.cosmos.capability.v1beta1.GenesisOwnersB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06ownersB1Z/github.com/cosmos/cosmos-sdk/x/capability/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.capability.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z/github.com/cosmos/cosmos-sdk/x/capability/types' + _GENESISOWNERS.fields_by_name['index_owners']._options = None + _GENESISOWNERS.fields_by_name['index_owners']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['owners']._options = None + _GENESISSTATE.fields_by_name['owners']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISOWNERS._serialized_start=156 + _GENESISOWNERS._serialized_end=284 + _GENESISSTATE._serialized_start=286 + _GENESISSTATE._serialized_end=399 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..6ea083f7 --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.capability.v1beta1.capability_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 GenesisOwners(google.protobuf.message.Message): + """GenesisOwners defines the capability owners with their corresponding index.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + INDEX_OWNERS_FIELD_NUMBER: builtins.int + index: builtins.int + """index is the index of the capability owner.""" + @property + def index_owners(self) -> cosmos.capability.v1beta1.capability_pb2.CapabilityOwners: + """index_owners are the owners at the given index.""" + def __init__( + self, + *, + index: builtins.int = ..., + index_owners: cosmos.capability.v1beta1.capability_pb2.CapabilityOwners | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["index_owners", b"index_owners"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "index_owners", b"index_owners"]) -> None: ... + +global___GenesisOwners = GenesisOwners + +@typing_extensions.final +class GenesisState(google.protobuf.message.Message): + """GenesisState defines the capability module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + OWNERS_FIELD_NUMBER: builtins.int + index: builtins.int + """index is the capability global index.""" + @property + def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisOwners]: + """owners represents a map from index to owners of the capability index + index key is string to allow amino marshalling. + """ + def __init__( + self, + *, + index: builtins.int = ..., + owners: collections.abc.Iterable[global___GenesisOwners] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "owners", b"owners"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/capability/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/consensus/module/v1/module_pb2.py b/nibiru_proto/cosmos/consensus/module/v1/module_pb2.py new file mode 100644 index 00000000..eac7a85f --- /dev/null +++ b/nibiru_proto/cosmos/consensus/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/consensus/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/consensus/module/v1/module.proto\x12\x1a\x63osmos.consensus.module.v1\x1a cosmos/app/v1alpha1/module.proto\"X\n\x06Module\x12\x1c\n\tauthority\x18\x01 \x01(\tR\tauthority:0\xba\xc0\x96\xda\x01*\n(github.com/cosmos/cosmos-sdk/x/consensusb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.consensus.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001*\n(github.com/cosmos/cosmos-sdk/x/consensus' + _MODULE._serialized_start=105 + _MODULE._serialized_end=193 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/consensus/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/consensus/module/v1/module_pb2.pyi new file mode 100644 index 00000000..fe45a55f --- /dev/null +++ b/nibiru_proto/cosmos/consensus/module/v1/module_pb2.pyi @@ -0,0 +1,33 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the consensus module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/consensus/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/consensus/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/consensus/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/consensus/v1/query_pb2.py b/nibiru_proto/cosmos/consensus/v1/query_pb2.py new file mode 100644 index 00000000..6a88eb2f --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/query_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/consensus/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from tendermint.types import params_pb2 as tendermint_dot_types_dot_params__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/consensus/v1/query.proto\x12\x13\x63osmos.consensus.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dtendermint/types/params.proto\"\x14\n\x12QueryParamsRequest\"P\n\x13QueryParamsResponse\x12\x39\n\x06params\x18\x01 \x01(\x0b\x32!.tendermint.types.ConsensusParamsR\x06params2\x8a\x01\n\x05Query\x12\x80\x01\n\x06Params\x12\'.cosmos.consensus.v1.QueryParamsRequest\x1a(.cosmos.consensus.v1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/consensus/v1/paramsB0Z.github.com/cosmos/cosmos-sdk/x/consensus/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.consensus.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z.github.com/cosmos/cosmos-sdk/x/consensus/types' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\035\022\033/cosmos/consensus/v1/params' + _QUERYPARAMSREQUEST._serialized_start=117 + _QUERYPARAMSREQUEST._serialized_end=137 + _QUERYPARAMSRESPONSE._serialized_start=139 + _QUERYPARAMSRESPONSE._serialized_end=219 + _QUERY._serialized_start=222 + _QUERY._serialized_end=360 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/consensus/v1/query_pb2.pyi b/nibiru_proto/cosmos/consensus/v1/query_pb2.pyi new file mode 100644 index 00000000..5956a46b --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/query_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.47""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import sys +import tendermint.types.params_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest defines the request type for querying x/consensus parameters.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse defines the response type for querying x/consensus parameters.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> tendermint.types.params_pb2.ConsensusParams: + """params are the tendermint consensus params stored in the consensus module. + Please note that `params.version` is not populated in this response, it is + tracked separately in the x/upgrade module. + """ + def __init__( + self, + *, + params: tendermint.types.params_pb2.ConsensusParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse diff --git a/nibiru_proto/cosmos/consensus/v1/query_pb2_grpc.py b/nibiru_proto/cosmos/consensus/v1/query_pb2_grpc.py new file mode 100644 index 00000000..a1613adb --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/query_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.consensus.v1 import query_pb2 as cosmos_dot_consensus_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/cosmos.consensus.v1.Query/Params', + request_serializer=cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Params(self, request, context): + """Params queries the parameters of x/consensus_param module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.consensus.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.consensus.v1.Query/Params', + cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_consensus_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/consensus/v1/tx_pb2.py b/nibiru_proto/cosmos/consensus/v1/tx_pb2.py new file mode 100644 index 00000000..91e308ab --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/tx_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/consensus/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from tendermint.types import params_pb2 as tendermint_dot_types_dot_params__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/consensus/v1/tx.proto\x12\x13\x63osmos.consensus.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x1dtendermint/types/params.proto\"\x8d\x02\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x33\n\x05\x62lock\x18\x02 \x01(\x0b\x32\x1d.tendermint.types.BlockParamsR\x05\x62lock\x12<\n\x08\x65vidence\x18\x03 \x01(\x0b\x32 .tendermint.types.EvidenceParamsR\x08\x65vidence\x12?\n\tvalidator\x18\x04 \x01(\x0b\x32!.tendermint.types.ValidatorParamsR\tvalidator:\x0e\x82\xe7\xb0*\tauthority\"\x19\n\x17MsgUpdateParamsResponse2i\n\x03Msg\x12\x62\n\x0cUpdateParams\x12$.cosmos.consensus.v1.MsgUpdateParams\x1a,.cosmos.consensus.v1.MsgUpdateParamsResponseB0Z.github.com/cosmos/cosmos-sdk/x/consensus/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.consensus.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z.github.com/cosmos/cosmos-sdk/x/consensus/types' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority' + _MSGUPDATEPARAMS._serialized_start=137 + _MSGUPDATEPARAMS._serialized_end=406 + _MSGUPDATEPARAMSRESPONSE._serialized_start=408 + _MSGUPDATEPARAMSRESPONSE._serialized_end=433 + _MSG._serialized_start=435 + _MSG._serialized_end=540 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/consensus/v1/tx_pb2.pyi b/nibiru_proto/cosmos/consensus/v1/tx_pb2.pyi new file mode 100644 index 00000000..33796cfe --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/tx_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.47""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import sys +import tendermint.types.params_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def block(self) -> tendermint.types.params_pb2.BlockParams: + """params defines the x/consensus parameters to update. + VersionsParams is not included in this Msg because it is tracked + separarately in x/upgrade. + + NOTE: All parameters must be supplied. + """ + @property + def evidence(self) -> tendermint.types.params_pb2.EvidenceParams: ... + @property + def validator(self) -> tendermint.types.params_pb2.ValidatorParams: ... + def __init__( + self, + *, + authority: builtins.str = ..., + block: tendermint.types.params_pb2.BlockParams | None = ..., + evidence: tendermint.types.params_pb2.EvidenceParams | None = ..., + validator: tendermint.types.params_pb2.ValidatorParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block", b"block", "evidence", b"evidence", "validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "block", b"block", "evidence", b"evidence", "validator", b"validator"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/consensus/v1/tx_pb2_grpc.py b/nibiru_proto/cosmos/consensus/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..7dbc2a9d --- /dev/null +++ b/nibiru_proto/cosmos/consensus/v1/tx_pb2_grpc.py @@ -0,0 +1,73 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.consensus.v1 import tx_pb2 as cosmos_dot_consensus_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the bank Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UpdateParams = channel.unary_unary( + '/cosmos.consensus.v1.Msg/UpdateParams', + request_serializer=cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the bank Msg service. + """ + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/consensus_param module parameters. + The authority is defined in the keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.consensus.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the bank Msg service. + """ + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.consensus.v1.Msg/UpdateParams', + cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_consensus_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/crisis/module/v1/module_pb2.py b/nibiru_proto/cosmos/crisis/module/v1/module_pb2.py new file mode 100644 index 00000000..759ab8d0 --- /dev/null +++ b/nibiru_proto/cosmos/crisis/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crisis/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/crisis/module/v1/module.proto\x12\x17\x63osmos.crisis.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\x83\x01\n\x06Module\x12,\n\x12\x66\x65\x65_collector_name\x18\x01 \x01(\tR\x10\x66\x65\x65\x43ollectorName\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:-\xba\xc0\x96\xda\x01\'\n%github.com/cosmos/cosmos-sdk/x/crisisb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crisis.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001\'\n%github.com/cosmos/cosmos-sdk/x/crisis' + _MODULE._serialized_start=100 + _MODULE._serialized_end=231 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crisis/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/crisis/module/v1/module_pb2.pyi new file mode 100644 index 00000000..e5d07a77 --- /dev/null +++ b/nibiru_proto/cosmos/crisis/module/v1/module_pb2.pyi @@ -0,0 +1,37 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the crisis module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FEE_COLLECTOR_NAME_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + fee_collector_name: builtins.str + """fee_collector_name is the name of the FeeCollector ModuleAccount.""" + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + fee_collector_name: builtins.str = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "fee_collector_name", b"fee_collector_name"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/crisis/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/crisis/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crisis/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..549439f6 --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crisis/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/crisis/v1beta1/genesis.proto\x12\x15\x63osmos.crisis.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"W\n\x0cGenesisState\x12G\n\x0c\x63onstant_fee\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x63onstantFeeB-Z+github.com/cosmos/cosmos-sdk/x/crisis/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crisis.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/crisis/types' + _GENESISSTATE.fields_by_name['constant_fee']._options = None + _GENESISSTATE.fields_by_name['constant_fee']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=135 + _GENESISSTATE._serialized_end=222 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..a1c73633 --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2.pyi @@ -0,0 +1,38 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the crisis module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONSTANT_FEE_FIELD_NUMBER: builtins.int + @property + def constant_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """constant_fee is the fee used to verify the invariant in the crisis + module. + """ + def __init__( + self, + *, + constant_fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["constant_fee", b"constant_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["constant_fee", b"constant_fee"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.py new file mode 100644 index 00000000..02222d75 --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crisis/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/crisis/v1beta1/tx.proto\x12\x15\x63osmos.crisis.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xda\x01\n\x12MsgVerifyInvariant\x12\x30\n\x06sender\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12\x32\n\x15invariant_module_name\x18\x02 \x01(\tR\x13invariantModuleName\x12\'\n\x0finvariant_route\x18\x03 \x01(\tR\x0einvariantRoute:5\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1d\x63osmos-sdk/MsgVerifyInvariant\"\x1c\n\x1aMsgVerifyInvariantResponse\"\xca\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12G\n\x0c\x63onstant_fee\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x63onstantFee:6\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*#cosmos-sdk/x/crisis/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\xe5\x01\n\x03Msg\x12o\n\x0fVerifyInvariant\x12).cosmos.crisis.v1beta1.MsgVerifyInvariant\x1a\x31.cosmos.crisis.v1beta1.MsgVerifyInvariantResponse\x12\x66\n\x0cUpdateParams\x12&.cosmos.crisis.v1beta1.MsgUpdateParams\x1a..cosmos.crisis.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42-Z+github.com/cosmos/cosmos-sdk/x/crisis/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crisis.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/crisis/types' + _MSGVERIFYINVARIANT.fields_by_name['sender']._options = None + _MSGVERIFYINVARIANT.fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVERIFYINVARIANT._options = None + _MSGVERIFYINVARIANT._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\006sender\212\347\260*\035cosmos-sdk/MsgVerifyInvariant' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['constant_fee']._options = None + _MSGUPDATEPARAMS.fields_by_name['constant_fee']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*#cosmos-sdk/x/crisis/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGVERIFYINVARIANT._serialized_start=183 + _MSGVERIFYINVARIANT._serialized_end=401 + _MSGVERIFYINVARIANTRESPONSE._serialized_start=403 + _MSGVERIFYINVARIANTRESPONSE._serialized_end=431 + _MSGUPDATEPARAMS._serialized_start=434 + _MSGUPDATEPARAMS._serialized_end=636 + _MSGUPDATEPARAMSRESPONSE._serialized_start=638 + _MSGUPDATEPARAMSRESPONSE._serialized_end=663 + _MSG._serialized_start=666 + _MSG._serialized_end=895 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..27a0039b --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2.pyi @@ -0,0 +1,97 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +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 MsgVerifyInvariant(google.protobuf.message.Message): + """MsgVerifyInvariant represents a message to verify a particular invariance.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + INVARIANT_MODULE_NAME_FIELD_NUMBER: builtins.int + INVARIANT_ROUTE_FIELD_NUMBER: builtins.int + sender: builtins.str + """sender is the account address of private key to send coins to fee collector account.""" + invariant_module_name: builtins.str + """name of the invariant module.""" + invariant_route: builtins.str + """invariant_route is the msg's invariant route.""" + def __init__( + self, + *, + sender: builtins.str = ..., + invariant_module_name: builtins.str = ..., + invariant_route: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["invariant_module_name", b"invariant_module_name", "invariant_route", b"invariant_route", "sender", b"sender"]) -> None: ... + +global___MsgVerifyInvariant = MsgVerifyInvariant + +@typing_extensions.final +class MsgVerifyInvariantResponse(google.protobuf.message.Message): + """MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVerifyInvariantResponse = MsgVerifyInvariantResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + CONSTANT_FEE_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def constant_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """constant_fee defines the x/crisis parameter.""" + def __init__( + self, + *, + authority: builtins.str = ..., + constant_fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["constant_fee", b"constant_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "constant_fee", b"constant_fee"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..d3b2778a --- /dev/null +++ b/nibiru_proto/cosmos/crisis/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,107 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.crisis.v1beta1 import tx_pb2 as cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the bank Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.VerifyInvariant = channel.unary_unary( + '/cosmos.crisis.v1beta1.Msg/VerifyInvariant', + request_serializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariant.SerializeToString, + response_deserializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariantResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.crisis.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the bank Msg service. + """ + + def VerifyInvariant(self, request, context): + """VerifyInvariant defines a method to verify a particular invariant. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/crisis module + parameters. The authority is defined in the keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'VerifyInvariant': grpc.unary_unary_rpc_method_handler( + servicer.VerifyInvariant, + request_deserializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariant.FromString, + response_serializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariantResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.crisis.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the bank Msg service. + """ + + @staticmethod + def VerifyInvariant(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.crisis.v1beta1.Msg/VerifyInvariant', + cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariant.SerializeToString, + cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgVerifyInvariantResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.crisis.v1beta1.Msg/UpdateParams', + cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_crisis_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.py b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.py new file mode 100644 index 00000000..e6502e61 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/ed25519/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/crypto/ed25519/keys.proto\x12\x15\x63osmos.crypto.ed25519\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\"i\n\x06PubKey\x12.\n\x03key\x18\x01 \x01(\x0c\x42\x1c\xfa\xde\x1f\x18\x63rypto/ed25519.PublicKeyR\x03key:/\x98\xa0\x1f\x00\x8a\xe7\xb0*\x18tendermint/PubKeyEd25519\x92\xe7\xb0*\tkey_field\"h\n\x07PrivKey\x12/\n\x03key\x18\x01 \x01(\x0c\x42\x1d\xfa\xde\x1f\x19\x63rypto/ed25519.PrivateKeyR\x03key:,\x8a\xe7\xb0*\x19tendermint/PrivKeyEd25519\x92\xe7\xb0*\tkey_fieldB2Z0github.com/cosmos/cosmos-sdk/crypto/keys/ed25519b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.ed25519.keys_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/cosmos/cosmos-sdk/crypto/keys/ed25519' + _PUBKEY.fields_by_name['key']._options = None + _PUBKEY.fields_by_name['key']._serialized_options = b'\372\336\037\030crypto/ed25519.PublicKey' + _PUBKEY._options = None + _PUBKEY._serialized_options = b'\230\240\037\000\212\347\260*\030tendermint/PubKeyEd25519\222\347\260*\tkey_field' + _PRIVKEY.fields_by_name['key']._options = None + _PRIVKEY.fields_by_name['key']._serialized_options = b'\372\336\037\031crypto/ed25519.PrivateKey' + _PRIVKEY._options = None + _PRIVKEY._serialized_options = b'\212\347\260*\031tendermint/PrivKeyEd25519\222\347\260*\tkey_field' + _PUBKEY._serialized_start=100 + _PUBKEY._serialized_end=205 + _PRIVKEY._serialized_start=207 + _PRIVKEY._serialized_end=311 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.pyi b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.pyi new file mode 100644 index 00000000..bc5dcc04 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2.pyi @@ -0,0 +1,56 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 PubKey(google.protobuf.message.Message): + """PubKey is an ed25519 public key for handling Tendermint keys in SDK. + It's needed for Any serialization and SDK compatibility. + It must not be used in a non Tendermint key context because it doesn't implement + ADR-28. Nevertheless, you will like to use ed25519 in app user level + then you must create a new proto message and follow ADR-28 for Address construction. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key"]) -> None: ... + +global___PubKey = PubKey + +@typing_extensions.final +class PrivKey(google.protobuf.message.Message): + """Deprecated: PrivKey defines a ed25519 private key. + NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key"]) -> None: ... + +global___PrivKey = PrivKey diff --git a/nibiru_proto/cosmos/crypto/ed25519/keys_pb2_grpc.py b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/ed25519/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.py b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.py new file mode 100644 index 00000000..f2f8ad86 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/hd/v1/hd.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/crypto/hd/v1/hd.proto\x12\x13\x63osmos.crypto.hd.v1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\"\xc0\x01\n\x0b\x42IP44Params\x12\x18\n\x07purpose\x18\x01 \x01(\rR\x07purpose\x12\x1b\n\tcoin_type\x18\x02 \x01(\rR\x08\x63oinType\x12\x18\n\x07\x61\x63\x63ount\x18\x03 \x01(\rR\x07\x61\x63\x63ount\x12\x16\n\x06\x63hange\x18\x04 \x01(\x08R\x06\x63hange\x12#\n\raddress_index\x18\x05 \x01(\rR\x0c\x61\x64\x64ressIndex:#\x98\xa0\x1f\x00\x8a\xe7\xb0*\x1a\x63rypto/keys/hd/BIP44ParamsB,Z&github.com/cosmos/cosmos-sdk/crypto/hd\xc8\xe1\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.hd.v1.hd_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z&github.com/cosmos/cosmos-sdk/crypto/hd\310\341\036\000' + _BIP44PARAMS._options = None + _BIP44PARAMS._serialized_options = b'\230\240\037\000\212\347\260*\032crypto/keys/hd/BIP44Params' + _BIP44PARAMS._serialized_start=95 + _BIP44PARAMS._serialized_end=287 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.pyi b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.pyi new file mode 100644 index 00000000..608943f3 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import google.protobuf.descriptor +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 BIP44Params(google.protobuf.message.Message): + """BIP44Params is used as path field in ledger item in Record.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PURPOSE_FIELD_NUMBER: builtins.int + COIN_TYPE_FIELD_NUMBER: builtins.int + ACCOUNT_FIELD_NUMBER: builtins.int + CHANGE_FIELD_NUMBER: builtins.int + ADDRESS_INDEX_FIELD_NUMBER: builtins.int + purpose: builtins.int + """purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation""" + coin_type: builtins.int + """coin_type is a constant that improves privacy""" + account: builtins.int + """account splits the key space into independent user identities""" + change: builtins.bool + """change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + chain. + """ + address_index: builtins.int + """address_index is used as child index in BIP32 derivation""" + def __init__( + self, + *, + purpose: builtins.int = ..., + coin_type: builtins.int = ..., + account: builtins.int = ..., + change: builtins.bool = ..., + address_index: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account", b"account", "address_index", b"address_index", "change", b"change", "coin_type", b"coin_type", "purpose", b"purpose"]) -> None: ... + +global___BIP44Params = BIP44Params diff --git a/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2_grpc.py b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/hd/v1/hd_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.py b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.py new file mode 100644 index 00000000..d42393a4 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/keyring/v1/record.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.crypto.hd.v1 import hd_pb2 as cosmos_dot_crypto_dot_hd_dot_v1_dot_hd__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/crypto/keyring/v1/record.proto\x12\x18\x63osmos.crypto.keyring.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1c\x63osmos/crypto/hd/v1/hd.proto\"\xea\x03\n\x06Record\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x07pub_key\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06pubKey\x12>\n\x05local\x18\x03 \x01(\x0b\x32&.cosmos.crypto.keyring.v1.Record.LocalH\x00R\x05local\x12\x41\n\x06ledger\x18\x04 \x01(\x0b\x32\'.cosmos.crypto.keyring.v1.Record.LedgerH\x00R\x06ledger\x12>\n\x05multi\x18\x05 \x01(\x0b\x32&.cosmos.crypto.keyring.v1.Record.MultiH\x00R\x05multi\x12\x44\n\x07offline\x18\x06 \x01(\x0b\x32(.cosmos.crypto.keyring.v1.Record.OfflineH\x00R\x07offline\x1a\x38\n\x05Local\x12/\n\x08priv_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x07privKey\x1a>\n\x06Ledger\x12\x34\n\x04path\x18\x01 \x01(\x0b\x32 .cosmos.crypto.hd.v1.BIP44ParamsR\x04path\x1a\x07\n\x05Multi\x1a\t\n\x07OfflineB\x06\n\x04itemB5Z+github.com/cosmos/cosmos-sdk/crypto/keyring\xc8\xe1\x1e\x00\x98\xe3\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.keyring.v1.record_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/crypto/keyring\310\341\036\000\230\343\036\000' + _RECORD._serialized_start=147 + _RECORD._serialized_end=637 + _RECORD_LOCAL._serialized_start=489 + _RECORD_LOCAL._serialized_end=545 + _RECORD_LEDGER._serialized_start=547 + _RECORD_LEDGER._serialized_end=609 + _RECORD_MULTI._serialized_start=611 + _RECORD_MULTI._serialized_end=618 + _RECORD_OFFLINE._serialized_start=620 + _RECORD_OFFLINE._serialized_end=629 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.pyi b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.pyi new file mode 100644 index 00000000..dbe40e9e --- /dev/null +++ b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2.pyi @@ -0,0 +1,118 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import cosmos.crypto.hd.v1.hd_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +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 Record(google.protobuf.message.Message): + """Record is used for representing a key in the keyring.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Local(google.protobuf.message.Message): + """Item is a keyring item stored in a keyring backend. + Local item + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PRIV_KEY_FIELD_NUMBER: builtins.int + @property + def priv_key(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + priv_key: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["priv_key", b"priv_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["priv_key", b"priv_key"]) -> None: ... + + @typing_extensions.final + class Ledger(google.protobuf.message.Message): + """Ledger item""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PATH_FIELD_NUMBER: builtins.int + @property + def path(self) -> cosmos.crypto.hd.v1.hd_pb2.BIP44Params: ... + def __init__( + self, + *, + path: cosmos.crypto.hd.v1.hd_pb2.BIP44Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["path", b"path"]) -> None: ... + + @typing_extensions.final + class Multi(google.protobuf.message.Message): + """Multi item""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + @typing_extensions.final + class Offline(google.protobuf.message.Message): + """Offline item""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + LOCAL_FIELD_NUMBER: builtins.int + LEDGER_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + OFFLINE_FIELD_NUMBER: builtins.int + name: builtins.str + """name represents a name of Record""" + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: + """pub_key represents a public key in any format""" + @property + def local(self) -> global___Record.Local: + """local stores the private key locally.""" + @property + def ledger(self) -> global___Record.Ledger: + """ledger stores the information about a Ledger key.""" + @property + def multi(self) -> global___Record.Multi: + """Multi does not store any other information.""" + @property + def offline(self) -> global___Record.Offline: + """Offline does not store any other information.""" + def __init__( + self, + *, + name: builtins.str = ..., + pub_key: google.protobuf.any_pb2.Any | None = ..., + local: global___Record.Local | None = ..., + ledger: global___Record.Ledger | None = ..., + multi: global___Record.Multi | None = ..., + offline: global___Record.Offline | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["item", b"item", "ledger", b"ledger", "local", b"local", "multi", b"multi", "offline", b"offline", "pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["item", b"item", "ledger", b"ledger", "local", b"local", "multi", b"multi", "name", b"name", "offline", b"offline", "pub_key", b"pub_key"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["item", b"item"]) -> typing_extensions.Literal["local", "ledger", "multi", "offline"] | None: ... + +global___Record = Record diff --git a/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2_grpc.py b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/keyring/v1/record_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/multisig/keys_pb2.py b/nibiru_proto/cosmos/crypto/multisig/keys_pb2.py new file mode 100644 index 00000000..b62607cd --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/keys_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/multisig/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/crypto/multisig/keys.proto\x12\x16\x63osmos.crypto.multisig\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x11\x61mino/amino.proto\"\xc3\x01\n\x11LegacyAminoPubKey\x12\x1c\n\tthreshold\x18\x01 \x01(\rR\tthreshold\x12N\n\x0bpublic_keys\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyB\x17\xe2\xde\x1f\x07PubKeys\xa2\xe7\xb0*\x07pubkeysR\npublicKeys:@\x88\xa0\x1f\x00\x8a\xe7\xb0*\"tendermint/PubKeyMultisigThreshold\x92\xe7\xb0*\x10threshold_stringB3Z1github.com/cosmos/cosmos-sdk/crypto/keys/multisigb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.multisig.keys_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/crypto/keys/multisig' + _LEGACYAMINOPUBKEY.fields_by_name['public_keys']._options = None + _LEGACYAMINOPUBKEY.fields_by_name['public_keys']._serialized_options = b'\342\336\037\007PubKeys\242\347\260*\007pubkeys' + _LEGACYAMINOPUBKEY._options = None + _LEGACYAMINOPUBKEY._serialized_options = b'\210\240\037\000\212\347\260*\"tendermint/PubKeyMultisigThreshold\222\347\260*\020threshold_string' + _LEGACYAMINOPUBKEY._serialized_start=130 + _LEGACYAMINOPUBKEY._serialized_end=325 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/multisig/keys_pb2.pyi b/nibiru_proto/cosmos/crypto/multisig/keys_pb2.pyi new file mode 100644 index 00000000..ab286214 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/keys_pb2.pyi @@ -0,0 +1,42 @@ +""" +@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 LegacyAminoPubKey(google.protobuf.message.Message): + """LegacyAminoPubKey specifies a public key type + which nests multiple public keys and a threshold, + it uses legacy amino address rules. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + THRESHOLD_FIELD_NUMBER: builtins.int + PUBLIC_KEYS_FIELD_NUMBER: builtins.int + threshold: builtins.int + @property + def public_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__( + self, + *, + threshold: builtins.int = ..., + public_keys: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["public_keys", b"public_keys", "threshold", b"threshold"]) -> None: ... + +global___LegacyAminoPubKey = LegacyAminoPubKey diff --git a/nibiru_proto/cosmos/crypto/multisig/keys_pb2_grpc.py b/nibiru_proto/cosmos/crypto/multisig/keys_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.py b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.py new file mode 100644 index 00000000..ff4c247c --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/multisig/v1beta1/multisig.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-cosmos/crypto/multisig/v1beta1/multisig.proto\x12\x1e\x63osmos.crypto.multisig.v1beta1\x1a\x14gogoproto/gogo.proto\"6\n\x0eMultiSignature\x12\x1e\n\nsignatures\x18\x01 \x03(\x0cR\nsignatures:\x04\xd0\xa1\x1f\x01\"Y\n\x0f\x43ompactBitArray\x12*\n\x11\x65xtra_bits_stored\x18\x01 \x01(\rR\x0f\x65xtraBitsStored\x12\x14\n\x05\x65lems\x18\x02 \x01(\x0cR\x05\x65lems:\x04\x98\xa0\x1f\x00\x42+Z)github.com/cosmos/cosmos-sdk/crypto/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.multisig.v1beta1.multisig_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/crypto/types' + _MULTISIGNATURE._options = None + _MULTISIGNATURE._serialized_options = b'\320\241\037\001' + _COMPACTBITARRAY._options = None + _COMPACTBITARRAY._serialized_options = b'\230\240\037\000' + _MULTISIGNATURE._serialized_start=103 + _MULTISIGNATURE._serialized_end=157 + _COMPACTBITARRAY._serialized_start=159 + _COMPACTBITARRAY._serialized_end=248 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi new file mode 100644 index 00000000..e2357c7f --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi @@ -0,0 +1,62 @@ +""" +@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 MultiSignature(google.protobuf.message.Message): + """MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + signed and with which modes. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNATURES_FIELD_NUMBER: builtins.int + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__( + self, + *, + signatures: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["signatures", b"signatures"]) -> None: ... + +global___MultiSignature = MultiSignature + +@typing_extensions.final +class CompactBitArray(google.protobuf.message.Message): + """CompactBitArray is an implementation of a space efficient bit array. + This is used to ensure that the encoded data takes up a minimal amount of + space after proto encoding. + This is not thread safe, and is not intended for concurrent usage. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXTRA_BITS_STORED_FIELD_NUMBER: builtins.int + ELEMS_FIELD_NUMBER: builtins.int + extra_bits_stored: builtins.int + elems: builtins.bytes + def __init__( + self, + *, + extra_bits_stored: builtins.int = ..., + elems: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["elems", b"elems", "extra_bits_stored", b"extra_bits_stored"]) -> None: ... + +global___CompactBitArray = CompactBitArray diff --git a/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.py b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.py b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.py new file mode 100644 index 00000000..358f02b9 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/secp256k1/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/crypto/secp256k1/keys.proto\x12\x17\x63osmos.crypto.secp256k1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\"M\n\x06PubKey\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key:1\x98\xa0\x1f\x00\x8a\xe7\xb0*\x1atendermint/PubKeySecp256k1\x92\xe7\xb0*\tkey_field\"K\n\x07PrivKey\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key:.\x8a\xe7\xb0*\x1btendermint/PrivKeySecp256k1\x92\xe7\xb0*\tkey_fieldB4Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.secp256k1.keys_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1' + _PUBKEY._options = None + _PUBKEY._serialized_options = b'\230\240\037\000\212\347\260*\032tendermint/PubKeySecp256k1\222\347\260*\tkey_field' + _PRIVKEY._options = None + _PRIVKEY._serialized_options = b'\212\347\260*\033tendermint/PrivKeySecp256k1\222\347\260*\tkey_field' + _PUBKEY._serialized_start=104 + _PUBKEY._serialized_end=181 + _PRIVKEY._serialized_start=183 + _PRIVKEY._serialized_end=258 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.pyi b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.pyi new file mode 100644 index 00000000..1b83f34c --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2.pyi @@ -0,0 +1,54 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 PubKey(google.protobuf.message.Message): + """PubKey defines a secp256k1 public key + Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + if the y-coordinate is the lexicographically largest of the two associated with + the x-coordinate. Otherwise the first byte is a 0x03. + This prefix is followed with the x-coordinate. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key"]) -> None: ... + +global___PubKey = PubKey + +@typing_extensions.final +class PrivKey(google.protobuf.message.Message): + """PrivKey defines a secp256k1 private key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes + def __init__( + self, + *, + key: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key"]) -> None: ... + +global___PrivKey = PrivKey diff --git a/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2_grpc.py b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256k1/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.py b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.py new file mode 100644 index 00000000..8bb488af --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/secp256r1/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/crypto/secp256r1/keys.proto\x12\x17\x63osmos.crypto.secp256r1\x1a\x14gogoproto/gogo.proto\"\'\n\x06PubKey\x12\x1d\n\x03key\x18\x01 \x01(\x0c\x42\x0b\xda\xde\x1f\x07\x65\x63\x64saPKR\x03key\".\n\x07PrivKey\x12#\n\x06secret\x18\x01 \x01(\x0c\x42\x0b\xda\xde\x1f\x07\x65\x63\x64saSKR\x06secretB@Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1\xc8\xe1\x1e\x00\xd8\xe1\x1e\x00\xc8\xe3\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.crypto.secp256r1.keys_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1\310\341\036\000\330\341\036\000\310\343\036\001' + _PUBKEY.fields_by_name['key']._options = None + _PUBKEY.fields_by_name['key']._serialized_options = b'\332\336\037\007ecdsaPK' + _PRIVKEY.fields_by_name['secret']._options = None + _PRIVKEY.fields_by_name['secret']._serialized_options = b'\332\336\037\007ecdsaSK' + _PUBKEY._serialized_start=85 + _PUBKEY._serialized_end=124 + _PRIVKEY._serialized_start=126 + _PRIVKEY._serialized_end=172 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.pyi b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.pyi new file mode 100644 index 00000000..0aaf36e6 --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2.pyi @@ -0,0 +1,53 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import google.protobuf.descriptor +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 PubKey(google.protobuf.message.Message): + """PubKey defines a secp256r1 ECDSA public key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes + """Point on secp256r1 curve in a compressed representation as specified in section + 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + """ + def __init__( + self, + *, + key: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key"]) -> None: ... + +global___PubKey = PubKey + +@typing_extensions.final +class PrivKey(google.protobuf.message.Message): + """PrivKey defines a secp256r1 ECDSA private key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SECRET_FIELD_NUMBER: builtins.int + secret: builtins.bytes + """secret number serialized using big-endian encoding""" + def __init__( + self, + *, + secret: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["secret", b"secret"]) -> None: ... + +global___PrivKey = PrivKey diff --git a/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/distribution/module/v1/module_pb2.py b/nibiru_proto/cosmos/distribution/module/v1/module_pb2.py new file mode 100644 index 00000000..b5c81419 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/distribution/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*cosmos/distribution/module/v1/module.proto\x12\x1d\x63osmos.distribution.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\x89\x01\n\x06Module\x12,\n\x12\x66\x65\x65_collector_name\x18\x01 \x01(\tR\x10\x66\x65\x65\x43ollectorName\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:3\xba\xc0\x96\xda\x01-\n+github.com/cosmos/cosmos-sdk/x/distributionb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.distribution.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001-\n+github.com/cosmos/cosmos-sdk/x/distribution' + _MODULE._serialized_start=112 + _MODULE._serialized_end=249 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/distribution/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/distribution/module/v1/module_pb2.pyi new file mode 100644 index 00000000..c463b583 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/module/v1/module_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the distribution module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FEE_COLLECTOR_NAME_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + fee_collector_name: builtins.str + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + fee_collector_name: builtins.str = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "fee_collector_name", b"fee_collector_name"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/distribution/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/distribution/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/distribution/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.py b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.py new file mode 100644 index 00000000..e4ada8a1 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/distribution/v1beta1/distribution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.cosmos/distribution/v1beta1/distribution.proto\x12\x1b\x63osmos.distribution.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xb0\x03\n\x06Params\x12\x61\n\rcommunity_tax\x18\x01 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x0c\x63ommunityTax\x12p\n\x14\x62\x61se_proposer_reward\x18\x02 \x01(\tB>\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x12\x62\x61seProposerReward\x12r\n\x15\x62onus_proposer_reward\x18\x03 \x01(\tB>\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x13\x62onusProposerReward\x12\x32\n\x15withdraw_addr_enabled\x18\x04 \x01(\x08R\x13withdrawAddrEnabled:)\x98\xa0\x1f\x00\x8a\xe7\xb0* cosmos-sdk/x/distribution/Params\"\xd6\x01\n\x1aValidatorHistoricalRewards\x12\x8e\x01\n\x17\x63umulative_reward_ratio\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x15\x63umulativeRewardRatio\x12\'\n\x0freference_count\x18\x02 \x01(\rR\x0ereferenceCount\"\xa3\x01\n\x17ValidatorCurrentRewards\x12p\n\x07rewards\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x07rewards\x12\x16\n\x06period\x18\x02 \x01(\x04R\x06period\"\x98\x01\n\x1eValidatorAccumulatedCommission\x12v\n\ncommission\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\ncommission\"\x8f\x01\n\x1bValidatorOutstandingRewards\x12p\n\x07rewards\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x07rewards\"\x9a\x01\n\x13ValidatorSlashEvent\x12)\n\x10validator_period\x18\x01 \x01(\x04R\x0fvalidatorPeriod\x12X\n\x08\x66raction\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x08\x66raction\"\x8f\x01\n\x14ValidatorSlashEvents\x12q\n\x16validator_slash_events\x18\x01 \x03(\x0b\x32\x30.cosmos.distribution.v1beta1.ValidatorSlashEventB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x14validatorSlashEvents:\x04\x98\xa0\x1f\x00\"\x88\x01\n\x07\x46\x65\x65Pool\x12}\n\x0e\x63ommunity_pool\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\rcommunityPool\"\x8a\x02\n\x1a\x43ommunityPoolSpendProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x1c\n\trecipient\x18\x03 \x01(\tR\trecipient\x12h\n\x06\x61mount\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:,\x18\x01\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\"\xda\x01\n\x15\x44\x65legatorStartingInfo\x12\'\n\x0fprevious_period\x18\x01 \x01(\x04R\x0epreviousPeriod\x12R\n\x05stake\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x05stake\x12\x44\n\x06height\x18\x03 \x01(\x04\x42,\xea\xde\x1f\x0f\x63reation_height\xa2\xe7\xb0*\x0f\x63reation_height\xa8\xe7\xb0*\x01R\x06height\"\xdc\x01\n\x19\x44\x65legationDelegatorReward\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12n\n\x06reward\x18\x02 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x06reward:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x01\"\xd7\x01\n%CommunityPoolSpendProposalWithDeposit\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x1c\n\trecipient\x18\x03 \x01(\tR\trecipient\x12\x16\n\x06\x61mount\x18\x04 \x01(\tR\x06\x61mount\x12\x18\n\x07\x64\x65posit\x18\x05 \x01(\tR\x07\x64\x65posit:&\x88\xa0\x1f\x00\x98\xa0\x1f\x01\xca\xb4-\x1a\x63osmos.gov.v1beta1.ContentB7Z1github.com/cosmos/cosmos-sdk/x/distribution/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.distribution.v1beta1.distribution_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/distribution/types\250\342\036\001' + _PARAMS.fields_by_name['community_tax']._options = None + _PARAMS.fields_by_name['community_tax']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['base_proposer_reward']._options = None + _PARAMS.fields_by_name['base_proposer_reward']._serialized_options = b'\030\001\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['bonus_proposer_reward']._options = None + _PARAMS.fields_by_name['bonus_proposer_reward']._serialized_options = b'\030\001\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000\212\347\260* cosmos-sdk/x/distribution/Params' + _VALIDATORHISTORICALREWARDS.fields_by_name['cumulative_reward_ratio']._options = None + _VALIDATORHISTORICALREWARDS.fields_by_name['cumulative_reward_ratio']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _VALIDATORCURRENTREWARDS.fields_by_name['rewards']._options = None + _VALIDATORCURRENTREWARDS.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _VALIDATORACCUMULATEDCOMMISSION.fields_by_name['commission']._options = None + _VALIDATORACCUMULATEDCOMMISSION.fields_by_name['commission']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _VALIDATOROUTSTANDINGREWARDS.fields_by_name['rewards']._options = None + _VALIDATOROUTSTANDINGREWARDS.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _VALIDATORSLASHEVENT.fields_by_name['fraction']._options = None + _VALIDATORSLASHEVENT.fields_by_name['fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _VALIDATORSLASHEVENTS.fields_by_name['validator_slash_events']._options = None + _VALIDATORSLASHEVENTS.fields_by_name['validator_slash_events']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORSLASHEVENTS._options = None + _VALIDATORSLASHEVENTS._serialized_options = b'\230\240\037\000' + _FEEPOOL.fields_by_name['community_pool']._options = None + _FEEPOOL.fields_by_name['community_pool']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _COMMUNITYPOOLSPENDPROPOSAL.fields_by_name['amount']._options = None + _COMMUNITYPOOLSPENDPROPOSAL.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _COMMUNITYPOOLSPENDPROPOSAL._options = None + _COMMUNITYPOOLSPENDPROPOSAL._serialized_options = b'\030\001\210\240\037\000\230\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content' + _DELEGATORSTARTINGINFO.fields_by_name['stake']._options = None + _DELEGATORSTARTINGINFO.fields_by_name['stake']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _DELEGATORSTARTINGINFO.fields_by_name['height']._options = None + _DELEGATORSTARTINGINFO.fields_by_name['height']._serialized_options = b'\352\336\037\017creation_height\242\347\260*\017creation_height\250\347\260*\001' + _DELEGATIONDELEGATORREWARD.fields_by_name['validator_address']._options = None + _DELEGATIONDELEGATORREWARD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATIONDELEGATORREWARD.fields_by_name['reward']._options = None + _DELEGATIONDELEGATORREWARD.fields_by_name['reward']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _DELEGATIONDELEGATORREWARD._options = None + _DELEGATIONDELEGATORREWARD._serialized_options = b'\210\240\037\000\230\240\037\001' + _COMMUNITYPOOLSPENDPROPOSALWITHDEPOSIT._options = None + _COMMUNITYPOOLSPENDPROPOSALWITHDEPOSIT._serialized_options = b'\210\240\037\000\230\240\037\001\312\264-\032cosmos.gov.v1beta1.Content' + _PARAMS._serialized_start=180 + _PARAMS._serialized_end=612 + _VALIDATORHISTORICALREWARDS._serialized_start=615 + _VALIDATORHISTORICALREWARDS._serialized_end=829 + _VALIDATORCURRENTREWARDS._serialized_start=832 + _VALIDATORCURRENTREWARDS._serialized_end=995 + _VALIDATORACCUMULATEDCOMMISSION._serialized_start=998 + _VALIDATORACCUMULATEDCOMMISSION._serialized_end=1150 + _VALIDATOROUTSTANDINGREWARDS._serialized_start=1153 + _VALIDATOROUTSTANDINGREWARDS._serialized_end=1296 + _VALIDATORSLASHEVENT._serialized_start=1299 + _VALIDATORSLASHEVENT._serialized_end=1453 + _VALIDATORSLASHEVENTS._serialized_start=1456 + _VALIDATORSLASHEVENTS._serialized_end=1599 + _FEEPOOL._serialized_start=1602 + _FEEPOOL._serialized_end=1738 + _COMMUNITYPOOLSPENDPROPOSAL._serialized_start=1741 + _COMMUNITYPOOLSPENDPROPOSAL._serialized_end=2007 + _DELEGATORSTARTINGINFO._serialized_start=2010 + _DELEGATORSTARTINGINFO._serialized_end=2228 + _DELEGATIONDELEGATORREWARD._serialized_start=2231 + _DELEGATIONDELEGATORREWARD._serialized_end=2451 + _COMMUNITYPOOLSPENDPROPOSALWITHDEPOSIT._serialized_start=2454 + _COMMUNITYPOOLSPENDPROPOSALWITHDEPOSIT._serialized_end=2669 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.pyi b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.pyi new file mode 100644 index 00000000..fdf4bf66 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2.pyi @@ -0,0 +1,325 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_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 Params(google.protobuf.message.Message): + """Params defines the set of params for the distribution module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMMUNITY_TAX_FIELD_NUMBER: builtins.int + BASE_PROPOSER_REWARD_FIELD_NUMBER: builtins.int + BONUS_PROPOSER_REWARD_FIELD_NUMBER: builtins.int + WITHDRAW_ADDR_ENABLED_FIELD_NUMBER: builtins.int + community_tax: builtins.str + base_proposer_reward: builtins.str + """Deprecated: The base_proposer_reward field is deprecated and is no longer used + in the x/distribution module's reward mechanism. + """ + bonus_proposer_reward: builtins.str + """Deprecated: The bonus_proposer_reward field is deprecated and is no longer used + in the x/distribution module's reward mechanism. + """ + withdraw_addr_enabled: builtins.bool + def __init__( + self, + *, + community_tax: builtins.str = ..., + base_proposer_reward: builtins.str = ..., + bonus_proposer_reward: builtins.str = ..., + withdraw_addr_enabled: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["base_proposer_reward", b"base_proposer_reward", "bonus_proposer_reward", b"bonus_proposer_reward", "community_tax", b"community_tax", "withdraw_addr_enabled", b"withdraw_addr_enabled"]) -> None: ... + +global___Params = Params + +@typing_extensions.final +class ValidatorHistoricalRewards(google.protobuf.message.Message): + """ValidatorHistoricalRewards represents historical rewards for a validator. + Height is implicit within the store key. + Cumulative reward ratio is the sum from the zeroeth period + until this period of rewards / tokens, per the spec. + The reference count indicates the number of objects + which might need to reference this historical entry at any point. + ReferenceCount = + number of outstanding delegations which ended the associated period (and + might need to read that record) + + number of slashes which ended the associated period (and might need to + read that record) + + one per validator for the zeroeth period, set on initialization + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CUMULATIVE_REWARD_RATIO_FIELD_NUMBER: builtins.int + REFERENCE_COUNT_FIELD_NUMBER: builtins.int + @property + def cumulative_reward_ratio(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + reference_count: builtins.int + def __init__( + self, + *, + cumulative_reward_ratio: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + reference_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["cumulative_reward_ratio", b"cumulative_reward_ratio", "reference_count", b"reference_count"]) -> None: ... + +global___ValidatorHistoricalRewards = ValidatorHistoricalRewards + +@typing_extensions.final +class ValidatorCurrentRewards(google.protobuf.message.Message): + """ValidatorCurrentRewards represents current rewards and current + period for a validator kept as a running counter and incremented + each block as long as the validator's tokens remain constant. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REWARDS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + period: builtins.int + def __init__( + self, + *, + rewards: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + period: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["period", b"period", "rewards", b"rewards"]) -> None: ... + +global___ValidatorCurrentRewards = ValidatorCurrentRewards + +@typing_extensions.final +class ValidatorAccumulatedCommission(google.protobuf.message.Message): + """ValidatorAccumulatedCommission represents accumulated commission + for a validator kept as a running counter, can be withdrawn at any time. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMMISSION_FIELD_NUMBER: builtins.int + @property + def commission(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__( + self, + *, + commission: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission"]) -> None: ... + +global___ValidatorAccumulatedCommission = ValidatorAccumulatedCommission + +@typing_extensions.final +class ValidatorOutstandingRewards(google.protobuf.message.Message): + """ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + for a validator inexpensive to track, allows simple sanity checks. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__( + self, + *, + rewards: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> None: ... + +global___ValidatorOutstandingRewards = ValidatorOutstandingRewards + +@typing_extensions.final +class ValidatorSlashEvent(google.protobuf.message.Message): + """ValidatorSlashEvent represents a validator slash event. + Height is implicit within the store key. + This is needed to calculate appropriate amount of staking tokens + for delegations which are withdrawn after a slash has occurred. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_PERIOD_FIELD_NUMBER: builtins.int + FRACTION_FIELD_NUMBER: builtins.int + validator_period: builtins.int + fraction: builtins.str + def __init__( + self, + *, + validator_period: builtins.int = ..., + fraction: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fraction", b"fraction", "validator_period", b"validator_period"]) -> None: ... + +global___ValidatorSlashEvent = ValidatorSlashEvent + +@typing_extensions.final +class ValidatorSlashEvents(google.protobuf.message.Message): + """ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int + @property + def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEvent]: ... + def __init__( + self, + *, + validator_slash_events: collections.abc.Iterable[global___ValidatorSlashEvent] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_slash_events", b"validator_slash_events"]) -> None: ... + +global___ValidatorSlashEvents = ValidatorSlashEvents + +@typing_extensions.final +class FeePool(google.protobuf.message.Message): + """FeePool is the global fee pool for distribution.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMMUNITY_POOL_FIELD_NUMBER: builtins.int + @property + def community_pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__( + self, + *, + community_pool: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["community_pool", b"community_pool"]) -> None: ... + +global___FeePool = FeePool + +@typing_extensions.final +class CommunityPoolSpendProposal(google.protobuf.message.Message): + """CommunityPoolSpendProposal details a proposal for use of community funds, + together with how many coins are proposed to be spent, and to which + recipient account. + + Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no + longer a need for an explicit CommunityPoolSpendProposal. To spend community + pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov + module via a v1 governance proposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + RECIPIENT_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + title: builtins.str + description: builtins.str + recipient: builtins.str + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + recipient: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "description", b"description", "recipient", b"recipient", "title", b"title"]) -> None: ... + +global___CommunityPoolSpendProposal = CommunityPoolSpendProposal + +@typing_extensions.final +class DelegatorStartingInfo(google.protobuf.message.Message): + """DelegatorStartingInfo represents the starting info for a delegator reward + period. It tracks the previous validator period, the delegation's amount of + staking token, and the creation height (to check later on if any slashes have + occurred). NOTE: Even though validators are slashed to whole staking tokens, + the delegators within the validator may be left with less than a full token, + thus sdk.Dec is used. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PREVIOUS_PERIOD_FIELD_NUMBER: builtins.int + STAKE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + previous_period: builtins.int + stake: builtins.str + height: builtins.int + def __init__( + self, + *, + previous_period: builtins.int = ..., + stake: builtins.str = ..., + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "previous_period", b"previous_period", "stake", b"stake"]) -> None: ... + +global___DelegatorStartingInfo = DelegatorStartingInfo + +@typing_extensions.final +class DelegationDelegatorReward(google.protobuf.message.Message): + """DelegationDelegatorReward represents the properties + of a delegator's delegation reward. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARD_FIELD_NUMBER: builtins.int + validator_address: builtins.str + @property + def reward(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__( + self, + *, + validator_address: builtins.str = ..., + reward: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["reward", b"reward", "validator_address", b"validator_address"]) -> None: ... + +global___DelegationDelegatorReward = DelegationDelegatorReward + +@typing_extensions.final +class CommunityPoolSpendProposalWithDeposit(google.protobuf.message.Message): + """CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + with a deposit + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + RECIPIENT_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + DEPOSIT_FIELD_NUMBER: builtins.int + title: builtins.str + description: builtins.str + recipient: builtins.str + amount: builtins.str + deposit: builtins.str + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + recipient: builtins.str = ..., + amount: builtins.str = ..., + deposit: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "deposit", b"deposit", "description", b"description", "recipient", b"recipient", "title", b"title"]) -> None: ... + +global___CommunityPoolSpendProposalWithDeposit = CommunityPoolSpendProposalWithDeposit diff --git a/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.py b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..c301b0c3 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/distribution/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.distribution.v1beta1 import distribution_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_distribution__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)cosmos/distribution/v1beta1/genesis.proto\x12\x1b\x63osmos.distribution.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a.cosmos/distribution/v1beta1/distribution.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xad\x01\n\x15\x44\x65legatorWithdrawInfo\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x43\n\x10withdraw_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0fwithdrawAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xfe\x01\n!ValidatorOutstandingRewardsRecord\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x87\x01\n\x13outstanding_rewards\x18\x02 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x12outstandingRewards:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xe1\x01\n$ValidatorAccumulatedCommissionRecord\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12h\n\x0b\x61\x63\x63umulated\x18\x02 \x01(\x0b\x32;.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x61\x63\x63umulated:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xe9\x01\n ValidatorHistoricalRewardsRecord\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x16\n\x06period\x18\x02 \x01(\x04R\x06period\x12\\\n\x07rewards\x18\x03 \x01(\x0b\x32\x37.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07rewards:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xcb\x01\n\x1dValidatorCurrentRewardsRecord\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12Y\n\x07rewards\x18\x02 \x01(\x0b\x32\x34.cosmos.distribution.v1beta1.ValidatorCurrentRewardsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07rewards:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x99\x02\n\x1b\x44\x65legatorStartingInfoRecord\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x62\n\rstarting_info\x18\x03 \x01(\x0b\x32\x32.cosmos.distribution.v1beta1.DelegatorStartingInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0cstartingInfo:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x8d\x02\n\x19ValidatorSlashEventRecord\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x16\n\x06height\x18\x02 \x01(\x04R\x06height\x12\x16\n\x06period\x18\x03 \x01(\x04R\x06period\x12o\n\x15validator_slash_event\x18\x04 \x01(\x0b\x32\x30.cosmos.distribution.v1beta1.ValidatorSlashEventB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x13validatorSlashEvent:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x8c\t\n\x0cGenesisState\x12\x46\n\x06params\x18\x01 \x01(\x0b\x32#.cosmos.distribution.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\x12J\n\x08\x66\x65\x65_pool\x18\x02 \x01(\x0b\x32$.cosmos.distribution.v1beta1.FeePoolB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x66\x65\x65Pool\x12w\n\x18\x64\x65legator_withdraw_infos\x18\x03 \x03(\x0b\x32\x32.cosmos.distribution.v1beta1.DelegatorWithdrawInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x16\x64\x65legatorWithdrawInfos\x12\x45\n\x11previous_proposer\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10previousProposer\x12z\n\x13outstanding_rewards\x18\x05 \x03(\x0b\x32>.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x12outstandingRewards\x12\x98\x01\n!validator_accumulated_commissions\x18\x06 \x03(\x0b\x32\x41.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x1fvalidatorAccumulatedCommissions\x12\x8a\x01\n\x1cvalidator_historical_rewards\x18\x07 \x03(\x0b\x32=.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x1avalidatorHistoricalRewards\x12\x81\x01\n\x19validator_current_rewards\x18\x08 \x03(\x0b\x32:.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x17validatorCurrentRewards\x12}\n\x18\x64\x65legator_starting_infos\x18\t \x03(\x0b\x32\x38.cosmos.distribution.v1beta1.DelegatorStartingInfoRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x16\x64\x65legatorStartingInfos\x12w\n\x16validator_slash_events\x18\n \x03(\x0b\x32\x36.cosmos.distribution.v1beta1.ValidatorSlashEventRecordB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x14validatorSlashEvents:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x42\x37Z1github.com/cosmos/cosmos-sdk/x/distribution/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.distribution.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/distribution/types\250\342\036\001' + _DELEGATORWITHDRAWINFO.fields_by_name['delegator_address']._options = None + _DELEGATORWITHDRAWINFO.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATORWITHDRAWINFO.fields_by_name['withdraw_address']._options = None + _DELEGATORWITHDRAWINFO.fields_by_name['withdraw_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATORWITHDRAWINFO._options = None + _DELEGATORWITHDRAWINFO._serialized_options = b'\210\240\037\000\350\240\037\000' + _VALIDATOROUTSTANDINGREWARDSRECORD.fields_by_name['validator_address']._options = None + _VALIDATOROUTSTANDINGREWARDSRECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATOROUTSTANDINGREWARDSRECORD.fields_by_name['outstanding_rewards']._options = None + _VALIDATOROUTSTANDINGREWARDSRECORD.fields_by_name['outstanding_rewards']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _VALIDATOROUTSTANDINGREWARDSRECORD._options = None + _VALIDATOROUTSTANDINGREWARDSRECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _VALIDATORACCUMULATEDCOMMISSIONRECORD.fields_by_name['validator_address']._options = None + _VALIDATORACCUMULATEDCOMMISSIONRECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORACCUMULATEDCOMMISSIONRECORD.fields_by_name['accumulated']._options = None + _VALIDATORACCUMULATEDCOMMISSIONRECORD.fields_by_name['accumulated']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORACCUMULATEDCOMMISSIONRECORD._options = None + _VALIDATORACCUMULATEDCOMMISSIONRECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _VALIDATORHISTORICALREWARDSRECORD.fields_by_name['validator_address']._options = None + _VALIDATORHISTORICALREWARDSRECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORHISTORICALREWARDSRECORD.fields_by_name['rewards']._options = None + _VALIDATORHISTORICALREWARDSRECORD.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORHISTORICALREWARDSRECORD._options = None + _VALIDATORHISTORICALREWARDSRECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _VALIDATORCURRENTREWARDSRECORD.fields_by_name['validator_address']._options = None + _VALIDATORCURRENTREWARDSRECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORCURRENTREWARDSRECORD.fields_by_name['rewards']._options = None + _VALIDATORCURRENTREWARDSRECORD.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORCURRENTREWARDSRECORD._options = None + _VALIDATORCURRENTREWARDSRECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _DELEGATORSTARTINGINFORECORD.fields_by_name['delegator_address']._options = None + _DELEGATORSTARTINGINFORECORD.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATORSTARTINGINFORECORD.fields_by_name['validator_address']._options = None + _DELEGATORSTARTINGINFORECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATORSTARTINGINFORECORD.fields_by_name['starting_info']._options = None + _DELEGATORSTARTINGINFORECORD.fields_by_name['starting_info']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DELEGATORSTARTINGINFORECORD._options = None + _DELEGATORSTARTINGINFORECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _VALIDATORSLASHEVENTRECORD.fields_by_name['validator_address']._options = None + _VALIDATORSLASHEVENTRECORD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORSLASHEVENTRECORD.fields_by_name['validator_slash_event']._options = None + _VALIDATORSLASHEVENTRECORD.fields_by_name['validator_slash_event']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORSLASHEVENTRECORD._options = None + _VALIDATORSLASHEVENTRECORD._serialized_options = b'\210\240\037\000\350\240\037\000' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['fee_pool']._options = None + _GENESISSTATE.fields_by_name['fee_pool']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['delegator_withdraw_infos']._options = None + _GENESISSTATE.fields_by_name['delegator_withdraw_infos']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['previous_proposer']._options = None + _GENESISSTATE.fields_by_name['previous_proposer']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GENESISSTATE.fields_by_name['outstanding_rewards']._options = None + _GENESISSTATE.fields_by_name['outstanding_rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['validator_accumulated_commissions']._options = None + _GENESISSTATE.fields_by_name['validator_accumulated_commissions']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['validator_historical_rewards']._options = None + _GENESISSTATE.fields_by_name['validator_historical_rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['validator_current_rewards']._options = None + _GENESISSTATE.fields_by_name['validator_current_rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['delegator_starting_infos']._options = None + _GENESISSTATE.fields_by_name['delegator_starting_infos']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['validator_slash_events']._options = None + _GENESISSTATE.fields_by_name['validator_slash_events']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._options = None + _GENESISSTATE._serialized_options = b'\210\240\037\000\350\240\037\000' + _DELEGATORWITHDRAWINFO._serialized_start=223 + _DELEGATORWITHDRAWINFO._serialized_end=396 + _VALIDATOROUTSTANDINGREWARDSRECORD._serialized_start=399 + _VALIDATOROUTSTANDINGREWARDSRECORD._serialized_end=653 + _VALIDATORACCUMULATEDCOMMISSIONRECORD._serialized_start=656 + _VALIDATORACCUMULATEDCOMMISSIONRECORD._serialized_end=881 + _VALIDATORHISTORICALREWARDSRECORD._serialized_start=884 + _VALIDATORHISTORICALREWARDSRECORD._serialized_end=1117 + _VALIDATORCURRENTREWARDSRECORD._serialized_start=1120 + _VALIDATORCURRENTREWARDSRECORD._serialized_end=1323 + _DELEGATORSTARTINGINFORECORD._serialized_start=1326 + _DELEGATORSTARTINGINFORECORD._serialized_end=1607 + _VALIDATORSLASHEVENTRECORD._serialized_start=1610 + _VALIDATORSLASHEVENTRECORD._serialized_end=1879 + _GENESISSTATE._serialized_start=1882 + _GENESISSTATE._serialized_end=3046 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..60a8db4f --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2.pyi @@ -0,0 +1,271 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.distribution.v1beta1.distribution_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 DelegatorWithdrawInfo(google.protobuf.message.Message): + """DelegatorWithdrawInfo is the address for where distributions rewards are + withdrawn to by default this struct is only used at genesis to feed in + default withdraw addresses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address is the address of the delegator.""" + withdraw_address: builtins.str + """withdraw_address is the address to withdraw the delegation rewards to.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + withdraw_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "withdraw_address", b"withdraw_address"]) -> None: ... + +global___DelegatorWithdrawInfo = DelegatorWithdrawInfo + +@typing_extensions.final +class ValidatorOutstandingRewardsRecord(google.protobuf.message.Message): + """ValidatorOutstandingRewardsRecord is used for import/export via genesis json.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address is the address of the validator.""" + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """outstanding_rewards represents the outstanding rewards of a validator.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + outstanding_rewards: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["outstanding_rewards", b"outstanding_rewards", "validator_address", b"validator_address"]) -> None: ... + +global___ValidatorOutstandingRewardsRecord = ValidatorOutstandingRewardsRecord + +@typing_extensions.final +class ValidatorAccumulatedCommissionRecord(google.protobuf.message.Message): + """ValidatorAccumulatedCommissionRecord is used for import / export via genesis + json. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ACCUMULATED_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address is the address of the validator.""" + @property + def accumulated(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: + """accumulated is the accumulated commission of a validator.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + accumulated: cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["accumulated", b"accumulated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["accumulated", b"accumulated", "validator_address", b"validator_address"]) -> None: ... + +global___ValidatorAccumulatedCommissionRecord = ValidatorAccumulatedCommissionRecord + +@typing_extensions.final +class ValidatorHistoricalRewardsRecord(google.protobuf.message.Message): + """ValidatorHistoricalRewardsRecord is used for import / export via genesis + json. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address is the address of the validator.""" + period: builtins.int + """period defines the period the historical rewards apply to.""" + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards: + """rewards defines the historical rewards of a validator.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + period: builtins.int = ..., + rewards: cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["period", b"period", "rewards", b"rewards", "validator_address", b"validator_address"]) -> None: ... + +global___ValidatorHistoricalRewardsRecord = ValidatorHistoricalRewardsRecord + +@typing_extensions.final +class ValidatorCurrentRewardsRecord(google.protobuf.message.Message): + """ValidatorCurrentRewardsRecord is used for import / export via genesis json.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address is the address of the validator.""" + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards: + """rewards defines the current rewards of a validator.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + rewards: cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["rewards", b"rewards", "validator_address", b"validator_address"]) -> None: ... + +global___ValidatorCurrentRewardsRecord = ValidatorCurrentRewardsRecord + +@typing_extensions.final +class DelegatorStartingInfoRecord(google.protobuf.message.Message): + """DelegatorStartingInfoRecord used for import / export via genesis json.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + STARTING_INFO_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address is the address of the delegator.""" + validator_address: builtins.str + """validator_address is the address of the validator.""" + @property + def starting_info(self) -> cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo: + """starting_info defines the starting info of a delegator.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + starting_info: cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["starting_info", b"starting_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "starting_info", b"starting_info", "validator_address", b"validator_address"]) -> None: ... + +global___DelegatorStartingInfoRecord = DelegatorStartingInfoRecord + +@typing_extensions.final +class ValidatorSlashEventRecord(google.protobuf.message.Message): + """ValidatorSlashEventRecord is used for import / export via genesis json.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + VALIDATOR_SLASH_EVENT_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address is the address of the validator.""" + height: builtins.int + """height defines the block height at which the slash event occurred.""" + period: builtins.int + """period is the period of the slash event.""" + @property + def validator_slash_event(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent: + """validator_slash_event describes the slash event.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + height: builtins.int = ..., + period: builtins.int = ..., + validator_slash_event: cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator_slash_event", b"validator_slash_event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "period", b"period", "validator_address", b"validator_address", "validator_slash_event", b"validator_slash_event"]) -> None: ... + +global___ValidatorSlashEventRecord = ValidatorSlashEventRecord + +@typing_extensions.final +class GenesisState(google.protobuf.message.Message): + """GenesisState defines the distribution module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + FEE_POOL_FIELD_NUMBER: builtins.int + DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER: builtins.int + PREVIOUS_PROPOSER_FIELD_NUMBER: builtins.int + OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int + VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER: builtins.int + VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER: builtins.int + VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER: builtins.int + DELEGATOR_STARTING_INFOS_FIELD_NUMBER: builtins.int + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: + """params defines all the parameters of the module.""" + @property + def fee_pool(self) -> cosmos.distribution.v1beta1.distribution_pb2.FeePool: + """fee_pool defines the fee pool at genesis.""" + @property + def delegator_withdraw_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorWithdrawInfo]: + """fee_pool defines the delegator withdraw infos at genesis.""" + previous_proposer: builtins.str + """fee_pool defines the previous proposer at genesis.""" + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorOutstandingRewardsRecord]: + """fee_pool defines the outstanding rewards of all validators at genesis.""" + @property + def validator_accumulated_commissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorAccumulatedCommissionRecord]: + """fee_pool defines the accumulated commissions of all validators at genesis.""" + @property + def validator_historical_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorHistoricalRewardsRecord]: + """fee_pool defines the historical rewards of all validators at genesis.""" + @property + def validator_current_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorCurrentRewardsRecord]: + """fee_pool defines the current rewards of all validators at genesis.""" + @property + def delegator_starting_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorStartingInfoRecord]: + """fee_pool defines the delegator starting infos at genesis.""" + @property + def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEventRecord]: + """fee_pool defines the validator slash events at genesis.""" + def __init__( + self, + *, + params: cosmos.distribution.v1beta1.distribution_pb2.Params | None = ..., + fee_pool: cosmos.distribution.v1beta1.distribution_pb2.FeePool | None = ..., + delegator_withdraw_infos: collections.abc.Iterable[global___DelegatorWithdrawInfo] | None = ..., + previous_proposer: builtins.str = ..., + outstanding_rewards: collections.abc.Iterable[global___ValidatorOutstandingRewardsRecord] | None = ..., + validator_accumulated_commissions: collections.abc.Iterable[global___ValidatorAccumulatedCommissionRecord] | None = ..., + validator_historical_rewards: collections.abc.Iterable[global___ValidatorHistoricalRewardsRecord] | None = ..., + validator_current_rewards: collections.abc.Iterable[global___ValidatorCurrentRewardsRecord] | None = ..., + delegator_starting_infos: collections.abc.Iterable[global___DelegatorStartingInfoRecord] | None = ..., + validator_slash_events: collections.abc.Iterable[global___ValidatorSlashEventRecord] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["fee_pool", b"fee_pool", "params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_starting_infos", b"delegator_starting_infos", "delegator_withdraw_infos", b"delegator_withdraw_infos", "fee_pool", b"fee_pool", "outstanding_rewards", b"outstanding_rewards", "params", b"params", "previous_proposer", b"previous_proposer", "validator_accumulated_commissions", b"validator_accumulated_commissions", "validator_current_rewards", b"validator_current_rewards", "validator_historical_rewards", b"validator_historical_rewards", "validator_slash_events", b"validator_slash_events"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.py b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.py new file mode 100644 index 00000000..931d8e2d --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.py @@ -0,0 +1,149 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/distribution/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.distribution.v1beta1 import distribution_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_distribution__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/distribution/v1beta1/query.proto\x12\x1b\x63osmos.distribution.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a.cosmos/distribution/v1beta1/distribution.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\x14\n\x12QueryParamsRequest\"]\n\x13QueryParamsResponse\x12\x46\n\x06params\x18\x01 \x01(\x0b\x32#.cosmos.distribution.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\"n\n%QueryValidatorDistributionInfoRequest\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\"\xe5\x02\n&QueryValidatorDistributionInfoResponse\x12\x43\n\x10operator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0foperatorAddress\x12\x82\x01\n\x11self_bond_rewards\x18\x02 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x0fselfBondRewards\x12q\n\ncommission\x18\x03 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB3\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoinsR\ncommission\"p\n\'QueryValidatorOutstandingRewardsRequest\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\"\x89\x01\n(QueryValidatorOutstandingRewardsResponse\x12]\n\x07rewards\x18\x01 \x01(\x0b\x32\x38.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07rewards\"h\n\x1fQueryValidatorCommissionRequest\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\"\x8a\x01\n QueryValidatorCommissionResponse\x12\x66\n\ncommission\x18\x01 \x01(\x0b\x32;.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\ncommission\"\x85\x02\n\x1cQueryValidatorSlashesRequest\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\'\n\x0fstarting_height\x18\x02 \x01(\x04R\x0estartingHeight\x12#\n\rending_height\x18\x03 \x01(\x04R\x0c\x65ndingHeight\x12\x46\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x01\"\xbf\x01\n\x1dQueryValidatorSlashesResponse\x12U\n\x07slashes\x18\x01 \x03(\x0b\x32\x30.cosmos.distribution.v1beta1.ValidatorSlashEventB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07slashes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xb7\x01\n\x1dQueryDelegationRewardsRequest\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x92\x01\n\x1eQueryDelegationRewardsResponse\x12p\n\x07rewards\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x07rewards\"u\n\"QueryDelegationTotalRewardsRequest\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xf0\x01\n#QueryDelegationTotalRewardsResponse\x12[\n\x07rewards\x18\x01 \x03(\x0b\x32\x36.cosmos.distribution.v1beta1.DelegationDelegatorRewardB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07rewards\x12l\n\x05total\x18\x02 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x05total\"r\n\x1fQueryDelegatorValidatorsRequest\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"L\n QueryDelegatorValidatorsResponse\x12\x1e\n\nvalidators\x18\x01 \x03(\tR\nvalidators:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"w\n$QueryDelegatorWithdrawAddressRequest\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"v\n%QueryDelegatorWithdrawAddressResponse\x12\x43\n\x10withdraw_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0fwithdrawAddress:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x1b\n\x19QueryCommunityPoolRequest\"\x88\x01\n\x1aQueryCommunityPoolResponse\x12j\n\x04pool\x18\x01 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB8\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\xa8\xe7\xb0*\x01R\x04pool2\xc4\x11\n\x05Query\x12\x98\x01\n\x06Params\x12/.cosmos.distribution.v1beta1.QueryParamsRequest\x1a\x30.cosmos.distribution.v1beta1.QueryParamsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/cosmos/distribution/v1beta1/params\x12\xe9\x01\n\x19ValidatorDistributionInfo\x12\x42.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest\x1a\x43.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse\"C\x82\xd3\xe4\x93\x02=\x12;/cosmos/distribution/v1beta1/validators/{validator_address}\x12\x83\x02\n\x1bValidatorOutstandingRewards\x12\x44.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest\x1a\x45.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards\x12\xe2\x01\n\x13ValidatorCommission\x12<.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest\x1a=.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse\"N\x82\xd3\xe4\x93\x02H\x12\x46/cosmos/distribution/v1beta1/validators/{validator_address}/commission\x12\xd6\x01\n\x10ValidatorSlashes\x12\x39.cosmos.distribution.v1beta1.QueryValidatorSlashesRequest\x1a:.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse\"K\x82\xd3\xe4\x93\x02\x45\x12\x43/cosmos/distribution/v1beta1/validators/{validator_address}/slashes\x12\xed\x01\n\x11\x44\x65legationRewards\x12:.cosmos.distribution.v1beta1.QueryDelegationRewardsRequest\x1a;.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse\"_\x82\xd3\xe4\x93\x02Y\x12W/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}\x12\xe8\x01\n\x16\x44\x65legationTotalRewards\x12?.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest\x1a@.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse\"K\x82\xd3\xe4\x93\x02\x45\x12\x43/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards\x12\xe2\x01\n\x13\x44\x65legatorValidators\x12<.cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest\x1a=.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse\"N\x82\xd3\xe4\x93\x02H\x12\x46/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators\x12\xf7\x01\n\x18\x44\x65legatorWithdrawAddress\x12\x41.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest\x1a\x42.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse\"T\x82\xd3\xe4\x93\x02N\x12L/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address\x12\xb5\x01\n\rCommunityPool\x12\x36.cosmos.distribution.v1beta1.QueryCommunityPoolRequest\x1a\x37.cosmos.distribution.v1beta1.QueryCommunityPoolResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/distribution/v1beta1/community_poolB3Z1github.com/cosmos/cosmos-sdk/x/distribution/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.distribution.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/distribution/types' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVALIDATORDISTRIBUTIONINFOREQUEST.fields_by_name['validator_address']._options = None + _QUERYVALIDATORDISTRIBUTIONINFOREQUEST.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['operator_address']._options = None + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['operator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['self_bond_rewards']._options = None + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['self_bond_rewards']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['commission']._options = None + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE.fields_by_name['commission']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins' + _QUERYVALIDATOROUTSTANDINGREWARDSREQUEST.fields_by_name['validator_address']._options = None + _QUERYVALIDATOROUTSTANDINGREWARDSREQUEST.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATOROUTSTANDINGREWARDSRESPONSE.fields_by_name['rewards']._options = None + _QUERYVALIDATOROUTSTANDINGREWARDSRESPONSE.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVALIDATORCOMMISSIONREQUEST.fields_by_name['validator_address']._options = None + _QUERYVALIDATORCOMMISSIONREQUEST.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORCOMMISSIONRESPONSE.fields_by_name['commission']._options = None + _QUERYVALIDATORCOMMISSIONRESPONSE.fields_by_name['commission']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVALIDATORSLASHESREQUEST.fields_by_name['validator_address']._options = None + _QUERYVALIDATORSLASHESREQUEST.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORSLASHESREQUEST._options = None + _QUERYVALIDATORSLASHESREQUEST._serialized_options = b'\210\240\037\000\230\240\037\001' + _QUERYVALIDATORSLASHESRESPONSE.fields_by_name['slashes']._options = None + _QUERYVALIDATORSLASHESRESPONSE.fields_by_name['slashes']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATIONREWARDSREQUEST.fields_by_name['delegator_address']._options = None + _QUERYDELEGATIONREWARDSREQUEST.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATIONREWARDSREQUEST.fields_by_name['validator_address']._options = None + _QUERYDELEGATIONREWARDSREQUEST.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATIONREWARDSREQUEST._options = None + _QUERYDELEGATIONREWARDSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATIONREWARDSRESPONSE.fields_by_name['rewards']._options = None + _QUERYDELEGATIONREWARDSRESPONSE.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _QUERYDELEGATIONTOTALREWARDSREQUEST.fields_by_name['delegator_address']._options = None + _QUERYDELEGATIONTOTALREWARDSREQUEST.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATIONTOTALREWARDSREQUEST._options = None + _QUERYDELEGATIONTOTALREWARDSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATIONTOTALREWARDSRESPONSE.fields_by_name['rewards']._options = None + _QUERYDELEGATIONTOTALREWARDSRESPONSE.fields_by_name['rewards']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATIONTOTALREWARDSRESPONSE.fields_by_name['total']._options = None + _QUERYDELEGATIONTOTALREWARDSRESPONSE.fields_by_name['total']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _QUERYDELEGATORVALIDATORSREQUEST.fields_by_name['delegator_address']._options = None + _QUERYDELEGATORVALIDATORSREQUEST.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORVALIDATORSREQUEST._options = None + _QUERYDELEGATORVALIDATORSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORVALIDATORSRESPONSE._options = None + _QUERYDELEGATORVALIDATORSRESPONSE._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORWITHDRAWADDRESSREQUEST.fields_by_name['delegator_address']._options = None + _QUERYDELEGATORWITHDRAWADDRESSREQUEST.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORWITHDRAWADDRESSREQUEST._options = None + _QUERYDELEGATORWITHDRAWADDRESSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE.fields_by_name['withdraw_address']._options = None + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE.fields_by_name['withdraw_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE._options = None + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYCOMMUNITYPOOLRESPONSE.fields_by_name['pool']._options = None + _QUERYCOMMUNITYPOOLRESPONSE.fields_by_name['pool']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins\250\347\260*\001' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002%\022#/cosmos/distribution/v1beta1/params' + _QUERY.methods_by_name['ValidatorDistributionInfo']._options = None + _QUERY.methods_by_name['ValidatorDistributionInfo']._serialized_options = b'\202\323\344\223\002=\022;/cosmos/distribution/v1beta1/validators/{validator_address}' + _QUERY.methods_by_name['ValidatorOutstandingRewards']._options = None + _QUERY.methods_by_name['ValidatorOutstandingRewards']._serialized_options = b'\202\323\344\223\002Q\022O/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards' + _QUERY.methods_by_name['ValidatorCommission']._options = None + _QUERY.methods_by_name['ValidatorCommission']._serialized_options = b'\202\323\344\223\002H\022F/cosmos/distribution/v1beta1/validators/{validator_address}/commission' + _QUERY.methods_by_name['ValidatorSlashes']._options = None + _QUERY.methods_by_name['ValidatorSlashes']._serialized_options = b'\202\323\344\223\002E\022C/cosmos/distribution/v1beta1/validators/{validator_address}/slashes' + _QUERY.methods_by_name['DelegationRewards']._options = None + _QUERY.methods_by_name['DelegationRewards']._serialized_options = b'\202\323\344\223\002Y\022W/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}' + _QUERY.methods_by_name['DelegationTotalRewards']._options = None + _QUERY.methods_by_name['DelegationTotalRewards']._serialized_options = b'\202\323\344\223\002E\022C/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards' + _QUERY.methods_by_name['DelegatorValidators']._options = None + _QUERY.methods_by_name['DelegatorValidators']._serialized_options = b'\202\323\344\223\002H\022F/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators' + _QUERY.methods_by_name['DelegatorWithdrawAddress']._options = None + _QUERY.methods_by_name['DelegatorWithdrawAddress']._serialized_options = b'\202\323\344\223\002N\022L/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address' + _QUERY.methods_by_name['CommunityPool']._options = None + _QUERY.methods_by_name['CommunityPool']._serialized_options = b'\202\323\344\223\002-\022+/cosmos/distribution/v1beta1/community_pool' + _QUERYPARAMSREQUEST._serialized_start=294 + _QUERYPARAMSREQUEST._serialized_end=314 + _QUERYPARAMSRESPONSE._serialized_start=316 + _QUERYPARAMSRESPONSE._serialized_end=409 + _QUERYVALIDATORDISTRIBUTIONINFOREQUEST._serialized_start=411 + _QUERYVALIDATORDISTRIBUTIONINFOREQUEST._serialized_end=521 + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE._serialized_start=524 + _QUERYVALIDATORDISTRIBUTIONINFORESPONSE._serialized_end=881 + _QUERYVALIDATOROUTSTANDINGREWARDSREQUEST._serialized_start=883 + _QUERYVALIDATOROUTSTANDINGREWARDSREQUEST._serialized_end=995 + _QUERYVALIDATOROUTSTANDINGREWARDSRESPONSE._serialized_start=998 + _QUERYVALIDATOROUTSTANDINGREWARDSRESPONSE._serialized_end=1135 + _QUERYVALIDATORCOMMISSIONREQUEST._serialized_start=1137 + _QUERYVALIDATORCOMMISSIONREQUEST._serialized_end=1241 + _QUERYVALIDATORCOMMISSIONRESPONSE._serialized_start=1244 + _QUERYVALIDATORCOMMISSIONRESPONSE._serialized_end=1382 + _QUERYVALIDATORSLASHESREQUEST._serialized_start=1385 + _QUERYVALIDATORSLASHESREQUEST._serialized_end=1646 + _QUERYVALIDATORSLASHESRESPONSE._serialized_start=1649 + _QUERYVALIDATORSLASHESRESPONSE._serialized_end=1840 + _QUERYDELEGATIONREWARDSREQUEST._serialized_start=1843 + _QUERYDELEGATIONREWARDSREQUEST._serialized_end=2026 + _QUERYDELEGATIONREWARDSRESPONSE._serialized_start=2029 + _QUERYDELEGATIONREWARDSRESPONSE._serialized_end=2175 + _QUERYDELEGATIONTOTALREWARDSREQUEST._serialized_start=2177 + _QUERYDELEGATIONTOTALREWARDSREQUEST._serialized_end=2294 + _QUERYDELEGATIONTOTALREWARDSRESPONSE._serialized_start=2297 + _QUERYDELEGATIONTOTALREWARDSRESPONSE._serialized_end=2537 + _QUERYDELEGATORVALIDATORSREQUEST._serialized_start=2539 + _QUERYDELEGATORVALIDATORSREQUEST._serialized_end=2653 + _QUERYDELEGATORVALIDATORSRESPONSE._serialized_start=2655 + _QUERYDELEGATORVALIDATORSRESPONSE._serialized_end=2731 + _QUERYDELEGATORWITHDRAWADDRESSREQUEST._serialized_start=2733 + _QUERYDELEGATORWITHDRAWADDRESSREQUEST._serialized_end=2852 + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE._serialized_start=2854 + _QUERYDELEGATORWITHDRAWADDRESSRESPONSE._serialized_end=2972 + _QUERYCOMMUNITYPOOLREQUEST._serialized_start=2974 + _QUERYCOMMUNITYPOOLREQUEST._serialized_end=3001 + _QUERYCOMMUNITYPOOLRESPONSE._serialized_start=3004 + _QUERYCOMMUNITYPOOLRESPONSE._serialized_end=3140 + _QUERY._serialized_start=3143 + _QUERY._serialized_end=5387 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..8fe66ed4 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2.pyi @@ -0,0 +1,449 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.v1beta1.coin_pb2 +import cosmos.distribution.v1beta1.distribution_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 QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: + """params defines the parameters of the module.""" + def __init__( + self, + *, + params: cosmos.distribution.v1beta1.distribution_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryValidatorDistributionInfoRequest(google.protobuf.message.Message): + """QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address defines the validator address to query for.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_address", b"validator_address"]) -> None: ... + +global___QueryValidatorDistributionInfoRequest = QueryValidatorDistributionInfoRequest + +@typing_extensions.final +class QueryValidatorDistributionInfoResponse(google.protobuf.message.Message): + """QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATOR_ADDRESS_FIELD_NUMBER: builtins.int + SELF_BOND_REWARDS_FIELD_NUMBER: builtins.int + COMMISSION_FIELD_NUMBER: builtins.int + operator_address: builtins.str + """operator_address defines the validator operator address.""" + @property + def self_bond_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """self_bond_rewards defines the self delegations rewards.""" + @property + def commission(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """commission defines the commission the validator received.""" + def __init__( + self, + *, + operator_address: builtins.str = ..., + self_bond_rewards: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + commission: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission", "operator_address", b"operator_address", "self_bond_rewards", b"self_bond_rewards"]) -> None: ... + +global___QueryValidatorDistributionInfoResponse = QueryValidatorDistributionInfoResponse + +@typing_extensions.final +class QueryValidatorOutstandingRewardsRequest(google.protobuf.message.Message): + """QueryValidatorOutstandingRewardsRequest is the request type for the + Query/ValidatorOutstandingRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address defines the validator address to query for.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_address", b"validator_address"]) -> None: ... + +global___QueryValidatorOutstandingRewardsRequest = QueryValidatorOutstandingRewardsRequest + +@typing_extensions.final +class QueryValidatorOutstandingRewardsResponse(google.protobuf.message.Message): + """QueryValidatorOutstandingRewardsResponse is the response type for the + Query/ValidatorOutstandingRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards: ... + def __init__( + self, + *, + rewards: cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> None: ... + +global___QueryValidatorOutstandingRewardsResponse = QueryValidatorOutstandingRewardsResponse + +@typing_extensions.final +class QueryValidatorCommissionRequest(google.protobuf.message.Message): + """QueryValidatorCommissionRequest is the request type for the + Query/ValidatorCommission RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address defines the validator address to query for.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_address", b"validator_address"]) -> None: ... + +global___QueryValidatorCommissionRequest = QueryValidatorCommissionRequest + +@typing_extensions.final +class QueryValidatorCommissionResponse(google.protobuf.message.Message): + """QueryValidatorCommissionResponse is the response type for the + Query/ValidatorCommission RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMMISSION_FIELD_NUMBER: builtins.int + @property + def commission(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: + """commission defines the commission the validator received.""" + def __init__( + self, + *, + commission: cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commission", b"commission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission"]) -> None: ... + +global___QueryValidatorCommissionResponse = QueryValidatorCommissionResponse + +@typing_extensions.final +class QueryValidatorSlashesRequest(google.protobuf.message.Message): + """QueryValidatorSlashesRequest is the request type for the + Query/ValidatorSlashes RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + STARTING_HEIGHT_FIELD_NUMBER: builtins.int + ENDING_HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + validator_address: builtins.str + """validator_address defines the validator address to query for.""" + starting_height: builtins.int + """starting_height defines the optional starting height to query the slashes.""" + ending_height: builtins.int + """starting_height defines the optional ending height to query the slashes.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + validator_address: builtins.str = ..., + starting_height: builtins.int = ..., + ending_height: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["ending_height", b"ending_height", "pagination", b"pagination", "starting_height", b"starting_height", "validator_address", b"validator_address"]) -> None: ... + +global___QueryValidatorSlashesRequest = QueryValidatorSlashesRequest + +@typing_extensions.final +class QueryValidatorSlashesResponse(google.protobuf.message.Message): + """QueryValidatorSlashesResponse is the response type for the + Query/ValidatorSlashes RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SLASHES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def slashes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]: + """slashes defines the slashes the validator received.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + slashes: collections.abc.Iterable[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "slashes", b"slashes"]) -> None: ... + +global___QueryValidatorSlashesResponse = QueryValidatorSlashesResponse + +@typing_extensions.final +class QueryDelegationRewardsRequest(google.protobuf.message.Message): + """QueryDelegationRewardsRequest is the request type for the + Query/DelegationRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address defines the delegator address to query for.""" + validator_address: builtins.str + """validator_address defines the validator address to query for.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___QueryDelegationRewardsRequest = QueryDelegationRewardsRequest + +@typing_extensions.final +class QueryDelegationRewardsResponse(google.protobuf.message.Message): + """QueryDelegationRewardsResponse is the response type for the + Query/DelegationRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """rewards defines the rewards accrued by a delegation.""" + def __init__( + self, + *, + rewards: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rewards", b"rewards"]) -> None: ... + +global___QueryDelegationRewardsResponse = QueryDelegationRewardsResponse + +@typing_extensions.final +class QueryDelegationTotalRewardsRequest(google.protobuf.message.Message): + """QueryDelegationTotalRewardsRequest is the request type for the + Query/DelegationTotalRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address defines the delegator address to query for.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address"]) -> None: ... + +global___QueryDelegationTotalRewardsRequest = QueryDelegationTotalRewardsRequest + +@typing_extensions.final +class QueryDelegationTotalRewardsResponse(google.protobuf.message.Message): + """QueryDelegationTotalRewardsResponse is the response type for the + Query/DelegationTotalRewards RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REWARDS_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]: + """rewards defines all the rewards accrued by a delegator.""" + @property + def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """total defines the sum of all the rewards.""" + def __init__( + self, + *, + rewards: collections.abc.Iterable[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward] | None = ..., + total: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rewards", b"rewards", "total", b"total"]) -> None: ... + +global___QueryDelegationTotalRewardsResponse = QueryDelegationTotalRewardsResponse + +@typing_extensions.final +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + """QueryDelegatorValidatorsRequest is the request type for the + Query/DelegatorValidators RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address defines the delegator address to query for.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address"]) -> None: ... + +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +@typing_extensions.final +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + """QueryDelegatorValidatorsResponse is the response type for the + Query/DelegatorValidators RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATORS_FIELD_NUMBER: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """validators defines the validators a delegator is delegating for.""" + def __init__( + self, + *, + validators: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validators", b"validators"]) -> None: ... + +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +@typing_extensions.final +class QueryDelegatorWithdrawAddressRequest(google.protobuf.message.Message): + """QueryDelegatorWithdrawAddressRequest is the request type for the + Query/DelegatorWithdrawAddress RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address defines the delegator address to query for.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address"]) -> None: ... + +global___QueryDelegatorWithdrawAddressRequest = QueryDelegatorWithdrawAddressRequest + +@typing_extensions.final +class QueryDelegatorWithdrawAddressResponse(google.protobuf.message.Message): + """QueryDelegatorWithdrawAddressResponse is the response type for the + Query/DelegatorWithdrawAddress RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + withdraw_address: builtins.str + """withdraw_address defines the delegator address to query for.""" + def __init__( + self, + *, + withdraw_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["withdraw_address", b"withdraw_address"]) -> None: ... + +global___QueryDelegatorWithdrawAddressResponse = QueryDelegatorWithdrawAddressResponse + +@typing_extensions.final +class QueryCommunityPoolRequest(google.protobuf.message.Message): + """QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryCommunityPoolRequest = QueryCommunityPoolRequest + +@typing_extensions.final +class QueryCommunityPoolResponse(google.protobuf.message.Message): + """QueryCommunityPoolResponse is the response type for the Query/CommunityPool + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_FIELD_NUMBER: builtins.int + @property + def pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: + """pool defines community pool's coins.""" + def __init__( + self, + *, + pool: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool", b"pool"]) -> None: ... + +global___QueryCommunityPoolResponse = QueryCommunityPoolResponse diff --git a/nibiru_proto/cosmos/distribution/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..76724ab3 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/query_pb2_grpc.py @@ -0,0 +1,377 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.distribution.v1beta1 import query_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service for distribution module. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/Params', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.ValidatorDistributionInfo = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/ValidatorDistributionInfo', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoResponse.FromString, + ) + self.ValidatorOutstandingRewards = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsResponse.FromString, + ) + self.ValidatorCommission = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/ValidatorCommission', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionResponse.FromString, + ) + self.ValidatorSlashes = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/ValidatorSlashes', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesResponse.FromString, + ) + self.DelegationRewards = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/DelegationRewards', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsResponse.FromString, + ) + self.DelegationTotalRewards = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/DelegationTotalRewards', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsResponse.FromString, + ) + self.DelegatorValidators = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/DelegatorValidators', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.FromString, + ) + self.DelegatorWithdrawAddress = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressResponse.FromString, + ) + self.CommunityPool = channel.unary_unary( + '/cosmos.distribution.v1beta1.Query/CommunityPool', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolRequest.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service for distribution module. + """ + + def Params(self, request, context): + """Params queries params of the distribution module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorDistributionInfo(self, request, context): + """ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorOutstandingRewards(self, request, context): + """ValidatorOutstandingRewards queries rewards of a validator address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorCommission(self, request, context): + """ValidatorCommission queries accumulated commission for a validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorSlashes(self, request, context): + """ValidatorSlashes queries slash events of a validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegationRewards(self, request, context): + """DelegationRewards queries the total rewards accrued by a delegation. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegationTotalRewards(self, request, context): + """DelegationTotalRewards queries the total rewards accrued by a each + validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorValidators(self, request, context): + """DelegatorValidators queries the validators of a delegator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorWithdrawAddress(self, request, context): + """DelegatorWithdrawAddress queries withdraw address of a delegator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommunityPool(self, request, context): + """CommunityPool queries the community pool coins. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'ValidatorDistributionInfo': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorDistributionInfo, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoResponse.SerializeToString, + ), + 'ValidatorOutstandingRewards': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorOutstandingRewards, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsResponse.SerializeToString, + ), + 'ValidatorCommission': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorCommission, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionResponse.SerializeToString, + ), + 'ValidatorSlashes': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorSlashes, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesResponse.SerializeToString, + ), + 'DelegationRewards': grpc.unary_unary_rpc_method_handler( + servicer.DelegationRewards, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsResponse.SerializeToString, + ), + 'DelegationTotalRewards': grpc.unary_unary_rpc_method_handler( + servicer.DelegationTotalRewards, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsResponse.SerializeToString, + ), + 'DelegatorValidators': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorValidators, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.SerializeToString, + ), + 'DelegatorWithdrawAddress': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorWithdrawAddress, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressResponse.SerializeToString, + ), + 'CommunityPool': grpc.unary_unary_rpc_method_handler( + servicer.CommunityPool, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolRequest.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.distribution.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service for distribution module. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/Params', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorDistributionInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/ValidatorDistributionInfo', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorDistributionInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorOutstandingRewards(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorOutstandingRewardsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorCommission(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/ValidatorCommission', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorCommissionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorSlashes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/ValidatorSlashes', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryValidatorSlashesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegationRewards(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/DelegationRewards', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationRewardsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegationTotalRewards(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/DelegationTotalRewards', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegationTotalRewardsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorValidators(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/DelegatorValidators', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorWithdrawAddress(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryDelegatorWithdrawAddressResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommunityPool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Query/CommunityPool', + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolRequest.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_query__pb2.QueryCommunityPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.py new file mode 100644 index 00000000..355623c6 --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.py @@ -0,0 +1,96 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/distribution/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos.distribution.v1beta1 import distribution_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_distribution__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/distribution/v1beta1/tx.proto\x12\x1b\x63osmos.distribution.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a.cosmos/distribution/v1beta1/distribution.proto\"\xeb\x01\n\x15MsgSetWithdrawAddress\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x43\n\x10withdraw_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0fwithdrawAddress:F\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*#cosmos-sdk/MsgModifyWithdrawAddress\"\x1f\n\x1dMsgSetWithdrawAddressResponse\"\xf5\x01\n\x1aMsgWithdrawDelegatorReward\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress:I\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*&cosmos-sdk/MsgWithdrawDelegationReward\"\x8e\x01\n\"MsgWithdrawDelegatorRewardResponse\x12h\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount\"\xaf\x01\n\x1eMsgWithdrawValidatorCommission\x12\x45\n\x11validator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress:F\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11validator_address\x8a\xe7\xb0*#cosmos-sdk/MsgWithdrawValCommission\"\x92\x01\n&MsgWithdrawValidatorCommissionResponse\x12h\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount\"\xf4\x01\n\x14MsgFundCommunityPool\x12h\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor::\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\tdepositor\x8a\xe7\xb0*\x1f\x63osmos-sdk/MsgFundCommunityPool\"\x1e\n\x1cMsgFundCommunityPoolResponse\"\xcd\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x46\n\x06params\x18\x02 \x01(\x0b\x32#.cosmos.distribution.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params::\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\'cosmos-sdk/distribution/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\x92\x02\n\x15MsgCommunityPoolSpend\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x1c\n\trecipient\x18\x02 \x01(\tR\trecipient\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:9\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*&cosmos-sdk/distr/MsgCommunityPoolSpend\"\x1f\n\x1dMsgCommunityPoolSpendResponse2\xca\x06\n\x03Msg\x12\x84\x01\n\x12SetWithdrawAddress\x12\x32.cosmos.distribution.v1beta1.MsgSetWithdrawAddress\x1a:.cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse\x12\x93\x01\n\x17WithdrawDelegatorReward\x12\x37.cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\x1a?.cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse\x12\x9f\x01\n\x1bWithdrawValidatorCommission\x12;.cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\x1a\x43.cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse\x12\x81\x01\n\x11\x46undCommunityPool\x12\x31.cosmos.distribution.v1beta1.MsgFundCommunityPool\x1a\x39.cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse\x12r\n\x0cUpdateParams\x12,.cosmos.distribution.v1beta1.MsgUpdateParams\x1a\x34.cosmos.distribution.v1beta1.MsgUpdateParamsResponse\x12\x84\x01\n\x12\x43ommunityPoolSpend\x12\x32.cosmos.distribution.v1beta1.MsgCommunityPoolSpend\x1a:.cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x37Z1github.com/cosmos/cosmos-sdk/x/distribution/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.distribution.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/distribution/types\250\342\036\001' + _MSGSETWITHDRAWADDRESS.fields_by_name['delegator_address']._options = None + _MSGSETWITHDRAWADDRESS.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSETWITHDRAWADDRESS.fields_by_name['withdraw_address']._options = None + _MSGSETWITHDRAWADDRESS.fields_by_name['withdraw_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSETWITHDRAWADDRESS._options = None + _MSGSETWITHDRAWADDRESS._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*#cosmos-sdk/MsgModifyWithdrawAddress' + _MSGWITHDRAWDELEGATORREWARD.fields_by_name['delegator_address']._options = None + _MSGWITHDRAWDELEGATORREWARD.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGWITHDRAWDELEGATORREWARD.fields_by_name['validator_address']._options = None + _MSGWITHDRAWDELEGATORREWARD.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGWITHDRAWDELEGATORREWARD._options = None + _MSGWITHDRAWDELEGATORREWARD._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*&cosmos-sdk/MsgWithdrawDelegationReward' + _MSGWITHDRAWDELEGATORREWARDRESPONSE.fields_by_name['amount']._options = None + _MSGWITHDRAWDELEGATORREWARDRESPONSE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGWITHDRAWVALIDATORCOMMISSION.fields_by_name['validator_address']._options = None + _MSGWITHDRAWVALIDATORCOMMISSION.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGWITHDRAWVALIDATORCOMMISSION._options = None + _MSGWITHDRAWVALIDATORCOMMISSION._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021validator_address\212\347\260*#cosmos-sdk/MsgWithdrawValCommission' + _MSGWITHDRAWVALIDATORCOMMISSIONRESPONSE.fields_by_name['amount']._options = None + _MSGWITHDRAWVALIDATORCOMMISSIONRESPONSE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGFUNDCOMMUNITYPOOL.fields_by_name['amount']._options = None + _MSGFUNDCOMMUNITYPOOL.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGFUNDCOMMUNITYPOOL.fields_by_name['depositor']._options = None + _MSGFUNDCOMMUNITYPOOL.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGFUNDCOMMUNITYPOOL._options = None + _MSGFUNDCOMMUNITYPOOL._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\tdepositor\212\347\260*\037cosmos-sdk/MsgFundCommunityPool' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*\'cosmos-sdk/distribution/MsgUpdateParams' + _MSGCOMMUNITYPOOLSPEND.fields_by_name['authority']._options = None + _MSGCOMMUNITYPOOLSPEND.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCOMMUNITYPOOLSPEND.fields_by_name['amount']._options = None + _MSGCOMMUNITYPOOLSPEND.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGCOMMUNITYPOOLSPEND._options = None + _MSGCOMMUNITYPOOLSPEND._serialized_options = b'\202\347\260*\tauthority\212\347\260*&cosmos-sdk/distr/MsgCommunityPoolSpend' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSETWITHDRAWADDRESS._serialized_start=243 + _MSGSETWITHDRAWADDRESS._serialized_end=478 + _MSGSETWITHDRAWADDRESSRESPONSE._serialized_start=480 + _MSGSETWITHDRAWADDRESSRESPONSE._serialized_end=511 + _MSGWITHDRAWDELEGATORREWARD._serialized_start=514 + _MSGWITHDRAWDELEGATORREWARD._serialized_end=759 + _MSGWITHDRAWDELEGATORREWARDRESPONSE._serialized_start=762 + _MSGWITHDRAWDELEGATORREWARDRESPONSE._serialized_end=904 + _MSGWITHDRAWVALIDATORCOMMISSION._serialized_start=907 + _MSGWITHDRAWVALIDATORCOMMISSION._serialized_end=1082 + _MSGWITHDRAWVALIDATORCOMMISSIONRESPONSE._serialized_start=1085 + _MSGWITHDRAWVALIDATORCOMMISSIONRESPONSE._serialized_end=1231 + _MSGFUNDCOMMUNITYPOOL._serialized_start=1234 + _MSGFUNDCOMMUNITYPOOL._serialized_end=1478 + _MSGFUNDCOMMUNITYPOOLRESPONSE._serialized_start=1480 + _MSGFUNDCOMMUNITYPOOLRESPONSE._serialized_end=1510 + _MSGUPDATEPARAMS._serialized_start=1513 + _MSGUPDATEPARAMS._serialized_end=1718 + _MSGUPDATEPARAMSRESPONSE._serialized_start=1720 + _MSGUPDATEPARAMSRESPONSE._serialized_end=1745 + _MSGCOMMUNITYPOOLSPEND._serialized_start=1748 + _MSGCOMMUNITYPOOLSPEND._serialized_end=2022 + _MSGCOMMUNITYPOOLSPENDRESPONSE._serialized_start=2024 + _MSGCOMMUNITYPOOLSPENDRESPONSE._serialized_end=2055 + _MSG._serialized_start=2058 + _MSG._serialized_end=2900 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..0d1aaa2b --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2.pyi @@ -0,0 +1,265 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.distribution.v1beta1.distribution_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 MsgSetWithdrawAddress(google.protobuf.message.Message): + """MsgSetWithdrawAddress sets the withdraw address for + a delegator (or validator self-delegation). + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + withdraw_address: builtins.str + def __init__( + self, + *, + delegator_address: builtins.str = ..., + withdraw_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "withdraw_address", b"withdraw_address"]) -> None: ... + +global___MsgSetWithdrawAddress = MsgSetWithdrawAddress + +@typing_extensions.final +class MsgSetWithdrawAddressResponse(google.protobuf.message.Message): + """MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response + type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgSetWithdrawAddressResponse = MsgSetWithdrawAddressResponse + +@typing_extensions.final +class MsgWithdrawDelegatorReward(google.protobuf.message.Message): + """MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + from a single validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_address: builtins.str + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___MsgWithdrawDelegatorReward = MsgWithdrawDelegatorReward + +@typing_extensions.final +class MsgWithdrawDelegatorRewardResponse(google.protobuf.message.Message): + """MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward + response type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Since: cosmos-sdk 0.46""" + def __init__( + self, + *, + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___MsgWithdrawDelegatorRewardResponse = MsgWithdrawDelegatorRewardResponse + +@typing_extensions.final +class MsgWithdrawValidatorCommission(google.protobuf.message.Message): + """MsgWithdrawValidatorCommission withdraws the full commission to the validator + address. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: builtins.str + def __init__( + self, + *, + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_address", b"validator_address"]) -> None: ... + +global___MsgWithdrawValidatorCommission = MsgWithdrawValidatorCommission + +@typing_extensions.final +class MsgWithdrawValidatorCommissionResponse(google.protobuf.message.Message): + """MsgWithdrawValidatorCommissionResponse defines the + Msg/WithdrawValidatorCommission response type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Since: cosmos-sdk 0.46""" + def __init__( + self, + *, + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___MsgWithdrawValidatorCommissionResponse = MsgWithdrawValidatorCommissionResponse + +@typing_extensions.final +class MsgFundCommunityPool(google.protobuf.message.Message): + """MsgFundCommunityPool allows an account to directly + fund the community pool. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + depositor: builtins.str + def __init__( + self, + *, + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + depositor: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "depositor", b"depositor"]) -> None: ... + +global___MsgFundCommunityPool = MsgFundCommunityPool + +@typing_extensions.final +class MsgFundCommunityPoolResponse(google.protobuf.message.Message): + """MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgFundCommunityPoolResponse = MsgFundCommunityPoolResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: + """params defines the x/distribution parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.distribution.v1beta1.distribution_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse + +@typing_extensions.final +class MsgCommunityPoolSpend(google.protobuf.message.Message): + """MsgCommunityPoolSpend defines a message for sending tokens from the community + pool to another account. This message is typically executed via a governance + proposal with the governance module being the executing authority. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + RECIPIENT_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + recipient: builtins.str + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + authority: builtins.str = ..., + recipient: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "authority", b"authority", "recipient", b"recipient"]) -> None: ... + +global___MsgCommunityPoolSpend = MsgCommunityPoolSpend + +@typing_extensions.final +class MsgCommunityPoolSpendResponse(google.protobuf.message.Message): + """MsgCommunityPoolSpendResponse defines the response to executing a + MsgCommunityPoolSpend message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCommunityPoolSpendResponse = MsgCommunityPoolSpendResponse diff --git a/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..f169c89a --- /dev/null +++ b/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,252 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.distribution.v1beta1 import tx_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the distribution Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SetWithdrawAddress = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/SetWithdrawAddress', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddress.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddressResponse.FromString, + ) + self.WithdrawDelegatorReward = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorReward.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorRewardResponse.FromString, + ) + self.WithdrawValidatorCommission = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommission.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommissionResponse.FromString, + ) + self.FundCommunityPool = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/FundCommunityPool', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPool.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPoolResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + self.CommunityPoolSpend = channel.unary_unary( + '/cosmos.distribution.v1beta1.Msg/CommunityPoolSpend', + request_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpend.SerializeToString, + response_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpendResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the distribution Msg service. + """ + + def SetWithdrawAddress(self, request, context): + """SetWithdrawAddress defines a method to change the withdraw address + for a delegator (or validator self-delegation). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WithdrawDelegatorReward(self, request, context): + """WithdrawDelegatorReward defines a method to withdraw rewards of delegator + from a single validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WithdrawValidatorCommission(self, request, context): + """WithdrawValidatorCommission defines a method to withdraw the + full commission to the validator address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FundCommunityPool(self, request, context): + """FundCommunityPool defines a method to allow an account to directly + fund the community pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/distribution + module parameters. The authority is defined in the keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommunityPoolSpend(self, request, context): + """CommunityPoolSpend defines a governance operation for sending tokens from + the community pool in the x/distribution module to another account, which + could be the governance module itself. The authority is defined in the + keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SetWithdrawAddress': grpc.unary_unary_rpc_method_handler( + servicer.SetWithdrawAddress, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddress.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddressResponse.SerializeToString, + ), + 'WithdrawDelegatorReward': grpc.unary_unary_rpc_method_handler( + servicer.WithdrawDelegatorReward, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorReward.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorRewardResponse.SerializeToString, + ), + 'WithdrawValidatorCommission': grpc.unary_unary_rpc_method_handler( + servicer.WithdrawValidatorCommission, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommission.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommissionResponse.SerializeToString, + ), + 'FundCommunityPool': grpc.unary_unary_rpc_method_handler( + servicer.FundCommunityPool, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPool.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPoolResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + 'CommunityPoolSpend': grpc.unary_unary_rpc_method_handler( + servicer.CommunityPoolSpend, + request_deserializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpend.FromString, + response_serializer=cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpendResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.distribution.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the distribution Msg service. + """ + + @staticmethod + def SetWithdrawAddress(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/SetWithdrawAddress', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddress.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgSetWithdrawAddressResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WithdrawDelegatorReward(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorReward.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawDelegatorRewardResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WithdrawValidatorCommission(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommission.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgWithdrawValidatorCommissionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FundCommunityPool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/FundCommunityPool', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPool.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgFundCommunityPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/UpdateParams', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommunityPoolSpend(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.distribution.v1beta1.Msg/CommunityPoolSpend', + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpend.SerializeToString, + cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2.MsgCommunityPoolSpendResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/evidence/module/v1/module_pb2.py b/nibiru_proto/cosmos/evidence/module/v1/module_pb2.py new file mode 100644 index 00000000..ca01d4f8 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/evidence/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/evidence/module/v1/module.proto\x12\x19\x63osmos.evidence.module.v1\x1a cosmos/app/v1alpha1/module.proto\"9\n\x06Module:/\xba\xc0\x96\xda\x01)\n\'github.com/cosmos/cosmos-sdk/x/evidenceb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.evidence.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001)\n\'github.com/cosmos/cosmos-sdk/x/evidence' + _MODULE._serialized_start=103 + _MODULE._serialized_end=160 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/evidence/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/evidence/module/v1/module_pb2.pyi new file mode 100644 index 00000000..27685f03 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the evidence module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/evidence/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/evidence/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/evidence/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.py b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.py new file mode 100644 index 00000000..86520e9d --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/evidence/v1beta1/evidence.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/evidence/v1beta1/evidence.proto\x12\x17\x63osmos.evidence.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xec\x01\n\x0c\x45quivocation\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12=\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x04time\x12\x14\n\x05power\x18\x03 \x01(\x03R\x05power\x12\x45\n\x11\x63onsensus_address\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x63onsensusAddress:(\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\x8a\xe7\xb0*\x17\x63osmos-sdk/EquivocationB3Z-github.com/cosmos/cosmos-sdk/x/evidence/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.evidence.v1beta1.evidence_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/evidence/types\250\342\036\001' + _EQUIVOCATION.fields_by_name['time']._options = None + _EQUIVOCATION.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _EQUIVOCATION.fields_by_name['consensus_address']._options = None + _EQUIVOCATION.fields_by_name['consensus_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EQUIVOCATION._options = None + _EQUIVOCATION._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000\212\347\260*\027cosmos-sdk/Equivocation' + _EQUIVOCATION._serialized_start=169 + _EQUIVOCATION._serialized_end=405 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.pyi b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.pyi new file mode 100644 index 00000000..c2b98523 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2.pyi @@ -0,0 +1,50 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 Equivocation(google.protobuf.message.Message): + """Equivocation implements the Evidence interface and defines evidence of double + signing misbehavior. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + CONSENSUS_ADDRESS_FIELD_NUMBER: builtins.int + height: builtins.int + """height is the equivocation height.""" + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """time is the equivocation time.""" + power: builtins.int + """power is the equivocation validator power.""" + consensus_address: builtins.str + """consensus_address is the equivocation validator consensus address.""" + def __init__( + self, + *, + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + power: builtins.int = ..., + consensus_address: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["consensus_address", b"consensus_address", "height", b"height", "power", b"power", "time", b"time"]) -> None: ... + +global___Equivocation = Equivocation diff --git a/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.py b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..5042981b --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/evidence/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/evidence/v1beta1/genesis.proto\x12\x17\x63osmos.evidence.v1beta1\x1a\x19google/protobuf/any.proto\"@\n\x0cGenesisState\x12\x30\n\x08\x65vidence\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08\x65videnceB/Z-github.com/cosmos/cosmos-sdk/x/evidence/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.evidence.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/evidence/types' + _GENESISSTATE._serialized_start=93 + _GENESISSTATE._serialized_end=157 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..bffdeb23 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2.pyi @@ -0,0 +1,37 @@ +""" +@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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the evidence module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVIDENCE_FIELD_NUMBER: builtins.int + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """evidence defines all the evidence at genesis.""" + def __init__( + self, + *, + evidence: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence", b"evidence"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.py b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.py new file mode 100644 index 00000000..e1432cc6 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/evidence/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/evidence/v1beta1/query.proto\x12\x17\x63osmos.evidence.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x14QueryEvidenceRequest\x12[\n\revidence_hash\x18\x01 \x01(\x0c\x42\x36\x18\x01\xfa\xde\x1f\x30github.com/cometbft/cometbft/libs/bytes.HexBytesR\x0c\x65videnceHash\x12\x12\n\x04hash\x18\x02 \x01(\tR\x04hash\"I\n\x15QueryEvidenceResponse\x12\x30\n\x08\x65vidence\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x08\x65vidence\"a\n\x17QueryAllEvidenceRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x95\x01\n\x18QueryAllEvidenceResponse\x12\x30\n\x08\x65vidence\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08\x65vidence\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xc5\x02\n\x05Query\x12\x9b\x01\n\x08\x45vidence\x12-.cosmos.evidence.v1beta1.QueryEvidenceRequest\x1a..cosmos.evidence.v1beta1.QueryEvidenceResponse\"0\x82\xd3\xe4\x93\x02*\x12(/cosmos/evidence/v1beta1/evidence/{hash}\x12\x9d\x01\n\x0b\x41llEvidence\x12\x30.cosmos.evidence.v1beta1.QueryAllEvidenceRequest\x1a\x31.cosmos.evidence.v1beta1.QueryAllEvidenceResponse\")\x82\xd3\xe4\x93\x02#\x12!/cosmos/evidence/v1beta1/evidenceB/Z-github.com/cosmos/cosmos-sdk/x/evidence/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.evidence.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/evidence/types' + _QUERYEVIDENCEREQUEST.fields_by_name['evidence_hash']._options = None + _QUERYEVIDENCEREQUEST.fields_by_name['evidence_hash']._serialized_options = b'\030\001\372\336\0370github.com/cometbft/cometbft/libs/bytes.HexBytes' + _QUERY.methods_by_name['Evidence']._options = None + _QUERY.methods_by_name['Evidence']._serialized_options = b'\202\323\344\223\002*\022(/cosmos/evidence/v1beta1/evidence/{hash}' + _QUERY.methods_by_name['AllEvidence']._options = None + _QUERY.methods_by_name['AllEvidence']._serialized_options = b'\202\323\344\223\002#\022!/cosmos/evidence/v1beta1/evidence' + _QUERYEVIDENCEREQUEST._serialized_start=188 + _QUERYEVIDENCEREQUEST._serialized_end=323 + _QUERYEVIDENCERESPONSE._serialized_start=325 + _QUERYEVIDENCERESPONSE._serialized_end=398 + _QUERYALLEVIDENCEREQUEST._serialized_start=400 + _QUERYALLEVIDENCEREQUEST._serialized_end=497 + _QUERYALLEVIDENCERESPONSE._serialized_start=500 + _QUERYALLEVIDENCERESPONSE._serialized_end=649 + _QUERY._serialized_start=652 + _QUERY._serialized_end=977 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..3f68e03f --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2.pyi @@ -0,0 +1,115 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +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 QueryEvidenceRequest(google.protobuf.message.Message): + """QueryEvidenceRequest is the request type for the Query/Evidence RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + evidence_hash: builtins.bytes + """evidence_hash defines the hash of the requested evidence. + Deprecated: Use hash, a HEX encoded string, instead. + """ + hash: builtins.str + """hash defines the evidence hash of the requested evidence. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + evidence_hash: builtins.bytes = ..., + hash: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence_hash", b"evidence_hash", "hash", b"hash"]) -> None: ... + +global___QueryEvidenceRequest = QueryEvidenceRequest + +@typing_extensions.final +class QueryEvidenceResponse(google.protobuf.message.Message): + """QueryEvidenceResponse is the response type for the Query/Evidence RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVIDENCE_FIELD_NUMBER: builtins.int + @property + def evidence(self) -> google.protobuf.any_pb2.Any: + """evidence returns the requested evidence.""" + def __init__( + self, + *, + evidence: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["evidence", b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence", b"evidence"]) -> None: ... + +global___QueryEvidenceResponse = QueryEvidenceResponse + +@typing_extensions.final +class QueryAllEvidenceRequest(google.protobuf.message.Message): + """QueryEvidenceRequest is the request type for the Query/AllEvidence RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryAllEvidenceRequest = QueryAllEvidenceRequest + +@typing_extensions.final +class QueryAllEvidenceResponse(google.protobuf.message.Message): + """QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVIDENCE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """evidence returns all evidences.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + evidence: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence", b"evidence", "pagination", b"pagination"]) -> None: ... + +global___QueryAllEvidenceResponse = QueryAllEvidenceResponse diff --git a/nibiru_proto/cosmos/evidence/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..7acb00db --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/query_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.evidence.v1beta1 import query_pb2 as cosmos_dot_evidence_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Evidence = channel.unary_unary( + '/cosmos.evidence.v1beta1.Query/Evidence', + request_serializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceRequest.SerializeToString, + response_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceResponse.FromString, + ) + self.AllEvidence = channel.unary_unary( + '/cosmos.evidence.v1beta1.Query/AllEvidence', + request_serializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceRequest.SerializeToString, + response_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Evidence(self, request, context): + """Evidence queries evidence based on evidence hash. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllEvidence(self, request, context): + """AllEvidence queries all evidence. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Evidence': grpc.unary_unary_rpc_method_handler( + servicer.Evidence, + request_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceRequest.FromString, + response_serializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceResponse.SerializeToString, + ), + 'AllEvidence': grpc.unary_unary_rpc_method_handler( + servicer.AllEvidence, + request_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceRequest.FromString, + response_serializer=cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.evidence.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Evidence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.evidence.v1beta1.Query/Evidence', + cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceRequest.SerializeToString, + cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryEvidenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllEvidence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.evidence.v1beta1.Query/AllEvidence', + cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceRequest.SerializeToString, + cosmos_dot_evidence_dot_v1beta1_dot_query__pb2.QueryAllEvidenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.py new file mode 100644 index 00000000..91a546e0 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/evidence/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/evidence/v1beta1/tx.proto\x12\x17\x63osmos.evidence.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xdc\x01\n\x11MsgSubmitEvidence\x12\x36\n\tsubmitter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tsubmitter\x12V\n\x08\x65vidence\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB$\xca\xb4- cosmos.evidence.v1beta1.EvidenceR\x08\x65vidence:7\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\tsubmitter\x8a\xe7\xb0*\x1c\x63osmos-sdk/MsgSubmitEvidence\"/\n\x19MsgSubmitEvidenceResponse\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash2~\n\x03Msg\x12p\n\x0eSubmitEvidence\x12*.cosmos.evidence.v1beta1.MsgSubmitEvidence\x1a\x32.cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x33Z-github.com/cosmos/cosmos-sdk/x/evidence/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.evidence.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/evidence/types\250\342\036\001' + _MSGSUBMITEVIDENCE.fields_by_name['submitter']._options = None + _MSGSUBMITEVIDENCE.fields_by_name['submitter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSUBMITEVIDENCE.fields_by_name['evidence']._options = None + _MSGSUBMITEVIDENCE.fields_by_name['evidence']._serialized_options = b'\312\264- cosmos.evidence.v1beta1.Evidence' + _MSGSUBMITEVIDENCE._options = None + _MSGSUBMITEVIDENCE._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\tsubmitter\212\347\260*\034cosmos-sdk/MsgSubmitEvidence' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSUBMITEVIDENCE._serialized_start=182 + _MSGSUBMITEVIDENCE._serialized_end=402 + _MSGSUBMITEVIDENCERESPONSE._serialized_start=404 + _MSGSUBMITEVIDENCERESPONSE._serialized_end=451 + _MSG._serialized_start=453 + _MSG._serialized_end=579 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..de147773 --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2.pyi @@ -0,0 +1,60 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +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 MsgSubmitEvidence(google.protobuf.message.Message): + """MsgSubmitEvidence represents a message that supports submitting arbitrary + Evidence of misbehavior such as equivocation or counterfactual signing. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBMITTER_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + submitter: builtins.str + """submitter is the signer account address of evidence.""" + @property + def evidence(self) -> google.protobuf.any_pb2.Any: + """evidence defines the evidence of misbehavior.""" + def __init__( + self, + *, + submitter: builtins.str = ..., + evidence: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["evidence", b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence", b"evidence", "submitter", b"submitter"]) -> None: ... + +global___MsgSubmitEvidence = MsgSubmitEvidence + +@typing_extensions.final +class MsgSubmitEvidenceResponse(google.protobuf.message.Message): + """MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + hash: builtins.bytes + """hash defines the hash of the evidence.""" + def __init__( + self, + *, + hash: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash"]) -> None: ... + +global___MsgSubmitEvidenceResponse = MsgSubmitEvidenceResponse diff --git a/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..cdd912ae --- /dev/null +++ b/nibiru_proto/cosmos/evidence/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,71 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.evidence.v1beta1 import tx_pb2 as cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the evidence Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SubmitEvidence = channel.unary_unary( + '/cosmos.evidence.v1beta1.Msg/SubmitEvidence', + request_serializer=cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidence.SerializeToString, + response_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidenceResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the evidence Msg service. + """ + + def SubmitEvidence(self, request, context): + """SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or + counterfactual signing. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SubmitEvidence': grpc.unary_unary_rpc_method_handler( + servicer.SubmitEvidence, + request_deserializer=cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidence.FromString, + response_serializer=cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidenceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.evidence.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the evidence Msg service. + """ + + @staticmethod + def SubmitEvidence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.evidence.v1beta1.Msg/SubmitEvidence', + cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidence.SerializeToString, + cosmos_dot_evidence_dot_v1beta1_dot_tx__pb2.MsgSubmitEvidenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.py b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.py new file mode 100644 index 00000000..3481c3f3 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/feegrant/module/v1/module.proto\x12\x19\x63osmos.feegrant.module.v1\x1a cosmos/app/v1alpha1/module.proto\"9\n\x06Module:/\xba\xc0\x96\xda\x01)\n\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.feegrant.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001)\n\'github.com/cosmos/cosmos-sdk/x/feegrant' + _MODULE._serialized_start=103 + _MODULE._serialized_end=160 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.pyi new file mode 100644 index 00000000..ba4d5b34 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the feegrant module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/feegrant/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.py b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.py new file mode 100644 index 00000000..078d6fd6 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/feegrant.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/feegrant/v1beta1/feegrant.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"\x8e\x02\n\x0e\x42\x61sicAllowance\x12q\n\x0bspend_limit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\nspendLimit\x12@\n\nexpiration\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\nexpiration:G\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceI\x8a\xe7\xb0*\x19\x63osmos-sdk/BasicAllowance\"\xb5\x04\n\x11PeriodicAllowance\x12H\n\x05\x62\x61sic\x18\x01 \x01(\x0b\x32\'.cosmos.feegrant.v1beta1.BasicAllowanceB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05\x62\x61sic\x12@\n\x06period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x06period\x12~\n\x12period_spend_limit\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x10periodSpendLimit\x12z\n\x10period_can_spend\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x0eperiodCanSpend\x12L\n\x0cperiod_reset\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0bperiodReset:J\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceI\x8a\xe7\xb0*\x1c\x63osmos-sdk/PeriodicAllowance\"\xf1\x01\n\x13\x41llowedMsgAllowance\x12]\n\tallowance\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB)\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceIR\tallowance\x12)\n\x10\x61llowed_messages\x18\x02 \x03(\tR\x0f\x61llowedMessages:P\x88\xa0\x1f\x00\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceI\x8a\xe7\xb0*\x1e\x63osmos-sdk/AllowedMsgAllowance\"\xce\x01\n\x05Grant\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12]\n\tallowance\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB)\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceIR\tallowanceB)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.feegrant.v1beta1.feegrant_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant' + _BASICALLOWANCE.fields_by_name['spend_limit']._options = None + _BASICALLOWANCE.fields_by_name['spend_limit']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _BASICALLOWANCE.fields_by_name['expiration']._options = None + _BASICALLOWANCE.fields_by_name['expiration']._serialized_options = b'\220\337\037\001' + _BASICALLOWANCE._options = None + _BASICALLOWANCE._serialized_options = b'\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI\212\347\260*\031cosmos-sdk/BasicAllowance' + _PERIODICALLOWANCE.fields_by_name['basic']._options = None + _PERIODICALLOWANCE.fields_by_name['basic']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PERIODICALLOWANCE.fields_by_name['period']._options = None + _PERIODICALLOWANCE.fields_by_name['period']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _PERIODICALLOWANCE.fields_by_name['period_spend_limit']._options = None + _PERIODICALLOWANCE.fields_by_name['period_spend_limit']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _PERIODICALLOWANCE.fields_by_name['period_can_spend']._options = None + _PERIODICALLOWANCE.fields_by_name['period_can_spend']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _PERIODICALLOWANCE.fields_by_name['period_reset']._options = None + _PERIODICALLOWANCE.fields_by_name['period_reset']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PERIODICALLOWANCE._options = None + _PERIODICALLOWANCE._serialized_options = b'\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI\212\347\260*\034cosmos-sdk/PeriodicAllowance' + _ALLOWEDMSGALLOWANCE.fields_by_name['allowance']._options = None + _ALLOWEDMSGALLOWANCE.fields_by_name['allowance']._serialized_options = b'\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI' + _ALLOWEDMSGALLOWANCE._options = None + _ALLOWEDMSGALLOWANCE._serialized_options = b'\210\240\037\000\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI\212\347\260*\036cosmos-sdk/AllowedMsgAllowance' + _GRANT.fields_by_name['granter']._options = None + _GRANT.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GRANT.fields_by_name['grantee']._options = None + _GRANT.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GRANT.fields_by_name['allowance']._options = None + _GRANT.fields_by_name['allowance']._serialized_options = b'\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI' + _BASICALLOWANCE._serialized_start=260 + _BASICALLOWANCE._serialized_end=530 + _PERIODICALLOWANCE._serialized_start=533 + _PERIODICALLOWANCE._serialized_end=1098 + _ALLOWEDMSGALLOWANCE._serialized_start=1101 + _ALLOWEDMSGALLOWANCE._serialized_end=1342 + _GRANT._serialized_start=1345 + _GRANT._serialized_end=1551 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi new file mode 100644 index 00000000..cafc8e03 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi @@ -0,0 +1,153 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 BasicAllowance(google.protobuf.message.Message): + """BasicAllowance implements Allowance with a one-time grant of coins + that optionally expires. The grantee can use up to SpendLimit to cover fees. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPEND_LIMIT_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """spend_limit specifies the maximum amount of coins that can be spent + by this allowance and will be updated as coins are spent. If it is + empty, there is no spend limit and any amount of coins can be spent. + """ + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: + """expiration specifies an optional time when this allowance expires""" + def __init__( + self, + *, + spend_limit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + expiration: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["expiration", b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["expiration", b"expiration", "spend_limit", b"spend_limit"]) -> None: ... + +global___BasicAllowance = BasicAllowance + +@typing_extensions.final +class PeriodicAllowance(google.protobuf.message.Message): + """PeriodicAllowance extends Allowance to allow for both a maximum cap, + as well as a limit per time period. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASIC_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + PERIOD_SPEND_LIMIT_FIELD_NUMBER: builtins.int + PERIOD_CAN_SPEND_FIELD_NUMBER: builtins.int + PERIOD_RESET_FIELD_NUMBER: builtins.int + @property + def basic(self) -> global___BasicAllowance: + """basic specifies a struct of `BasicAllowance`""" + @property + def period(self) -> google.protobuf.duration_pb2.Duration: + """period specifies the time duration in which period_spend_limit coins can + be spent before that allowance is reset + """ + @property + def period_spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """period_spend_limit specifies the maximum number of coins that can be spent + in the period + """ + @property + def period_can_spend(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """period_can_spend is the number of coins left to be spent before the period_reset time""" + @property + def period_reset(self) -> google.protobuf.timestamp_pb2.Timestamp: + """period_reset is the time at which this period resets and a new one begins, + it is calculated from the start time of the first transaction after the + last period ended + """ + def __init__( + self, + *, + basic: global___BasicAllowance | None = ..., + period: google.protobuf.duration_pb2.Duration | None = ..., + period_spend_limit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + period_can_spend: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + period_reset: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["basic", b"basic", "period", b"period", "period_reset", b"period_reset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["basic", b"basic", "period", b"period", "period_can_spend", b"period_can_spend", "period_reset", b"period_reset", "period_spend_limit", b"period_spend_limit"]) -> None: ... + +global___PeriodicAllowance = PeriodicAllowance + +@typing_extensions.final +class AllowedMsgAllowance(google.protobuf.message.Message): + """AllowedMsgAllowance creates allowance only for specified message types.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALLOWANCE_FIELD_NUMBER: builtins.int + ALLOWED_MESSAGES_FIELD_NUMBER: builtins.int + @property + def allowance(self) -> google.protobuf.any_pb2.Any: + """allowance can be any of basic and periodic fee allowance.""" + @property + def allowed_messages(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """allowed_messages are the messages for which the grantee has the access.""" + def __init__( + self, + *, + allowance: google.protobuf.any_pb2.Any | None = ..., + allowed_messages: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowance", b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowance", b"allowance", "allowed_messages", b"allowed_messages"]) -> None: ... + +global___AllowedMsgAllowance = AllowedMsgAllowance + +@typing_extensions.final +class Grant(google.protobuf.message.Message): + """Grant is stored in the KVStore to record a grant with full context""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + granter: builtins.str + """granter is the address of the user granting an allowance of their funds.""" + grantee: builtins.str + """grantee is the address of the user being granted an allowance of another user's funds.""" + @property + def allowance(self) -> google.protobuf.any_pb2.Any: + """allowance can be any of basic, periodic, allowed fee allowance.""" + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + allowance: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowance", b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowance", b"allowance", "grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___Grant = Grant diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..e1d50351 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.feegrant.v1beta1 import feegrant_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/feegrant/v1beta1/genesis.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x14gogoproto/gogo.proto\x1a&cosmos/feegrant/v1beta1/feegrant.proto\x1a\x11\x61mino/amino.proto\"Y\n\x0cGenesisState\x12I\n\nallowances\x18\x01 \x03(\x0b\x32\x1e.cosmos.feegrant.v1beta1.GrantB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\nallowancesB)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.feegrant.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant' + _GENESISSTATE.fields_by_name['allowances']._options = None + _GENESISSTATE.fields_by_name['allowances']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=147 + _GENESISSTATE._serialized_end=236 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..cdbf643b --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.feegrant.v1beta1.feegrant_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 GenesisState(google.protobuf.message.Message): + """GenesisState contains a set of fee allowances, persisted from the store""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALLOWANCES_FIELD_NUMBER: builtins.int + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: ... + def __init__( + self, + *, + allowances: collections.abc.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allowances", b"allowances"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.py b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.py new file mode 100644 index 00000000..55f2e06d --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.feegrant.v1beta1 import feegrant_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/feegrant/v1beta1/query.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a&cosmos/feegrant/v1beta1/feegrant.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\x7f\n\x15QueryAllowanceRequest\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\"V\n\x16QueryAllowanceResponse\x12<\n\tallowance\x18\x01 \x01(\x0b\x32\x1e.cosmos.feegrant.v1beta1.GrantR\tallowance\"\x94\x01\n\x16QueryAllowancesRequest\x12\x32\n\x07grantee\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa2\x01\n\x17QueryAllowancesResponse\x12>\n\nallowances\x18\x01 \x03(\x0b\x32\x1e.cosmos.feegrant.v1beta1.GrantR\nallowances\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x9d\x01\n\x1fQueryAllowancesByGranterRequest\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xab\x01\n QueryAllowancesByGranterResponse\x12>\n\nallowances\x18\x01 \x03(\x0b\x32\x1e.cosmos.feegrant.v1beta1.GrantR\nallowances\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\x9f\x04\n\x05Query\x12\xac\x01\n\tAllowance\x12..cosmos.feegrant.v1beta1.QueryAllowanceRequest\x1a/.cosmos.feegrant.v1beta1.QueryAllowanceResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}\x12\xa6\x01\n\nAllowances\x12/.cosmos.feegrant.v1beta1.QueryAllowancesRequest\x1a\x30.cosmos.feegrant.v1beta1.QueryAllowancesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/cosmos/feegrant/v1beta1/allowances/{grantee}\x12\xbd\x01\n\x13\x41llowancesByGranter\x12\x38.cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest\x1a\x39.cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse\"1\x82\xd3\xe4\x93\x02+\x12)/cosmos/feegrant/v1beta1/issued/{granter}B)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.feegrant.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant' + _QUERYALLOWANCEREQUEST.fields_by_name['granter']._options = None + _QUERYALLOWANCEREQUEST.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYALLOWANCEREQUEST.fields_by_name['grantee']._options = None + _QUERYALLOWANCEREQUEST.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYALLOWANCESREQUEST.fields_by_name['grantee']._options = None + _QUERYALLOWANCESREQUEST.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYALLOWANCESBYGRANTERREQUEST.fields_by_name['granter']._options = None + _QUERYALLOWANCESBYGRANTERREQUEST.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERY.methods_by_name['Allowance']._options = None + _QUERY.methods_by_name['Allowance']._serialized_options = b'\202\323\344\223\0028\0226/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}' + _QUERY.methods_by_name['Allowances']._options = None + _QUERY.methods_by_name['Allowances']._serialized_options = b'\202\323\344\223\002/\022-/cosmos/feegrant/v1beta1/allowances/{grantee}' + _QUERY.methods_by_name['AllowancesByGranter']._options = None + _QUERY.methods_by_name['AllowancesByGranter']._serialized_options = b'\202\323\344\223\002+\022)/cosmos/feegrant/v1beta1/issued/{granter}' + _QUERYALLOWANCEREQUEST._serialized_start=205 + _QUERYALLOWANCEREQUEST._serialized_end=332 + _QUERYALLOWANCERESPONSE._serialized_start=334 + _QUERYALLOWANCERESPONSE._serialized_end=420 + _QUERYALLOWANCESREQUEST._serialized_start=423 + _QUERYALLOWANCESREQUEST._serialized_end=571 + _QUERYALLOWANCESRESPONSE._serialized_start=574 + _QUERYALLOWANCESRESPONSE._serialized_end=736 + _QUERYALLOWANCESBYGRANTERREQUEST._serialized_start=739 + _QUERYALLOWANCESBYGRANTERREQUEST._serialized_end=896 + _QUERYALLOWANCESBYGRANTERRESPONSE._serialized_start=899 + _QUERYALLOWANCESBYGRANTERRESPONSE._serialized_end=1070 + _QUERY._serialized_start=1073 + _QUERY._serialized_end=1616 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..e148b62c --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2.pyi @@ -0,0 +1,163 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.feegrant.v1beta1.feegrant_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 QueryAllowanceRequest(google.protobuf.message.Message): + """QueryAllowanceRequest is the request type for the Query/Allowance RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + granter: builtins.str + """granter is the address of the user granting an allowance of their funds.""" + grantee: builtins.str + """grantee is the address of the user being granted an allowance of another user's funds.""" + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___QueryAllowanceRequest = QueryAllowanceRequest + +@typing_extensions.final +class QueryAllowanceResponse(google.protobuf.message.Message): + """QueryAllowanceResponse is the response type for the Query/Allowance RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALLOWANCE_FIELD_NUMBER: builtins.int + @property + def allowance(self) -> cosmos.feegrant.v1beta1.feegrant_pb2.Grant: + """allowance is a allowance granted for grantee by granter.""" + def __init__( + self, + *, + allowance: cosmos.feegrant.v1beta1.feegrant_pb2.Grant | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowance", b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowance", b"allowance"]) -> None: ... + +global___QueryAllowanceResponse = QueryAllowanceResponse + +@typing_extensions.final +class QueryAllowancesRequest(google.protobuf.message.Message): + """QueryAllowancesRequest is the request type for the Query/Allowances RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTEE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + grantee: builtins.str + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + grantee: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "pagination", b"pagination"]) -> None: ... + +global___QueryAllowancesRequest = QueryAllowancesRequest + +@typing_extensions.final +class QueryAllowancesResponse(google.protobuf.message.Message): + """QueryAllowancesResponse is the response type for the Query/Allowances RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALLOWANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: + """allowances are allowance's granted for grantee by granter.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + allowances: collections.abc.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowances", b"allowances", "pagination", b"pagination"]) -> None: ... + +global___QueryAllowancesResponse = QueryAllowancesResponse + +@typing_extensions.final +class QueryAllowancesByGranterRequest(google.protobuf.message.Message): + """QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + granter: builtins.str + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an pagination for the request.""" + def __init__( + self, + *, + granter: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["granter", b"granter", "pagination", b"pagination"]) -> None: ... + +global___QueryAllowancesByGranterRequest = QueryAllowancesByGranterRequest + +@typing_extensions.final +class QueryAllowancesByGranterResponse(google.protobuf.message.Message): + """QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALLOWANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: + """allowances that have been issued by the granter.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines an pagination for the response.""" + def __init__( + self, + *, + allowances: collections.abc.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowances", b"allowances", "pagination", b"pagination"]) -> None: ... + +global___QueryAllowancesByGranterResponse = QueryAllowancesByGranterResponse diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..2bdc40e3 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py @@ -0,0 +1,140 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.feegrant.v1beta1 import query_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Allowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Query/Allowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.FromString, + ) + self.Allowances = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Query/Allowances', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.FromString, + ) + self.AllowancesByGranter = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Query/AllowancesByGranter', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterRequest.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Allowance(self, request, context): + """Allowance returns fee granted to the grantee by the granter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Allowances(self, request, context): + """Allowances returns all the grants for address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllowancesByGranter(self, request, context): + """AllowancesByGranter returns all the grants given by an address + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Allowance': grpc.unary_unary_rpc_method_handler( + servicer.Allowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.SerializeToString, + ), + 'Allowances': grpc.unary_unary_rpc_method_handler( + servicer.Allowances, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.SerializeToString, + ), + 'AllowancesByGranter': grpc.unary_unary_rpc_method_handler( + servicer.AllowancesByGranter, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterRequest.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.feegrant.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Allowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Query/Allowance', + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Allowances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Query/Allowances', + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllowancesByGranter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Query/AllowancesByGranter', + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterRequest.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesByGranterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.py new file mode 100644 index 00000000..26506dac --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/feegrant/v1beta1/tx.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\x89\x02\n\x11MsgGrantAllowance\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee\x12]\n\tallowance\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB)\xca\xb4-%cosmos.feegrant.v1beta1.FeeAllowanceIR\tallowance:-\x82\xe7\xb0*\x07granter\x8a\xe7\xb0*\x1c\x63osmos-sdk/MsgGrantAllowance\"\x1b\n\x19MsgGrantAllowanceResponse\"\xac\x01\n\x12MsgRevokeAllowance\x12\x32\n\x07granter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\x12\x32\n\x07grantee\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07grantee:.\x82\xe7\xb0*\x07granter\x8a\xe7\xb0*\x1d\x63osmos-sdk/MsgRevokeAllowance\"\x1c\n\x1aMsgRevokeAllowanceResponse2\xf3\x01\n\x03Msg\x12p\n\x0eGrantAllowance\x12*.cosmos.feegrant.v1beta1.MsgGrantAllowance\x1a\x32.cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse\x12s\n\x0fRevokeAllowance\x12+.cosmos.feegrant.v1beta1.MsgRevokeAllowance\x1a\x33.cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse\x1a\x05\x80\xe7\xb0*\x01\x42)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.feegrant.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant' + _MSGGRANTALLOWANCE.fields_by_name['granter']._options = None + _MSGGRANTALLOWANCE.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGGRANTALLOWANCE.fields_by_name['grantee']._options = None + _MSGGRANTALLOWANCE.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGGRANTALLOWANCE.fields_by_name['allowance']._options = None + _MSGGRANTALLOWANCE.fields_by_name['allowance']._serialized_options = b'\312\264-%cosmos.feegrant.v1beta1.FeeAllowanceI' + _MSGGRANTALLOWANCE._options = None + _MSGGRANTALLOWANCE._serialized_options = b'\202\347\260*\007granter\212\347\260*\034cosmos-sdk/MsgGrantAllowance' + _MSGREVOKEALLOWANCE.fields_by_name['granter']._options = None + _MSGREVOKEALLOWANCE.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGREVOKEALLOWANCE.fields_by_name['grantee']._options = None + _MSGREVOKEALLOWANCE.fields_by_name['grantee']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGREVOKEALLOWANCE._options = None + _MSGREVOKEALLOWANCE._serialized_options = b'\202\347\260*\007granter\212\347\260*\035cosmos-sdk/MsgRevokeAllowance' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGGRANTALLOWANCE._serialized_start=160 + _MSGGRANTALLOWANCE._serialized_end=425 + _MSGGRANTALLOWANCERESPONSE._serialized_start=427 + _MSGGRANTALLOWANCERESPONSE._serialized_end=454 + _MSGREVOKEALLOWANCE._serialized_start=457 + _MSGREVOKEALLOWANCE._serialized_end=629 + _MSGREVOKEALLOWANCERESPONSE._serialized_start=631 + _MSGREVOKEALLOWANCERESPONSE._serialized_end=659 + _MSG._serialized_start=662 + _MSG._serialized_end=905 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..75f8ae24 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2.pyi @@ -0,0 +1,92 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.43""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +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 MsgGrantAllowance(google.protobuf.message.Message): + """MsgGrantAllowance adds permission for Grantee to spend up to Allowance + of fees from the account of Granter. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + granter: builtins.str + """granter is the address of the user granting an allowance of their funds.""" + grantee: builtins.str + """grantee is the address of the user being granted an allowance of another user's funds.""" + @property + def allowance(self) -> google.protobuf.any_pb2.Any: + """allowance can be any of basic, periodic, allowed fee allowance.""" + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + allowance: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowance", b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowance", b"allowance", "grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___MsgGrantAllowance = MsgGrantAllowance + +@typing_extensions.final +class MsgGrantAllowanceResponse(google.protobuf.message.Message): + """MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgGrantAllowanceResponse = MsgGrantAllowanceResponse + +@typing_extensions.final +class MsgRevokeAllowance(google.protobuf.message.Message): + """MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + granter: builtins.str + """granter is the address of the user granting an allowance of their funds.""" + grantee: builtins.str + """grantee is the address of the user being granted an allowance of another user's funds.""" + def __init__( + self, + *, + granter: builtins.str = ..., + grantee: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["grantee", b"grantee", "granter", b"granter"]) -> None: ... + +global___MsgRevokeAllowance = MsgRevokeAllowance + +@typing_extensions.final +class MsgRevokeAllowanceResponse(google.protobuf.message.Message): + """MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgRevokeAllowanceResponse = MsgRevokeAllowanceResponse diff --git a/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..7b509d23 --- /dev/null +++ b/nibiru_proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,106 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.feegrant.v1beta1 import tx_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the feegrant msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GrantAllowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Msg/GrantAllowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.FromString, + ) + self.RevokeAllowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Msg/RevokeAllowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the feegrant msg service. + """ + + def GrantAllowance(self, request, context): + """GrantAllowance grants fee allowance to the grantee on the granter's + account with the provided expiration time. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevokeAllowance(self, request, context): + """RevokeAllowance revokes any fee allowance of granter's account that + has been granted to the grantee. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GrantAllowance': grpc.unary_unary_rpc_method_handler( + servicer.GrantAllowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.SerializeToString, + ), + 'RevokeAllowance': grpc.unary_unary_rpc_method_handler( + servicer.RevokeAllowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.feegrant.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the feegrant msg service. + """ + + @staticmethod + def GrantAllowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Msg/GrantAllowance', + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevokeAllowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Msg/RevokeAllowance', + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/genutil/module/v1/module_pb2.py b/nibiru_proto/cosmos/genutil/module/v1/module_pb2.py new file mode 100644 index 00000000..b5a5eb3c --- /dev/null +++ b/nibiru_proto/cosmos/genutil/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/genutil/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/genutil/module/v1/module.proto\x12\x18\x63osmos.genutil.module.v1\x1a cosmos/app/v1alpha1/module.proto\"8\n\x06Module:.\xba\xc0\x96\xda\x01(\n&github.com/cosmos/cosmos-sdk/x/genutilb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.genutil.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001(\n&github.com/cosmos/cosmos-sdk/x/genutil' + _MODULE._serialized_start=101 + _MODULE._serialized_end=157 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/genutil/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/genutil/module/v1/module_pb2.pyi new file mode 100644 index 00000000..d8d337a2 --- /dev/null +++ b/nibiru_proto/cosmos/genutil/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 genutil module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/genutil/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/genutil/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/genutil/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..f61fb71d --- /dev/null +++ b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/genutil/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/genutil/v1beta1/genesis.proto\x12\x16\x63osmos.genutil.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\"_\n\x0cGenesisState\x12O\n\x07gen_txs\x18\x01 \x03(\x0c\x42\x36\xea\xde\x1f\x06gentxs\xfa\xde\x1f\x18\x65ncoding/json.RawMessage\xa2\xe7\xb0*\x06gentxs\xa8\xe7\xb0*\x01R\x06genTxsB.Z,github.com/cosmos/cosmos-sdk/x/genutil/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.genutil.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/genutil/types' + _GENESISSTATE.fields_by_name['gen_txs']._options = None + _GENESISSTATE.fields_by_name['gen_txs']._serialized_options = b'\352\336\037\006gentxs\372\336\037\030encoding/json.RawMessage\242\347\260*\006gentxs\250\347\260*\001' + _GENESISSTATE._serialized_start=105 + _GENESISSTATE._serialized_end=200 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..d1608ad3 --- /dev/null +++ b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2.pyi @@ -0,0 +1,36 @@ +""" +@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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the raw genesis transaction in JSON.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GEN_TXS_FIELD_NUMBER: builtins.int + @property + def gen_txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """gen_txs defines the genesis transactions.""" + def __init__( + self, + *, + gen_txs: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["gen_txs", b"gen_txs"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/module/v1/module_pb2.py b/nibiru_proto/cosmos/gov/module/v1/module_pb2.py new file mode 100644 index 00000000..fabccbb0 --- /dev/null +++ b/nibiru_proto/cosmos/gov/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/gov/module/v1/module.proto\x12\x14\x63osmos.gov.module.v1\x1a cosmos/app/v1alpha1/module.proto\"|\n\x06Module\x12(\n\x10max_metadata_len\x18\x01 \x01(\x04R\x0emaxMetadataLen\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:*\xba\xc0\x96\xda\x01$\n\"github.com/cosmos/cosmos-sdk/x/govb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001$\n\"github.com/cosmos/cosmos-sdk/x/gov' + _MODULE._serialized_start=93 + _MODULE._serialized_end=217 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/gov/module/v1/module_pb2.pyi new file mode 100644 index 00000000..8d3236b5 --- /dev/null +++ b/nibiru_proto/cosmos/gov/module/v1/module_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the gov module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_METADATA_LEN_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + max_metadata_len: builtins.int + """max_metadata_len defines the maximum proposal metadata length. + Defaults to 255 if not explicitly set. + """ + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + max_metadata_len: builtins.int = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "max_metadata_len", b"max_metadata_len"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/gov/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/gov/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/gov/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/v1/genesis_pb2.py b/nibiru_proto/cosmos/gov/v1/genesis_pb2.py new file mode 100644 index 00000000..492ee64a --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/genesis_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.gov.v1 import gov_pb2 as cosmos_dot_gov_dot_v1_dot_gov__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/gov/v1/genesis.proto\x12\rcosmos.gov.v1\x1a\x17\x63osmos/gov/v1/gov.proto\"\xd7\x03\n\x0cGenesisState\x12\x30\n\x14starting_proposal_id\x18\x01 \x01(\x04R\x12startingProposalId\x12\x32\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32\x16.cosmos.gov.v1.DepositR\x08\x64\x65posits\x12)\n\x05votes\x18\x03 \x03(\x0b\x32\x13.cosmos.gov.v1.VoteR\x05votes\x12\x35\n\tproposals\x18\x04 \x03(\x0b\x32\x17.cosmos.gov.v1.ProposalR\tproposals\x12G\n\x0e\x64\x65posit_params\x18\x05 \x01(\x0b\x32\x1c.cosmos.gov.v1.DepositParamsB\x02\x18\x01R\rdepositParams\x12\x44\n\rvoting_params\x18\x06 \x01(\x0b\x32\x1b.cosmos.gov.v1.VotingParamsB\x02\x18\x01R\x0cvotingParams\x12\x41\n\x0ctally_params\x18\x07 \x01(\x0b\x32\x1a.cosmos.gov.v1.TallyParamsB\x02\x18\x01R\x0btallyParams\x12-\n\x06params\x18\x08 \x01(\x0b\x32\x15.cosmos.gov.v1.ParamsR\x06paramsB-Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1' + _GENESISSTATE.fields_by_name['deposit_params']._options = None + _GENESISSTATE.fields_by_name['deposit_params']._serialized_options = b'\030\001' + _GENESISSTATE.fields_by_name['voting_params']._options = None + _GENESISSTATE.fields_by_name['voting_params']._serialized_options = b'\030\001' + _GENESISSTATE.fields_by_name['tally_params']._options = None + _GENESISSTATE.fields_by_name['tally_params']._serialized_options = b'\030\001' + _GENESISSTATE._serialized_start=72 + _GENESISSTATE._serialized_end=543 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1/genesis_pb2.pyi b/nibiru_proto/cosmos/gov/v1/genesis_pb2.pyi new file mode 100644 index 00000000..73f2e30e --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/genesis_pb2.pyi @@ -0,0 +1,81 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.gov.v1.gov_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the gov module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STARTING_PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITS_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + PROPOSALS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + VOTING_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + starting_proposal_id: builtins.int + """starting_proposal_id is the ID of the starting proposal.""" + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Deposit]: + """deposits defines all the deposits present at genesis.""" + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Vote]: + """votes defines all the votes present at genesis.""" + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Proposal]: + """proposals defines all the proposals present at genesis.""" + @property + def deposit_params(self) -> cosmos.gov.v1.gov_pb2.DepositParams: + """Deprecated: Prefer to use `params` instead. + deposit_params defines all the paramaters of related to deposit. + """ + @property + def voting_params(self) -> cosmos.gov.v1.gov_pb2.VotingParams: + """Deprecated: Prefer to use `params` instead. + voting_params defines all the paramaters of related to voting. + """ + @property + def tally_params(self) -> cosmos.gov.v1.gov_pb2.TallyParams: + """Deprecated: Prefer to use `params` instead. + tally_params defines all the paramaters of related to tally. + """ + @property + def params(self) -> cosmos.gov.v1.gov_pb2.Params: + """params defines all the paramaters of x/gov module. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + starting_proposal_id: builtins.int = ..., + deposits: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Deposit] | None = ..., + votes: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Vote] | None = ..., + proposals: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Proposal] | None = ..., + deposit_params: cosmos.gov.v1.gov_pb2.DepositParams | None = ..., + voting_params: cosmos.gov.v1.gov_pb2.VotingParams | None = ..., + tally_params: cosmos.gov.v1.gov_pb2.TallyParams | None = ..., + params: cosmos.gov.v1.gov_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "params", b"params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "deposits", b"deposits", "params", b"params", "proposals", b"proposals", "starting_proposal_id", b"starting_proposal_id", "tally_params", b"tally_params", "votes", b"votes", "voting_params", b"voting_params"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/gov/v1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/v1/gov_pb2.py b/nibiru_proto/cosmos/gov/v1/gov_pb2.py new file mode 100644 index 00000000..0e797a21 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/gov_pb2.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1/gov.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63osmos/gov/v1/gov.proto\x12\rcosmos.gov.v1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"o\n\x12WeightedVoteOption\x12\x31\n\x06option\x18\x01 \x01(\x0e\x32\x19.cosmos.gov.v1.VoteOptionR\x06option\x12&\n\x06weight\x18\x02 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\x06weight\"\xa0\x01\n\x07\x44\x65posit\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12<\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount\"\xc1\x05\n\x08Proposal\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12\x30\n\x08messages\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messages\x12\x35\n\x06status\x18\x03 \x01(\x0e\x32\x1d.cosmos.gov.v1.ProposalStatusR\x06status\x12H\n\x12\x66inal_tally_result\x18\x04 \x01(\x0b\x32\x1a.cosmos.gov.v1.TallyResultR\x10\x66inalTallyResult\x12\x41\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\nsubmitTime\x12J\n\x10\x64\x65posit_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\x0e\x64\x65positEndTime\x12I\n\rtotal_deposit\x18\x07 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0ctotalDeposit\x12L\n\x11voting_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\x0fvotingStartTime\x12H\n\x0fvoting_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01R\rvotingEndTime\x12\x1a\n\x08metadata\x18\n \x01(\tR\x08metadata\x12\x14\n\x05title\x18\x0b \x01(\tR\x05title\x12\x18\n\x07summary\x18\x0c \x01(\tR\x07summary\x12\x34\n\x08proposer\x18\r \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08proposer\"\xd7\x01\n\x0bTallyResult\x12+\n\tyes_count\x18\x01 \x01(\tB\x0e\xd2\xb4-\ncosmos.IntR\x08yesCount\x12\x33\n\rabstain_count\x18\x02 \x01(\tB\x0e\xd2\xb4-\ncosmos.IntR\x0c\x61\x62stainCount\x12)\n\x08no_count\x18\x03 \x01(\tB\x0e\xd2\xb4-\ncosmos.IntR\x07noCount\x12;\n\x12no_with_veto_count\x18\x04 \x01(\tB\x0e\xd2\xb4-\ncosmos.IntR\x0fnoWithVetoCount\"\xb6\x01\n\x04Vote\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12;\n\x07options\x18\x04 \x03(\x0b\x32!.cosmos.gov.v1.WeightedVoteOptionR\x07options\x12\x1a\n\x08metadata\x18\x05 \x01(\tR\x08metadataJ\x04\x08\x03\x10\x04\"\xd9\x01\n\rDepositParams\x12Y\n\x0bmin_deposit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1d\xc8\xde\x1f\x00\xea\xde\x1f\x15min_deposit,omitemptyR\nminDeposit\x12m\n\x12max_deposit_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB$\xea\xde\x1f\x1cmax_deposit_period,omitempty\x98\xdf\x1f\x01R\x10maxDepositPeriod\"T\n\x0cVotingParams\x12\x44\n\rvoting_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01R\x0cvotingPeriod\"\x9a\x01\n\x0bTallyParams\x12&\n\x06quorum\x18\x01 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\x06quorum\x12,\n\tthreshold\x18\x02 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\tthreshold\x12\x35\n\x0eveto_threshold\x18\x03 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\rvetoThreshold\"\xcf\x04\n\x06Params\x12\x45\n\x0bmin_deposit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\nminDeposit\x12M\n\x12max_deposit_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01R\x10maxDepositPeriod\x12\x44\n\rvoting_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01R\x0cvotingPeriod\x12&\n\x06quorum\x18\x04 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\x06quorum\x12,\n\tthreshold\x18\x05 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\tthreshold\x12\x35\n\x0eveto_threshold\x18\x06 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\rvetoThreshold\x12I\n\x19min_initial_deposit_ratio\x18\x07 \x01(\tB\x0e\xd2\xb4-\ncosmos.DecR\x16minInitialDepositRatio\x12(\n\x10\x62urn_vote_quorum\x18\r \x01(\x08R\x0e\x62urnVoteQuorum\x12\x41\n\x1d\x62urn_proposal_deposit_prevote\x18\x0e \x01(\x08R\x1a\x62urnProposalDepositPrevote\x12$\n\x0e\x62urn_vote_veto\x18\x0f \x01(\x08R\x0c\x62urnVoteVeto*\x89\x01\n\nVoteOption\x12\x1b\n\x17VOTE_OPTION_UNSPECIFIED\x10\x00\x12\x13\n\x0fVOTE_OPTION_YES\x10\x01\x12\x17\n\x13VOTE_OPTION_ABSTAIN\x10\x02\x12\x12\n\x0eVOTE_OPTION_NO\x10\x03\x12\x1c\n\x18VOTE_OPTION_NO_WITH_VETO\x10\x04*\xce\x01\n\x0eProposalStatus\x12\x1f\n\x1bPROPOSAL_STATUS_UNSPECIFIED\x10\x00\x12\"\n\x1ePROPOSAL_STATUS_DEPOSIT_PERIOD\x10\x01\x12!\n\x1dPROPOSAL_STATUS_VOTING_PERIOD\x10\x02\x12\x1a\n\x16PROPOSAL_STATUS_PASSED\x10\x03\x12\x1c\n\x18PROPOSAL_STATUS_REJECTED\x10\x04\x12\x1a\n\x16PROPOSAL_STATUS_FAILED\x10\x05\x42-Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1.gov_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1' + _WEIGHTEDVOTEOPTION.fields_by_name['weight']._options = None + _WEIGHTEDVOTEOPTION.fields_by_name['weight']._serialized_options = b'\322\264-\ncosmos.Dec' + _DEPOSIT.fields_by_name['depositor']._options = None + _DEPOSIT.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DEPOSIT.fields_by_name['amount']._options = None + _DEPOSIT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PROPOSAL.fields_by_name['submit_time']._options = None + _PROPOSAL.fields_by_name['submit_time']._serialized_options = b'\220\337\037\001' + _PROPOSAL.fields_by_name['deposit_end_time']._options = None + _PROPOSAL.fields_by_name['deposit_end_time']._serialized_options = b'\220\337\037\001' + _PROPOSAL.fields_by_name['total_deposit']._options = None + _PROPOSAL.fields_by_name['total_deposit']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PROPOSAL.fields_by_name['voting_start_time']._options = None + _PROPOSAL.fields_by_name['voting_start_time']._serialized_options = b'\220\337\037\001' + _PROPOSAL.fields_by_name['voting_end_time']._options = None + _PROPOSAL.fields_by_name['voting_end_time']._serialized_options = b'\220\337\037\001' + _PROPOSAL.fields_by_name['proposer']._options = None + _PROPOSAL.fields_by_name['proposer']._serialized_options = b'\322\264-\024cosmos.AddressString' + _TALLYRESULT.fields_by_name['yes_count']._options = None + _TALLYRESULT.fields_by_name['yes_count']._serialized_options = b'\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['abstain_count']._options = None + _TALLYRESULT.fields_by_name['abstain_count']._serialized_options = b'\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['no_count']._options = None + _TALLYRESULT.fields_by_name['no_count']._serialized_options = b'\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['no_with_veto_count']._options = None + _TALLYRESULT.fields_by_name['no_with_veto_count']._serialized_options = b'\322\264-\ncosmos.Int' + _VOTE.fields_by_name['voter']._options = None + _VOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DEPOSITPARAMS.fields_by_name['min_deposit']._options = None + _DEPOSITPARAMS.fields_by_name['min_deposit']._serialized_options = b'\310\336\037\000\352\336\037\025min_deposit,omitempty' + _DEPOSITPARAMS.fields_by_name['max_deposit_period']._options = None + _DEPOSITPARAMS.fields_by_name['max_deposit_period']._serialized_options = b'\352\336\037\034max_deposit_period,omitempty\230\337\037\001' + _VOTINGPARAMS.fields_by_name['voting_period']._options = None + _VOTINGPARAMS.fields_by_name['voting_period']._serialized_options = b'\230\337\037\001' + _TALLYPARAMS.fields_by_name['quorum']._options = None + _TALLYPARAMS.fields_by_name['quorum']._serialized_options = b'\322\264-\ncosmos.Dec' + _TALLYPARAMS.fields_by_name['threshold']._options = None + _TALLYPARAMS.fields_by_name['threshold']._serialized_options = b'\322\264-\ncosmos.Dec' + _TALLYPARAMS.fields_by_name['veto_threshold']._options = None + _TALLYPARAMS.fields_by_name['veto_threshold']._serialized_options = b'\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['min_deposit']._options = None + _PARAMS.fields_by_name['min_deposit']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PARAMS.fields_by_name['max_deposit_period']._options = None + _PARAMS.fields_by_name['max_deposit_period']._serialized_options = b'\230\337\037\001' + _PARAMS.fields_by_name['voting_period']._options = None + _PARAMS.fields_by_name['voting_period']._serialized_options = b'\230\337\037\001' + _PARAMS.fields_by_name['quorum']._options = None + _PARAMS.fields_by_name['quorum']._serialized_options = b'\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['threshold']._options = None + _PARAMS.fields_by_name['threshold']._serialized_options = b'\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['veto_threshold']._options = None + _PARAMS.fields_by_name['veto_threshold']._serialized_options = b'\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['min_initial_deposit_ratio']._options = None + _PARAMS.fields_by_name['min_initial_deposit_ratio']._serialized_options = b'\322\264-\ncosmos.Dec' + _VOTEOPTION._serialized_start=2679 + _VOTEOPTION._serialized_end=2816 + _PROPOSALSTATUS._serialized_start=2819 + _PROPOSALSTATUS._serialized_end=3025 + _WEIGHTEDVOTEOPTION._serialized_start=234 + _WEIGHTEDVOTEOPTION._serialized_end=345 + _DEPOSIT._serialized_start=348 + _DEPOSIT._serialized_end=508 + _PROPOSAL._serialized_start=511 + _PROPOSAL._serialized_end=1216 + _TALLYRESULT._serialized_start=1219 + _TALLYRESULT._serialized_end=1434 + _VOTE._serialized_start=1437 + _VOTE._serialized_end=1619 + _DEPOSITPARAMS._serialized_start=1622 + _DEPOSITPARAMS._serialized_end=1839 + _VOTINGPARAMS._serialized_start=1841 + _VOTINGPARAMS._serialized_end=1925 + _TALLYPARAMS._serialized_start=1928 + _TALLYPARAMS._serialized_end=2082 + _PARAMS._serialized_start=2085 + _PARAMS._serialized_end=2676 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1/gov_pb2.pyi b/nibiru_proto/cosmos/gov/v1/gov_pb2.pyi new file mode 100644 index 00000000..410cf86b --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/gov_pb2.pyi @@ -0,0 +1,455 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _VoteOption: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VoteOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VoteOption.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + VOTE_OPTION_UNSPECIFIED: _VoteOption.ValueType # 0 + """VOTE_OPTION_UNSPECIFIED defines a no-op vote option.""" + VOTE_OPTION_YES: _VoteOption.ValueType # 1 + """VOTE_OPTION_YES defines a yes vote option.""" + VOTE_OPTION_ABSTAIN: _VoteOption.ValueType # 2 + """VOTE_OPTION_ABSTAIN defines an abstain vote option.""" + VOTE_OPTION_NO: _VoteOption.ValueType # 3 + """VOTE_OPTION_NO defines a no vote option.""" + VOTE_OPTION_NO_WITH_VETO: _VoteOption.ValueType # 4 + """VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" + +class VoteOption(_VoteOption, metaclass=_VoteOptionEnumTypeWrapper): + """VoteOption enumerates the valid vote options for a given governance proposal.""" + +VOTE_OPTION_UNSPECIFIED: VoteOption.ValueType # 0 +"""VOTE_OPTION_UNSPECIFIED defines a no-op vote option.""" +VOTE_OPTION_YES: VoteOption.ValueType # 1 +"""VOTE_OPTION_YES defines a yes vote option.""" +VOTE_OPTION_ABSTAIN: VoteOption.ValueType # 2 +"""VOTE_OPTION_ABSTAIN defines an abstain vote option.""" +VOTE_OPTION_NO: VoteOption.ValueType # 3 +"""VOTE_OPTION_NO defines a no vote option.""" +VOTE_OPTION_NO_WITH_VETO: VoteOption.ValueType # 4 +"""VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" +global___VoteOption = VoteOption + +class _ProposalStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PROPOSAL_STATUS_UNSPECIFIED: _ProposalStatus.ValueType # 0 + """PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.""" + PROPOSAL_STATUS_DEPOSIT_PERIOD: _ProposalStatus.ValueType # 1 + """PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + """ + PROPOSAL_STATUS_VOTING_PERIOD: _ProposalStatus.ValueType # 2 + """PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + """ + PROPOSAL_STATUS_PASSED: _ProposalStatus.ValueType # 3 + """PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + """ + PROPOSAL_STATUS_REJECTED: _ProposalStatus.ValueType # 4 + """PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + """ + PROPOSAL_STATUS_FAILED: _ProposalStatus.ValueType # 5 + """PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + """ + +class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): + """ProposalStatus enumerates the valid statuses of a proposal.""" + +PROPOSAL_STATUS_UNSPECIFIED: ProposalStatus.ValueType # 0 +"""PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.""" +PROPOSAL_STATUS_DEPOSIT_PERIOD: ProposalStatus.ValueType # 1 +"""PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit +period. +""" +PROPOSAL_STATUS_VOTING_PERIOD: ProposalStatus.ValueType # 2 +"""PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting +period. +""" +PROPOSAL_STATUS_PASSED: ProposalStatus.ValueType # 3 +"""PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has +passed. +""" +PROPOSAL_STATUS_REJECTED: ProposalStatus.ValueType # 4 +"""PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has +been rejected. +""" +PROPOSAL_STATUS_FAILED: ProposalStatus.ValueType # 5 +"""PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has +failed. +""" +global___ProposalStatus = ProposalStatus + +@typing_extensions.final +class WeightedVoteOption(google.protobuf.message.Message): + """WeightedVoteOption defines a unit of vote for vote split.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPTION_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + option: global___VoteOption.ValueType + """option defines the valid vote options, it must not contain duplicate vote options.""" + weight: builtins.str + """weight is the vote weight associated with the vote option.""" + def __init__( + self, + *, + option: global___VoteOption.ValueType = ..., + weight: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["option", b"option", "weight", b"weight"]) -> None: ... + +global___WeightedVoteOption = WeightedVoteOption + +@typing_extensions.final +class Deposit(google.protobuf.message.Message): + """Deposit defines an amount deposited by an account address to an active + proposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount to be deposited by depositor.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___Deposit = Deposit + +@typing_extensions.final +class Proposal(google.protobuf.message.Message): + """Proposal defines the core field members of a governance proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + MESSAGES_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + FINAL_TALLY_RESULT_FIELD_NUMBER: builtins.int + SUBMIT_TIME_FIELD_NUMBER: builtins.int + DEPOSIT_END_TIME_FIELD_NUMBER: builtins.int + TOTAL_DEPOSIT_FIELD_NUMBER: builtins.int + VOTING_START_TIME_FIELD_NUMBER: builtins.int + VOTING_END_TIME_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + TITLE_FIELD_NUMBER: builtins.int + SUMMARY_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + id: builtins.int + """id defines the unique id of the proposal.""" + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """messages are the arbitrary messages to be executed if the proposal passes.""" + status: global___ProposalStatus.ValueType + """status defines the proposal status.""" + @property + def final_tally_result(self) -> global___TallyResult: + """final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + """ + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """submit_time is the time of proposal submission.""" + @property + def deposit_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """deposit_end_time is the end time for deposition.""" + @property + def total_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """total_deposit is the total deposit on the proposal.""" + @property + def voting_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """voting_start_time is the starting time to vote on a proposal.""" + @property + def voting_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """voting_end_time is the end time of voting on a proposal.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the proposal.""" + title: builtins.str + """title is the title of the proposal + + Since: cosmos-sdk 0.47 + """ + summary: builtins.str + """summary is a short summary of the proposal + + Since: cosmos-sdk 0.47 + """ + proposer: builtins.str + """Proposer is the address of the proposal sumbitter + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + id: builtins.int = ..., + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + status: global___ProposalStatus.ValueType = ..., + final_tally_result: global___TallyResult | None = ..., + submit_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + deposit_end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + total_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + voting_start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + voting_end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + metadata: builtins.str = ..., + title: builtins.str = ..., + summary: builtins.str = ..., + proposer: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit_end_time", b"deposit_end_time", "final_tally_result", b"final_tally_result", "submit_time", b"submit_time", "voting_end_time", b"voting_end_time", "voting_start_time", b"voting_start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit_end_time", b"deposit_end_time", "final_tally_result", b"final_tally_result", "id", b"id", "messages", b"messages", "metadata", b"metadata", "proposer", b"proposer", "status", b"status", "submit_time", b"submit_time", "summary", b"summary", "title", b"title", "total_deposit", b"total_deposit", "voting_end_time", b"voting_end_time", "voting_start_time", b"voting_start_time"]) -> None: ... + +global___Proposal = Proposal + +@typing_extensions.final +class TallyResult(google.protobuf.message.Message): + """TallyResult defines a standard tally for a governance proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + YES_COUNT_FIELD_NUMBER: builtins.int + ABSTAIN_COUNT_FIELD_NUMBER: builtins.int + NO_COUNT_FIELD_NUMBER: builtins.int + NO_WITH_VETO_COUNT_FIELD_NUMBER: builtins.int + yes_count: builtins.str + """yes_count is the number of yes votes on a proposal.""" + abstain_count: builtins.str + """abstain_count is the number of abstain votes on a proposal.""" + no_count: builtins.str + """no_count is the number of no votes on a proposal.""" + no_with_veto_count: builtins.str + """no_with_veto_count is the number of no with veto votes on a proposal.""" + def __init__( + self, + *, + yes_count: builtins.str = ..., + abstain_count: builtins.str = ..., + no_count: builtins.str = ..., + no_with_veto_count: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["abstain_count", b"abstain_count", "no_count", b"no_count", "no_with_veto_count", b"no_with_veto_count", "yes_count", b"yes_count"]) -> None: ... + +global___TallyResult = TallyResult + +@typing_extensions.final +class Vote(google.protobuf.message.Message): + """Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address of the proposal.""" + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedVoteOption]: + """options is the weighted vote options.""" + metadata: builtins.str + """metadata is any arbitrary metadata to attached to the vote.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + options: collections.abc.Iterable[global___WeightedVoteOption] | None = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "options", b"options", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___Vote = Vote + +@typing_extensions.final +class DepositParams(google.protobuf.message.Message): + """DepositParams defines the params for deposits on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIN_DEPOSIT_FIELD_NUMBER: builtins.int + MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int + @property + def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Minimum deposit for a proposal to enter voting period.""" + @property + def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: + """Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + months. + """ + def __init__( + self, + *, + min_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + max_deposit_period: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["max_deposit_period", b"max_deposit_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["max_deposit_period", b"max_deposit_period", "min_deposit", b"min_deposit"]) -> None: ... + +global___DepositParams = DepositParams + +@typing_extensions.final +class VotingParams(google.protobuf.message.Message): + """VotingParams defines the params for voting on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTING_PERIOD_FIELD_NUMBER: builtins.int + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: + """Duration of the voting period.""" + def __init__( + self, + *, + voting_period: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["voting_period", b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["voting_period", b"voting_period"]) -> None: ... + +global___VotingParams = VotingParams + +@typing_extensions.final +class TallyParams(google.protobuf.message.Message): + """TallyParams defines the params for tallying votes on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUORUM_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + VETO_THRESHOLD_FIELD_NUMBER: builtins.int + quorum: builtins.str + """Minimum percentage of total stake needed to vote for a result to be + considered valid. + """ + threshold: builtins.str + """Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.""" + veto_threshold: builtins.str + """Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + """ + def __init__( + self, + *, + quorum: builtins.str = ..., + threshold: builtins.str = ..., + veto_threshold: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["quorum", b"quorum", "threshold", b"threshold", "veto_threshold", b"veto_threshold"]) -> None: ... + +global___TallyParams = TallyParams + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params defines the parameters for the x/gov module. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIN_DEPOSIT_FIELD_NUMBER: builtins.int + MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int + VOTING_PERIOD_FIELD_NUMBER: builtins.int + QUORUM_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + VETO_THRESHOLD_FIELD_NUMBER: builtins.int + MIN_INITIAL_DEPOSIT_RATIO_FIELD_NUMBER: builtins.int + BURN_VOTE_QUORUM_FIELD_NUMBER: builtins.int + BURN_PROPOSAL_DEPOSIT_PREVOTE_FIELD_NUMBER: builtins.int + BURN_VOTE_VETO_FIELD_NUMBER: builtins.int + @property + def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Minimum deposit for a proposal to enter voting period.""" + @property + def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: + """Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + months. + """ + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: + """Duration of the voting period.""" + quorum: builtins.str + """ Minimum percentage of total stake needed to vote for a result to be + considered valid. + """ + threshold: builtins.str + """ Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.""" + veto_threshold: builtins.str + """ Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + """ + min_initial_deposit_ratio: builtins.str + """ The ratio representing the proportion of the deposit value that must be paid at proposal submission.""" + burn_vote_quorum: builtins.bool + """burn deposits if a proposal does not meet quorum""" + burn_proposal_deposit_prevote: builtins.bool + """burn deposits if the proposal does not enter voting period""" + burn_vote_veto: builtins.bool + """burn deposits if quorum with vote type no_veto is met""" + def __init__( + self, + *, + min_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + max_deposit_period: google.protobuf.duration_pb2.Duration | None = ..., + voting_period: google.protobuf.duration_pb2.Duration | None = ..., + quorum: builtins.str = ..., + threshold: builtins.str = ..., + veto_threshold: builtins.str = ..., + min_initial_deposit_ratio: builtins.str = ..., + burn_vote_quorum: builtins.bool = ..., + burn_proposal_deposit_prevote: builtins.bool = ..., + burn_vote_veto: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["max_deposit_period", b"max_deposit_period", "voting_period", b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["burn_proposal_deposit_prevote", b"burn_proposal_deposit_prevote", "burn_vote_quorum", b"burn_vote_quorum", "burn_vote_veto", b"burn_vote_veto", "max_deposit_period", b"max_deposit_period", "min_deposit", b"min_deposit", "min_initial_deposit_ratio", b"min_initial_deposit_ratio", "quorum", b"quorum", "threshold", b"threshold", "veto_threshold", b"veto_threshold", "voting_period", b"voting_period"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/cosmos/gov/v1/gov_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1/gov_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/gov_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/v1/query_pb2.py b/nibiru_proto/cosmos/gov/v1/query_pb2.py new file mode 100644 index 00000000..2cf02ceb --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/query_pb2.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.gov.v1 import gov_pb2 as cosmos_dot_gov_dot_v1_dot_gov__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63osmos/gov/v1/query.proto\x12\rcosmos.gov.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17\x63osmos/gov/v1/gov.proto\x1a\x19\x63osmos_proto/cosmos.proto\"7\n\x14QueryProposalRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"L\n\x15QueryProposalResponse\x12\x33\n\x08proposal\x18\x01 \x01(\x0b\x32\x17.cosmos.gov.v1.ProposalR\x08proposal\"\x8f\x02\n\x15QueryProposalsRequest\x12\x46\n\x0fproposal_status\x18\x01 \x01(\x0e\x32\x1d.cosmos.gov.v1.ProposalStatusR\x0eproposalStatus\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x36\n\tdepositor\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12\x46\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x98\x01\n\x16QueryProposalsResponse\x12\x35\n\tproposals\x18\x01 \x03(\x0b\x32\x17.cosmos.gov.v1.ProposalR\tproposals\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"c\n\x10QueryVoteRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\"<\n\x11QueryVoteResponse\x12\'\n\x04vote\x18\x01 \x01(\x0b\x32\x13.cosmos.gov.v1.VoteR\x04vote\"|\n\x11QueryVotesRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x88\x01\n\x12QueryVotesResponse\x12)\n\x05votes\x18\x01 \x03(\x0b\x32\x13.cosmos.gov.v1.VoteR\x05votes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"5\n\x12QueryParamsRequest\x12\x1f\n\x0bparams_type\x18\x01 \x01(\tR\nparamsType\"\x96\x02\n\x13QueryParamsResponse\x12\x44\n\rvoting_params\x18\x01 \x01(\x0b\x32\x1b.cosmos.gov.v1.VotingParamsB\x02\x18\x01R\x0cvotingParams\x12G\n\x0e\x64\x65posit_params\x18\x02 \x01(\x0b\x32\x1c.cosmos.gov.v1.DepositParamsB\x02\x18\x01R\rdepositParams\x12\x41\n\x0ctally_params\x18\x03 \x01(\x0b\x32\x1a.cosmos.gov.v1.TallyParamsB\x02\x18\x01R\x0btallyParams\x12-\n\x06params\x18\x04 \x01(\x0b\x32\x15.cosmos.gov.v1.ParamsR\x06params\"n\n\x13QueryDepositRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\"H\n\x14QueryDepositResponse\x12\x30\n\x07\x64\x65posit\x18\x01 \x01(\x0b\x32\x16.cosmos.gov.v1.DepositR\x07\x64\x65posit\"\x7f\n\x14QueryDepositsRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x94\x01\n\x15QueryDepositsResponse\x12\x32\n\x08\x64\x65posits\x18\x01 \x03(\x0b\x32\x16.cosmos.gov.v1.DepositR\x08\x64\x65posits\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\":\n\x17QueryTallyResultRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"L\n\x18QueryTallyResultResponse\x12\x30\n\x05tally\x18\x01 \x01(\x0b\x32\x1a.cosmos.gov.v1.TallyResultR\x05tally2\xda\x08\n\x05Query\x12\x85\x01\n\x08Proposal\x12#.cosmos.gov.v1.QueryProposalRequest\x1a$.cosmos.gov.v1.QueryProposalResponse\".\x82\xd3\xe4\x93\x02(\x12&/cosmos/gov/v1/proposals/{proposal_id}\x12z\n\tProposals\x12$.cosmos.gov.v1.QueryProposalsRequest\x1a%.cosmos.gov.v1.QueryProposalsResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/cosmos/gov/v1/proposals\x12\x87\x01\n\x04Vote\x12\x1f.cosmos.gov.v1.QueryVoteRequest\x1a .cosmos.gov.v1.QueryVoteResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}\x12\x82\x01\n\x05Votes\x12 .cosmos.gov.v1.QueryVotesRequest\x1a!.cosmos.gov.v1.QueryVotesResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/gov/v1/proposals/{proposal_id}/votes\x12|\n\x06Params\x12!.cosmos.gov.v1.QueryParamsRequest\x1a\".cosmos.gov.v1.QueryParamsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/cosmos/gov/v1/params/{params_type}\x12\x97\x01\n\x07\x44\x65posit\x12\".cosmos.gov.v1.QueryDepositRequest\x1a#.cosmos.gov.v1.QueryDepositResponse\"C\x82\xd3\xe4\x93\x02=\x12;/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}\x12\x8e\x01\n\x08\x44\x65posits\x12#.cosmos.gov.v1.QueryDepositsRequest\x1a$.cosmos.gov.v1.QueryDepositsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//cosmos/gov/v1/proposals/{proposal_id}/deposits\x12\x94\x01\n\x0bTallyResult\x12&.cosmos.gov.v1.QueryTallyResultRequest\x1a\'.cosmos.gov.v1.QueryTallyResultResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/gov/v1/proposals/{proposal_id}/tallyB-Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1' + _QUERYPROPOSALSREQUEST.fields_by_name['voter']._options = None + _QUERYPROPOSALSREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYPROPOSALSREQUEST.fields_by_name['depositor']._options = None + _QUERYPROPOSALSREQUEST.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVOTEREQUEST.fields_by_name['voter']._options = None + _QUERYVOTEREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYPARAMSRESPONSE.fields_by_name['voting_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['voting_params']._serialized_options = b'\030\001' + _QUERYPARAMSRESPONSE.fields_by_name['deposit_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['deposit_params']._serialized_options = b'\030\001' + _QUERYPARAMSRESPONSE.fields_by_name['tally_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['tally_params']._serialized_options = b'\030\001' + _QUERYDEPOSITREQUEST.fields_by_name['depositor']._options = None + _QUERYDEPOSITREQUEST.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERY.methods_by_name['Proposal']._options = None + _QUERY.methods_by_name['Proposal']._serialized_options = b'\202\323\344\223\002(\022&/cosmos/gov/v1/proposals/{proposal_id}' + _QUERY.methods_by_name['Proposals']._options = None + _QUERY.methods_by_name['Proposals']._serialized_options = b'\202\323\344\223\002\032\022\030/cosmos/gov/v1/proposals' + _QUERY.methods_by_name['Vote']._options = None + _QUERY.methods_by_name['Vote']._serialized_options = b'\202\323\344\223\0026\0224/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}' + _QUERY.methods_by_name['Votes']._options = None + _QUERY.methods_by_name['Votes']._serialized_options = b'\202\323\344\223\002.\022,/cosmos/gov/v1/proposals/{proposal_id}/votes' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002%\022#/cosmos/gov/v1/params/{params_type}' + _QUERY.methods_by_name['Deposit']._options = None + _QUERY.methods_by_name['Deposit']._serialized_options = b'\202\323\344\223\002=\022;/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}' + _QUERY.methods_by_name['Deposits']._options = None + _QUERY.methods_by_name['Deposits']._serialized_options = b'\202\323\344\223\0021\022//cosmos/gov/v1/proposals/{proposal_id}/deposits' + _QUERY.methods_by_name['TallyResult']._options = None + _QUERY.methods_by_name['TallyResult']._serialized_options = b'\202\323\344\223\002.\022,/cosmos/gov/v1/proposals/{proposal_id}/tally' + _QUERYPROPOSALREQUEST._serialized_start=170 + _QUERYPROPOSALREQUEST._serialized_end=225 + _QUERYPROPOSALRESPONSE._serialized_start=227 + _QUERYPROPOSALRESPONSE._serialized_end=303 + _QUERYPROPOSALSREQUEST._serialized_start=306 + _QUERYPROPOSALSREQUEST._serialized_end=577 + _QUERYPROPOSALSRESPONSE._serialized_start=580 + _QUERYPROPOSALSRESPONSE._serialized_end=732 + _QUERYVOTEREQUEST._serialized_start=734 + _QUERYVOTEREQUEST._serialized_end=833 + _QUERYVOTERESPONSE._serialized_start=835 + _QUERYVOTERESPONSE._serialized_end=895 + _QUERYVOTESREQUEST._serialized_start=897 + _QUERYVOTESREQUEST._serialized_end=1021 + _QUERYVOTESRESPONSE._serialized_start=1024 + _QUERYVOTESRESPONSE._serialized_end=1160 + _QUERYPARAMSREQUEST._serialized_start=1162 + _QUERYPARAMSREQUEST._serialized_end=1215 + _QUERYPARAMSRESPONSE._serialized_start=1218 + _QUERYPARAMSRESPONSE._serialized_end=1496 + _QUERYDEPOSITREQUEST._serialized_start=1498 + _QUERYDEPOSITREQUEST._serialized_end=1608 + _QUERYDEPOSITRESPONSE._serialized_start=1610 + _QUERYDEPOSITRESPONSE._serialized_end=1682 + _QUERYDEPOSITSREQUEST._serialized_start=1684 + _QUERYDEPOSITSREQUEST._serialized_end=1811 + _QUERYDEPOSITSRESPONSE._serialized_start=1814 + _QUERYDEPOSITSRESPONSE._serialized_end=1962 + _QUERYTALLYRESULTREQUEST._serialized_start=1964 + _QUERYTALLYRESULTREQUEST._serialized_end=2022 + _QUERYTALLYRESULTRESPONSE._serialized_start=2024 + _QUERYTALLYRESULTRESPONSE._serialized_end=2100 + _QUERY._serialized_start=2103 + _QUERY._serialized_end=3217 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1/query_pb2.pyi b/nibiru_proto/cosmos/gov/v1/query_pb2.pyi new file mode 100644 index 00000000..9ac0a6c0 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/query_pb2.pyi @@ -0,0 +1,400 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.gov.v1.gov_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 QueryProposalRequest(google.protobuf.message.Message): + """QueryProposalRequest is the request type for the Query/Proposal RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryProposalRequest = QueryProposalRequest + +@typing_extensions.final +class QueryProposalResponse(google.protobuf.message.Message): + """QueryProposalResponse is the response type for the Query/Proposal RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_FIELD_NUMBER: builtins.int + @property + def proposal(self) -> cosmos.gov.v1.gov_pb2.Proposal: + """proposal is the requested governance proposal.""" + def __init__( + self, + *, + proposal: cosmos.gov.v1.gov_pb2.Proposal | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> None: ... + +global___QueryProposalResponse = QueryProposalResponse + +@typing_extensions.final +class QueryProposalsRequest(google.protobuf.message.Message): + """QueryProposalsRequest is the request type for the Query/Proposals RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_STATUS_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_status: cosmos.gov.v1.gov_pb2.ProposalStatus.ValueType + """proposal_status defines the status of the proposals.""" + voter: builtins.str + """voter defines the voter address for the proposals.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_status: cosmos.gov.v1.gov_pb2.ProposalStatus.ValueType = ..., + voter: builtins.str = ..., + depositor: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["depositor", b"depositor", "pagination", b"pagination", "proposal_status", b"proposal_status", "voter", b"voter"]) -> None: ... + +global___QueryProposalsRequest = QueryProposalsRequest + +@typing_extensions.final +class QueryProposalsResponse(google.protobuf.message.Message): + """QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSALS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Proposal]: + """proposals defines all the requested governance proposals.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + proposals: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Proposal] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposals", b"proposals"]) -> None: ... + +global___QueryProposalsResponse = QueryProposalsResponse + +@typing_extensions.final +class QueryVoteRequest(google.protobuf.message.Message): + """QueryVoteRequest is the request type for the Query/Vote RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter defines the voter address for the proposals.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___QueryVoteRequest = QueryVoteRequest + +@typing_extensions.final +class QueryVoteResponse(google.protobuf.message.Message): + """QueryVoteResponse is the response type for the Query/Vote RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_FIELD_NUMBER: builtins.int + @property + def vote(self) -> cosmos.gov.v1.gov_pb2.Vote: + """vote defines the queried vote.""" + def __init__( + self, + *, + vote: cosmos.gov.v1.gov_pb2.Vote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> None: ... + +global___QueryVoteResponse = QueryVoteResponse + +@typing_extensions.final +class QueryVotesRequest(google.protobuf.message.Message): + """QueryVotesRequest is the request type for the Query/Votes RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryVotesRequest = QueryVotesRequest + +@typing_extensions.final +class QueryVotesResponse(google.protobuf.message.Message): + """QueryVotesResponse is the response type for the Query/Votes RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Vote]: + """votes defines the queried votes.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + votes: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Vote] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "votes", b"votes"]) -> None: ... + +global___QueryVotesResponse = QueryVotesResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_TYPE_FIELD_NUMBER: builtins.int + params_type: builtins.str + """params_type defines which parameters to query for, can be one of "voting", + "tallying" or "deposit". + """ + def __init__( + self, + *, + params_type: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["params_type", b"params_type"]) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTING_PARAMS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + @property + def voting_params(self) -> cosmos.gov.v1.gov_pb2.VotingParams: + """Deprecated: Prefer to use `params` instead. + voting_params defines the parameters related to voting. + """ + @property + def deposit_params(self) -> cosmos.gov.v1.gov_pb2.DepositParams: + """Deprecated: Prefer to use `params` instead. + deposit_params defines the parameters related to deposit. + """ + @property + def tally_params(self) -> cosmos.gov.v1.gov_pb2.TallyParams: + """Deprecated: Prefer to use `params` instead. + tally_params defines the parameters related to tally. + """ + @property + def params(self) -> cosmos.gov.v1.gov_pb2.Params: + """params defines all the paramaters of x/gov module. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + voting_params: cosmos.gov.v1.gov_pb2.VotingParams | None = ..., + deposit_params: cosmos.gov.v1.gov_pb2.DepositParams | None = ..., + tally_params: cosmos.gov.v1.gov_pb2.TallyParams | None = ..., + params: cosmos.gov.v1.gov_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "params", b"params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "params", b"params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryDepositRequest(google.protobuf.message.Message): + """QueryDepositRequest is the request type for the Query/Deposit RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryDepositRequest = QueryDepositRequest + +@typing_extensions.final +class QueryDepositResponse(google.protobuf.message.Message): + """QueryDepositResponse is the response type for the Query/Deposit RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPOSIT_FIELD_NUMBER: builtins.int + @property + def deposit(self) -> cosmos.gov.v1.gov_pb2.Deposit: + """deposit defines the requested deposit.""" + def __init__( + self, + *, + deposit: cosmos.gov.v1.gov_pb2.Deposit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit", b"deposit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit", b"deposit"]) -> None: ... + +global___QueryDepositResponse = QueryDepositResponse + +@typing_extensions.final +class QueryDepositsRequest(google.protobuf.message.Message): + """QueryDepositsRequest is the request type for the Query/Deposits RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryDepositsRequest = QueryDepositsRequest + +@typing_extensions.final +class QueryDepositsResponse(google.protobuf.message.Message): + """QueryDepositsResponse is the response type for the Query/Deposits RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPOSITS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.Deposit]: + """deposits defines the requested deposits.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + deposits: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.Deposit] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposits", b"deposits", "pagination", b"pagination"]) -> None: ... + +global___QueryDepositsResponse = QueryDepositsResponse + +@typing_extensions.final +class QueryTallyResultRequest(google.protobuf.message.Message): + """QueryTallyResultRequest is the request type for the Query/Tally RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryTallyResultRequest = QueryTallyResultRequest + +@typing_extensions.final +class QueryTallyResultResponse(google.protobuf.message.Message): + """QueryTallyResultResponse is the response type for the Query/Tally RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TALLY_FIELD_NUMBER: builtins.int + @property + def tally(self) -> cosmos.gov.v1.gov_pb2.TallyResult: + """tally defines the requested tally.""" + def __init__( + self, + *, + tally: cosmos.gov.v1.gov_pb2.TallyResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> None: ... + +global___QueryTallyResultResponse = QueryTallyResultResponse diff --git a/nibiru_proto/cosmos/gov/v1/query_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1/query_pb2_grpc.py new file mode 100644 index 00000000..661dc561 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/query_pb2_grpc.py @@ -0,0 +1,308 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.gov.v1 import query_pb2 as cosmos_dot_gov_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service for gov module + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Proposal = channel.unary_unary( + '/cosmos.gov.v1.Query/Proposal', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalResponse.FromString, + ) + self.Proposals = channel.unary_unary( + '/cosmos.gov.v1.Query/Proposals', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsResponse.FromString, + ) + self.Vote = channel.unary_unary( + '/cosmos.gov.v1.Query/Vote', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteResponse.FromString, + ) + self.Votes = channel.unary_unary( + '/cosmos.gov.v1.Query/Votes', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesResponse.FromString, + ) + self.Params = channel.unary_unary( + '/cosmos.gov.v1.Query/Params', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.Deposit = channel.unary_unary( + '/cosmos.gov.v1.Query/Deposit', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositResponse.FromString, + ) + self.Deposits = channel.unary_unary( + '/cosmos.gov.v1.Query/Deposits', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsResponse.FromString, + ) + self.TallyResult = channel.unary_unary( + '/cosmos.gov.v1.Query/TallyResult', + request_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service for gov module + """ + + def Proposal(self, request, context): + """Proposal queries proposal details based on ProposalID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Proposals(self, request, context): + """Proposals queries all proposals based on given status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vote(self, request, context): + """Vote queries voted information based on proposalID, voterAddr. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Votes(self, request, context): + """Votes queries votes of a given proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params queries all parameters of the gov module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposit(self, request, context): + """Deposit queries single deposit information based proposalID, depositAddr. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposits(self, request, context): + """Deposits queries all deposits of a single proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TallyResult(self, request, context): + """TallyResult queries the tally of a proposal vote. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Proposal': grpc.unary_unary_rpc_method_handler( + servicer.Proposal, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalResponse.SerializeToString, + ), + 'Proposals': grpc.unary_unary_rpc_method_handler( + servicer.Proposals, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsResponse.SerializeToString, + ), + 'Vote': grpc.unary_unary_rpc_method_handler( + servicer.Vote, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteResponse.SerializeToString, + ), + 'Votes': grpc.unary_unary_rpc_method_handler( + servicer.Votes, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'Deposit': grpc.unary_unary_rpc_method_handler( + servicer.Deposit, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositResponse.SerializeToString, + ), + 'Deposits': grpc.unary_unary_rpc_method_handler( + servicer.Deposits, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsResponse.SerializeToString, + ), + 'TallyResult': grpc.unary_unary_rpc_method_handler( + servicer.TallyResult, + request_deserializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.gov.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service for gov module + """ + + @staticmethod + def Proposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Proposal', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Proposals(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Proposals', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryProposalsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Vote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Vote', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Votes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Votes', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryVotesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Params', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Deposit', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposits(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/Deposits', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryDepositsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TallyResult(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Query/TallyResult', + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + cosmos_dot_gov_dot_v1_dot_query__pb2.QueryTallyResultResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/gov/v1/tx_pb2.py b/nibiru_proto/cosmos/gov/v1/tx_pb2.py new file mode 100644 index 00000000..eea37ecf --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/tx_pb2.py @@ -0,0 +1,95 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.gov.v1 import gov_pb2 as cosmos_dot_gov_dot_v1_dot_gov__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x63osmos/gov/v1/tx.proto\x12\rcosmos.gov.v1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/gov/v1/gov.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x19google/protobuf/any.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xc9\x02\n\x11MsgSubmitProposal\x12\x30\n\x08messages\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messages\x12M\n\x0finitial_deposit\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0einitialDeposit\x12\x34\n\x08proposer\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08proposer\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata\x12\x14\n\x05title\x18\x05 \x01(\tR\x05title\x12\x18\n\x07summary\x18\x06 \x01(\tR\x07summary:1\x82\xe7\xb0*\x08proposer\x8a\xe7\xb0*\x1f\x63osmos-sdk/v1/MsgSubmitProposal\"<\n\x19MsgSubmitProposalResponse\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"\xbb\x01\n\x14MsgExecLegacyContent\x12N\n\x07\x63ontent\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1e\xca\xb4-\x1a\x63osmos.gov.v1beta1.ContentR\x07\x63ontent\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:5\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\"cosmos-sdk/v1/MsgExecLegacyContent\"\x1e\n\x1cMsgExecLegacyContentResponse\"\xe5\x01\n\x07MsgVote\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x31\n\x06option\x18\x03 \x01(\x0e\x32\x19.cosmos.gov.v1.VoteOptionR\x06option\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata:$\x82\xe7\xb0*\x05voter\x8a\xe7\xb0*\x15\x63osmos-sdk/v1/MsgVote\"\x11\n\x0fMsgVoteResponse\"\xff\x01\n\x0fMsgVoteWeighted\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12;\n\x07options\x18\x03 \x03(\x0b\x32!.cosmos.gov.v1.WeightedVoteOptionR\x07options\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata:,\x82\xe7\xb0*\x05voter\x8a\xe7\xb0*\x1d\x63osmos-sdk/v1/MsgVoteWeighted\"\x19\n\x17MsgVoteWeightedResponse\"\xe6\x01\n\nMsgDeposit\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12<\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount:+\x82\xe7\xb0*\tdepositor\x8a\xe7\xb0*\x18\x63osmos-sdk/v1/MsgDeposit\"\x14\n\x12MsgDepositResponse\"\xbb\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x38\n\x06params\x18\x02 \x01(\x0b\x32\x15.cosmos.gov.v1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:6\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*#cosmos-sdk/x/gov/v1/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\x8a\x04\n\x03Msg\x12\\\n\x0eSubmitProposal\x12 .cosmos.gov.v1.MsgSubmitProposal\x1a(.cosmos.gov.v1.MsgSubmitProposalResponse\x12\x65\n\x11\x45xecLegacyContent\x12#.cosmos.gov.v1.MsgExecLegacyContent\x1a+.cosmos.gov.v1.MsgExecLegacyContentResponse\x12>\n\x04Vote\x12\x16.cosmos.gov.v1.MsgVote\x1a\x1e.cosmos.gov.v1.MsgVoteResponse\x12V\n\x0cVoteWeighted\x12\x1e.cosmos.gov.v1.MsgVoteWeighted\x1a&.cosmos.gov.v1.MsgVoteWeightedResponse\x12G\n\x07\x44\x65posit\x12\x19.cosmos.gov.v1.MsgDeposit\x1a!.cosmos.gov.v1.MsgDepositResponse\x12V\n\x0cUpdateParams\x12\x1e.cosmos.gov.v1.MsgUpdateParams\x1a&.cosmos.gov.v1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42-Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-sdk/x/gov/types/v1' + _MSGSUBMITPROPOSAL.fields_by_name['initial_deposit']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['initial_deposit']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGSUBMITPROPOSAL.fields_by_name['proposer']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['proposer']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSUBMITPROPOSAL._options = None + _MSGSUBMITPROPOSAL._serialized_options = b'\202\347\260*\010proposer\212\347\260*\037cosmos-sdk/v1/MsgSubmitProposal' + _MSGEXECLEGACYCONTENT.fields_by_name['content']._options = None + _MSGEXECLEGACYCONTENT.fields_by_name['content']._serialized_options = b'\312\264-\032cosmos.gov.v1beta1.Content' + _MSGEXECLEGACYCONTENT._options = None + _MSGEXECLEGACYCONTENT._serialized_options = b'\202\347\260*\tauthority\212\347\260*\"cosmos-sdk/v1/MsgExecLegacyContent' + _MSGVOTE.fields_by_name['proposal_id']._options = None + _MSGVOTE.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGVOTE.fields_by_name['voter']._options = None + _MSGVOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVOTE._options = None + _MSGVOTE._serialized_options = b'\202\347\260*\005voter\212\347\260*\025cosmos-sdk/v1/MsgVote' + _MSGVOTEWEIGHTED.fields_by_name['proposal_id']._options = None + _MSGVOTEWEIGHTED.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGVOTEWEIGHTED.fields_by_name['voter']._options = None + _MSGVOTEWEIGHTED.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVOTEWEIGHTED._options = None + _MSGVOTEWEIGHTED._serialized_options = b'\202\347\260*\005voter\212\347\260*\035cosmos-sdk/v1/MsgVoteWeighted' + _MSGDEPOSIT.fields_by_name['proposal_id']._options = None + _MSGDEPOSIT.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGDEPOSIT.fields_by_name['depositor']._options = None + _MSGDEPOSIT.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGDEPOSIT.fields_by_name['amount']._options = None + _MSGDEPOSIT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGDEPOSIT._options = None + _MSGDEPOSIT._serialized_options = b'\202\347\260*\tdepositor\212\347\260*\030cosmos-sdk/v1/MsgDeposit' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*#cosmos-sdk/x/gov/v1/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSUBMITPROPOSAL._serialized_start=219 + _MSGSUBMITPROPOSAL._serialized_end=548 + _MSGSUBMITPROPOSALRESPONSE._serialized_start=550 + _MSGSUBMITPROPOSALRESPONSE._serialized_end=610 + _MSGEXECLEGACYCONTENT._serialized_start=613 + _MSGEXECLEGACYCONTENT._serialized_end=800 + _MSGEXECLEGACYCONTENTRESPONSE._serialized_start=802 + _MSGEXECLEGACYCONTENTRESPONSE._serialized_end=832 + _MSGVOTE._serialized_start=835 + _MSGVOTE._serialized_end=1064 + _MSGVOTERESPONSE._serialized_start=1066 + _MSGVOTERESPONSE._serialized_end=1083 + _MSGVOTEWEIGHTED._serialized_start=1086 + _MSGVOTEWEIGHTED._serialized_end=1341 + _MSGVOTEWEIGHTEDRESPONSE._serialized_start=1343 + _MSGVOTEWEIGHTEDRESPONSE._serialized_end=1368 + _MSGDEPOSIT._serialized_start=1371 + _MSGDEPOSIT._serialized_end=1601 + _MSGDEPOSITRESPONSE._serialized_start=1603 + _MSGDEPOSITRESPONSE._serialized_end=1623 + _MSGUPDATEPARAMS._serialized_start=1626 + _MSGUPDATEPARAMS._serialized_end=1813 + _MSGUPDATEPARAMSRESPONSE._serialized_start=1815 + _MSGUPDATEPARAMSRESPONSE._serialized_end=1840 + _MSG._serialized_start=1843 + _MSG._serialized_end=2365 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1/tx_pb2.pyi b/nibiru_proto/cosmos/gov/v1/tx_pb2.pyi new file mode 100644 index 00000000..cd1a60bc --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/tx_pb2.pyi @@ -0,0 +1,294 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.gov.v1.gov_pb2 +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 MsgSubmitProposal(google.protobuf.message.Message): + """MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + proposal Content. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGES_FIELD_NUMBER: builtins.int + INITIAL_DEPOSIT_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + TITLE_FIELD_NUMBER: builtins.int + SUMMARY_FIELD_NUMBER: builtins.int + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """messages are the arbitrary messages to be executed if proposal passes.""" + @property + def initial_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """initial_deposit is the deposit value that must be paid at proposal submission.""" + proposer: builtins.str + """proposer is the account address of the proposer.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the proposal.""" + title: builtins.str + """title is the title of the proposal. + + Since: cosmos-sdk 0.47 + """ + summary: builtins.str + """summary is the summary of the proposal + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + initial_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + proposer: builtins.str = ..., + metadata: builtins.str = ..., + title: builtins.str = ..., + summary: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["initial_deposit", b"initial_deposit", "messages", b"messages", "metadata", b"metadata", "proposer", b"proposer", "summary", b"summary", "title", b"title"]) -> None: ... + +global___MsgSubmitProposal = MsgSubmitProposal + +@typing_extensions.final +class MsgSubmitProposalResponse(google.protobuf.message.Message): + """MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___MsgSubmitProposalResponse = MsgSubmitProposalResponse + +@typing_extensions.final +class MsgExecLegacyContent(google.protobuf.message.Message): + """MsgExecLegacyContent is used to wrap the legacy content field into a message. + This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + @property + def content(self) -> google.protobuf.any_pb2.Any: + """content is the proposal's content.""" + authority: builtins.str + """authority must be the gov module address.""" + def __init__( + self, + *, + content: google.protobuf.any_pb2.Any | None = ..., + authority: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["content", b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "content", b"content"]) -> None: ... + +global___MsgExecLegacyContent = MsgExecLegacyContent + +@typing_extensions.final +class MsgExecLegacyContentResponse(google.protobuf.message.Message): + """MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgExecLegacyContentResponse = MsgExecLegacyContentResponse + +@typing_extensions.final +class MsgVote(google.protobuf.message.Message): + """MsgVote defines a message to cast a vote.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address for the proposal.""" + option: cosmos.gov.v1.gov_pb2.VoteOption.ValueType + """option defines the vote option.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the Vote.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + option: cosmos.gov.v1.gov_pb2.VoteOption.ValueType = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "option", b"option", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___MsgVote = MsgVote + +@typing_extensions.final +class MsgVoteResponse(google.protobuf.message.Message): + """MsgVoteResponse defines the Msg/Vote response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVoteResponse = MsgVoteResponse + +@typing_extensions.final +class MsgVoteWeighted(google.protobuf.message.Message): + """MsgVoteWeighted defines a message to cast a vote.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address for the proposal.""" + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1.gov_pb2.WeightedVoteOption]: + """options defines the weighted vote options.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the VoteWeighted.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + options: collections.abc.Iterable[cosmos.gov.v1.gov_pb2.WeightedVoteOption] | None = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "options", b"options", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___MsgVoteWeighted = MsgVoteWeighted + +@typing_extensions.final +class MsgVoteWeightedResponse(google.protobuf.message.Message): + """MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVoteWeightedResponse = MsgVoteWeightedResponse + +@typing_extensions.final +class MsgDeposit(google.protobuf.message.Message): + """MsgDeposit defines a message to submit a deposit to an existing proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount to be deposited by depositor.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___MsgDeposit = MsgDeposit + +@typing_extensions.final +class MsgDepositResponse(google.protobuf.message.Message): + """MsgDepositResponse defines the Msg/Deposit response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgDepositResponse = MsgDepositResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.gov.v1.gov_pb2.Params: + """params defines the x/gov parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.gov.v1.gov_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/gov/v1/tx_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..630e6a26 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1/tx_pb2_grpc.py @@ -0,0 +1,244 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.gov.v1 import tx_pb2 as cosmos_dot_gov_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the gov Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SubmitProposal = channel.unary_unary( + '/cosmos.gov.v1.Msg/SubmitProposal', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + ) + self.ExecLegacyContent = channel.unary_unary( + '/cosmos.gov.v1.Msg/ExecLegacyContent', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContent.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContentResponse.FromString, + ) + self.Vote = channel.unary_unary( + '/cosmos.gov.v1.Msg/Vote', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVote.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteResponse.FromString, + ) + self.VoteWeighted = channel.unary_unary( + '/cosmos.gov.v1.Msg/VoteWeighted', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + ) + self.Deposit = channel.unary_unary( + '/cosmos.gov.v1.Msg/Deposit', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDeposit.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDepositResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.gov.v1.Msg/UpdateParams', + request_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the gov Msg service. + """ + + def SubmitProposal(self, request, context): + """SubmitProposal defines a method to create new proposal given the messages. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecLegacyContent(self, request, context): + """ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + to execute a legacy content-based proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vote(self, request, context): + """Vote defines a method to add a vote on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VoteWeighted(self, request, context): + """VoteWeighted defines a method to add a weighted vote on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposit(self, request, context): + """Deposit defines a method to add deposit on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/gov module + parameters. The authority is defined in the keeper. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SubmitProposal': grpc.unary_unary_rpc_method_handler( + servicer.SubmitProposal, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposal.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.SerializeToString, + ), + 'ExecLegacyContent': grpc.unary_unary_rpc_method_handler( + servicer.ExecLegacyContent, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContent.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContentResponse.SerializeToString, + ), + 'Vote': grpc.unary_unary_rpc_method_handler( + servicer.Vote, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVote.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteResponse.SerializeToString, + ), + 'VoteWeighted': grpc.unary_unary_rpc_method_handler( + servicer.VoteWeighted, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeighted.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeightedResponse.SerializeToString, + ), + 'Deposit': grpc.unary_unary_rpc_method_handler( + servicer.Deposit, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDeposit.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDepositResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.gov.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the gov Msg service. + """ + + @staticmethod + def SubmitProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/SubmitProposal', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecLegacyContent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/ExecLegacyContent', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContent.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgExecLegacyContentResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Vote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/Vote', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVote.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VoteWeighted(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/VoteWeighted', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/Deposit', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDeposit.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgDepositResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1.Msg/UpdateParams', + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_gov_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..0b689ab0 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.gov.v1beta1 import gov_pb2 as cosmos_dot_gov_dot_v1beta1_dot_gov__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/gov/v1beta1/genesis.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1c\x63osmos/gov/v1beta1/gov.proto\x1a\x11\x61mino/amino.proto\"\x9e\x04\n\x0cGenesisState\x12\x30\n\x14starting_proposal_id\x18\x01 \x01(\x04R\x12startingProposalId\x12N\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32\x1b.cosmos.gov.v1beta1.DepositB\x15\xc8\xde\x1f\x00\xaa\xdf\x1f\x08\x44\x65posits\xa8\xe7\xb0*\x01R\x08\x64\x65posits\x12\x42\n\x05votes\x18\x03 \x03(\x0b\x32\x18.cosmos.gov.v1beta1.VoteB\x12\xc8\xde\x1f\x00\xaa\xdf\x1f\x05Votes\xa8\xe7\xb0*\x01R\x05votes\x12R\n\tproposals\x18\x04 \x03(\x0b\x32\x1c.cosmos.gov.v1beta1.ProposalB\x16\xc8\xde\x1f\x00\xaa\xdf\x1f\tProposals\xa8\xe7\xb0*\x01R\tproposals\x12S\n\x0e\x64\x65posit_params\x18\x05 \x01(\x0b\x32!.cosmos.gov.v1beta1.DepositParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rdepositParams\x12P\n\rvoting_params\x18\x06 \x01(\x0b\x32 .cosmos.gov.v1beta1.VotingParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0cvotingParams\x12M\n\x0ctally_params\x18\x07 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0btallyParamsB2Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1' + _GENESISSTATE.fields_by_name['deposits']._options = None + _GENESISSTATE.fields_by_name['deposits']._serialized_options = b'\310\336\037\000\252\337\037\010Deposits\250\347\260*\001' + _GENESISSTATE.fields_by_name['votes']._options = None + _GENESISSTATE.fields_by_name['votes']._serialized_options = b'\310\336\037\000\252\337\037\005Votes\250\347\260*\001' + _GENESISSTATE.fields_by_name['proposals']._options = None + _GENESISSTATE.fields_by_name['proposals']._serialized_options = b'\310\336\037\000\252\337\037\tProposals\250\347\260*\001' + _GENESISSTATE.fields_by_name['deposit_params']._options = None + _GENESISSTATE.fields_by_name['deposit_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['voting_params']._options = None + _GENESISSTATE.fields_by_name['voting_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['tally_params']._options = None + _GENESISSTATE.fields_by_name['tally_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=128 + _GENESISSTATE._serialized_end=670 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..6f2357e9 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.gov.v1beta1.gov_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the gov module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STARTING_PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITS_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + PROPOSALS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + VOTING_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + starting_proposal_id: builtins.int + """starting_proposal_id is the ID of the starting proposal.""" + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: + """deposits defines all the deposits present at genesis.""" + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: + """votes defines all the votes present at genesis.""" + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: + """proposals defines all the proposals present at genesis.""" + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: + """params defines all the parameters of related to deposit.""" + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: + """params defines all the parameters of related to voting.""" + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: + """params defines all the parameters of related to tally.""" + def __init__( + self, + *, + starting_proposal_id: builtins.int = ..., + deposits: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit] | None = ..., + votes: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote] | None = ..., + proposals: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal] | None = ..., + deposit_params: cosmos.gov.v1beta1.gov_pb2.DepositParams | None = ..., + voting_params: cosmos.gov.v1beta1.gov_pb2.VotingParams | None = ..., + tally_params: cosmos.gov.v1beta1.gov_pb2.TallyParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "deposits", b"deposits", "proposals", b"proposals", "starting_proposal_id", b"starting_proposal_id", "tally_params", b"tally_params", "votes", b"votes", "voting_params", b"voting_params"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.py b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.py new file mode 100644 index 00000000..5610d3a6 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1beta1/gov.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/gov/v1beta1/gov.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xa2\x01\n\x12WeightedVoteOption\x12\x36\n\x06option\x18\x01 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOptionR\x06option\x12T\n\x06weight\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x06weight\"\x86\x01\n\x0cTextProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription:>\xe8\xa0\x1f\x01\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*\x17\x63osmos-sdk/TextProposal\"\xd6\x01\n\x07\x44\x65posit\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xd9\x05\n\x08Proposal\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12N\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1e\xca\xb4-\x1a\x63osmos.gov.v1beta1.ContentR\x07\x63ontent\x12:\n\x06status\x18\x03 \x01(\x0e\x32\".cosmos.gov.v1beta1.ProposalStatusR\x06status\x12X\n\x12\x66inal_tally_result\x18\x04 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyResultB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x10\x66inalTallyResult\x12J\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\nsubmitTime\x12S\n\x10\x64\x65posit_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0e\x64\x65positEndTime\x12u\n\rtotal_deposit\x18\x07 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x0ctotalDeposit\x12U\n\x11voting_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0fvotingStartTime\x12Q\n\x0fvoting_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\rvotingEndTime:\x04\xe8\xa0\x1f\x01\"\xe9\x02\n\x0bTallyResult\x12N\n\x03yes\x18\x01 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x03yes\x12V\n\x07\x61\x62stain\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x07\x61\x62stain\x12L\n\x02no\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x02no\x12^\n\x0cno_with_veto\x18\x04 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\nnoWithVeto:\x04\xe8\xa0\x1f\x01\"\xfe\x01\n\x04Vote\x12\x33\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x12\xea\xde\x1f\x02id\xa2\xe7\xb0*\x02id\xa8\xe7\xb0*\x01R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12:\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOptionB\x02\x18\x01R\x06option\x12K\n\x07options\x18\x04 \x03(\x0b\x32&.cosmos.gov.v1beta1.WeightedVoteOptionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07options:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x8a\x02\n\rDepositParams\x12\x85\x01\n\x0bmin_deposit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBI\xc8\xde\x1f\x00\xea\xde\x1f\x15min_deposit,omitempty\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\nminDeposit\x12q\n\x12max_deposit_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB(\xc8\xde\x1f\x00\xea\xde\x1f\x1cmax_deposit_period,omitempty\x98\xdf\x1f\x01R\x10maxDepositPeriod\"s\n\x0cVotingParams\x12\x63\n\rvoting_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB#\xc8\xde\x1f\x00\xea\xde\x1f\x17voting_period,omitempty\x98\xdf\x1f\x01R\x0cvotingPeriod\"\xc1\x02\n\x0bTallyParams\x12Z\n\x06quorum\x18\x01 \x01(\x0c\x42\x42\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xea\xde\x1f\x10quorum,omitemptyR\x06quorum\x12\x63\n\tthreshold\x18\x02 \x01(\x0c\x42\x45\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xea\xde\x1f\x13threshold,omitemptyR\tthreshold\x12q\n\x0eveto_threshold\x18\x03 \x01(\x0c\x42J\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xea\xde\x1f\x18veto_threshold,omitemptyR\rvetoThreshold*\xe6\x01\n\nVoteOption\x12,\n\x17VOTE_OPTION_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bOptionEmpty\x12\"\n\x0fVOTE_OPTION_YES\x10\x01\x1a\r\x8a\x9d \tOptionYes\x12*\n\x13VOTE_OPTION_ABSTAIN\x10\x02\x1a\x11\x8a\x9d \rOptionAbstain\x12 \n\x0eVOTE_OPTION_NO\x10\x03\x1a\x0c\x8a\x9d \x08OptionNo\x12\x32\n\x18VOTE_OPTION_NO_WITH_VETO\x10\x04\x1a\x14\x8a\x9d \x10OptionNoWithVeto\x1a\x04\x88\xa3\x1e\x00*\xcc\x02\n\x0eProposalStatus\x12.\n\x1bPROPOSAL_STATUS_UNSPECIFIED\x10\x00\x1a\r\x8a\x9d \tStatusNil\x12;\n\x1ePROPOSAL_STATUS_DEPOSIT_PERIOD\x10\x01\x1a\x17\x8a\x9d \x13StatusDepositPeriod\x12\x39\n\x1dPROPOSAL_STATUS_VOTING_PERIOD\x10\x02\x1a\x16\x8a\x9d \x12StatusVotingPeriod\x12,\n\x16PROPOSAL_STATUS_PASSED\x10\x03\x1a\x10\x8a\x9d \x0cStatusPassed\x12\x30\n\x18PROPOSAL_STATUS_REJECTED\x10\x04\x1a\x12\x8a\x9d \x0eStatusRejected\x12,\n\x16PROPOSAL_STATUS_FAILED\x10\x05\x1a\x10\x8a\x9d \x0cStatusFailed\x1a\x04\x88\xa3\x1e\x00\x42>Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1\xc8\xe1\x1e\x00\xd8\xe1\x1e\x00\x80\xe2\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1beta1.gov_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1\310\341\036\000\330\341\036\000\200\342\036\000' + _VOTEOPTION._options = None + _VOTEOPTION._serialized_options = b'\210\243\036\000' + _VOTEOPTION.values_by_name["VOTE_OPTION_UNSPECIFIED"]._options = None + _VOTEOPTION.values_by_name["VOTE_OPTION_UNSPECIFIED"]._serialized_options = b'\212\235 \013OptionEmpty' + _VOTEOPTION.values_by_name["VOTE_OPTION_YES"]._options = None + _VOTEOPTION.values_by_name["VOTE_OPTION_YES"]._serialized_options = b'\212\235 \tOptionYes' + _VOTEOPTION.values_by_name["VOTE_OPTION_ABSTAIN"]._options = None + _VOTEOPTION.values_by_name["VOTE_OPTION_ABSTAIN"]._serialized_options = b'\212\235 \rOptionAbstain' + _VOTEOPTION.values_by_name["VOTE_OPTION_NO"]._options = None + _VOTEOPTION.values_by_name["VOTE_OPTION_NO"]._serialized_options = b'\212\235 \010OptionNo' + _VOTEOPTION.values_by_name["VOTE_OPTION_NO_WITH_VETO"]._options = None + _VOTEOPTION.values_by_name["VOTE_OPTION_NO_WITH_VETO"]._serialized_options = b'\212\235 \020OptionNoWithVeto' + _PROPOSALSTATUS._options = None + _PROPOSALSTATUS._serialized_options = b'\210\243\036\000' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_UNSPECIFIED"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_UNSPECIFIED"]._serialized_options = b'\212\235 \tStatusNil' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_DEPOSIT_PERIOD"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_DEPOSIT_PERIOD"]._serialized_options = b'\212\235 \023StatusDepositPeriod' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_VOTING_PERIOD"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_VOTING_PERIOD"]._serialized_options = b'\212\235 \022StatusVotingPeriod' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_PASSED"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_PASSED"]._serialized_options = b'\212\235 \014StatusPassed' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_REJECTED"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_REJECTED"]._serialized_options = b'\212\235 \016StatusRejected' + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_FAILED"]._options = None + _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_FAILED"]._serialized_options = b'\212\235 \014StatusFailed' + _WEIGHTEDVOTEOPTION.fields_by_name['weight']._options = None + _WEIGHTEDVOTEOPTION.fields_by_name['weight']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _TEXTPROPOSAL._options = None + _TEXTPROPOSAL._serialized_options = b'\350\240\037\001\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*\027cosmos-sdk/TextProposal' + _DEPOSIT.fields_by_name['depositor']._options = None + _DEPOSIT.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DEPOSIT.fields_by_name['amount']._options = None + _DEPOSIT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _DEPOSIT._options = None + _DEPOSIT._serialized_options = b'\210\240\037\000\350\240\037\000' + _PROPOSAL.fields_by_name['content']._options = None + _PROPOSAL.fields_by_name['content']._serialized_options = b'\312\264-\032cosmos.gov.v1beta1.Content' + _PROPOSAL.fields_by_name['final_tally_result']._options = None + _PROPOSAL.fields_by_name['final_tally_result']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PROPOSAL.fields_by_name['submit_time']._options = None + _PROPOSAL.fields_by_name['submit_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL.fields_by_name['deposit_end_time']._options = None + _PROPOSAL.fields_by_name['deposit_end_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL.fields_by_name['total_deposit']._options = None + _PROPOSAL.fields_by_name['total_deposit']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _PROPOSAL.fields_by_name['voting_start_time']._options = None + _PROPOSAL.fields_by_name['voting_start_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL.fields_by_name['voting_end_time']._options = None + _PROPOSAL.fields_by_name['voting_end_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL._options = None + _PROPOSAL._serialized_options = b'\350\240\037\001' + _TALLYRESULT.fields_by_name['yes']._options = None + _TALLYRESULT.fields_by_name['yes']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['abstain']._options = None + _TALLYRESULT.fields_by_name['abstain']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['no']._options = None + _TALLYRESULT.fields_by_name['no']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _TALLYRESULT.fields_by_name['no_with_veto']._options = None + _TALLYRESULT.fields_by_name['no_with_veto']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _TALLYRESULT._options = None + _TALLYRESULT._serialized_options = b'\350\240\037\001' + _VOTE.fields_by_name['proposal_id']._options = None + _VOTE.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\002id\242\347\260*\002id\250\347\260*\001' + _VOTE.fields_by_name['voter']._options = None + _VOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VOTE.fields_by_name['option']._options = None + _VOTE.fields_by_name['option']._serialized_options = b'\030\001' + _VOTE.fields_by_name['options']._options = None + _VOTE.fields_by_name['options']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VOTE._options = None + _VOTE._serialized_options = b'\230\240\037\000\350\240\037\000' + _DEPOSITPARAMS.fields_by_name['min_deposit']._options = None + _DEPOSITPARAMS.fields_by_name['min_deposit']._serialized_options = b'\310\336\037\000\352\336\037\025min_deposit,omitempty\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _DEPOSITPARAMS.fields_by_name['max_deposit_period']._options = None + _DEPOSITPARAMS.fields_by_name['max_deposit_period']._serialized_options = b'\310\336\037\000\352\336\037\034max_deposit_period,omitempty\230\337\037\001' + _VOTINGPARAMS.fields_by_name['voting_period']._options = None + _VOTINGPARAMS.fields_by_name['voting_period']._serialized_options = b'\310\336\037\000\352\336\037\027voting_period,omitempty\230\337\037\001' + _TALLYPARAMS.fields_by_name['quorum']._options = None + _TALLYPARAMS.fields_by_name['quorum']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\352\336\037\020quorum,omitempty' + _TALLYPARAMS.fields_by_name['threshold']._options = None + _TALLYPARAMS.fields_by_name['threshold']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\352\336\037\023threshold,omitempty' + _TALLYPARAMS.fields_by_name['veto_threshold']._options = None + _TALLYPARAMS.fields_by_name['veto_threshold']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\352\336\037\030veto_threshold,omitempty' + _VOTEOPTION._serialized_start=2827 + _VOTEOPTION._serialized_end=3057 + _PROPOSALSTATUS._serialized_start=3060 + _PROPOSALSTATUS._serialized_end=3392 + _WEIGHTEDVOTEOPTION._serialized_start=245 + _WEIGHTEDVOTEOPTION._serialized_end=407 + _TEXTPROPOSAL._serialized_start=410 + _TEXTPROPOSAL._serialized_end=544 + _DEPOSIT._serialized_start=547 + _DEPOSIT._serialized_end=761 + _PROPOSAL._serialized_start=764 + _PROPOSAL._serialized_end=1493 + _TALLYRESULT._serialized_start=1496 + _TALLYRESULT._serialized_end=1857 + _VOTE._serialized_start=1860 + _VOTE._serialized_end=2114 + _DEPOSITPARAMS._serialized_start=2117 + _DEPOSITPARAMS._serialized_end=2383 + _VOTINGPARAMS._serialized_start=2385 + _VOTINGPARAMS._serialized_end=2500 + _TALLYPARAMS._serialized_start=2503 + _TALLYPARAMS._serialized_end=2824 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.pyi b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.pyi new file mode 100644 index 00000000..472248f7 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2.pyi @@ -0,0 +1,396 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _VoteOption: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VoteOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VoteOption.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + VOTE_OPTION_UNSPECIFIED: _VoteOption.ValueType # 0 + """VOTE_OPTION_UNSPECIFIED defines a no-op vote option.""" + VOTE_OPTION_YES: _VoteOption.ValueType # 1 + """VOTE_OPTION_YES defines a yes vote option.""" + VOTE_OPTION_ABSTAIN: _VoteOption.ValueType # 2 + """VOTE_OPTION_ABSTAIN defines an abstain vote option.""" + VOTE_OPTION_NO: _VoteOption.ValueType # 3 + """VOTE_OPTION_NO defines a no vote option.""" + VOTE_OPTION_NO_WITH_VETO: _VoteOption.ValueType # 4 + """VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" + +class VoteOption(_VoteOption, metaclass=_VoteOptionEnumTypeWrapper): + """VoteOption enumerates the valid vote options for a given governance proposal.""" + +VOTE_OPTION_UNSPECIFIED: VoteOption.ValueType # 0 +"""VOTE_OPTION_UNSPECIFIED defines a no-op vote option.""" +VOTE_OPTION_YES: VoteOption.ValueType # 1 +"""VOTE_OPTION_YES defines a yes vote option.""" +VOTE_OPTION_ABSTAIN: VoteOption.ValueType # 2 +"""VOTE_OPTION_ABSTAIN defines an abstain vote option.""" +VOTE_OPTION_NO: VoteOption.ValueType # 3 +"""VOTE_OPTION_NO defines a no vote option.""" +VOTE_OPTION_NO_WITH_VETO: VoteOption.ValueType # 4 +"""VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" +global___VoteOption = VoteOption + +class _ProposalStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PROPOSAL_STATUS_UNSPECIFIED: _ProposalStatus.ValueType # 0 + """PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.""" + PROPOSAL_STATUS_DEPOSIT_PERIOD: _ProposalStatus.ValueType # 1 + """PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + """ + PROPOSAL_STATUS_VOTING_PERIOD: _ProposalStatus.ValueType # 2 + """PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + """ + PROPOSAL_STATUS_PASSED: _ProposalStatus.ValueType # 3 + """PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + """ + PROPOSAL_STATUS_REJECTED: _ProposalStatus.ValueType # 4 + """PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + """ + PROPOSAL_STATUS_FAILED: _ProposalStatus.ValueType # 5 + """PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + """ + +class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): + """ProposalStatus enumerates the valid statuses of a proposal.""" + +PROPOSAL_STATUS_UNSPECIFIED: ProposalStatus.ValueType # 0 +"""PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.""" +PROPOSAL_STATUS_DEPOSIT_PERIOD: ProposalStatus.ValueType # 1 +"""PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit +period. +""" +PROPOSAL_STATUS_VOTING_PERIOD: ProposalStatus.ValueType # 2 +"""PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting +period. +""" +PROPOSAL_STATUS_PASSED: ProposalStatus.ValueType # 3 +"""PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has +passed. +""" +PROPOSAL_STATUS_REJECTED: ProposalStatus.ValueType # 4 +"""PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has +been rejected. +""" +PROPOSAL_STATUS_FAILED: ProposalStatus.ValueType # 5 +"""PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has +failed. +""" +global___ProposalStatus = ProposalStatus + +@typing_extensions.final +class WeightedVoteOption(google.protobuf.message.Message): + """WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPTION_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + option: global___VoteOption.ValueType + """option defines the valid vote options, it must not contain duplicate vote options.""" + weight: builtins.str + """weight is the vote weight associated with the vote option.""" + def __init__( + self, + *, + option: global___VoteOption.ValueType = ..., + weight: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["option", b"option", "weight", b"weight"]) -> None: ... + +global___WeightedVoteOption = WeightedVoteOption + +@typing_extensions.final +class TextProposal(google.protobuf.message.Message): + """TextProposal defines a standard text proposal whose changes need to be + manually updated in case of approval. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: builtins.str + """title of the proposal.""" + description: builtins.str + """description associated with the proposal.""" + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "title", b"title"]) -> None: ... + +global___TextProposal = TextProposal + +@typing_extensions.final +class Deposit(google.protobuf.message.Message): + """Deposit defines an amount deposited by an account address to an active + proposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount to be deposited by depositor.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___Deposit = Deposit + +@typing_extensions.final +class Proposal(google.protobuf.message.Message): + """Proposal defines the core field members of a governance proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + FINAL_TALLY_RESULT_FIELD_NUMBER: builtins.int + SUBMIT_TIME_FIELD_NUMBER: builtins.int + DEPOSIT_END_TIME_FIELD_NUMBER: builtins.int + TOTAL_DEPOSIT_FIELD_NUMBER: builtins.int + VOTING_START_TIME_FIELD_NUMBER: builtins.int + VOTING_END_TIME_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + @property + def content(self) -> google.protobuf.any_pb2.Any: + """content is the proposal's content.""" + status: global___ProposalStatus.ValueType + """status defines the proposal status.""" + @property + def final_tally_result(self) -> global___TallyResult: + """final_tally_result is the final tally result of the proposal. When + querying a proposal via gRPC, this field is not populated until the + proposal's voting period has ended. + """ + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """submit_time is the time of proposal submission.""" + @property + def deposit_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """deposit_end_time is the end time for deposition.""" + @property + def total_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """total_deposit is the total deposit on the proposal.""" + @property + def voting_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """voting_start_time is the starting time to vote on a proposal.""" + @property + def voting_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """voting_end_time is the end time of voting on a proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + content: google.protobuf.any_pb2.Any | None = ..., + status: global___ProposalStatus.ValueType = ..., + final_tally_result: global___TallyResult | None = ..., + submit_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + deposit_end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + total_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + voting_start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + voting_end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["content", b"content", "deposit_end_time", b"deposit_end_time", "final_tally_result", b"final_tally_result", "submit_time", b"submit_time", "voting_end_time", b"voting_end_time", "voting_start_time", b"voting_start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "deposit_end_time", b"deposit_end_time", "final_tally_result", b"final_tally_result", "proposal_id", b"proposal_id", "status", b"status", "submit_time", b"submit_time", "total_deposit", b"total_deposit", "voting_end_time", b"voting_end_time", "voting_start_time", b"voting_start_time"]) -> None: ... + +global___Proposal = Proposal + +@typing_extensions.final +class TallyResult(google.protobuf.message.Message): + """TallyResult defines a standard tally for a governance proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + YES_FIELD_NUMBER: builtins.int + ABSTAIN_FIELD_NUMBER: builtins.int + NO_FIELD_NUMBER: builtins.int + NO_WITH_VETO_FIELD_NUMBER: builtins.int + yes: builtins.str + """yes is the number of yes votes on a proposal.""" + abstain: builtins.str + """abstain is the number of abstain votes on a proposal.""" + no: builtins.str + """no is the number of no votes on a proposal.""" + no_with_veto: builtins.str + """no_with_veto is the number of no with veto votes on a proposal.""" + def __init__( + self, + *, + yes: builtins.str = ..., + abstain: builtins.str = ..., + no: builtins.str = ..., + no_with_veto: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["abstain", b"abstain", "no", b"no", "no_with_veto", b"no_with_veto", "yes", b"yes"]) -> None: ... + +global___TallyResult = TallyResult + +@typing_extensions.final +class Vote(google.protobuf.message.Message): + """Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address of the proposal.""" + option: global___VoteOption.ValueType + """Deprecated: Prefer to use `options` instead. This field is set in queries + if and only if `len(options) == 1` and that option has weight 1. In all + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + """ + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedVoteOption]: + """options is the weighted vote options. + + Since: cosmos-sdk 0.43 + """ + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + option: global___VoteOption.ValueType = ..., + options: collections.abc.Iterable[global___WeightedVoteOption] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["option", b"option", "options", b"options", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___Vote = Vote + +@typing_extensions.final +class DepositParams(google.protobuf.message.Message): + """DepositParams defines the params for deposits on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIN_DEPOSIT_FIELD_NUMBER: builtins.int + MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int + @property + def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Minimum deposit for a proposal to enter voting period.""" + @property + def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: + """Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + months. + """ + def __init__( + self, + *, + min_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + max_deposit_period: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["max_deposit_period", b"max_deposit_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["max_deposit_period", b"max_deposit_period", "min_deposit", b"min_deposit"]) -> None: ... + +global___DepositParams = DepositParams + +@typing_extensions.final +class VotingParams(google.protobuf.message.Message): + """VotingParams defines the params for voting on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTING_PERIOD_FIELD_NUMBER: builtins.int + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: + """Duration of the voting period.""" + def __init__( + self, + *, + voting_period: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["voting_period", b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["voting_period", b"voting_period"]) -> None: ... + +global___VotingParams = VotingParams + +@typing_extensions.final +class TallyParams(google.protobuf.message.Message): + """TallyParams defines the params for tallying votes on governance proposals.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUORUM_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + VETO_THRESHOLD_FIELD_NUMBER: builtins.int + quorum: builtins.bytes + """Minimum percentage of total stake needed to vote for a result to be + considered valid. + """ + threshold: builtins.bytes + """Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.""" + veto_threshold: builtins.bytes + """Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + """ + def __init__( + self, + *, + quorum: builtins.bytes = ..., + threshold: builtins.bytes = ..., + veto_threshold: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["quorum", b"quorum", "threshold", b"threshold", "veto_threshold", b"veto_threshold"]) -> None: ... + +global___TallyParams = TallyParams diff --git a/nibiru_proto/cosmos/gov/v1beta1/gov_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/gov_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/gov/v1beta1/query_pb2.py b/nibiru_proto/cosmos/gov/v1beta1/query_pb2.py new file mode 100644 index 00000000..ab4249ef --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/query_pb2.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.gov.v1beta1 import gov_pb2 as cosmos_dot_gov_dot_v1beta1_dot_gov__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/gov/v1beta1/query.proto\x12\x12\x63osmos.gov.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x63osmos/gov/v1beta1/gov.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"7\n\x14QueryProposalRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"\\\n\x15QueryProposalResponse\x12\x43\n\x08proposal\x18\x01 \x01(\x0b\x32\x1c.cosmos.gov.v1beta1.ProposalB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08proposal\"\x9e\x02\n\x15QueryProposalsRequest\x12K\n\x0fproposal_status\x18\x01 \x01(\x0e\x32\".cosmos.gov.v1beta1.ProposalStatusR\x0eproposalStatus\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x36\n\tdepositor\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12\x46\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xa8\x01\n\x16QueryProposalsResponse\x12\x45\n\tproposals\x18\x01 \x03(\x0b\x32\x1c.cosmos.gov.v1beta1.ProposalB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tproposals\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"m\n\x10QueryVoteRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"L\n\x11QueryVoteResponse\x12\x37\n\x04vote\x18\x01 \x01(\x0b\x32\x18.cosmos.gov.v1beta1.VoteB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04vote\"|\n\x11QueryVotesRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x98\x01\n\x12QueryVotesResponse\x12\x39\n\x05votes\x18\x01 \x03(\x0b\x32\x18.cosmos.gov.v1beta1.VoteB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05votes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"5\n\x12QueryParamsRequest\x12\x1f\n\x0bparams_type\x18\x01 \x01(\tR\nparamsType\"\x8b\x02\n\x13QueryParamsResponse\x12P\n\rvoting_params\x18\x01 \x01(\x0b\x32 .cosmos.gov.v1beta1.VotingParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0cvotingParams\x12S\n\x0e\x64\x65posit_params\x18\x02 \x01(\x0b\x32!.cosmos.gov.v1beta1.DepositParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rdepositParams\x12M\n\x0ctally_params\x18\x03 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0btallyParams\"x\n\x13QueryDepositRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"X\n\x14QueryDepositResponse\x12@\n\x07\x64\x65posit\x18\x01 \x01(\x0b\x32\x1b.cosmos.gov.v1beta1.DepositB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x64\x65posit\"\x7f\n\x14QueryDepositsRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa4\x01\n\x15QueryDepositsResponse\x12\x42\n\x08\x64\x65posits\x18\x01 \x03(\x0b\x32\x1b.cosmos.gov.v1beta1.DepositB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08\x64\x65posits\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\":\n\x17QueryTallyResultRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"\\\n\x18QueryTallyResultResponse\x12@\n\x05tally\x18\x01 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyResultB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05tally2\xd4\t\n\x05Query\x12\x94\x01\n\x08Proposal\x12(.cosmos.gov.v1beta1.QueryProposalRequest\x1a).cosmos.gov.v1beta1.QueryProposalResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/gov/v1beta1/proposals/{proposal_id}\x12\x89\x01\n\tProposals\x12).cosmos.gov.v1beta1.QueryProposalsRequest\x1a*.cosmos.gov.v1beta1.QueryProposalsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/gov/v1beta1/proposals\x12\x96\x01\n\x04Vote\x12$.cosmos.gov.v1beta1.QueryVoteRequest\x1a%.cosmos.gov.v1beta1.QueryVoteResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}\x12\x91\x01\n\x05Votes\x12%.cosmos.gov.v1beta1.QueryVotesRequest\x1a&.cosmos.gov.v1beta1.QueryVotesResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/cosmos/gov/v1beta1/proposals/{proposal_id}/votes\x12\x8b\x01\n\x06Params\x12&.cosmos.gov.v1beta1.QueryParamsRequest\x1a\'.cosmos.gov.v1beta1.QueryParamsResponse\"0\x82\xd3\xe4\x93\x02*\x12(/cosmos/gov/v1beta1/params/{params_type}\x12\xa6\x01\n\x07\x44\x65posit\x12\'.cosmos.gov.v1beta1.QueryDepositRequest\x1a(.cosmos.gov.v1beta1.QueryDepositResponse\"H\x82\xd3\xe4\x93\x02\x42\x12@/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}\x12\x9d\x01\n\x08\x44\x65posits\x12(.cosmos.gov.v1beta1.QueryDepositsRequest\x1a).cosmos.gov.v1beta1.QueryDepositsResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits\x12\xa3\x01\n\x0bTallyResult\x12+.cosmos.gov.v1beta1.QueryTallyResultRequest\x1a,.cosmos.gov.v1beta1.QueryTallyResultResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/cosmos/gov/v1beta1/proposals/{proposal_id}/tallyB2Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1' + _QUERYPROPOSALRESPONSE.fields_by_name['proposal']._options = None + _QUERYPROPOSALRESPONSE.fields_by_name['proposal']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPROPOSALSREQUEST.fields_by_name['voter']._options = None + _QUERYPROPOSALSREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYPROPOSALSREQUEST.fields_by_name['depositor']._options = None + _QUERYPROPOSALSREQUEST.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYPROPOSALSREQUEST._options = None + _QUERYPROPOSALSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYPROPOSALSRESPONSE.fields_by_name['proposals']._options = None + _QUERYPROPOSALSRESPONSE.fields_by_name['proposals']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVOTEREQUEST.fields_by_name['voter']._options = None + _QUERYVOTEREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVOTEREQUEST._options = None + _QUERYVOTEREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYVOTERESPONSE.fields_by_name['vote']._options = None + _QUERYVOTERESPONSE.fields_by_name['vote']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVOTESRESPONSE.fields_by_name['votes']._options = None + _QUERYVOTESRESPONSE.fields_by_name['votes']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPARAMSRESPONSE.fields_by_name['voting_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['voting_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPARAMSRESPONSE.fields_by_name['deposit_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['deposit_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPARAMSRESPONSE.fields_by_name['tally_params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['tally_params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDEPOSITREQUEST.fields_by_name['depositor']._options = None + _QUERYDEPOSITREQUEST.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDEPOSITREQUEST._options = None + _QUERYDEPOSITREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDEPOSITRESPONSE.fields_by_name['deposit']._options = None + _QUERYDEPOSITRESPONSE.fields_by_name['deposit']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDEPOSITSRESPONSE.fields_by_name['deposits']._options = None + _QUERYDEPOSITSRESPONSE.fields_by_name['deposits']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYTALLYRESULTRESPONSE.fields_by_name['tally']._options = None + _QUERYTALLYRESULTRESPONSE.fields_by_name['tally']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['Proposal']._options = None + _QUERY.methods_by_name['Proposal']._serialized_options = b'\202\323\344\223\002-\022+/cosmos/gov/v1beta1/proposals/{proposal_id}' + _QUERY.methods_by_name['Proposals']._options = None + _QUERY.methods_by_name['Proposals']._serialized_options = b'\202\323\344\223\002\037\022\035/cosmos/gov/v1beta1/proposals' + _QUERY.methods_by_name['Vote']._options = None + _QUERY.methods_by_name['Vote']._serialized_options = b'\202\323\344\223\002;\0229/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}' + _QUERY.methods_by_name['Votes']._options = None + _QUERY.methods_by_name['Votes']._serialized_options = b'\202\323\344\223\0023\0221/cosmos/gov/v1beta1/proposals/{proposal_id}/votes' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002*\022(/cosmos/gov/v1beta1/params/{params_type}' + _QUERY.methods_by_name['Deposit']._options = None + _QUERY.methods_by_name['Deposit']._serialized_options = b'\202\323\344\223\002B\022@/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}' + _QUERY.methods_by_name['Deposits']._options = None + _QUERY.methods_by_name['Deposits']._serialized_options = b'\202\323\344\223\0026\0224/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits' + _QUERY.methods_by_name['TallyResult']._options = None + _QUERY.methods_by_name['TallyResult']._serialized_options = b'\202\323\344\223\0023\0221/cosmos/gov/v1beta1/proposals/{proposal_id}/tally' + _QUERYPROPOSALREQUEST._serialized_start=226 + _QUERYPROPOSALREQUEST._serialized_end=281 + _QUERYPROPOSALRESPONSE._serialized_start=283 + _QUERYPROPOSALRESPONSE._serialized_end=375 + _QUERYPROPOSALSREQUEST._serialized_start=378 + _QUERYPROPOSALSREQUEST._serialized_end=664 + _QUERYPROPOSALSRESPONSE._serialized_start=667 + _QUERYPROPOSALSRESPONSE._serialized_end=835 + _QUERYVOTEREQUEST._serialized_start=837 + _QUERYVOTEREQUEST._serialized_end=946 + _QUERYVOTERESPONSE._serialized_start=948 + _QUERYVOTERESPONSE._serialized_end=1024 + _QUERYVOTESREQUEST._serialized_start=1026 + _QUERYVOTESREQUEST._serialized_end=1150 + _QUERYVOTESRESPONSE._serialized_start=1153 + _QUERYVOTESRESPONSE._serialized_end=1305 + _QUERYPARAMSREQUEST._serialized_start=1307 + _QUERYPARAMSREQUEST._serialized_end=1360 + _QUERYPARAMSRESPONSE._serialized_start=1363 + _QUERYPARAMSRESPONSE._serialized_end=1630 + _QUERYDEPOSITREQUEST._serialized_start=1632 + _QUERYDEPOSITREQUEST._serialized_end=1752 + _QUERYDEPOSITRESPONSE._serialized_start=1754 + _QUERYDEPOSITRESPONSE._serialized_end=1842 + _QUERYDEPOSITSREQUEST._serialized_start=1844 + _QUERYDEPOSITSREQUEST._serialized_end=1971 + _QUERYDEPOSITSRESPONSE._serialized_start=1974 + _QUERYDEPOSITSRESPONSE._serialized_end=2138 + _QUERYTALLYRESULTREQUEST._serialized_start=2140 + _QUERYTALLYRESULTREQUEST._serialized_end=2198 + _QUERYTALLYRESULTRESPONSE._serialized_start=2200 + _QUERYTALLYRESULTRESPONSE._serialized_end=2292 + _QUERY._serialized_start=2295 + _QUERY._serialized_end=3531 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/gov/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..25d34537 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/query_pb2.pyi @@ -0,0 +1,385 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.gov.v1beta1.gov_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 QueryProposalRequest(google.protobuf.message.Message): + """QueryProposalRequest is the request type for the Query/Proposal RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryProposalRequest = QueryProposalRequest + +@typing_extensions.final +class QueryProposalResponse(google.protobuf.message.Message): + """QueryProposalResponse is the response type for the Query/Proposal RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_FIELD_NUMBER: builtins.int + @property + def proposal(self) -> cosmos.gov.v1beta1.gov_pb2.Proposal: ... + def __init__( + self, + *, + proposal: cosmos.gov.v1beta1.gov_pb2.Proposal | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> None: ... + +global___QueryProposalResponse = QueryProposalResponse + +@typing_extensions.final +class QueryProposalsRequest(google.protobuf.message.Message): + """QueryProposalsRequest is the request type for the Query/Proposals RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_STATUS_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_status: cosmos.gov.v1beta1.gov_pb2.ProposalStatus.ValueType + """proposal_status defines the status of the proposals.""" + voter: builtins.str + """voter defines the voter address for the proposals.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_status: cosmos.gov.v1beta1.gov_pb2.ProposalStatus.ValueType = ..., + voter: builtins.str = ..., + depositor: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["depositor", b"depositor", "pagination", b"pagination", "proposal_status", b"proposal_status", "voter", b"voter"]) -> None: ... + +global___QueryProposalsRequest = QueryProposalsRequest + +@typing_extensions.final +class QueryProposalsResponse(google.protobuf.message.Message): + """QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSALS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: + """proposals defines all the requested governance proposals.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + proposals: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposals", b"proposals"]) -> None: ... + +global___QueryProposalsResponse = QueryProposalsResponse + +@typing_extensions.final +class QueryVoteRequest(google.protobuf.message.Message): + """QueryVoteRequest is the request type for the Query/Vote RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter defines the voter address for the proposals.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___QueryVoteRequest = QueryVoteRequest + +@typing_extensions.final +class QueryVoteResponse(google.protobuf.message.Message): + """QueryVoteResponse is the response type for the Query/Vote RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_FIELD_NUMBER: builtins.int + @property + def vote(self) -> cosmos.gov.v1beta1.gov_pb2.Vote: + """vote defines the queried vote.""" + def __init__( + self, + *, + vote: cosmos.gov.v1beta1.gov_pb2.Vote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> None: ... + +global___QueryVoteResponse = QueryVoteResponse + +@typing_extensions.final +class QueryVotesRequest(google.protobuf.message.Message): + """QueryVotesRequest is the request type for the Query/Votes RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryVotesRequest = QueryVotesRequest + +@typing_extensions.final +class QueryVotesResponse(google.protobuf.message.Message): + """QueryVotesResponse is the response type for the Query/Votes RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: + """votes defines the queried votes.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + votes: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "votes", b"votes"]) -> None: ... + +global___QueryVotesResponse = QueryVotesResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_TYPE_FIELD_NUMBER: builtins.int + params_type: builtins.str + """params_type defines which parameters to query for, can be one of "voting", + "tallying" or "deposit". + """ + def __init__( + self, + *, + params_type: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["params_type", b"params_type"]) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTING_PARAMS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: + """voting_params defines the parameters related to voting.""" + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: + """deposit_params defines the parameters related to deposit.""" + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: + """tally_params defines the parameters related to tally.""" + def __init__( + self, + *, + voting_params: cosmos.gov.v1beta1.gov_pb2.VotingParams | None = ..., + deposit_params: cosmos.gov.v1beta1.gov_pb2.DepositParams | None = ..., + tally_params: cosmos.gov.v1beta1.gov_pb2.TallyParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit_params", b"deposit_params", "tally_params", b"tally_params", "voting_params", b"voting_params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryDepositRequest(google.protobuf.message.Message): + """QueryDepositRequest is the request type for the Query/Deposit RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryDepositRequest = QueryDepositRequest + +@typing_extensions.final +class QueryDepositResponse(google.protobuf.message.Message): + """QueryDepositResponse is the response type for the Query/Deposit RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPOSIT_FIELD_NUMBER: builtins.int + @property + def deposit(self) -> cosmos.gov.v1beta1.gov_pb2.Deposit: + """deposit defines the requested deposit.""" + def __init__( + self, + *, + deposit: cosmos.gov.v1beta1.gov_pb2.Deposit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["deposit", b"deposit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposit", b"deposit"]) -> None: ... + +global___QueryDepositResponse = QueryDepositResponse + +@typing_extensions.final +class QueryDepositsRequest(google.protobuf.message.Message): + """QueryDepositsRequest is the request type for the Query/Deposits RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryDepositsRequest = QueryDepositsRequest + +@typing_extensions.final +class QueryDepositsResponse(google.protobuf.message.Message): + """QueryDepositsResponse is the response type for the Query/Deposits RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPOSITS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: + """deposits defines the requested deposits.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + deposits: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["deposits", b"deposits", "pagination", b"pagination"]) -> None: ... + +global___QueryDepositsResponse = QueryDepositsResponse + +@typing_extensions.final +class QueryTallyResultRequest(google.protobuf.message.Message): + """QueryTallyResultRequest is the request type for the Query/Tally RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryTallyResultRequest = QueryTallyResultRequest + +@typing_extensions.final +class QueryTallyResultResponse(google.protobuf.message.Message): + """QueryTallyResultResponse is the response type for the Query/Tally RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TALLY_FIELD_NUMBER: builtins.int + @property + def tally(self) -> cosmos.gov.v1beta1.gov_pb2.TallyResult: + """tally defines the requested tally.""" + def __init__( + self, + *, + tally: cosmos.gov.v1beta1.gov_pb2.TallyResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> None: ... + +global___QueryTallyResultResponse = QueryTallyResultResponse diff --git a/nibiru_proto/cosmos/gov/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..db9f5bc0 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/query_pb2_grpc.py @@ -0,0 +1,308 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.gov.v1beta1 import query_pb2 as cosmos_dot_gov_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service for gov module + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Proposal = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Proposal', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalResponse.FromString, + ) + self.Proposals = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Proposals', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsResponse.FromString, + ) + self.Vote = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Vote', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteResponse.FromString, + ) + self.Votes = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Votes', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesResponse.FromString, + ) + self.Params = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Params', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.Deposit = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Deposit', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositResponse.FromString, + ) + self.Deposits = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/Deposits', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsResponse.FromString, + ) + self.TallyResult = channel.unary_unary( + '/cosmos.gov.v1beta1.Query/TallyResult', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service for gov module + """ + + def Proposal(self, request, context): + """Proposal queries proposal details based on ProposalID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Proposals(self, request, context): + """Proposals queries all proposals based on given status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vote(self, request, context): + """Vote queries voted information based on proposalID, voterAddr. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Votes(self, request, context): + """Votes queries votes of a given proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params queries all parameters of the gov module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposit(self, request, context): + """Deposit queries single deposit information based proposalID, depositAddr. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposits(self, request, context): + """Deposits queries all deposits of a single proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TallyResult(self, request, context): + """TallyResult queries the tally of a proposal vote. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Proposal': grpc.unary_unary_rpc_method_handler( + servicer.Proposal, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalResponse.SerializeToString, + ), + 'Proposals': grpc.unary_unary_rpc_method_handler( + servicer.Proposals, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsResponse.SerializeToString, + ), + 'Vote': grpc.unary_unary_rpc_method_handler( + servicer.Vote, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteResponse.SerializeToString, + ), + 'Votes': grpc.unary_unary_rpc_method_handler( + servicer.Votes, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'Deposit': grpc.unary_unary_rpc_method_handler( + servicer.Deposit, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositResponse.SerializeToString, + ), + 'Deposits': grpc.unary_unary_rpc_method_handler( + servicer.Deposits, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsResponse.SerializeToString, + ), + 'TallyResult': grpc.unary_unary_rpc_method_handler( + servicer.TallyResult, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultRequest.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.gov.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service for gov module + """ + + @staticmethod + def Proposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Proposal', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Proposals(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Proposals', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryProposalsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Vote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Vote', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Votes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Votes', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryVotesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Params', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Deposit', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposits(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/Deposits', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryDepositsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TallyResult(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Query/TallyResult', + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_query__pb2.QueryTallyResultResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.py new file mode 100644 index 00000000..fa22ea16 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/gov/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.gov.v1beta1 import gov_pb2 as cosmos_dot_gov_dot_v1beta1_dot_gov__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/gov/v1beta1/tx.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1c\x63osmos/gov/v1beta1/gov.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xd4\x02\n\x11MsgSubmitProposal\x12N\n\x07\x63ontent\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1e\xca\xb4-\x1a\x63osmos.gov.v1beta1.ContentR\x07\x63ontent\x12y\n\x0finitial_deposit\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x0einitialDeposit\x12\x34\n\x08proposer\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08proposer:>\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\x80\xdc \x00\x82\xe7\xb0*\x08proposer\x8a\xe7\xb0*\x1c\x63osmos-sdk/MsgSubmitProposal\"R\n\x19MsgSubmitProposalResponse\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\"\xc5\x01\n\x07MsgVote\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x36\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOptionR\x06option:1\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\x80\xdc \x00\x82\xe7\xb0*\x05voter\x8a\xe7\xb0*\x12\x63osmos-sdk/MsgVote\"\x11\n\x0fMsgVoteResponse\"\x80\x02\n\x0fMsgVoteWeighted\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12K\n\x07options\x18\x03 \x03(\x0b\x32&.cosmos.gov.v1beta1.WeightedVoteOptionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07options:9\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\x80\xdc \x00\x82\xe7\xb0*\x05voter\x8a\xe7\xb0*\x1a\x63osmos-sdk/MsgVoteWeighted\"\x19\n\x17MsgVoteWeightedResponse\"\x9f\x02\n\nMsgDeposit\x12\x35\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x14\xea\xde\x1f\x0bproposal_id\xa8\xe7\xb0*\x01R\nproposalId\x12\x36\n\tdepositor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tdepositor\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:8\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\x80\xdc \x00\x82\xe7\xb0*\tdepositor\x8a\xe7\xb0*\x15\x63osmos-sdk/MsgDeposit\"\x14\n\x12MsgDepositResponse2\xf3\x02\n\x03Msg\x12\x66\n\x0eSubmitProposal\x12%.cosmos.gov.v1beta1.MsgSubmitProposal\x1a-.cosmos.gov.v1beta1.MsgSubmitProposalResponse\x12H\n\x04Vote\x12\x1b.cosmos.gov.v1beta1.MsgVote\x1a#.cosmos.gov.v1beta1.MsgVoteResponse\x12`\n\x0cVoteWeighted\x12#.cosmos.gov.v1beta1.MsgVoteWeighted\x1a+.cosmos.gov.v1beta1.MsgVoteWeightedResponse\x12Q\n\x07\x44\x65posit\x12\x1e.cosmos.gov.v1beta1.MsgDeposit\x1a&.cosmos.gov.v1beta1.MsgDepositResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x32Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.gov.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1' + _MSGSUBMITPROPOSAL.fields_by_name['content']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['content']._serialized_options = b'\312\264-\032cosmos.gov.v1beta1.Content' + _MSGSUBMITPROPOSAL.fields_by_name['initial_deposit']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['initial_deposit']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGSUBMITPROPOSAL.fields_by_name['proposer']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['proposer']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSUBMITPROPOSAL._options = None + _MSGSUBMITPROPOSAL._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000\200\334 \000\202\347\260*\010proposer\212\347\260*\034cosmos-sdk/MsgSubmitProposal' + _MSGSUBMITPROPOSALRESPONSE.fields_by_name['proposal_id']._options = None + _MSGSUBMITPROPOSALRESPONSE.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGVOTE.fields_by_name['voter']._options = None + _MSGVOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVOTE._options = None + _MSGVOTE._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000\200\334 \000\202\347\260*\005voter\212\347\260*\022cosmos-sdk/MsgVote' + _MSGVOTEWEIGHTED.fields_by_name['proposal_id']._options = None + _MSGVOTEWEIGHTED.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGVOTEWEIGHTED.fields_by_name['voter']._options = None + _MSGVOTEWEIGHTED.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVOTEWEIGHTED.fields_by_name['options']._options = None + _MSGVOTEWEIGHTED.fields_by_name['options']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGVOTEWEIGHTED._options = None + _MSGVOTEWEIGHTED._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000\200\334 \000\202\347\260*\005voter\212\347\260*\032cosmos-sdk/MsgVoteWeighted' + _MSGDEPOSIT.fields_by_name['proposal_id']._options = None + _MSGDEPOSIT.fields_by_name['proposal_id']._serialized_options = b'\352\336\037\013proposal_id\250\347\260*\001' + _MSGDEPOSIT.fields_by_name['depositor']._options = None + _MSGDEPOSIT.fields_by_name['depositor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGDEPOSIT.fields_by_name['amount']._options = None + _MSGDEPOSIT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGDEPOSIT._options = None + _MSGDEPOSIT._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000\200\334 \000\202\347\260*\tdepositor\212\347\260*\025cosmos-sdk/MsgDeposit' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSUBMITPROPOSAL._serialized_start=234 + _MSGSUBMITPROPOSAL._serialized_end=574 + _MSGSUBMITPROPOSALRESPONSE._serialized_start=576 + _MSGSUBMITPROPOSALRESPONSE._serialized_end=658 + _MSGVOTE._serialized_start=661 + _MSGVOTE._serialized_end=858 + _MSGVOTERESPONSE._serialized_start=860 + _MSGVOTERESPONSE._serialized_end=877 + _MSGVOTEWEIGHTED._serialized_start=880 + _MSGVOTEWEIGHTED._serialized_end=1136 + _MSGVOTEWEIGHTEDRESPONSE._serialized_start=1138 + _MSGVOTEWEIGHTEDRESPONSE._serialized_end=1163 + _MSGDEPOSIT._serialized_start=1166 + _MSGDEPOSIT._serialized_end=1453 + _MSGDEPOSITRESPONSE._serialized_start=1455 + _MSGDEPOSITRESPONSE._serialized_end=1475 + _MSG._serialized_start=1478 + _MSG._serialized_end=1849 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..421f15d7 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2.pyi @@ -0,0 +1,191 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.gov.v1beta1.gov_pb2 +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 MsgSubmitProposal(google.protobuf.message.Message): + """MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + proposal Content. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + INITIAL_DEPOSIT_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + @property + def content(self) -> google.protobuf.any_pb2.Any: + """content is the proposal's content.""" + @property + def initial_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """initial_deposit is the deposit value that must be paid at proposal submission.""" + proposer: builtins.str + """proposer is the account address of the proposer.""" + def __init__( + self, + *, + content: google.protobuf.any_pb2.Any | None = ..., + initial_deposit: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + proposer: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["content", b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "initial_deposit", b"initial_deposit", "proposer", b"proposer"]) -> None: ... + +global___MsgSubmitProposal = MsgSubmitProposal + +@typing_extensions.final +class MsgSubmitProposalResponse(google.protobuf.message.Message): + """MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___MsgSubmitProposalResponse = MsgSubmitProposalResponse + +@typing_extensions.final +class MsgVote(google.protobuf.message.Message): + """MsgVote defines a message to cast a vote.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address for the proposal.""" + option: cosmos.gov.v1beta1.gov_pb2.VoteOption.ValueType + """option defines the vote option.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + option: cosmos.gov.v1beta1.gov_pb2.VoteOption.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["option", b"option", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___MsgVote = MsgVote + +@typing_extensions.final +class MsgVoteResponse(google.protobuf.message.Message): + """MsgVoteResponse defines the Msg/Vote response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVoteResponse = MsgVoteResponse + +@typing_extensions.final +class MsgVoteWeighted(google.protobuf.message.Message): + """MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + voter: builtins.str + """voter is the voter address for the proposal.""" + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption]: + """options defines the weighted vote options.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + options: collections.abc.Iterable[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["options", b"options", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___MsgVoteWeighted = MsgVoteWeighted + +@typing_extensions.final +class MsgVoteWeightedResponse(google.protobuf.message.Message): + """MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVoteWeightedResponse = MsgVoteWeightedResponse + +@typing_extensions.final +class MsgDeposit(google.protobuf.message.Message): + """MsgDeposit defines a message to submit a deposit to an existing proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id defines the unique id of the proposal.""" + depositor: builtins.str + """depositor defines the deposit addresses from the proposals.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount to be deposited by depositor.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + depositor: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "depositor", b"depositor", "proposal_id", b"proposal_id"]) -> None: ... + +global___MsgDeposit = MsgDeposit + +@typing_extensions.final +class MsgDepositResponse(google.protobuf.message.Message): + """MsgDepositResponse defines the Msg/Deposit response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgDepositResponse = MsgDepositResponse diff --git a/nibiru_proto/cosmos/gov/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..63aba073 --- /dev/null +++ b/nibiru_proto/cosmos/gov/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,174 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.gov.v1beta1 import tx_pb2 as cosmos_dot_gov_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the bank Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SubmitProposal = channel.unary_unary( + '/cosmos.gov.v1beta1.Msg/SubmitProposal', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + ) + self.Vote = channel.unary_unary( + '/cosmos.gov.v1beta1.Msg/Vote', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVote.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteResponse.FromString, + ) + self.VoteWeighted = channel.unary_unary( + '/cosmos.gov.v1beta1.Msg/VoteWeighted', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + ) + self.Deposit = channel.unary_unary( + '/cosmos.gov.v1beta1.Msg/Deposit', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDeposit.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDepositResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the bank Msg service. + """ + + def SubmitProposal(self, request, context): + """SubmitProposal defines a method to create new proposal given a content. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vote(self, request, context): + """Vote defines a method to add a vote on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VoteWeighted(self, request, context): + """VoteWeighted defines a method to add a weighted vote on a specific proposal. + + Since: cosmos-sdk 0.43 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Deposit(self, request, context): + """Deposit defines a method to add deposit on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SubmitProposal': grpc.unary_unary_rpc_method_handler( + servicer.SubmitProposal, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposal.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposalResponse.SerializeToString, + ), + 'Vote': grpc.unary_unary_rpc_method_handler( + servicer.Vote, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVote.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteResponse.SerializeToString, + ), + 'VoteWeighted': grpc.unary_unary_rpc_method_handler( + servicer.VoteWeighted, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.SerializeToString, + ), + 'Deposit': grpc.unary_unary_rpc_method_handler( + servicer.Deposit, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDeposit.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDepositResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.gov.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the bank Msg service. + """ + + @staticmethod + def SubmitProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Msg/SubmitProposal', + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Vote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Msg/Vote', + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVote.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VoteWeighted(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Msg/VoteWeighted', + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Deposit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Msg/Deposit', + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDeposit.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDepositResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/group/module/v1/module_pb2.py b/nibiru_proto/cosmos/group/module/v1/module_pb2.py new file mode 100644 index 00000000..dfa11e3f --- /dev/null +++ b/nibiru_proto/cosmos/group/module/v1/module_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/group/module/v1/module.proto\x12\x16\x63osmos.group.module.v1\x1a cosmos/app/v1alpha1/module.proto\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x11\x61mino/amino.proto\"\xbc\x01\n\x06Module\x12Z\n\x14max_execution_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x12maxExecutionPeriod\x12(\n\x10max_metadata_len\x18\x02 \x01(\x04R\x0emaxMetadataLen:,\xba\xc0\x96\xda\x01&\n$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE.fields_by_name['max_execution_period']._options = None + _MODULE.fields_by_name['max_execution_period']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001&\n$github.com/cosmos/cosmos-sdk/x/group' + _MODULE._serialized_start=171 + _MODULE._serialized_end=359 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/group/module/v1/module_pb2.pyi new file mode 100644 index 00000000..7d5f7372 --- /dev/null +++ b/nibiru_proto/cosmos/group/module/v1/module_pb2.pyi @@ -0,0 +1,44 @@ +""" +@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 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 of the group module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_EXECUTION_PERIOD_FIELD_NUMBER: builtins.int + MAX_METADATA_LEN_FIELD_NUMBER: builtins.int + @property + def max_execution_period(self) -> google.protobuf.duration_pb2.Duration: + """max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec + to execute the proposal. + """ + max_metadata_len: builtins.int + """max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. + Defaults to 255 if not explicitly set. + """ + def __init__( + self, + *, + max_execution_period: google.protobuf.duration_pb2.Duration | None = ..., + max_metadata_len: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["max_execution_period", b"max_execution_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["max_execution_period", b"max_execution_period", "max_metadata_len", b"max_metadata_len"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/group/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/group/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/group/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/group/v1/events_pb2.py b/nibiru_proto/cosmos/group/v1/events_pb2.py new file mode 100644 index 00000000..8036b5c9 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/events_pb2.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/v1/events.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.group.v1 import types_pb2 as cosmos_dot_group_dot_v1_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/group/v1/events.proto\x12\x0f\x63osmos.group.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1b\x63osmos/group/v1/types.proto\"-\n\x10\x45ventCreateGroup\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\"-\n\x10\x45ventUpdateGroup\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\"L\n\x16\x45ventCreateGroupPolicy\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"L\n\x16\x45ventUpdateGroupPolicy\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"6\n\x13\x45ventSubmitProposal\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"8\n\x15\x45ventWithdrawProposal\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\",\n\tEventVote\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"\x81\x01\n\tEventExec\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12?\n\x06result\x18\x02 \x01(\x0e\x32\'.cosmos.group.v1.ProposalExecutorResultR\x06result\x12\x12\n\x04logs\x18\x03 \x01(\tR\x04logs\"`\n\x0f\x45ventLeaveGroup\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\x12\x32\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"\xb0\x01\n\x13\x45ventProposalPruned\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cosmos.group.v1.ProposalStatusR\x06status\x12?\n\x0ctally_result\x18\x03 \x01(\x0b\x32\x1c.cosmos.group.v1.TallyResultR\x0btallyResultB&Z$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.v1.events_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/group' + _EVENTCREATEGROUPPOLICY.fields_by_name['address']._options = None + _EVENTCREATEGROUPPOLICY.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTUPDATEGROUPPOLICY.fields_by_name['address']._options = None + _EVENTUPDATEGROUPPOLICY.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTLEAVEGROUP.fields_by_name['address']._options = None + _EVENTLEAVEGROUP.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _EVENTCREATEGROUP._serialized_start=105 + _EVENTCREATEGROUP._serialized_end=150 + _EVENTUPDATEGROUP._serialized_start=152 + _EVENTUPDATEGROUP._serialized_end=197 + _EVENTCREATEGROUPPOLICY._serialized_start=199 + _EVENTCREATEGROUPPOLICY._serialized_end=275 + _EVENTUPDATEGROUPPOLICY._serialized_start=277 + _EVENTUPDATEGROUPPOLICY._serialized_end=353 + _EVENTSUBMITPROPOSAL._serialized_start=355 + _EVENTSUBMITPROPOSAL._serialized_end=409 + _EVENTWITHDRAWPROPOSAL._serialized_start=411 + _EVENTWITHDRAWPROPOSAL._serialized_end=467 + _EVENTVOTE._serialized_start=469 + _EVENTVOTE._serialized_end=513 + _EVENTEXEC._serialized_start=516 + _EVENTEXEC._serialized_end=645 + _EVENTLEAVEGROUP._serialized_start=647 + _EVENTLEAVEGROUP._serialized_end=743 + _EVENTPROPOSALPRUNED._serialized_start=746 + _EVENTPROPOSALPRUNED._serialized_end=922 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/v1/events_pb2.pyi b/nibiru_proto/cosmos/group/v1/events_pb2.pyi new file mode 100644 index 00000000..7afd71b5 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/events_pb2.pyi @@ -0,0 +1,218 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import cosmos.group.v1.types_pb2 +import google.protobuf.descriptor +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 EventCreateGroup(google.protobuf.message.Message): + """EventCreateGroup is an event emitted when a group is created.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id"]) -> None: ... + +global___EventCreateGroup = EventCreateGroup + +@typing_extensions.final +class EventUpdateGroup(google.protobuf.message.Message): + """EventUpdateGroup is an event emitted when a group is updated.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id"]) -> None: ... + +global___EventUpdateGroup = EventUpdateGroup + +@typing_extensions.final +class EventCreateGroupPolicy(google.protobuf.message.Message): + """EventCreateGroupPolicy is an event emitted when a group policy is created.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the group policy.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___EventCreateGroupPolicy = EventCreateGroupPolicy + +@typing_extensions.final +class EventUpdateGroupPolicy(google.protobuf.message.Message): + """EventUpdateGroupPolicy is an event emitted when a group policy is updated.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the group policy.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___EventUpdateGroupPolicy = EventUpdateGroupPolicy + +@typing_extensions.final +class EventSubmitProposal(google.protobuf.message.Message): + """EventSubmitProposal is an event emitted when a proposal is created.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___EventSubmitProposal = EventSubmitProposal + +@typing_extensions.final +class EventWithdrawProposal(google.protobuf.message.Message): + """EventWithdrawProposal is an event emitted when a proposal is withdrawn.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___EventWithdrawProposal = EventWithdrawProposal + +@typing_extensions.final +class EventVote(google.protobuf.message.Message): + """EventVote is an event emitted when a voter votes on a proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___EventVote = EventVote + +@typing_extensions.final +class EventExec(google.protobuf.message.Message): + """EventExec is an event emitted when a proposal is executed.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + LOGS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of the proposal.""" + result: cosmos.group.v1.types_pb2.ProposalExecutorResult.ValueType + """result is the proposal execution result.""" + logs: builtins.str + """logs contains error logs in case the execution result is FAILURE.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + result: cosmos.group.v1.types_pb2.ProposalExecutorResult.ValueType = ..., + logs: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["logs", b"logs", "proposal_id", b"proposal_id", "result", b"result"]) -> None: ... + +global___EventExec = EventExec + +@typing_extensions.final +class EventLeaveGroup(google.protobuf.message.Message): + """EventLeaveGroup is an event emitted when group member leaves the group.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + address: builtins.str + """address is the account address of the group member.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "group_id", b"group_id"]) -> None: ... + +global___EventLeaveGroup = EventLeaveGroup + +@typing_extensions.final +class EventProposalPruned(google.protobuf.message.Message): + """EventProposalPruned is an event emitted when a proposal is pruned.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + TALLY_RESULT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of the proposal.""" + status: cosmos.group.v1.types_pb2.ProposalStatus.ValueType + """status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN).""" + @property + def tally_result(self) -> cosmos.group.v1.types_pb2.TallyResult: + """tally_result is the proposal tally result (when applicable).""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + status: cosmos.group.v1.types_pb2.ProposalStatus.ValueType = ..., + tally_result: cosmos.group.v1.types_pb2.TallyResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tally_result", b"tally_result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id", "status", b"status", "tally_result", b"tally_result"]) -> None: ... + +global___EventProposalPruned = EventProposalPruned diff --git a/nibiru_proto/cosmos/group/v1/events_pb2_grpc.py b/nibiru_proto/cosmos/group/v1/events_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/events_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/group/v1/genesis_pb2.py b/nibiru_proto/cosmos/group/v1/genesis_pb2.py new file mode 100644 index 00000000..3db88147 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/genesis_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.group.v1 import types_pb2 as cosmos_dot_group_dot_v1_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63osmos/group/v1/genesis.proto\x12\x0f\x63osmos.group.v1\x1a\x1b\x63osmos/group/v1/types.proto\"\x9e\x03\n\x0cGenesisState\x12\x1b\n\tgroup_seq\x18\x01 \x01(\x04R\x08groupSeq\x12\x32\n\x06groups\x18\x02 \x03(\x0b\x32\x1a.cosmos.group.v1.GroupInfoR\x06groups\x12\x41\n\rgroup_members\x18\x03 \x03(\x0b\x32\x1c.cosmos.group.v1.GroupMemberR\x0cgroupMembers\x12(\n\x10group_policy_seq\x18\x04 \x01(\x04R\x0egroupPolicySeq\x12G\n\x0egroup_policies\x18\x05 \x03(\x0b\x32 .cosmos.group.v1.GroupPolicyInfoR\rgroupPolicies\x12!\n\x0cproposal_seq\x18\x06 \x01(\x04R\x0bproposalSeq\x12\x37\n\tproposals\x18\x07 \x03(\x0b\x32\x19.cosmos.group.v1.ProposalR\tproposals\x12+\n\x05votes\x18\x08 \x03(\x0b\x32\x15.cosmos.group.v1.VoteR\x05votesB&Z$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/group' + _GENESISSTATE._serialized_start=80 + _GENESISSTATE._serialized_end=494 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/v1/genesis_pb2.pyi b/nibiru_proto/cosmos/group/v1/genesis_pb2.pyi new file mode 100644 index 00000000..81d11180 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/genesis_pb2.pyi @@ -0,0 +1,75 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.group.v1.types_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the group module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_SEQ_FIELD_NUMBER: builtins.int + GROUPS_FIELD_NUMBER: builtins.int + GROUP_MEMBERS_FIELD_NUMBER: builtins.int + GROUP_POLICY_SEQ_FIELD_NUMBER: builtins.int + GROUP_POLICIES_FIELD_NUMBER: builtins.int + PROPOSAL_SEQ_FIELD_NUMBER: builtins.int + PROPOSALS_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + group_seq: builtins.int + """group_seq is the group table orm.Sequence, + it is used to get the next group ID. + """ + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupInfo]: + """groups is the list of groups info.""" + @property + def group_members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupMember]: + """group_members is the list of groups members.""" + group_policy_seq: builtins.int + """group_policy_seq is the group policy table orm.Sequence, + it is used to generate the next group policy account address. + """ + @property + def group_policies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupPolicyInfo]: + """group_policies is the list of group policies info.""" + proposal_seq: builtins.int + """proposal_seq is the proposal table orm.Sequence, + it is used to get the next proposal ID. + """ + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.Proposal]: + """proposals is the list of proposals.""" + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.Vote]: + """votes is the list of votes.""" + def __init__( + self, + *, + group_seq: builtins.int = ..., + groups: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupInfo] | None = ..., + group_members: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupMember] | None = ..., + group_policy_seq: builtins.int = ..., + group_policies: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupPolicyInfo] | None = ..., + proposal_seq: builtins.int = ..., + proposals: collections.abc.Iterable[cosmos.group.v1.types_pb2.Proposal] | None = ..., + votes: collections.abc.Iterable[cosmos.group.v1.types_pb2.Vote] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_members", b"group_members", "group_policies", b"group_policies", "group_policy_seq", b"group_policy_seq", "group_seq", b"group_seq", "groups", b"groups", "proposal_seq", b"proposal_seq", "proposals", b"proposals", "votes", b"votes"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/group/v1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/group/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/group/v1/query_pb2.py b/nibiru_proto/cosmos/group/v1/query_pb2.py new file mode 100644 index 00000000..2b92e43d --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/query_pb2.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.group.v1 import types_pb2 as cosmos_dot_group_dot_v1_dot_types__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/group/v1/query.proto\x12\x0f\x63osmos.group.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1b\x63osmos/group/v1/types.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"2\n\x15QueryGroupInfoRequest\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\"H\n\x16QueryGroupInfoResponse\x12.\n\x04info\x18\x01 \x01(\x0b\x32\x1a.cosmos.group.v1.GroupInfoR\x04info\"Q\n\x1bQueryGroupPolicyInfoRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"T\n\x1cQueryGroupPolicyInfoResponse\x12\x34\n\x04info\x18\x01 \x01(\x0b\x32 .cosmos.group.v1.GroupPolicyInfoR\x04info\"}\n\x18QueryGroupMembersRequest\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x9c\x01\n\x19QueryGroupMembersResponse\x12\x36\n\x07members\x18\x01 \x03(\x0b\x32\x1c.cosmos.group.v1.GroupMemberR\x07members\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x93\x01\n\x19QueryGroupsByAdminRequest\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x99\x01\n\x1aQueryGroupsByAdminResponse\x12\x32\n\x06groups\x18\x01 \x03(\x0b\x32\x1a.cosmos.group.v1.GroupInfoR\x06groups\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x85\x01\n QueryGroupPoliciesByGroupRequest\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb5\x01\n!QueryGroupPoliciesByGroupResponse\x12G\n\x0egroup_policies\x18\x01 \x03(\x0b\x32 .cosmos.group.v1.GroupPolicyInfoR\rgroupPolicies\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x9a\x01\n QueryGroupPoliciesByAdminRequest\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb5\x01\n!QueryGroupPoliciesByAdminResponse\x12G\n\x0egroup_policies\x18\x01 \x03(\x0b\x32 .cosmos.group.v1.GroupPolicyInfoR\rgroupPolicies\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"7\n\x14QueryProposalRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"N\n\x15QueryProposalResponse\x12\x35\n\x08proposal\x18\x01 \x01(\x0b\x32\x19.cosmos.group.v1.ProposalR\x08proposal\"\xa0\x01\n\"QueryProposalsByGroupPolicyRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa7\x01\n#QueryProposalsByGroupPolicyResponse\x12\x37\n\tproposals\x18\x01 \x03(\x0b\x32\x19.cosmos.group.v1.ProposalR\tproposals\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"r\n\x1fQueryVoteByProposalVoterRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\"M\n QueryVoteByProposalVoterResponse\x12)\n\x04vote\x18\x01 \x01(\x0b\x32\x15.cosmos.group.v1.VoteR\x04vote\"\x86\x01\n\x1bQueryVotesByProposalRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x94\x01\n\x1cQueryVotesByProposalResponse\x12+\n\x05votes\x18\x01 \x03(\x0b\x32\x15.cosmos.group.v1.VoteR\x05votes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x92\x01\n\x18QueryVotesByVoterRequest\x12.\n\x05voter\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x91\x01\n\x19QueryVotesByVoterResponse\x12+\n\x05votes\x18\x01 \x03(\x0b\x32\x15.cosmos.group.v1.VoteR\x05votes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x98\x01\n\x1aQueryGroupsByMemberRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x9a\x01\n\x1bQueryGroupsByMemberResponse\x12\x32\n\x06groups\x18\x01 \x03(\x0b\x32\x1a.cosmos.group.v1.GroupInfoR\x06groups\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\":\n\x17QueryTallyResultRequest\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"Y\n\x18QueryTallyResultResponse\x12=\n\x05tally\x18\x01 \x01(\x0b\x32\x1c.cosmos.group.v1.TallyResultB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05tally\"\\\n\x12QueryGroupsRequest\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x92\x01\n\x13QueryGroupsResponse\x12\x32\n\x06groups\x18\x01 \x03(\x0b\x32\x1a.cosmos.group.v1.GroupInfoR\x06groups\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xfb\x11\n\x05Query\x12\x8c\x01\n\tGroupInfo\x12&.cosmos.group.v1.QueryGroupInfoRequest\x1a\'.cosmos.group.v1.QueryGroupInfoResponse\".\x82\xd3\xe4\x93\x02(\x12&/cosmos/group/v1/group_info/{group_id}\x12\xa4\x01\n\x0fGroupPolicyInfo\x12,.cosmos.group.v1.QueryGroupPolicyInfoRequest\x1a-.cosmos.group.v1.QueryGroupPolicyInfoResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/group/v1/group_policy_info/{address}\x12\x98\x01\n\x0cGroupMembers\x12).cosmos.group.v1.QueryGroupMembersRequest\x1a*.cosmos.group.v1.QueryGroupMembersResponse\"1\x82\xd3\xe4\x93\x02+\x12)/cosmos/group/v1/group_members/{group_id}\x12\x9a\x01\n\rGroupsByAdmin\x12*.cosmos.group.v1.QueryGroupsByAdminRequest\x1a+.cosmos.group.v1.QueryGroupsByAdminResponse\"0\x82\xd3\xe4\x93\x02*\x12(/cosmos/group/v1/groups_by_admin/{admin}\x12\xba\x01\n\x14GroupPoliciesByGroup\x12\x31.cosmos.group.v1.QueryGroupPoliciesByGroupRequest\x1a\x32.cosmos.group.v1.QueryGroupPoliciesByGroupResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/cosmos/group/v1/group_policies_by_group/{group_id}\x12\xb7\x01\n\x14GroupPoliciesByAdmin\x12\x31.cosmos.group.v1.QueryGroupPoliciesByAdminRequest\x1a\x32.cosmos.group.v1.QueryGroupPoliciesByAdminResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/cosmos/group/v1/group_policies_by_admin/{admin}\x12\x8a\x01\n\x08Proposal\x12%.cosmos.group.v1.QueryProposalRequest\x1a&.cosmos.group.v1.QueryProposalResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/group/v1/proposal/{proposal_id}\x12\xc1\x01\n\x16ProposalsByGroupPolicy\x12\x33.cosmos.group.v1.QueryProposalsByGroupPolicyRequest\x1a\x34.cosmos.group.v1.QueryProposalsByGroupPolicyResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/group/v1/proposals_by_group_policy/{address}\x12\xc1\x01\n\x13VoteByProposalVoter\x12\x30.cosmos.group.v1.QueryVoteByProposalVoterRequest\x1a\x31.cosmos.group.v1.QueryVoteByProposalVoterResponse\"E\x82\xd3\xe4\x93\x02?\x12=/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}\x12\xa8\x01\n\x0fVotesByProposal\x12,.cosmos.group.v1.QueryVotesByProposalRequest\x1a-.cosmos.group.v1.QueryVotesByProposalResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/cosmos/group/v1/votes_by_proposal/{proposal_id}\x12\x96\x01\n\x0cVotesByVoter\x12).cosmos.group.v1.QueryVotesByVoterRequest\x1a*.cosmos.group.v1.QueryVotesByVoterResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/group/v1/votes_by_voter/{voter}\x12\xa0\x01\n\x0eGroupsByMember\x12+.cosmos.group.v1.QueryGroupsByMemberRequest\x1a,.cosmos.group.v1.QueryGroupsByMemberResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/group/v1/groups_by_member/{address}\x12\x9a\x01\n\x0bTallyResult\x12(.cosmos.group.v1.QueryTallyResultRequest\x1a).cosmos.group.v1.QueryTallyResultResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./cosmos/group/v1/proposals/{proposal_id}/tally\x12t\n\x06Groups\x12#.cosmos.group.v1.QueryGroupsRequest\x1a$.cosmos.group.v1.QueryGroupsResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/cosmos/group/v1/groupsB&Z$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/group' + _QUERYGROUPPOLICYINFOREQUEST.fields_by_name['address']._options = None + _QUERYGROUPPOLICYINFOREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGROUPSBYADMINREQUEST.fields_by_name['admin']._options = None + _QUERYGROUPSBYADMINREQUEST.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGROUPPOLICIESBYADMINREQUEST.fields_by_name['admin']._options = None + _QUERYGROUPPOLICIESBYADMINREQUEST.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYPROPOSALSBYGROUPPOLICYREQUEST.fields_by_name['address']._options = None + _QUERYPROPOSALSBYGROUPPOLICYREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVOTEBYPROPOSALVOTERREQUEST.fields_by_name['voter']._options = None + _QUERYVOTEBYPROPOSALVOTERREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVOTESBYVOTERREQUEST.fields_by_name['voter']._options = None + _QUERYVOTESBYVOTERREQUEST.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYGROUPSBYMEMBERREQUEST.fields_by_name['address']._options = None + _QUERYGROUPSBYMEMBERREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYTALLYRESULTRESPONSE.fields_by_name['tally']._options = None + _QUERYTALLYRESULTRESPONSE.fields_by_name['tally']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['GroupInfo']._options = None + _QUERY.methods_by_name['GroupInfo']._serialized_options = b'\202\323\344\223\002(\022&/cosmos/group/v1/group_info/{group_id}' + _QUERY.methods_by_name['GroupPolicyInfo']._options = None + _QUERY.methods_by_name['GroupPolicyInfo']._serialized_options = b'\202\323\344\223\002.\022,/cosmos/group/v1/group_policy_info/{address}' + _QUERY.methods_by_name['GroupMembers']._options = None + _QUERY.methods_by_name['GroupMembers']._serialized_options = b'\202\323\344\223\002+\022)/cosmos/group/v1/group_members/{group_id}' + _QUERY.methods_by_name['GroupsByAdmin']._options = None + _QUERY.methods_by_name['GroupsByAdmin']._serialized_options = b'\202\323\344\223\002*\022(/cosmos/group/v1/groups_by_admin/{admin}' + _QUERY.methods_by_name['GroupPoliciesByGroup']._options = None + _QUERY.methods_by_name['GroupPoliciesByGroup']._serialized_options = b'\202\323\344\223\0025\0223/cosmos/group/v1/group_policies_by_group/{group_id}' + _QUERY.methods_by_name['GroupPoliciesByAdmin']._options = None + _QUERY.methods_by_name['GroupPoliciesByAdmin']._serialized_options = b'\202\323\344\223\0022\0220/cosmos/group/v1/group_policies_by_admin/{admin}' + _QUERY.methods_by_name['Proposal']._options = None + _QUERY.methods_by_name['Proposal']._serialized_options = b'\202\323\344\223\002)\022\'/cosmos/group/v1/proposal/{proposal_id}' + _QUERY.methods_by_name['ProposalsByGroupPolicy']._options = None + _QUERY.methods_by_name['ProposalsByGroupPolicy']._serialized_options = b'\202\323\344\223\0026\0224/cosmos/group/v1/proposals_by_group_policy/{address}' + _QUERY.methods_by_name['VoteByProposalVoter']._options = None + _QUERY.methods_by_name['VoteByProposalVoter']._serialized_options = b'\202\323\344\223\002?\022=/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}' + _QUERY.methods_by_name['VotesByProposal']._options = None + _QUERY.methods_by_name['VotesByProposal']._serialized_options = b'\202\323\344\223\0022\0220/cosmos/group/v1/votes_by_proposal/{proposal_id}' + _QUERY.methods_by_name['VotesByVoter']._options = None + _QUERY.methods_by_name['VotesByVoter']._serialized_options = b'\202\323\344\223\002)\022\'/cosmos/group/v1/votes_by_voter/{voter}' + _QUERY.methods_by_name['GroupsByMember']._options = None + _QUERY.methods_by_name['GroupsByMember']._serialized_options = b'\202\323\344\223\002-\022+/cosmos/group/v1/groups_by_member/{address}' + _QUERY.methods_by_name['TallyResult']._options = None + _QUERY.methods_by_name['TallyResult']._serialized_options = b'\202\323\344\223\0020\022./cosmos/group/v1/proposals/{proposal_id}/tally' + _QUERY.methods_by_name['Groups']._options = None + _QUERY.methods_by_name['Groups']._serialized_options = b'\202\323\344\223\002\031\022\027/cosmos/group/v1/groups' + _QUERYGROUPINFOREQUEST._serialized_start=219 + _QUERYGROUPINFOREQUEST._serialized_end=269 + _QUERYGROUPINFORESPONSE._serialized_start=271 + _QUERYGROUPINFORESPONSE._serialized_end=343 + _QUERYGROUPPOLICYINFOREQUEST._serialized_start=345 + _QUERYGROUPPOLICYINFOREQUEST._serialized_end=426 + _QUERYGROUPPOLICYINFORESPONSE._serialized_start=428 + _QUERYGROUPPOLICYINFORESPONSE._serialized_end=512 + _QUERYGROUPMEMBERSREQUEST._serialized_start=514 + _QUERYGROUPMEMBERSREQUEST._serialized_end=639 + _QUERYGROUPMEMBERSRESPONSE._serialized_start=642 + _QUERYGROUPMEMBERSRESPONSE._serialized_end=798 + _QUERYGROUPSBYADMINREQUEST._serialized_start=801 + _QUERYGROUPSBYADMINREQUEST._serialized_end=948 + _QUERYGROUPSBYADMINRESPONSE._serialized_start=951 + _QUERYGROUPSBYADMINRESPONSE._serialized_end=1104 + _QUERYGROUPPOLICIESBYGROUPREQUEST._serialized_start=1107 + _QUERYGROUPPOLICIESBYGROUPREQUEST._serialized_end=1240 + _QUERYGROUPPOLICIESBYGROUPRESPONSE._serialized_start=1243 + _QUERYGROUPPOLICIESBYGROUPRESPONSE._serialized_end=1424 + _QUERYGROUPPOLICIESBYADMINREQUEST._serialized_start=1427 + _QUERYGROUPPOLICIESBYADMINREQUEST._serialized_end=1581 + _QUERYGROUPPOLICIESBYADMINRESPONSE._serialized_start=1584 + _QUERYGROUPPOLICIESBYADMINRESPONSE._serialized_end=1765 + _QUERYPROPOSALREQUEST._serialized_start=1767 + _QUERYPROPOSALREQUEST._serialized_end=1822 + _QUERYPROPOSALRESPONSE._serialized_start=1824 + _QUERYPROPOSALRESPONSE._serialized_end=1902 + _QUERYPROPOSALSBYGROUPPOLICYREQUEST._serialized_start=1905 + _QUERYPROPOSALSBYGROUPPOLICYREQUEST._serialized_end=2065 + _QUERYPROPOSALSBYGROUPPOLICYRESPONSE._serialized_start=2068 + _QUERYPROPOSALSBYGROUPPOLICYRESPONSE._serialized_end=2235 + _QUERYVOTEBYPROPOSALVOTERREQUEST._serialized_start=2237 + _QUERYVOTEBYPROPOSALVOTERREQUEST._serialized_end=2351 + _QUERYVOTEBYPROPOSALVOTERRESPONSE._serialized_start=2353 + _QUERYVOTEBYPROPOSALVOTERRESPONSE._serialized_end=2430 + _QUERYVOTESBYPROPOSALREQUEST._serialized_start=2433 + _QUERYVOTESBYPROPOSALREQUEST._serialized_end=2567 + _QUERYVOTESBYPROPOSALRESPONSE._serialized_start=2570 + _QUERYVOTESBYPROPOSALRESPONSE._serialized_end=2718 + _QUERYVOTESBYVOTERREQUEST._serialized_start=2721 + _QUERYVOTESBYVOTERREQUEST._serialized_end=2867 + _QUERYVOTESBYVOTERRESPONSE._serialized_start=2870 + _QUERYVOTESBYVOTERRESPONSE._serialized_end=3015 + _QUERYGROUPSBYMEMBERREQUEST._serialized_start=3018 + _QUERYGROUPSBYMEMBERREQUEST._serialized_end=3170 + _QUERYGROUPSBYMEMBERRESPONSE._serialized_start=3173 + _QUERYGROUPSBYMEMBERRESPONSE._serialized_end=3327 + _QUERYTALLYRESULTREQUEST._serialized_start=3329 + _QUERYTALLYRESULTREQUEST._serialized_end=3387 + _QUERYTALLYRESULTRESPONSE._serialized_start=3389 + _QUERYTALLYRESULTRESPONSE._serialized_end=3478 + _QUERYGROUPSREQUEST._serialized_start=3480 + _QUERYGROUPSREQUEST._serialized_end=3572 + _QUERYGROUPSRESPONSE._serialized_start=3575 + _QUERYGROUPSRESPONSE._serialized_end=3721 + _QUERY._serialized_start=3724 + _QUERY._serialized_end=6023 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/v1/query_pb2.pyi b/nibiru_proto/cosmos/group/v1/query_pb2.pyi new file mode 100644 index 00000000..3d29c5c6 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/query_pb2.pyi @@ -0,0 +1,656 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.group.v1.types_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 QueryGroupInfoRequest(google.protobuf.message.Message): + """QueryGroupInfoRequest is the Query/GroupInfo request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id"]) -> None: ... + +global___QueryGroupInfoRequest = QueryGroupInfoRequest + +@typing_extensions.final +class QueryGroupInfoResponse(google.protobuf.message.Message): + """QueryGroupInfoResponse is the Query/GroupInfo response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> cosmos.group.v1.types_pb2.GroupInfo: + """info is the GroupInfo of the group.""" + def __init__( + self, + *, + info: cosmos.group.v1.types_pb2.GroupInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... + +global___QueryGroupInfoResponse = QueryGroupInfoResponse + +@typing_extensions.final +class QueryGroupPolicyInfoRequest(google.protobuf.message.Message): + """QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the group policy.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___QueryGroupPolicyInfoRequest = QueryGroupPolicyInfoRequest + +@typing_extensions.final +class QueryGroupPolicyInfoResponse(google.protobuf.message.Message): + """QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> cosmos.group.v1.types_pb2.GroupPolicyInfo: + """info is the GroupPolicyInfo of the group policy.""" + def __init__( + self, + *, + info: cosmos.group.v1.types_pb2.GroupPolicyInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... + +global___QueryGroupPolicyInfoResponse = QueryGroupPolicyInfoResponse + +@typing_extensions.final +class QueryGroupMembersRequest(google.protobuf.message.Message): + """QueryGroupMembersRequest is the Query/GroupMembers request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupMembersRequest = QueryGroupMembersRequest + +@typing_extensions.final +class QueryGroupMembersResponse(google.protobuf.message.Message): + """QueryGroupMembersResponse is the Query/GroupMembersResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MEMBERS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupMember]: + """members are the members of the group with given group_id.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + members: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupMember] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["members", b"members", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupMembersResponse = QueryGroupMembersResponse + +@typing_extensions.final +class QueryGroupsByAdminRequest(google.protobuf.message.Message): + """QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of a group's admin.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + admin: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupsByAdminRequest = QueryGroupsByAdminRequest + +@typing_extensions.final +class QueryGroupsByAdminResponse(google.protobuf.message.Message): + """QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUPS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupInfo]: + """groups are the groups info with the provided admin.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + groups: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupsByAdminResponse = QueryGroupsByAdminResponse + +@typing_extensions.final +class QueryGroupPoliciesByGroupRequest(google.protobuf.message.Message): + """QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group policy's group.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupPoliciesByGroupRequest = QueryGroupPoliciesByGroupRequest + +@typing_extensions.final +class QueryGroupPoliciesByGroupResponse(google.protobuf.message.Message): + """QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_POLICIES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def group_policies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupPolicyInfo]: + """group_policies are the group policies info associated with the provided group.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + group_policies: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupPolicyInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["group_policies", b"group_policies", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupPoliciesByGroupResponse = QueryGroupPoliciesByGroupResponse + +@typing_extensions.final +class QueryGroupPoliciesByAdminRequest(google.protobuf.message.Message): + """QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the admin address of the group policy.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + admin: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupPoliciesByAdminRequest = QueryGroupPoliciesByAdminRequest + +@typing_extensions.final +class QueryGroupPoliciesByAdminResponse(google.protobuf.message.Message): + """QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_POLICIES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def group_policies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupPolicyInfo]: + """group_policies are the group policies info with provided admin.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + group_policies: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupPolicyInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["group_policies", b"group_policies", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupPoliciesByAdminResponse = QueryGroupPoliciesByAdminResponse + +@typing_extensions.final +class QueryProposalRequest(google.protobuf.message.Message): + """QueryProposalRequest is the Query/Proposal request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of a proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryProposalRequest = QueryProposalRequest + +@typing_extensions.final +class QueryProposalResponse(google.protobuf.message.Message): + """QueryProposalResponse is the Query/Proposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_FIELD_NUMBER: builtins.int + @property + def proposal(self) -> cosmos.group.v1.types_pb2.Proposal: + """proposal is the proposal info.""" + def __init__( + self, + *, + proposal: cosmos.group.v1.types_pb2.Proposal | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal", b"proposal"]) -> None: ... + +global___QueryProposalResponse = QueryProposalResponse + +@typing_extensions.final +class QueryProposalsByGroupPolicyRequest(google.protobuf.message.Message): + """QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the group policy related to proposals.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + address: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "pagination", b"pagination"]) -> None: ... + +global___QueryProposalsByGroupPolicyRequest = QueryProposalsByGroupPolicyRequest + +@typing_extensions.final +class QueryProposalsByGroupPolicyResponse(google.protobuf.message.Message): + """QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSALS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.Proposal]: + """proposals are the proposals with given group policy.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + proposals: collections.abc.Iterable[cosmos.group.v1.types_pb2.Proposal] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposals", b"proposals"]) -> None: ... + +global___QueryProposalsByGroupPolicyResponse = QueryProposalsByGroupPolicyResponse + +@typing_extensions.final +class QueryVoteByProposalVoterRequest(google.protobuf.message.Message): + """QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of a proposal.""" + voter: builtins.str + """voter is a proposal voter account address.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___QueryVoteByProposalVoterRequest = QueryVoteByProposalVoterRequest + +@typing_extensions.final +class QueryVoteByProposalVoterResponse(google.protobuf.message.Message): + """QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_FIELD_NUMBER: builtins.int + @property + def vote(self) -> cosmos.group.v1.types_pb2.Vote: + """vote is the vote with given proposal_id and voter.""" + def __init__( + self, + *, + vote: cosmos.group.v1.types_pb2.Vote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["vote", b"vote"]) -> None: ... + +global___QueryVoteByProposalVoterResponse = QueryVoteByProposalVoterResponse + +@typing_extensions.final +class QueryVotesByProposalRequest(google.protobuf.message.Message): + """QueryVotesByProposalRequest is the Query/VotesByProposal request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique ID of a proposal.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "proposal_id", b"proposal_id"]) -> None: ... + +global___QueryVotesByProposalRequest = QueryVotesByProposalRequest + +@typing_extensions.final +class QueryVotesByProposalResponse(google.protobuf.message.Message): + """QueryVotesByProposalResponse is the Query/VotesByProposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.Vote]: + """votes are the list of votes for given proposal_id.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + votes: collections.abc.Iterable[cosmos.group.v1.types_pb2.Vote] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "votes", b"votes"]) -> None: ... + +global___QueryVotesByProposalResponse = QueryVotesByProposalResponse + +@typing_extensions.final +class QueryVotesByVoterRequest(google.protobuf.message.Message): + """QueryVotesByVoterRequest is the Query/VotesByVoter request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTER_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + voter: builtins.str + """voter is a proposal voter account address.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + voter: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "voter", b"voter"]) -> None: ... + +global___QueryVotesByVoterRequest = QueryVotesByVoterRequest + +@typing_extensions.final +class QueryVotesByVoterResponse(google.protobuf.message.Message): + """QueryVotesByVoterResponse is the Query/VotesByVoter response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.Vote]: + """votes are the list of votes by given voter.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + votes: collections.abc.Iterable[cosmos.group.v1.types_pb2.Vote] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "votes", b"votes"]) -> None: ... + +global___QueryVotesByVoterResponse = QueryVotesByVoterResponse + +@typing_extensions.final +class QueryGroupsByMemberRequest(google.protobuf.message.Message): + """QueryGroupsByMemberRequest is the Query/GroupsByMember request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the group member address.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + address: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupsByMemberRequest = QueryGroupsByMemberRequest + +@typing_extensions.final +class QueryGroupsByMemberResponse(google.protobuf.message.Message): + """QueryGroupsByMemberResponse is the Query/GroupsByMember response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUPS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupInfo]: + """groups are the groups info with the provided group member.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + groups: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupsByMemberResponse = QueryGroupsByMemberResponse + +@typing_extensions.final +class QueryTallyResultRequest(google.protobuf.message.Message): + """QueryTallyResultRequest is the Query/TallyResult request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal_id is the unique id of a proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___QueryTallyResultRequest = QueryTallyResultRequest + +@typing_extensions.final +class QueryTallyResultResponse(google.protobuf.message.Message): + """QueryTallyResultResponse is the Query/TallyResult response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TALLY_FIELD_NUMBER: builtins.int + @property + def tally(self) -> cosmos.group.v1.types_pb2.TallyResult: + """tally defines the requested tally.""" + def __init__( + self, + *, + tally: cosmos.group.v1.types_pb2.TallyResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tally", b"tally"]) -> None: ... + +global___QueryTallyResultResponse = QueryTallyResultResponse + +@typing_extensions.final +class QueryGroupsRequest(google.protobuf.message.Message): + """QueryGroupsRequest is the Query/Groups request type. + + Since: cosmos-sdk 0.47.1 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryGroupsRequest = QueryGroupsRequest + +@typing_extensions.final +class QueryGroupsResponse(google.protobuf.message.Message): + """QueryGroupsResponse is the Query/Groups response type. + + Since: cosmos-sdk 0.47.1 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUPS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.GroupInfo]: + """`groups` is all the groups present in state.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + groups: collections.abc.Iterable[cosmos.group.v1.types_pb2.GroupInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "pagination", b"pagination"]) -> None: ... + +global___QueryGroupsResponse = QueryGroupsResponse diff --git a/nibiru_proto/cosmos/group/v1/query_pb2_grpc.py b/nibiru_proto/cosmos/group/v1/query_pb2_grpc.py new file mode 100644 index 00000000..728db883 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/query_pb2_grpc.py @@ -0,0 +1,518 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.group.v1 import query_pb2 as cosmos_dot_group_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query is the cosmos.group.v1 Query service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GroupInfo = channel.unary_unary( + '/cosmos.group.v1.Query/GroupInfo', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoResponse.FromString, + ) + self.GroupPolicyInfo = channel.unary_unary( + '/cosmos.group.v1.Query/GroupPolicyInfo', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoResponse.FromString, + ) + self.GroupMembers = channel.unary_unary( + '/cosmos.group.v1.Query/GroupMembers', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersResponse.FromString, + ) + self.GroupsByAdmin = channel.unary_unary( + '/cosmos.group.v1.Query/GroupsByAdmin', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminResponse.FromString, + ) + self.GroupPoliciesByGroup = channel.unary_unary( + '/cosmos.group.v1.Query/GroupPoliciesByGroup', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupResponse.FromString, + ) + self.GroupPoliciesByAdmin = channel.unary_unary( + '/cosmos.group.v1.Query/GroupPoliciesByAdmin', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminResponse.FromString, + ) + self.Proposal = channel.unary_unary( + '/cosmos.group.v1.Query/Proposal', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalResponse.FromString, + ) + self.ProposalsByGroupPolicy = channel.unary_unary( + '/cosmos.group.v1.Query/ProposalsByGroupPolicy', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyResponse.FromString, + ) + self.VoteByProposalVoter = channel.unary_unary( + '/cosmos.group.v1.Query/VoteByProposalVoter', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterResponse.FromString, + ) + self.VotesByProposal = channel.unary_unary( + '/cosmos.group.v1.Query/VotesByProposal', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalResponse.FromString, + ) + self.VotesByVoter = channel.unary_unary( + '/cosmos.group.v1.Query/VotesByVoter', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterResponse.FromString, + ) + self.GroupsByMember = channel.unary_unary( + '/cosmos.group.v1.Query/GroupsByMember', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberResponse.FromString, + ) + self.TallyResult = channel.unary_unary( + '/cosmos.group.v1.Query/TallyResult', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultResponse.FromString, + ) + self.Groups = channel.unary_unary( + '/cosmos.group.v1.Query/Groups', + request_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsRequest.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsResponse.FromString, + ) + + +class QueryServicer(object): + """Query is the cosmos.group.v1 Query service. + """ + + def GroupInfo(self, request, context): + """GroupInfo queries group info based on group id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupPolicyInfo(self, request, context): + """GroupPolicyInfo queries group policy info based on account address of group policy. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupMembers(self, request, context): + """GroupMembers queries members of a group by group id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupsByAdmin(self, request, context): + """GroupsByAdmin queries groups by admin address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupPoliciesByGroup(self, request, context): + """GroupPoliciesByGroup queries group policies by group id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupPoliciesByAdmin(self, request, context): + """GroupPoliciesByAdmin queries group policies by admin address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Proposal(self, request, context): + """Proposal queries a proposal based on proposal id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ProposalsByGroupPolicy(self, request, context): + """ProposalsByGroupPolicy queries proposals based on account address of group policy. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VoteByProposalVoter(self, request, context): + """VoteByProposalVoter queries a vote by proposal id and voter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VotesByProposal(self, request, context): + """VotesByProposal queries a vote by proposal id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VotesByVoter(self, request, context): + """VotesByVoter queries a vote by voter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GroupsByMember(self, request, context): + """GroupsByMember queries groups by member address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TallyResult(self, request, context): + """TallyResult returns the tally result of a proposal. If the proposal is + still in voting period, then this query computes the current tally state, + which might not be final. On the other hand, if the proposal is final, + then it simply returns the `final_tally_result` state stored in the + proposal itself. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Groups(self, request, context): + """Groups queries all groups in state. + + Since: cosmos-sdk 0.47.1 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GroupInfo': grpc.unary_unary_rpc_method_handler( + servicer.GroupInfo, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoResponse.SerializeToString, + ), + 'GroupPolicyInfo': grpc.unary_unary_rpc_method_handler( + servicer.GroupPolicyInfo, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoResponse.SerializeToString, + ), + 'GroupMembers': grpc.unary_unary_rpc_method_handler( + servicer.GroupMembers, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersResponse.SerializeToString, + ), + 'GroupsByAdmin': grpc.unary_unary_rpc_method_handler( + servicer.GroupsByAdmin, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminResponse.SerializeToString, + ), + 'GroupPoliciesByGroup': grpc.unary_unary_rpc_method_handler( + servicer.GroupPoliciesByGroup, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupResponse.SerializeToString, + ), + 'GroupPoliciesByAdmin': grpc.unary_unary_rpc_method_handler( + servicer.GroupPoliciesByAdmin, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminResponse.SerializeToString, + ), + 'Proposal': grpc.unary_unary_rpc_method_handler( + servicer.Proposal, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalResponse.SerializeToString, + ), + 'ProposalsByGroupPolicy': grpc.unary_unary_rpc_method_handler( + servicer.ProposalsByGroupPolicy, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyResponse.SerializeToString, + ), + 'VoteByProposalVoter': grpc.unary_unary_rpc_method_handler( + servicer.VoteByProposalVoter, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterResponse.SerializeToString, + ), + 'VotesByProposal': grpc.unary_unary_rpc_method_handler( + servicer.VotesByProposal, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalResponse.SerializeToString, + ), + 'VotesByVoter': grpc.unary_unary_rpc_method_handler( + servicer.VotesByVoter, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterResponse.SerializeToString, + ), + 'GroupsByMember': grpc.unary_unary_rpc_method_handler( + servicer.GroupsByMember, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberResponse.SerializeToString, + ), + 'TallyResult': grpc.unary_unary_rpc_method_handler( + servicer.TallyResult, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultResponse.SerializeToString, + ), + 'Groups': grpc.unary_unary_rpc_method_handler( + servicer.Groups, + request_deserializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsRequest.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.group.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query is the cosmos.group.v1 Query service. + """ + + @staticmethod + def GroupInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupInfo', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupPolicyInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupPolicyInfo', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPolicyInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupMembers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupMembers', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupMembersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupsByAdmin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupsByAdmin', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByAdminResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupPoliciesByGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupPoliciesByGroup', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByGroupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupPoliciesByAdmin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupPoliciesByAdmin', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupPoliciesByAdminResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Proposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/Proposal', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ProposalsByGroupPolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/ProposalsByGroupPolicy', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryProposalsByGroupPolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VoteByProposalVoter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/VoteByProposalVoter', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVoteByProposalVoterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VotesByProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/VotesByProposal', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VotesByVoter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/VotesByVoter', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryVotesByVoterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GroupsByMember(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/GroupsByMember', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsByMemberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TallyResult(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/TallyResult', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryTallyResultResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Groups(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Query/Groups', + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsRequest.SerializeToString, + cosmos_dot_group_dot_v1_dot_query__pb2.QueryGroupsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/group/v1/tx_pb2.py b/nibiru_proto/cosmos/group/v1/tx_pb2.py new file mode 100644 index 00000000..b9ffa9b4 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/tx_pb2.py @@ -0,0 +1,174 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.group.v1 import types_pb2 as cosmos_dot_group_dot_v1_dot_types__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63osmos/group/v1/tx.proto\x12\x0f\x63osmos.group.v1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x19google/protobuf/any.proto\x1a\x1b\x63osmos/group/v1/types.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xcb\x01\n\x0eMsgCreateGroup\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x43\n\x07members\x18\x02 \x03(\x0b\x32\x1e.cosmos.group.v1.MemberRequestB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07members\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata:(\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*\x19\x63osmos-sdk/MsgCreateGroup\"3\n\x16MsgCreateGroupResponse\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\"\xe5\x01\n\x15MsgUpdateGroupMembers\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId\x12P\n\x0emember_updates\x18\x03 \x03(\x0b\x32\x1e.cosmos.group.v1.MemberRequestB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rmemberUpdates:/\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0* cosmos-sdk/MsgUpdateGroupMembers\"\x1f\n\x1dMsgUpdateGroupMembersResponse\"\xc6\x01\n\x13MsgUpdateGroupAdmin\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId\x12\x35\n\tnew_admin\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08newAdmin:-\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*\x1e\x63osmos-sdk/MsgUpdateGroupAdmin\"\x1d\n\x1bMsgUpdateGroupAdminResponse\"\xb1\x01\n\x16MsgUpdateGroupMetadata\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata:0\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*!cosmos-sdk/MsgUpdateGroupMetadata\" \n\x1eMsgUpdateGroupMetadataResponse\"\x94\x02\n\x14MsgCreateGroupPolicy\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x61\n\x0f\x64\x65\x63ision_policy\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\"\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicyR\x0e\x64\x65\x63isionPolicy:2\x88\xa0\x1f\x00\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*\x1f\x63osmos-sdk/MsgCreateGroupPolicy\"R\n\x1cMsgCreateGroupPolicyResponse\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\"\x83\x02\n\x19MsgUpdateGroupPolicyAdmin\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12J\n\x14group_policy_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\x12\x35\n\tnew_admin\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08newAdmin:3\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*$cosmos-sdk/MsgUpdateGroupPolicyAdmin\"#\n!MsgUpdateGroupPolicyAdminResponse\"\xb8\x03\n\x18MsgCreateGroupWithPolicy\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x43\n\x07members\x18\x02 \x03(\x0b\x32\x1e.cosmos.group.v1.MemberRequestB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07members\x12%\n\x0egroup_metadata\x18\x03 \x01(\tR\rgroupMetadata\x12\x32\n\x15group_policy_metadata\x18\x04 \x01(\tR\x13groupPolicyMetadata\x12\x31\n\x15group_policy_as_admin\x18\x05 \x01(\x08R\x12groupPolicyAsAdmin\x12\x61\n\x0f\x64\x65\x63ision_policy\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyB\"\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicyR\x0e\x64\x65\x63isionPolicy:6\x88\xa0\x1f\x00\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*#cosmos-sdk/MsgCreateGroupWithPolicy\"\x89\x01\n MsgCreateGroupWithPolicyResponse\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\x12J\n\x14group_policy_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\"\xbf\x02\n\"MsgUpdateGroupPolicyDecisionPolicy\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12J\n\x14group_policy_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\x12\x61\n\x0f\x64\x65\x63ision_policy\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\"\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicyR\x0e\x64\x65\x63isionPolicy::\x88\xa0\x1f\x00\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*\'cosmos-sdk/MsgUpdateGroupDecisionPolicy\",\n*MsgUpdateGroupPolicyDecisionPolicyResponse\"\xee\x01\n\x1cMsgUpdateGroupPolicyMetadata\x12.\n\x05\x61\x64min\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12J\n\x14group_policy_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata:6\x82\xe7\xb0*\x05\x61\x64min\x8a\xe7\xb0*\'cosmos-sdk/MsgUpdateGroupPolicyMetadata\"&\n$MsgUpdateGroupPolicyMetadataResponse\"\xe1\x02\n\x11MsgSubmitProposal\x12J\n\x14group_policy_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\x12\x1c\n\tproposers\x18\x02 \x03(\tR\tproposers\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x30\n\x08messages\x18\x04 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messages\x12)\n\x04\x65xec\x18\x05 \x01(\x0e\x32\x15.cosmos.group.v1.ExecR\x04\x65xec\x12\x14\n\x05title\x18\x06 \x01(\tR\x05title\x12\x18\n\x07summary\x18\x07 \x01(\tR\x07summary:9\x88\xa0\x1f\x00\x82\xe7\xb0*\tproposers\x8a\xe7\xb0*\"cosmos-sdk/group/MsgSubmitProposal\"<\n\x19MsgSubmitProposalResponse\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\"\xa1\x01\n\x13MsgWithdrawProposal\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x32\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress:5\x82\xe7\xb0*\x07\x61\x64\x64ress\x8a\xe7\xb0*$cosmos-sdk/group/MsgWithdrawProposal\"\x1d\n\x1bMsgWithdrawProposalResponse\"\xff\x01\n\x07MsgVote\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x33\n\x06option\x18\x03 \x01(\x0e\x32\x1b.cosmos.group.v1.VoteOptionR\x06option\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata\x12)\n\x04\x65xec\x18\x05 \x01(\x0e\x32\x15.cosmos.group.v1.ExecR\x04\x65xec:\'\x82\xe7\xb0*\x05voter\x8a\xe7\xb0*\x18\x63osmos-sdk/group/MsgVote\"\x11\n\x0fMsgVoteResponse\"\x8a\x01\n\x07MsgExec\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12\x34\n\x08\x65xecutor\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08\x65xecutor:(\x82\xe7\xb0*\x06signer\x8a\xe7\xb0*\x18\x63osmos-sdk/group/MsgExec\"R\n\x0fMsgExecResponse\x12?\n\x06result\x18\x02 \x01(\x0e\x32\'.cosmos.group.v1.ProposalExecutorResultR\x06result\"\x8f\x01\n\rMsgLeaveGroup\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId:/\x82\xe7\xb0*\x07\x61\x64\x64ress\x8a\xe7\xb0*\x1e\x63osmos-sdk/group/MsgLeaveGroup\"\x17\n\x15MsgLeaveGroupResponse**\n\x04\x45xec\x12\x14\n\x10\x45XEC_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45XEC_TRY\x10\x01\x32\xca\x0b\n\x03Msg\x12W\n\x0b\x43reateGroup\x12\x1f.cosmos.group.v1.MsgCreateGroup\x1a\'.cosmos.group.v1.MsgCreateGroupResponse\x12l\n\x12UpdateGroupMembers\x12&.cosmos.group.v1.MsgUpdateGroupMembers\x1a..cosmos.group.v1.MsgUpdateGroupMembersResponse\x12\x66\n\x10UpdateGroupAdmin\x12$.cosmos.group.v1.MsgUpdateGroupAdmin\x1a,.cosmos.group.v1.MsgUpdateGroupAdminResponse\x12o\n\x13UpdateGroupMetadata\x12\'.cosmos.group.v1.MsgUpdateGroupMetadata\x1a/.cosmos.group.v1.MsgUpdateGroupMetadataResponse\x12i\n\x11\x43reateGroupPolicy\x12%.cosmos.group.v1.MsgCreateGroupPolicy\x1a-.cosmos.group.v1.MsgCreateGroupPolicyResponse\x12u\n\x15\x43reateGroupWithPolicy\x12).cosmos.group.v1.MsgCreateGroupWithPolicy\x1a\x31.cosmos.group.v1.MsgCreateGroupWithPolicyResponse\x12x\n\x16UpdateGroupPolicyAdmin\x12*.cosmos.group.v1.MsgUpdateGroupPolicyAdmin\x1a\x32.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse\x12\x93\x01\n\x1fUpdateGroupPolicyDecisionPolicy\x12\x33.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy\x1a;.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse\x12\x81\x01\n\x19UpdateGroupPolicyMetadata\x12-.cosmos.group.v1.MsgUpdateGroupPolicyMetadata\x1a\x35.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse\x12`\n\x0eSubmitProposal\x12\".cosmos.group.v1.MsgSubmitProposal\x1a*.cosmos.group.v1.MsgSubmitProposalResponse\x12\x66\n\x10WithdrawProposal\x12$.cosmos.group.v1.MsgWithdrawProposal\x1a,.cosmos.group.v1.MsgWithdrawProposalResponse\x12\x42\n\x04Vote\x12\x18.cosmos.group.v1.MsgVote\x1a .cosmos.group.v1.MsgVoteResponse\x12\x42\n\x04\x45xec\x12\x18.cosmos.group.v1.MsgExec\x1a .cosmos.group.v1.MsgExecResponse\x12T\n\nLeaveGroup\x12\x1e.cosmos.group.v1.MsgLeaveGroup\x1a&.cosmos.group.v1.MsgLeaveGroupResponse\x1a\x05\x80\xe7\xb0*\x01\x42&Z$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/group' + _MSGCREATEGROUP.fields_by_name['admin']._options = None + _MSGCREATEGROUP.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEGROUP.fields_by_name['members']._options = None + _MSGCREATEGROUP.fields_by_name['members']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEGROUP._options = None + _MSGCREATEGROUP._serialized_options = b'\202\347\260*\005admin\212\347\260*\031cosmos-sdk/MsgCreateGroup' + _MSGUPDATEGROUPMEMBERS.fields_by_name['admin']._options = None + _MSGUPDATEGROUPMEMBERS.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPMEMBERS.fields_by_name['member_updates']._options = None + _MSGUPDATEGROUPMEMBERS.fields_by_name['member_updates']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEGROUPMEMBERS._options = None + _MSGUPDATEGROUPMEMBERS._serialized_options = b'\202\347\260*\005admin\212\347\260* cosmos-sdk/MsgUpdateGroupMembers' + _MSGUPDATEGROUPADMIN.fields_by_name['admin']._options = None + _MSGUPDATEGROUPADMIN.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPADMIN.fields_by_name['new_admin']._options = None + _MSGUPDATEGROUPADMIN.fields_by_name['new_admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPADMIN._options = None + _MSGUPDATEGROUPADMIN._serialized_options = b'\202\347\260*\005admin\212\347\260*\036cosmos-sdk/MsgUpdateGroupAdmin' + _MSGUPDATEGROUPMETADATA.fields_by_name['admin']._options = None + _MSGUPDATEGROUPMETADATA.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPMETADATA._options = None + _MSGUPDATEGROUPMETADATA._serialized_options = b'\202\347\260*\005admin\212\347\260*!cosmos-sdk/MsgUpdateGroupMetadata' + _MSGCREATEGROUPPOLICY.fields_by_name['admin']._options = None + _MSGCREATEGROUPPOLICY.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEGROUPPOLICY.fields_by_name['decision_policy']._options = None + _MSGCREATEGROUPPOLICY.fields_by_name['decision_policy']._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy' + _MSGCREATEGROUPPOLICY._options = None + _MSGCREATEGROUPPOLICY._serialized_options = b'\210\240\037\000\202\347\260*\005admin\212\347\260*\037cosmos-sdk/MsgCreateGroupPolicy' + _MSGCREATEGROUPPOLICYRESPONSE.fields_by_name['address']._options = None + _MSGCREATEGROUPPOLICYRESPONSE.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['admin']._options = None + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['group_policy_address']._options = None + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['new_admin']._options = None + _MSGUPDATEGROUPPOLICYADMIN.fields_by_name['new_admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYADMIN._options = None + _MSGUPDATEGROUPPOLICYADMIN._serialized_options = b'\202\347\260*\005admin\212\347\260*$cosmos-sdk/MsgUpdateGroupPolicyAdmin' + _MSGCREATEGROUPWITHPOLICY.fields_by_name['admin']._options = None + _MSGCREATEGROUPWITHPOLICY.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEGROUPWITHPOLICY.fields_by_name['members']._options = None + _MSGCREATEGROUPWITHPOLICY.fields_by_name['members']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEGROUPWITHPOLICY.fields_by_name['decision_policy']._options = None + _MSGCREATEGROUPWITHPOLICY.fields_by_name['decision_policy']._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy' + _MSGCREATEGROUPWITHPOLICY._options = None + _MSGCREATEGROUPWITHPOLICY._serialized_options = b'\210\240\037\000\202\347\260*\005admin\212\347\260*#cosmos-sdk/MsgCreateGroupWithPolicy' + _MSGCREATEGROUPWITHPOLICYRESPONSE.fields_by_name['group_policy_address']._options = None + _MSGCREATEGROUPWITHPOLICYRESPONSE.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['admin']._options = None + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['group_policy_address']._options = None + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['decision_policy']._options = None + _MSGUPDATEGROUPPOLICYDECISIONPOLICY.fields_by_name['decision_policy']._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy' + _MSGUPDATEGROUPPOLICYDECISIONPOLICY._options = None + _MSGUPDATEGROUPPOLICYDECISIONPOLICY._serialized_options = b'\210\240\037\000\202\347\260*\005admin\212\347\260*\'cosmos-sdk/MsgUpdateGroupDecisionPolicy' + _MSGUPDATEGROUPPOLICYMETADATA.fields_by_name['admin']._options = None + _MSGUPDATEGROUPPOLICYMETADATA.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYMETADATA.fields_by_name['group_policy_address']._options = None + _MSGUPDATEGROUPPOLICYMETADATA.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEGROUPPOLICYMETADATA._options = None + _MSGUPDATEGROUPPOLICYMETADATA._serialized_options = b'\202\347\260*\005admin\212\347\260*\'cosmos-sdk/MsgUpdateGroupPolicyMetadata' + _MSGSUBMITPROPOSAL.fields_by_name['group_policy_address']._options = None + _MSGSUBMITPROPOSAL.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSUBMITPROPOSAL._options = None + _MSGSUBMITPROPOSAL._serialized_options = b'\210\240\037\000\202\347\260*\tproposers\212\347\260*\"cosmos-sdk/group/MsgSubmitProposal' + _MSGWITHDRAWPROPOSAL.fields_by_name['address']._options = None + _MSGWITHDRAWPROPOSAL.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGWITHDRAWPROPOSAL._options = None + _MSGWITHDRAWPROPOSAL._serialized_options = b'\202\347\260*\007address\212\347\260*$cosmos-sdk/group/MsgWithdrawProposal' + _MSGVOTE.fields_by_name['voter']._options = None + _MSGVOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGVOTE._options = None + _MSGVOTE._serialized_options = b'\202\347\260*\005voter\212\347\260*\030cosmos-sdk/group/MsgVote' + _MSGEXEC.fields_by_name['executor']._options = None + _MSGEXEC.fields_by_name['executor']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGEXEC._options = None + _MSGEXEC._serialized_options = b'\202\347\260*\006signer\212\347\260*\030cosmos-sdk/group/MsgExec' + _MSGLEAVEGROUP.fields_by_name['address']._options = None + _MSGLEAVEGROUP.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGLEAVEGROUP._options = None + _MSGLEAVEGROUP._serialized_options = b'\202\347\260*\007address\212\347\260*\036cosmos-sdk/group/MsgLeaveGroup' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _EXEC._serialized_start=4344 + _EXEC._serialized_end=4386 + _MSGCREATEGROUP._serialized_start=195 + _MSGCREATEGROUP._serialized_end=398 + _MSGCREATEGROUPRESPONSE._serialized_start=400 + _MSGCREATEGROUPRESPONSE._serialized_end=451 + _MSGUPDATEGROUPMEMBERS._serialized_start=454 + _MSGUPDATEGROUPMEMBERS._serialized_end=683 + _MSGUPDATEGROUPMEMBERSRESPONSE._serialized_start=685 + _MSGUPDATEGROUPMEMBERSRESPONSE._serialized_end=716 + _MSGUPDATEGROUPADMIN._serialized_start=719 + _MSGUPDATEGROUPADMIN._serialized_end=917 + _MSGUPDATEGROUPADMINRESPONSE._serialized_start=919 + _MSGUPDATEGROUPADMINRESPONSE._serialized_end=948 + _MSGUPDATEGROUPMETADATA._serialized_start=951 + _MSGUPDATEGROUPMETADATA._serialized_end=1128 + _MSGUPDATEGROUPMETADATARESPONSE._serialized_start=1130 + _MSGUPDATEGROUPMETADATARESPONSE._serialized_end=1162 + _MSGCREATEGROUPPOLICY._serialized_start=1165 + _MSGCREATEGROUPPOLICY._serialized_end=1441 + _MSGCREATEGROUPPOLICYRESPONSE._serialized_start=1443 + _MSGCREATEGROUPPOLICYRESPONSE._serialized_end=1525 + _MSGUPDATEGROUPPOLICYADMIN._serialized_start=1528 + _MSGUPDATEGROUPPOLICYADMIN._serialized_end=1787 + _MSGUPDATEGROUPPOLICYADMINRESPONSE._serialized_start=1789 + _MSGUPDATEGROUPPOLICYADMINRESPONSE._serialized_end=1824 + _MSGCREATEGROUPWITHPOLICY._serialized_start=1827 + _MSGCREATEGROUPWITHPOLICY._serialized_end=2267 + _MSGCREATEGROUPWITHPOLICYRESPONSE._serialized_start=2270 + _MSGCREATEGROUPWITHPOLICYRESPONSE._serialized_end=2407 + _MSGUPDATEGROUPPOLICYDECISIONPOLICY._serialized_start=2410 + _MSGUPDATEGROUPPOLICYDECISIONPOLICY._serialized_end=2729 + _MSGUPDATEGROUPPOLICYDECISIONPOLICYRESPONSE._serialized_start=2731 + _MSGUPDATEGROUPPOLICYDECISIONPOLICYRESPONSE._serialized_end=2775 + _MSGUPDATEGROUPPOLICYMETADATA._serialized_start=2778 + _MSGUPDATEGROUPPOLICYMETADATA._serialized_end=3016 + _MSGUPDATEGROUPPOLICYMETADATARESPONSE._serialized_start=3018 + _MSGUPDATEGROUPPOLICYMETADATARESPONSE._serialized_end=3056 + _MSGSUBMITPROPOSAL._serialized_start=3059 + _MSGSUBMITPROPOSAL._serialized_end=3412 + _MSGSUBMITPROPOSALRESPONSE._serialized_start=3414 + _MSGSUBMITPROPOSALRESPONSE._serialized_end=3474 + _MSGWITHDRAWPROPOSAL._serialized_start=3477 + _MSGWITHDRAWPROPOSAL._serialized_end=3638 + _MSGWITHDRAWPROPOSALRESPONSE._serialized_start=3640 + _MSGWITHDRAWPROPOSALRESPONSE._serialized_end=3669 + _MSGVOTE._serialized_start=3672 + _MSGVOTE._serialized_end=3927 + _MSGVOTERESPONSE._serialized_start=3929 + _MSGVOTERESPONSE._serialized_end=3946 + _MSGEXEC._serialized_start=3949 + _MSGEXEC._serialized_end=4087 + _MSGEXECRESPONSE._serialized_start=4089 + _MSGEXECRESPONSE._serialized_end=4171 + _MSGLEAVEGROUP._serialized_start=4174 + _MSGLEAVEGROUP._serialized_end=4317 + _MSGLEAVEGROUPRESPONSE._serialized_start=4319 + _MSGLEAVEGROUPRESPONSE._serialized_end=4342 + _MSG._serialized_start=4389 + _MSG._serialized_end=5871 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/v1/tx_pb2.pyi b/nibiru_proto/cosmos/group/v1/tx_pb2.pyi new file mode 100644 index 00000000..9054e8df --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/tx_pb2.pyi @@ -0,0 +1,687 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import cosmos.group.v1.types_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _Exec: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ExecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Exec.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + EXEC_UNSPECIFIED: _Exec.ValueType # 0 + """An empty value means that there should be a separate + MsgExec request for the proposal to execute. + """ + EXEC_TRY: _Exec.ValueType # 1 + """Try to execute the proposal immediately. + If the proposal is not allowed per the DecisionPolicy, + the proposal will still be open and could + be executed at a later point. + """ + +class Exec(_Exec, metaclass=_ExecEnumTypeWrapper): + """ + Proposals and Voting + + Exec defines modes of execution of a proposal on creation or on new vote. + """ + +EXEC_UNSPECIFIED: Exec.ValueType # 0 +"""An empty value means that there should be a separate +MsgExec request for the proposal to execute. +""" +EXEC_TRY: Exec.ValueType # 1 +"""Try to execute the proposal immediately. +If the proposal is not allowed per the DecisionPolicy, +the proposal will still be open and could +be executed at a later point. +""" +global___Exec = Exec + +@typing_extensions.final +class MsgCreateGroup(google.protobuf.message.Message): + """ + Groups + + MsgCreateGroup is the Msg/CreateGroup request type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + MEMBERS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + @property + def members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.MemberRequest]: + """members defines the group members.""" + metadata: builtins.str + """metadata is any arbitrary metadata to attached to the group.""" + def __init__( + self, + *, + admin: builtins.str = ..., + members: collections.abc.Iterable[cosmos.group.v1.types_pb2.MemberRequest] | None = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "members", b"members", "metadata", b"metadata"]) -> None: ... + +global___MsgCreateGroup = MsgCreateGroup + +@typing_extensions.final +class MsgCreateGroupResponse(google.protobuf.message.Message): + """MsgCreateGroupResponse is the Msg/CreateGroup response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the newly created group.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id"]) -> None: ... + +global___MsgCreateGroupResponse = MsgCreateGroupResponse + +@typing_extensions.final +class MsgUpdateGroupMembers(google.protobuf.message.Message): + """MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + MEMBER_UPDATES_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + @property + def member_updates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.MemberRequest]: + """member_updates is the list of members to update, + set weight to 0 to remove a member. + """ + def __init__( + self, + *, + admin: builtins.str = ..., + group_id: builtins.int = ..., + member_updates: collections.abc.Iterable[cosmos.group.v1.types_pb2.MemberRequest] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "group_id", b"group_id", "member_updates", b"member_updates"]) -> None: ... + +global___MsgUpdateGroupMembers = MsgUpdateGroupMembers + +@typing_extensions.final +class MsgUpdateGroupMembersResponse(google.protobuf.message.Message): + """MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupMembersResponse = MsgUpdateGroupMembersResponse + +@typing_extensions.final +class MsgUpdateGroupAdmin(google.protobuf.message.Message): + """MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + NEW_ADMIN_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the current account address of the group admin.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + new_admin: builtins.str + """new_admin is the group new admin account address.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_id: builtins.int = ..., + new_admin: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "group_id", b"group_id", "new_admin", b"new_admin"]) -> None: ... + +global___MsgUpdateGroupAdmin = MsgUpdateGroupAdmin + +@typing_extensions.final +class MsgUpdateGroupAdminResponse(google.protobuf.message.Message): + """MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupAdminResponse = MsgUpdateGroupAdminResponse + +@typing_extensions.final +class MsgUpdateGroupMetadata(google.protobuf.message.Message): + """MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + metadata: builtins.str + """metadata is the updated group's metadata.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_id: builtins.int = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "group_id", b"group_id", "metadata", b"metadata"]) -> None: ... + +global___MsgUpdateGroupMetadata = MsgUpdateGroupMetadata + +@typing_extensions.final +class MsgUpdateGroupMetadataResponse(google.protobuf.message.Message): + """MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupMetadataResponse = MsgUpdateGroupMetadataResponse + +@typing_extensions.final +class MsgCreateGroupPolicy(google.protobuf.message.Message): + """ + Group Policies + + MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + DECISION_POLICY_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the group policy.""" + @property + def decision_policy(self) -> google.protobuf.any_pb2.Any: + """decision_policy specifies the group policy's decision policy.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_id: builtins.int = ..., + metadata: builtins.str = ..., + decision_policy: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["decision_policy", b"decision_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "decision_policy", b"decision_policy", "group_id", b"group_id", "metadata", b"metadata"]) -> None: ... + +global___MsgCreateGroupPolicy = MsgCreateGroupPolicy + +@typing_extensions.final +class MsgCreateGroupPolicyResponse(google.protobuf.message.Message): + """MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the newly created group policy.""" + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___MsgCreateGroupPolicyResponse = MsgCreateGroupPolicyResponse + +@typing_extensions.final +class MsgUpdateGroupPolicyAdmin(google.protobuf.message.Message): + """MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + NEW_ADMIN_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_policy_address: builtins.str + """group_policy_address is the account address of the group policy.""" + new_admin: builtins.str + """new_admin is the new group policy admin.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_policy_address: builtins.str = ..., + new_admin: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "group_policy_address", b"group_policy_address", "new_admin", b"new_admin"]) -> None: ... + +global___MsgUpdateGroupPolicyAdmin = MsgUpdateGroupPolicyAdmin + +@typing_extensions.final +class MsgUpdateGroupPolicyAdminResponse(google.protobuf.message.Message): + """MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupPolicyAdminResponse = MsgUpdateGroupPolicyAdminResponse + +@typing_extensions.final +class MsgCreateGroupWithPolicy(google.protobuf.message.Message): + """MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + MEMBERS_FIELD_NUMBER: builtins.int + GROUP_METADATA_FIELD_NUMBER: builtins.int + GROUP_POLICY_METADATA_FIELD_NUMBER: builtins.int + GROUP_POLICY_AS_ADMIN_FIELD_NUMBER: builtins.int + DECISION_POLICY_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group and group policy admin.""" + @property + def members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.group.v1.types_pb2.MemberRequest]: + """members defines the group members.""" + group_metadata: builtins.str + """group_metadata is any arbitrary metadata attached to the group.""" + group_policy_metadata: builtins.str + """group_policy_metadata is any arbitrary metadata attached to the group policy.""" + group_policy_as_admin: builtins.bool + """group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + and group policy admin. + """ + @property + def decision_policy(self) -> google.protobuf.any_pb2.Any: + """decision_policy specifies the group policy's decision policy.""" + def __init__( + self, + *, + admin: builtins.str = ..., + members: collections.abc.Iterable[cosmos.group.v1.types_pb2.MemberRequest] | None = ..., + group_metadata: builtins.str = ..., + group_policy_metadata: builtins.str = ..., + group_policy_as_admin: builtins.bool = ..., + decision_policy: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["decision_policy", b"decision_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "decision_policy", b"decision_policy", "group_metadata", b"group_metadata", "group_policy_as_admin", b"group_policy_as_admin", "group_policy_metadata", b"group_policy_metadata", "members", b"members"]) -> None: ... + +global___MsgCreateGroupWithPolicy = MsgCreateGroupWithPolicy + +@typing_extensions.final +class MsgCreateGroupWithPolicyResponse(google.protobuf.message.Message): + """MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the newly created group with policy.""" + group_policy_address: builtins.str + """group_policy_address is the account address of the newly created group policy.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + group_policy_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id", "group_policy_address", b"group_policy_address"]) -> None: ... + +global___MsgCreateGroupWithPolicyResponse = MsgCreateGroupWithPolicyResponse + +@typing_extensions.final +class MsgUpdateGroupPolicyDecisionPolicy(google.protobuf.message.Message): + """MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + DECISION_POLICY_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_policy_address: builtins.str + """group_policy_address is the account address of group policy.""" + @property + def decision_policy(self) -> google.protobuf.any_pb2.Any: + """decision_policy is the updated group policy's decision policy.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_policy_address: builtins.str = ..., + decision_policy: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["decision_policy", b"decision_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "decision_policy", b"decision_policy", "group_policy_address", b"group_policy_address"]) -> None: ... + +global___MsgUpdateGroupPolicyDecisionPolicy = MsgUpdateGroupPolicyDecisionPolicy + +@typing_extensions.final +class MsgUpdateGroupPolicyDecisionPolicyResponse(google.protobuf.message.Message): + """MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupPolicyDecisionPolicyResponse = MsgUpdateGroupPolicyDecisionPolicyResponse + +@typing_extensions.final +class MsgUpdateGroupPolicyMetadata(google.protobuf.message.Message): + """MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADMIN_FIELD_NUMBER: builtins.int + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + admin: builtins.str + """admin is the account address of the group admin.""" + group_policy_address: builtins.str + """group_policy_address is the account address of group policy.""" + metadata: builtins.str + """metadata is the group policy metadata to be updated.""" + def __init__( + self, + *, + admin: builtins.str = ..., + group_policy_address: builtins.str = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "group_policy_address", b"group_policy_address", "metadata", b"metadata"]) -> None: ... + +global___MsgUpdateGroupPolicyMetadata = MsgUpdateGroupPolicyMetadata + +@typing_extensions.final +class MsgUpdateGroupPolicyMetadataResponse(google.protobuf.message.Message): + """MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateGroupPolicyMetadataResponse = MsgUpdateGroupPolicyMetadataResponse + +@typing_extensions.final +class MsgSubmitProposal(google.protobuf.message.Message): + """MsgSubmitProposal is the Msg/SubmitProposal request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + PROPOSERS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + MESSAGES_FIELD_NUMBER: builtins.int + EXEC_FIELD_NUMBER: builtins.int + TITLE_FIELD_NUMBER: builtins.int + SUMMARY_FIELD_NUMBER: builtins.int + group_policy_address: builtins.str + """group_policy_address is the account address of group policy.""" + @property + def proposers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """proposers are the account addresses of the proposers. + Proposers signatures will be counted as yes votes. + """ + metadata: builtins.str + """metadata is any arbitrary metadata attached to the proposal.""" + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """messages is a list of `sdk.Msg`s that will be executed if the proposal passes.""" + exec: global___Exec.ValueType + """exec defines the mode of execution of the proposal, + whether it should be executed immediately on creation or not. + If so, proposers signatures are considered as Yes votes. + """ + title: builtins.str + """title is the title of the proposal. + + Since: cosmos-sdk 0.47 + """ + summary: builtins.str + """summary is the summary of the proposal. + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + group_policy_address: builtins.str = ..., + proposers: collections.abc.Iterable[builtins.str] | None = ..., + metadata: builtins.str = ..., + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + exec: global___Exec.ValueType = ..., + title: builtins.str = ..., + summary: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exec", b"exec", "group_policy_address", b"group_policy_address", "messages", b"messages", "metadata", b"metadata", "proposers", b"proposers", "summary", b"summary", "title", b"title"]) -> None: ... + +global___MsgSubmitProposal = MsgSubmitProposal + +@typing_extensions.final +class MsgSubmitProposalResponse(google.protobuf.message.Message): + """MsgSubmitProposalResponse is the Msg/SubmitProposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal is the unique ID of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["proposal_id", b"proposal_id"]) -> None: ... + +global___MsgSubmitProposalResponse = MsgSubmitProposalResponse + +@typing_extensions.final +class MsgWithdrawProposal(google.protobuf.message.Message): + """MsgWithdrawProposal is the Msg/WithdrawProposal request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal is the unique ID of the proposal.""" + address: builtins.str + """address is the admin of the group policy or one of the proposer of the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "proposal_id", b"proposal_id"]) -> None: ... + +global___MsgWithdrawProposal = MsgWithdrawProposal + +@typing_extensions.final +class MsgWithdrawProposalResponse(google.protobuf.message.Message): + """MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgWithdrawProposalResponse = MsgWithdrawProposalResponse + +@typing_extensions.final +class MsgVote(google.protobuf.message.Message): + """MsgVote is the Msg/Vote request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + EXEC_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal is the unique ID of the proposal.""" + voter: builtins.str + """voter is the voter account address.""" + option: cosmos.group.v1.types_pb2.VoteOption.ValueType + """option is the voter's choice on the proposal.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the vote.""" + exec: global___Exec.ValueType + """exec defines whether the proposal should be executed + immediately after voting or not. + """ + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + option: cosmos.group.v1.types_pb2.VoteOption.ValueType = ..., + metadata: builtins.str = ..., + exec: global___Exec.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exec", b"exec", "metadata", b"metadata", "option", b"option", "proposal_id", b"proposal_id", "voter", b"voter"]) -> None: ... + +global___MsgVote = MsgVote + +@typing_extensions.final +class MsgVoteResponse(google.protobuf.message.Message): + """MsgVoteResponse is the Msg/Vote response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgVoteResponse = MsgVoteResponse + +@typing_extensions.final +class MsgExec(google.protobuf.message.Message): + """MsgExec is the Msg/Exec request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + EXECUTOR_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal is the unique ID of the proposal.""" + executor: builtins.str + """executor is the account address used to execute the proposal.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + executor: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["executor", b"executor", "proposal_id", b"proposal_id"]) -> None: ... + +global___MsgExec = MsgExec + +@typing_extensions.final +class MsgExecResponse(google.protobuf.message.Message): + """MsgExecResponse is the Msg/Exec request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + result: cosmos.group.v1.types_pb2.ProposalExecutorResult.ValueType + """result is the final result of the proposal execution.""" + def __init__( + self, + *, + result: cosmos.group.v1.types_pb2.ProposalExecutorResult.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + +global___MsgExecResponse = MsgExecResponse + +@typing_extensions.final +class MsgLeaveGroup(google.protobuf.message.Message): + """MsgLeaveGroup is the Msg/LeaveGroup request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of the group member.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + def __init__( + self, + *, + address: builtins.str = ..., + group_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "group_id", b"group_id"]) -> None: ... + +global___MsgLeaveGroup = MsgLeaveGroup + +@typing_extensions.final +class MsgLeaveGroupResponse(google.protobuf.message.Message): + """MsgLeaveGroupResponse is the Msg/LeaveGroup response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgLeaveGroupResponse = MsgLeaveGroupResponse diff --git a/nibiru_proto/cosmos/group/v1/tx_pb2_grpc.py b/nibiru_proto/cosmos/group/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..92b00a12 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/tx_pb2_grpc.py @@ -0,0 +1,512 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.group.v1 import tx_pb2 as cosmos_dot_group_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg is the cosmos.group.v1 Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateGroup = channel.unary_unary( + '/cosmos.group.v1.Msg/CreateGroup', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroup.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupResponse.FromString, + ) + self.UpdateGroupMembers = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupMembers', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembers.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembersResponse.FromString, + ) + self.UpdateGroupAdmin = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupAdmin', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdmin.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdminResponse.FromString, + ) + self.UpdateGroupMetadata = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupMetadata', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadata.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadataResponse.FromString, + ) + self.CreateGroupPolicy = channel.unary_unary( + '/cosmos.group.v1.Msg/CreateGroupPolicy', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicy.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicyResponse.FromString, + ) + self.CreateGroupWithPolicy = channel.unary_unary( + '/cosmos.group.v1.Msg/CreateGroupWithPolicy', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicy.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicyResponse.FromString, + ) + self.UpdateGroupPolicyAdmin = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdmin.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdminResponse.FromString, + ) + self.UpdateGroupPolicyDecisionPolicy = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicy.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicyResponse.FromString, + ) + self.UpdateGroupPolicyMetadata = channel.unary_unary( + '/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadata.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadataResponse.FromString, + ) + self.SubmitProposal = channel.unary_unary( + '/cosmos.group.v1.Msg/SubmitProposal', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + ) + self.WithdrawProposal = channel.unary_unary( + '/cosmos.group.v1.Msg/WithdrawProposal', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposal.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposalResponse.FromString, + ) + self.Vote = channel.unary_unary( + '/cosmos.group.v1.Msg/Vote', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVote.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVoteResponse.FromString, + ) + self.Exec = channel.unary_unary( + '/cosmos.group.v1.Msg/Exec', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExec.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExecResponse.FromString, + ) + self.LeaveGroup = channel.unary_unary( + '/cosmos.group.v1.Msg/LeaveGroup', + request_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroup.SerializeToString, + response_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroupResponse.FromString, + ) + + +class MsgServicer(object): + """Msg is the cosmos.group.v1 Msg service. + """ + + def CreateGroup(self, request, context): + """CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupMembers(self, request, context): + """UpdateGroupMembers updates the group members with given group id and admin address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupAdmin(self, request, context): + """UpdateGroupAdmin updates the group admin with given group id and previous admin address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupMetadata(self, request, context): + """UpdateGroupMetadata updates the group metadata with given group id and admin address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateGroupPolicy(self, request, context): + """CreateGroupPolicy creates a new group policy using given DecisionPolicy. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateGroupWithPolicy(self, request, context): + """CreateGroupWithPolicy creates a new group with policy. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupPolicyAdmin(self, request, context): + """UpdateGroupPolicyAdmin updates a group policy admin. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupPolicyDecisionPolicy(self, request, context): + """UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateGroupPolicyMetadata(self, request, context): + """UpdateGroupPolicyMetadata updates a group policy metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubmitProposal(self, request, context): + """SubmitProposal submits a new proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WithdrawProposal(self, request, context): + """WithdrawProposal withdraws a proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vote(self, request, context): + """Vote allows a voter to vote on a proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Exec(self, request, context): + """Exec executes a proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LeaveGroup(self, request, context): + """LeaveGroup allows a group member to leave the group. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateGroup': grpc.unary_unary_rpc_method_handler( + servicer.CreateGroup, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroup.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupResponse.SerializeToString, + ), + 'UpdateGroupMembers': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupMembers, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembers.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembersResponse.SerializeToString, + ), + 'UpdateGroupAdmin': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupAdmin, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdmin.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdminResponse.SerializeToString, + ), + 'UpdateGroupMetadata': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupMetadata, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadata.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadataResponse.SerializeToString, + ), + 'CreateGroupPolicy': grpc.unary_unary_rpc_method_handler( + servicer.CreateGroupPolicy, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicy.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicyResponse.SerializeToString, + ), + 'CreateGroupWithPolicy': grpc.unary_unary_rpc_method_handler( + servicer.CreateGroupWithPolicy, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicy.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicyResponse.SerializeToString, + ), + 'UpdateGroupPolicyAdmin': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupPolicyAdmin, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdmin.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdminResponse.SerializeToString, + ), + 'UpdateGroupPolicyDecisionPolicy': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupPolicyDecisionPolicy, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicy.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicyResponse.SerializeToString, + ), + 'UpdateGroupPolicyMetadata': grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroupPolicyMetadata, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadata.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadataResponse.SerializeToString, + ), + 'SubmitProposal': grpc.unary_unary_rpc_method_handler( + servicer.SubmitProposal, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposal.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.SerializeToString, + ), + 'WithdrawProposal': grpc.unary_unary_rpc_method_handler( + servicer.WithdrawProposal, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposal.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposalResponse.SerializeToString, + ), + 'Vote': grpc.unary_unary_rpc_method_handler( + servicer.Vote, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVote.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVoteResponse.SerializeToString, + ), + 'Exec': grpc.unary_unary_rpc_method_handler( + servicer.Exec, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExec.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExecResponse.SerializeToString, + ), + 'LeaveGroup': grpc.unary_unary_rpc_method_handler( + servicer.LeaveGroup, + request_deserializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroup.FromString, + response_serializer=cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroupResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.group.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg is the cosmos.group.v1 Msg service. + """ + + @staticmethod + def CreateGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/CreateGroup', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroup.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupMembers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupMembers', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembers.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMembersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupAdmin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupAdmin', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdmin.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupAdminResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupMetadata', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadata.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupMetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateGroupPolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/CreateGroupPolicy', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicy.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupPolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateGroupWithPolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/CreateGroupWithPolicy', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicy.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgCreateGroupWithPolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupPolicyAdmin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdmin.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyAdminResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupPolicyDecisionPolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicy.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyDecisionPolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateGroupPolicyMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadata.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgUpdateGroupPolicyMetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubmitProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/SubmitProposal', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposal.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgSubmitProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WithdrawProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/WithdrawProposal', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposal.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgWithdrawProposalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Vote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/Vote', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVote.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Exec(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/Exec', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExec.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgExecResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LeaveGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.group.v1.Msg/LeaveGroup', + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroup.SerializeToString, + cosmos_dot_group_dot_v1_dot_tx__pb2.MsgLeaveGroupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/group/v1/types_pb2.py b/nibiru_proto/cosmos/group/v1/types_pb2.py new file mode 100644 index 00000000..d2d9098a --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/types_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/group/v1/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/group/v1/types.proto\x12\x0f\x63osmos.group.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x19google/protobuf/any.proto\x1a\x11\x61mino/amino.proto\"\xb6\x01\n\x06Member\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x16\n\x06weight\x18\x02 \x01(\tR\x06weight\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x44\n\x08\x61\x64\x64\x65\x64_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x07\x61\x64\x64\x65\x64\x41t\"w\n\rMemberRequest\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x16\n\x06weight\x18\x02 \x01(\tR\x06weight\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\"\xc4\x01\n\x17ThresholdDecisionPolicy\x12\x1c\n\tthreshold\x18\x01 \x01(\tR\tthreshold\x12@\n\x07windows\x18\x02 \x01(\x0b\x32&.cosmos.group.v1.DecisionPolicyWindowsR\x07windows:I\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicy\x8a\xe7\xb0*\"cosmos-sdk/ThresholdDecisionPolicy\"\xc8\x01\n\x18PercentageDecisionPolicy\x12\x1e\n\npercentage\x18\x01 \x01(\tR\npercentage\x12@\n\x07windows\x18\x02 \x01(\x0b\x32&.cosmos.group.v1.DecisionPolicyWindowsR\x07windows:J\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicy\x8a\xe7\xb0*#cosmos-sdk/PercentageDecisionPolicy\"\xc2\x01\n\x15\x44\x65\x63isionPolicyWindows\x12M\n\rvoting_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0cvotingPeriod\x12Z\n\x14min_execution_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x12minExecutionPeriod\"\xee\x01\n\tGroupInfo\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12.\n\x05\x61\x64min\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x18\n\x07version\x18\x04 \x01(\x04R\x07version\x12!\n\x0ctotal_weight\x18\x05 \x01(\tR\x0btotalWeight\x12H\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\tcreatedAt\"Y\n\x0bGroupMember\x12\x19\n\x08group_id\x18\x01 \x01(\x04R\x07groupId\x12/\n\x06member\x18\x02 \x01(\x0b\x32\x17.cosmos.group.v1.MemberR\x06member\"\xfd\x02\n\x0fGroupPolicyInfo\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x19\n\x08group_id\x18\x02 \x01(\x04R\x07groupId\x12.\n\x05\x61\x64min\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05\x61\x64min\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata\x12\x18\n\x07version\x18\x05 \x01(\x04R\x07version\x12\x61\n\x0f\x64\x65\x63ision_policy\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyB\"\xca\xb4-\x1e\x63osmos.group.v1.DecisionPolicyR\x0e\x64\x65\x63isionPolicy\x12H\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\tcreatedAt:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xfe\x05\n\x08Proposal\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12J\n\x14group_policy_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x12groupPolicyAddress\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x36\n\tproposers\x18\x04 \x03(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tproposers\x12J\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\nsubmitTime\x12#\n\rgroup_version\x18\x06 \x01(\x04R\x0cgroupVersion\x12\x30\n\x14group_policy_version\x18\x07 \x01(\x04R\x12groupPolicyVersion\x12\x37\n\x06status\x18\x08 \x01(\x0e\x32\x1f.cosmos.group.v1.ProposalStatusR\x06status\x12U\n\x12\x66inal_tally_result\x18\t \x01(\x0b\x32\x1c.cosmos.group.v1.TallyResultB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x10\x66inalTallyResult\x12U\n\x11voting_period_end\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0fvotingPeriodEnd\x12P\n\x0f\x65xecutor_result\x18\x0b \x01(\x0e\x32\'.cosmos.group.v1.ProposalExecutorResultR\x0e\x65xecutorResult\x12\x30\n\x08messages\x18\x0c \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messages\x12\x14\n\x05title\x18\r \x01(\tR\x05title\x12\x18\n\x07summary\x18\x0e \x01(\tR\x07summary:\x04\x88\xa0\x1f\x00\"\x9d\x01\n\x0bTallyResult\x12\x1b\n\tyes_count\x18\x01 \x01(\tR\x08yesCount\x12#\n\rabstain_count\x18\x02 \x01(\tR\x0c\x61\x62stainCount\x12\x19\n\x08no_count\x18\x03 \x01(\tR\x07noCount\x12+\n\x12no_with_veto_count\x18\x04 \x01(\tR\x0fnoWithVetoCount:\x04\x88\xa0\x1f\x00\"\xf4\x01\n\x04Vote\x12\x1f\n\x0bproposal_id\x18\x01 \x01(\x04R\nproposalId\x12.\n\x05voter\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05voter\x12\x33\n\x06option\x18\x03 \x01(\x0e\x32\x1b.cosmos.group.v1.VoteOptionR\x06option\x12\x1a\n\x08metadata\x18\x04 \x01(\tR\x08metadata\x12J\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\nsubmitTime*\x8f\x01\n\nVoteOption\x12\x1b\n\x17VOTE_OPTION_UNSPECIFIED\x10\x00\x12\x13\n\x0fVOTE_OPTION_YES\x10\x01\x12\x17\n\x13VOTE_OPTION_ABSTAIN\x10\x02\x12\x12\n\x0eVOTE_OPTION_NO\x10\x03\x12\x1c\n\x18VOTE_OPTION_NO_WITH_VETO\x10\x04\x1a\x04\x88\xa3\x1e\x00*\xce\x01\n\x0eProposalStatus\x12\x1f\n\x1bPROPOSAL_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19PROPOSAL_STATUS_SUBMITTED\x10\x01\x12\x1c\n\x18PROPOSAL_STATUS_ACCEPTED\x10\x02\x12\x1c\n\x18PROPOSAL_STATUS_REJECTED\x10\x03\x12\x1b\n\x17PROPOSAL_STATUS_ABORTED\x10\x04\x12\x1d\n\x19PROPOSAL_STATUS_WITHDRAWN\x10\x05\x1a\x04\x88\xa3\x1e\x00*\xba\x01\n\x16ProposalExecutorResult\x12(\n$PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED\x10\x00\x12$\n PROPOSAL_EXECUTOR_RESULT_NOT_RUN\x10\x01\x12$\n PROPOSAL_EXECUTOR_RESULT_SUCCESS\x10\x02\x12$\n PROPOSAL_EXECUTOR_RESULT_FAILURE\x10\x03\x1a\x04\x88\xa3\x1e\x00\x42&Z$github.com/cosmos/cosmos-sdk/x/groupb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.group.v1.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z$github.com/cosmos/cosmos-sdk/x/group' + _VOTEOPTION._options = None + _VOTEOPTION._serialized_options = b'\210\243\036\000' + _PROPOSALSTATUS._options = None + _PROPOSALSTATUS._serialized_options = b'\210\243\036\000' + _PROPOSALEXECUTORRESULT._options = None + _PROPOSALEXECUTORRESULT._serialized_options = b'\210\243\036\000' + _MEMBER.fields_by_name['address']._options = None + _MEMBER.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MEMBER.fields_by_name['added_at']._options = None + _MEMBER.fields_by_name['added_at']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _MEMBERREQUEST.fields_by_name['address']._options = None + _MEMBERREQUEST.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _THRESHOLDDECISIONPOLICY._options = None + _THRESHOLDDECISIONPOLICY._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy\212\347\260*\"cosmos-sdk/ThresholdDecisionPolicy' + _PERCENTAGEDECISIONPOLICY._options = None + _PERCENTAGEDECISIONPOLICY._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy\212\347\260*#cosmos-sdk/PercentageDecisionPolicy' + _DECISIONPOLICYWINDOWS.fields_by_name['voting_period']._options = None + _DECISIONPOLICYWINDOWS.fields_by_name['voting_period']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _DECISIONPOLICYWINDOWS.fields_by_name['min_execution_period']._options = None + _DECISIONPOLICYWINDOWS.fields_by_name['min_execution_period']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _GROUPINFO.fields_by_name['admin']._options = None + _GROUPINFO.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GROUPINFO.fields_by_name['created_at']._options = None + _GROUPINFO.fields_by_name['created_at']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _GROUPPOLICYINFO.fields_by_name['address']._options = None + _GROUPPOLICYINFO.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GROUPPOLICYINFO.fields_by_name['admin']._options = None + _GROUPPOLICYINFO.fields_by_name['admin']._serialized_options = b'\322\264-\024cosmos.AddressString' + _GROUPPOLICYINFO.fields_by_name['decision_policy']._options = None + _GROUPPOLICYINFO.fields_by_name['decision_policy']._serialized_options = b'\312\264-\036cosmos.group.v1.DecisionPolicy' + _GROUPPOLICYINFO.fields_by_name['created_at']._options = None + _GROUPPOLICYINFO.fields_by_name['created_at']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _GROUPPOLICYINFO._options = None + _GROUPPOLICYINFO._serialized_options = b'\210\240\037\000\350\240\037\001' + _PROPOSAL.fields_by_name['group_policy_address']._options = None + _PROPOSAL.fields_by_name['group_policy_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _PROPOSAL.fields_by_name['proposers']._options = None + _PROPOSAL.fields_by_name['proposers']._serialized_options = b'\322\264-\024cosmos.AddressString' + _PROPOSAL.fields_by_name['submit_time']._options = None + _PROPOSAL.fields_by_name['submit_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL.fields_by_name['final_tally_result']._options = None + _PROPOSAL.fields_by_name['final_tally_result']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PROPOSAL.fields_by_name['voting_period_end']._options = None + _PROPOSAL.fields_by_name['voting_period_end']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _PROPOSAL._options = None + _PROPOSAL._serialized_options = b'\210\240\037\000' + _TALLYRESULT._options = None + _TALLYRESULT._serialized_options = b'\210\240\037\000' + _VOTE.fields_by_name['voter']._options = None + _VOTE.fields_by_name['voter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VOTE.fields_by_name['submit_time']._options = None + _VOTE.fields_by_name['submit_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _VOTEOPTION._serialized_start=3006 + _VOTEOPTION._serialized_end=3149 + _PROPOSALSTATUS._serialized_start=3152 + _PROPOSALSTATUS._serialized_end=3358 + _PROPOSALEXECUTORRESULT._serialized_start=3361 + _PROPOSALEXECUTORRESULT._serialized_end=3547 + _MEMBER._serialized_start=209 + _MEMBER._serialized_end=391 + _MEMBERREQUEST._serialized_start=393 + _MEMBERREQUEST._serialized_end=512 + _THRESHOLDDECISIONPOLICY._serialized_start=515 + _THRESHOLDDECISIONPOLICY._serialized_end=711 + _PERCENTAGEDECISIONPOLICY._serialized_start=714 + _PERCENTAGEDECISIONPOLICY._serialized_end=914 + _DECISIONPOLICYWINDOWS._serialized_start=917 + _DECISIONPOLICYWINDOWS._serialized_end=1111 + _GROUPINFO._serialized_start=1114 + _GROUPINFO._serialized_end=1352 + _GROUPMEMBER._serialized_start=1354 + _GROUPMEMBER._serialized_end=1443 + _GROUPPOLICYINFO._serialized_start=1446 + _GROUPPOLICYINFO._serialized_end=1827 + _PROPOSAL._serialized_start=1830 + _PROPOSAL._serialized_end=2596 + _TALLYRESULT._serialized_start=2599 + _TALLYRESULT._serialized_end=2756 + _VOTE._serialized_start=2759 + _VOTE._serialized_end=3003 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/group/v1/types_pb2.pyi b/nibiru_proto/cosmos/group/v1/types_pb2.pyi new file mode 100644 index 00000000..a8db5192 --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/types_pb2.pyi @@ -0,0 +1,595 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import collections.abc +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _VoteOption: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VoteOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VoteOption.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + VOTE_OPTION_UNSPECIFIED: _VoteOption.ValueType # 0 + """VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + return an error. + """ + VOTE_OPTION_YES: _VoteOption.ValueType # 1 + """VOTE_OPTION_YES defines a yes vote option.""" + VOTE_OPTION_ABSTAIN: _VoteOption.ValueType # 2 + """VOTE_OPTION_ABSTAIN defines an abstain vote option.""" + VOTE_OPTION_NO: _VoteOption.ValueType # 3 + """VOTE_OPTION_NO defines a no vote option.""" + VOTE_OPTION_NO_WITH_VETO: _VoteOption.ValueType # 4 + """VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" + +class VoteOption(_VoteOption, metaclass=_VoteOptionEnumTypeWrapper): + """VoteOption enumerates the valid vote options for a given proposal.""" + +VOTE_OPTION_UNSPECIFIED: VoteOption.ValueType # 0 +"""VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will +return an error. +""" +VOTE_OPTION_YES: VoteOption.ValueType # 1 +"""VOTE_OPTION_YES defines a yes vote option.""" +VOTE_OPTION_ABSTAIN: VoteOption.ValueType # 2 +"""VOTE_OPTION_ABSTAIN defines an abstain vote option.""" +VOTE_OPTION_NO: VoteOption.ValueType # 3 +"""VOTE_OPTION_NO defines a no vote option.""" +VOTE_OPTION_NO_WITH_VETO: VoteOption.ValueType # 4 +"""VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.""" +global___VoteOption = VoteOption + +class _ProposalStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PROPOSAL_STATUS_UNSPECIFIED: _ProposalStatus.ValueType # 0 + """An empty value is invalid and not allowed.""" + PROPOSAL_STATUS_SUBMITTED: _ProposalStatus.ValueType # 1 + """Initial status of a proposal when submitted.""" + PROPOSAL_STATUS_ACCEPTED: _ProposalStatus.ValueType # 2 + """Final status of a proposal when the final tally is done and the outcome + passes the group policy's decision policy. + """ + PROPOSAL_STATUS_REJECTED: _ProposalStatus.ValueType # 3 + """Final status of a proposal when the final tally is done and the outcome + is rejected by the group policy's decision policy. + """ + PROPOSAL_STATUS_ABORTED: _ProposalStatus.ValueType # 4 + """Final status of a proposal when the group policy is modified before the + final tally. + """ + PROPOSAL_STATUS_WITHDRAWN: _ProposalStatus.ValueType # 5 + """A proposal can be withdrawn before the voting start time by the owner. + When this happens the final status is Withdrawn. + """ + +class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): + """ProposalStatus defines proposal statuses.""" + +PROPOSAL_STATUS_UNSPECIFIED: ProposalStatus.ValueType # 0 +"""An empty value is invalid and not allowed.""" +PROPOSAL_STATUS_SUBMITTED: ProposalStatus.ValueType # 1 +"""Initial status of a proposal when submitted.""" +PROPOSAL_STATUS_ACCEPTED: ProposalStatus.ValueType # 2 +"""Final status of a proposal when the final tally is done and the outcome +passes the group policy's decision policy. +""" +PROPOSAL_STATUS_REJECTED: ProposalStatus.ValueType # 3 +"""Final status of a proposal when the final tally is done and the outcome +is rejected by the group policy's decision policy. +""" +PROPOSAL_STATUS_ABORTED: ProposalStatus.ValueType # 4 +"""Final status of a proposal when the group policy is modified before the +final tally. +""" +PROPOSAL_STATUS_WITHDRAWN: ProposalStatus.ValueType # 5 +"""A proposal can be withdrawn before the voting start time by the owner. +When this happens the final status is Withdrawn. +""" +global___ProposalStatus = ProposalStatus + +class _ProposalExecutorResult: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ProposalExecutorResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalExecutorResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: _ProposalExecutorResult.ValueType # 0 + """An empty value is not allowed.""" + PROPOSAL_EXECUTOR_RESULT_NOT_RUN: _ProposalExecutorResult.ValueType # 1 + """We have not yet run the executor.""" + PROPOSAL_EXECUTOR_RESULT_SUCCESS: _ProposalExecutorResult.ValueType # 2 + """The executor was successful and proposed action updated state.""" + PROPOSAL_EXECUTOR_RESULT_FAILURE: _ProposalExecutorResult.ValueType # 3 + """The executor returned an error and proposed action didn't update state.""" + +class ProposalExecutorResult(_ProposalExecutorResult, metaclass=_ProposalExecutorResultEnumTypeWrapper): + """ProposalExecutorResult defines types of proposal executor results.""" + +PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: ProposalExecutorResult.ValueType # 0 +"""An empty value is not allowed.""" +PROPOSAL_EXECUTOR_RESULT_NOT_RUN: ProposalExecutorResult.ValueType # 1 +"""We have not yet run the executor.""" +PROPOSAL_EXECUTOR_RESULT_SUCCESS: ProposalExecutorResult.ValueType # 2 +"""The executor was successful and proposed action updated state.""" +PROPOSAL_EXECUTOR_RESULT_FAILURE: ProposalExecutorResult.ValueType # 3 +"""The executor returned an error and proposed action didn't update state.""" +global___ProposalExecutorResult = ProposalExecutorResult + +@typing_extensions.final +class Member(google.protobuf.message.Message): + """Member represents a group member with an account address, + non-zero weight, metadata and added_at timestamp. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + ADDED_AT_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the member's account address.""" + weight: builtins.str + """weight is the member's voting weight that should be greater than 0.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the member.""" + @property + def added_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """added_at is a timestamp specifying when a member was added.""" + def __init__( + self, + *, + address: builtins.str = ..., + weight: builtins.str = ..., + metadata: builtins.str = ..., + added_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["added_at", b"added_at"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["added_at", b"added_at", "address", b"address", "metadata", b"metadata", "weight", b"weight"]) -> None: ... + +global___Member = Member + +@typing_extensions.final +class MemberRequest(google.protobuf.message.Message): + """MemberRequest represents a group member to be used in Msg server requests. + Contrary to `Member`, it doesn't have any `added_at` field + since this field cannot be set as part of requests. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the member's account address.""" + weight: builtins.str + """weight is the member's voting weight that should be greater than 0.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the member.""" + def __init__( + self, + *, + address: builtins.str = ..., + weight: builtins.str = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "metadata", b"metadata", "weight", b"weight"]) -> None: ... + +global___MemberRequest = MemberRequest + +@typing_extensions.final +class ThresholdDecisionPolicy(google.protobuf.message.Message): + """ThresholdDecisionPolicy is a decision policy where a proposal passes when it + satisfies the two following conditions: + 1. The sum of all `YES` voter's weights is greater or equal than the defined + `threshold`. + 2. The voting and execution periods of the proposal respect the parameters + given by `windows`. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + THRESHOLD_FIELD_NUMBER: builtins.int + WINDOWS_FIELD_NUMBER: builtins.int + threshold: builtins.str + """threshold is the minimum weighted sum of `YES` votes that must be met or + exceeded for a proposal to succeed. + """ + @property + def windows(self) -> global___DecisionPolicyWindows: + """windows defines the different windows for voting and execution.""" + def __init__( + self, + *, + threshold: builtins.str = ..., + windows: global___DecisionPolicyWindows | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["windows", b"windows"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["threshold", b"threshold", "windows", b"windows"]) -> None: ... + +global___ThresholdDecisionPolicy = ThresholdDecisionPolicy + +@typing_extensions.final +class PercentageDecisionPolicy(google.protobuf.message.Message): + """PercentageDecisionPolicy is a decision policy where a proposal passes when + it satisfies the two following conditions: + 1. The percentage of all `YES` voters' weights out of the total group weight + is greater or equal than the given `percentage`. + 2. The voting and execution periods of the proposal respect the parameters + given by `windows`. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PERCENTAGE_FIELD_NUMBER: builtins.int + WINDOWS_FIELD_NUMBER: builtins.int + percentage: builtins.str + """percentage is the minimum percentage of the weighted sum of `YES` votes must + meet for a proposal to succeed. + """ + @property + def windows(self) -> global___DecisionPolicyWindows: + """windows defines the different windows for voting and execution.""" + def __init__( + self, + *, + percentage: builtins.str = ..., + windows: global___DecisionPolicyWindows | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["windows", b"windows"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["percentage", b"percentage", "windows", b"windows"]) -> None: ... + +global___PercentageDecisionPolicy = PercentageDecisionPolicy + +@typing_extensions.final +class DecisionPolicyWindows(google.protobuf.message.Message): + """DecisionPolicyWindows defines the different windows for voting and execution.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTING_PERIOD_FIELD_NUMBER: builtins.int + MIN_EXECUTION_PERIOD_FIELD_NUMBER: builtins.int + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: + """voting_period is the duration from submission of a proposal to the end of voting period + Within this times votes can be submitted with MsgVote. + """ + @property + def min_execution_period(self) -> google.protobuf.duration_pb2.Duration: + """min_execution_period is the minimum duration after the proposal submission + where members can start sending MsgExec. This means that the window for + sending a MsgExec transaction is: + `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + where max_execution_period is a app-specific config, defined in the keeper. + If not set, min_execution_period will default to 0. + + Please make sure to set a `min_execution_period` that is smaller than + `voting_period + max_execution_period`, or else the above execution window + is empty, meaning that all proposals created with this decision policy + won't be able to be executed. + """ + def __init__( + self, + *, + voting_period: google.protobuf.duration_pb2.Duration | None = ..., + min_execution_period: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["min_execution_period", b"min_execution_period", "voting_period", b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["min_execution_period", b"min_execution_period", "voting_period", b"voting_period"]) -> None: ... + +global___DecisionPolicyWindows = DecisionPolicyWindows + +@typing_extensions.final +class GroupInfo(google.protobuf.message.Message): + """ + State + + GroupInfo represents the high-level on-chain information for a group. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + ADMIN_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + TOTAL_WEIGHT_FIELD_NUMBER: builtins.int + CREATED_AT_FIELD_NUMBER: builtins.int + id: builtins.int + """id is the unique ID of the group.""" + admin: builtins.str + """admin is the account address of the group's admin.""" + metadata: builtins.str + """metadata is any arbitrary metadata to attached to the group.""" + version: builtins.int + """version is used to track changes to a group's membership structure that + would break existing proposals. Whenever any members weight is changed, + or any member is added or removed this version is incremented and will + cause proposals based on older versions of this group to fail + """ + total_weight: builtins.str + """total_weight is the sum of the group members' weights.""" + @property + def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """created_at is a timestamp specifying when a group was created.""" + def __init__( + self, + *, + id: builtins.int = ..., + admin: builtins.str = ..., + metadata: builtins.str = ..., + version: builtins.int = ..., + total_weight: builtins.str = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["created_at", b"created_at"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["admin", b"admin", "created_at", b"created_at", "id", b"id", "metadata", b"metadata", "total_weight", b"total_weight", "version", b"version"]) -> None: ... + +global___GroupInfo = GroupInfo + +@typing_extensions.final +class GroupMember(google.protobuf.message.Message): + """GroupMember represents the relationship between a group and a member.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUP_ID_FIELD_NUMBER: builtins.int + MEMBER_FIELD_NUMBER: builtins.int + group_id: builtins.int + """group_id is the unique ID of the group.""" + @property + def member(self) -> global___Member: + """member is the member data.""" + def __init__( + self, + *, + group_id: builtins.int = ..., + member: global___Member | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["member", b"member"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["group_id", b"group_id", "member", b"member"]) -> None: ... + +global___GroupMember = GroupMember + +@typing_extensions.final +class GroupPolicyInfo(google.protobuf.message.Message): + """GroupPolicyInfo represents the high-level on-chain information for a group policy.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + GROUP_ID_FIELD_NUMBER: builtins.int + ADMIN_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + DECISION_POLICY_FIELD_NUMBER: builtins.int + CREATED_AT_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the account address of group policy.""" + group_id: builtins.int + """group_id is the unique ID of the group.""" + admin: builtins.str + """admin is the account address of the group admin.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the group policy. + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 + """ + version: builtins.int + """version is used to track changes to a group's GroupPolicyInfo structure that + would create a different result on a running proposal. + """ + @property + def decision_policy(self) -> google.protobuf.any_pb2.Any: + """decision_policy specifies the group policy's decision policy.""" + @property + def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """created_at is a timestamp specifying when a group policy was created.""" + def __init__( + self, + *, + address: builtins.str = ..., + group_id: builtins.int = ..., + admin: builtins.str = ..., + metadata: builtins.str = ..., + version: builtins.int = ..., + decision_policy: google.protobuf.any_pb2.Any | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "decision_policy", b"decision_policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "admin", b"admin", "created_at", b"created_at", "decision_policy", b"decision_policy", "group_id", b"group_id", "metadata", b"metadata", "version", b"version"]) -> None: ... + +global___GroupPolicyInfo = GroupPolicyInfo + +@typing_extensions.final +class Proposal(google.protobuf.message.Message): + """Proposal defines a group proposal. Any member of a group can submit a proposal + for a group policy to decide upon. + A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + passes as well as some optional metadata associated with the proposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + GROUP_POLICY_ADDRESS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + PROPOSERS_FIELD_NUMBER: builtins.int + SUBMIT_TIME_FIELD_NUMBER: builtins.int + GROUP_VERSION_FIELD_NUMBER: builtins.int + GROUP_POLICY_VERSION_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + FINAL_TALLY_RESULT_FIELD_NUMBER: builtins.int + VOTING_PERIOD_END_FIELD_NUMBER: builtins.int + EXECUTOR_RESULT_FIELD_NUMBER: builtins.int + MESSAGES_FIELD_NUMBER: builtins.int + TITLE_FIELD_NUMBER: builtins.int + SUMMARY_FIELD_NUMBER: builtins.int + id: builtins.int + """id is the unique id of the proposal.""" + group_policy_address: builtins.str + """group_policy_address is the account address of group policy.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the proposal. + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 + """ + @property + def proposers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """proposers are the account addresses of the proposers.""" + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """submit_time is a timestamp specifying when a proposal was submitted.""" + group_version: builtins.int + """group_version tracks the version of the group at proposal submission. + This field is here for informational purposes only. + """ + group_policy_version: builtins.int + """group_policy_version tracks the version of the group policy at proposal submission. + When a decision policy is changed, existing proposals from previous policy + versions will become invalid with the `ABORTED` status. + This field is here for informational purposes only. + """ + status: global___ProposalStatus.ValueType + """status represents the high level position in the life cycle of the proposal. Initial value is Submitted.""" + @property + def final_tally_result(self) -> global___TallyResult: + """final_tally_result contains the sums of all weighted votes for this + proposal for each vote option. It is empty at submission, and only + populated after tallying, at voting period end or at proposal execution, + whichever happens first. + """ + @property + def voting_period_end(self) -> google.protobuf.timestamp_pb2.Timestamp: + """voting_period_end is the timestamp before which voting must be done. + Unless a successful MsgExec is called before (to execute a proposal whose + tally is successful before the voting period ends), tallying will be done + at this point, and the `final_tally_result`and `status` fields will be + accordingly updated. + """ + executor_result: global___ProposalExecutorResult.ValueType + """executor_result is the final result of the proposal execution. Initial value is NotRun.""" + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """messages is a list of `sdk.Msg`s that will be executed if the proposal passes.""" + title: builtins.str + """title is the title of the proposal + + Since: cosmos-sdk 0.47 + """ + summary: builtins.str + """summary is a short summary of the proposal + + Since: cosmos-sdk 0.47 + """ + def __init__( + self, + *, + id: builtins.int = ..., + group_policy_address: builtins.str = ..., + metadata: builtins.str = ..., + proposers: collections.abc.Iterable[builtins.str] | None = ..., + submit_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + group_version: builtins.int = ..., + group_policy_version: builtins.int = ..., + status: global___ProposalStatus.ValueType = ..., + final_tally_result: global___TallyResult | None = ..., + voting_period_end: google.protobuf.timestamp_pb2.Timestamp | None = ..., + executor_result: global___ProposalExecutorResult.ValueType = ..., + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + title: builtins.str = ..., + summary: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_tally_result", b"final_tally_result", "submit_time", b"submit_time", "voting_period_end", b"voting_period_end"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["executor_result", b"executor_result", "final_tally_result", b"final_tally_result", "group_policy_address", b"group_policy_address", "group_policy_version", b"group_policy_version", "group_version", b"group_version", "id", b"id", "messages", b"messages", "metadata", b"metadata", "proposers", b"proposers", "status", b"status", "submit_time", b"submit_time", "summary", b"summary", "title", b"title", "voting_period_end", b"voting_period_end"]) -> None: ... + +global___Proposal = Proposal + +@typing_extensions.final +class TallyResult(google.protobuf.message.Message): + """TallyResult represents the sum of weighted votes for each vote option.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + YES_COUNT_FIELD_NUMBER: builtins.int + ABSTAIN_COUNT_FIELD_NUMBER: builtins.int + NO_COUNT_FIELD_NUMBER: builtins.int + NO_WITH_VETO_COUNT_FIELD_NUMBER: builtins.int + yes_count: builtins.str + """yes_count is the weighted sum of yes votes.""" + abstain_count: builtins.str + """abstain_count is the weighted sum of abstainers.""" + no_count: builtins.str + """no_count is the weighted sum of no votes.""" + no_with_veto_count: builtins.str + """no_with_veto_count is the weighted sum of veto.""" + def __init__( + self, + *, + yes_count: builtins.str = ..., + abstain_count: builtins.str = ..., + no_count: builtins.str = ..., + no_with_veto_count: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["abstain_count", b"abstain_count", "no_count", b"no_count", "no_with_veto_count", b"no_with_veto_count", "yes_count", b"yes_count"]) -> None: ... + +global___TallyResult = TallyResult + +@typing_extensions.final +class Vote(google.protobuf.message.Message): + """Vote represents a vote for a proposal.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + SUBMIT_TIME_FIELD_NUMBER: builtins.int + proposal_id: builtins.int + """proposal is the unique ID of the proposal.""" + voter: builtins.str + """voter is the account address of the voter.""" + option: global___VoteOption.ValueType + """option is the voter's choice on the proposal.""" + metadata: builtins.str + """metadata is any arbitrary metadata attached to the vote.""" + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """submit_time is the timestamp when the vote was submitted.""" + def __init__( + self, + *, + proposal_id: builtins.int = ..., + voter: builtins.str = ..., + option: global___VoteOption.ValueType = ..., + metadata: builtins.str = ..., + submit_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["submit_time", b"submit_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "option", b"option", "proposal_id", b"proposal_id", "submit_time", b"submit_time", "voter", b"voter"]) -> None: ... + +global___Vote = Vote diff --git a/nibiru_proto/cosmos/group/v1/types_pb2_grpc.py b/nibiru_proto/cosmos/group/v1/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/group/v1/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/mint/module/v1/module_pb2.py b/nibiru_proto/cosmos/mint/module/v1/module_pb2.py new file mode 100644 index 00000000..c3a3da64 --- /dev/null +++ b/nibiru_proto/cosmos/mint/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/mint/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/mint/module/v1/module.proto\x12\x15\x63osmos.mint.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\x81\x01\n\x06Module\x12,\n\x12\x66\x65\x65_collector_name\x18\x01 \x01(\tR\x10\x66\x65\x65\x43ollectorName\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:+\xba\xc0\x96\xda\x01%\n#github.com/cosmos/cosmos-sdk/x/mintb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.mint.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001%\n#github.com/cosmos/cosmos-sdk/x/mint' + _MODULE._serialized_start=96 + _MODULE._serialized_end=225 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/mint/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/mint/module/v1/module_pb2.pyi new file mode 100644 index 00000000..a9c25b91 --- /dev/null +++ b/nibiru_proto/cosmos/mint/module/v1/module_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the mint module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FEE_COLLECTOR_NAME_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + fee_collector_name: builtins.str + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + fee_collector_name: builtins.str = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "fee_collector_name", b"fee_collector_name"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/mint/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/mint/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/mint/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..f812f938 --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/mint/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.mint.v1beta1 import mint_pb2 as cosmos_dot_mint_dot_v1beta1_dot_mint__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/mint/v1beta1/genesis.proto\x12\x13\x63osmos.mint.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/mint/v1beta1/mint.proto\x1a\x11\x61mino/amino.proto\"\x8e\x01\n\x0cGenesisState\x12>\n\x06minter\x18\x01 \x01(\x0b\x32\x1b.cosmos.mint.v1beta1.MinterB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06minter\x12>\n\x06params\x18\x02 \x01(\x0b\x32\x1b.cosmos.mint.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06paramsB+Z)github.com/cosmos/cosmos-sdk/x/mint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.mint.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/mint/types' + _GENESISSTATE.fields_by_name['minter']._options = None + _GENESISSTATE.fields_by_name['minter']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=132 + _GENESISSTATE._serialized_end=274 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..86ea549c --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2.pyi @@ -0,0 +1,41 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.mint.v1beta1.mint_pb2 +import google.protobuf.descriptor +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the mint module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MINTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + @property + def minter(self) -> cosmos.mint.v1beta1.mint_pb2.Minter: + """minter is a space for holding current inflation information.""" + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: + """params defines all the parameters of the module.""" + def __init__( + self, + *, + minter: cosmos.mint.v1beta1.mint_pb2.Minter | None = ..., + params: cosmos.mint.v1beta1.mint_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["minter", b"minter", "params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["minter", b"minter", "params", b"params"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.py b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.py new file mode 100644 index 00000000..0a309f25 --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/mint/v1beta1/mint.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/mint/v1beta1/mint.proto\x12\x13\x63osmos.mint.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xcf\x01\n\x06Minter\x12Z\n\tinflation\x18\x01 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\tinflation\x12i\n\x11\x61nnual_provisions\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x10\x61nnualProvisions\"\x89\x04\n\x06Params\x12\x1d\n\nmint_denom\x18\x01 \x01(\tR\tmintDenom\x12p\n\x15inflation_rate_change\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x13inflationRateChange\x12\x61\n\rinflation_max\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x0cinflationMax\x12\x61\n\rinflation_min\x18\x04 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x0cinflationMin\x12]\n\x0bgoal_bonded\x18\x05 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\ngoalBonded\x12&\n\x0f\x62locks_per_year\x18\x06 \x01(\x04R\rblocksPerYear:!\x98\xa0\x1f\x00\x8a\xe7\xb0*\x18\x63osmos-sdk/x/mint/ParamsB+Z)github.com/cosmos/cosmos-sdk/x/mint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.mint.v1beta1.mint_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/mint/types' + _MINTER.fields_by_name['inflation']._options = None + _MINTER.fields_by_name['inflation']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _MINTER.fields_by_name['annual_provisions']._options = None + _MINTER.fields_by_name['annual_provisions']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['inflation_rate_change']._options = None + _PARAMS.fields_by_name['inflation_rate_change']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['inflation_max']._options = None + _PARAMS.fields_by_name['inflation_max']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['inflation_min']._options = None + _PARAMS.fields_by_name['inflation_min']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS.fields_by_name['goal_bonded']._options = None + _PARAMS.fields_by_name['goal_bonded']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000\212\347\260*\030cosmos-sdk/x/mint/Params' + _MINTER._serialized_start=124 + _MINTER._serialized_end=331 + _PARAMS._serialized_start=334 + _PARAMS._serialized_end=855 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.pyi b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.pyi new file mode 100644 index 00000000..1f0b382c --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2.pyi @@ -0,0 +1,75 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 Minter(google.protobuf.message.Message): + """Minter represents the minting state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFLATION_FIELD_NUMBER: builtins.int + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + inflation: builtins.str + """current annual inflation rate""" + annual_provisions: builtins.str + """current annual expected provisions""" + def __init__( + self, + *, + inflation: builtins.str = ..., + annual_provisions: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["annual_provisions", b"annual_provisions", "inflation", b"inflation"]) -> None: ... + +global___Minter = Minter + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params defines the parameters for the x/mint module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MINT_DENOM_FIELD_NUMBER: builtins.int + INFLATION_RATE_CHANGE_FIELD_NUMBER: builtins.int + INFLATION_MAX_FIELD_NUMBER: builtins.int + INFLATION_MIN_FIELD_NUMBER: builtins.int + GOAL_BONDED_FIELD_NUMBER: builtins.int + BLOCKS_PER_YEAR_FIELD_NUMBER: builtins.int + mint_denom: builtins.str + """type of coin to mint""" + inflation_rate_change: builtins.str + """maximum annual change in inflation rate""" + inflation_max: builtins.str + """maximum inflation rate""" + inflation_min: builtins.str + """minimum inflation rate""" + goal_bonded: builtins.str + """goal of percent bonded atoms""" + blocks_per_year: builtins.int + """expected blocks per year""" + def __init__( + self, + *, + mint_denom: builtins.str = ..., + inflation_rate_change: builtins.str = ..., + inflation_max: builtins.str = ..., + inflation_min: builtins.str = ..., + goal_bonded: builtins.str = ..., + blocks_per_year: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["blocks_per_year", b"blocks_per_year", "goal_bonded", b"goal_bonded", "inflation_max", b"inflation_max", "inflation_min", b"inflation_min", "inflation_rate_change", b"inflation_rate_change", "mint_denom", b"mint_denom"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/cosmos/mint/v1beta1/mint_pb2_grpc.py b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/mint_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/mint/v1beta1/query_pb2.py b/nibiru_proto/cosmos/mint/v1beta1/query_pb2.py new file mode 100644 index 00000000..62325a9f --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/query_pb2.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/mint/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.mint.v1beta1 import mint_pb2 as cosmos_dot_mint_dot_v1beta1_dot_mint__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/mint/v1beta1/query.proto\x12\x13\x63osmos.mint.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/mint/v1beta1/mint.proto\x1a\x11\x61mino/amino.proto\"\x14\n\x12QueryParamsRequest\"U\n\x13QueryParamsResponse\x12>\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.mint.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\"\x17\n\x15QueryInflationRequest\"k\n\x16QueryInflationResponse\x12Q\n\tinflation\x18\x01 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xa8\xe7\xb0*\x01R\tinflation\"\x1e\n\x1cQueryAnnualProvisionsRequest\"\x81\x01\n\x1dQueryAnnualProvisionsResponse\x12`\n\x11\x61nnual_provisions\x18\x01 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xa8\xe7\xb0*\x01R\x10\x61nnualProvisions2\xc5\x03\n\x05Query\x12\x80\x01\n\x06Params\x12\'.cosmos.mint.v1beta1.QueryParamsRequest\x1a(.cosmos.mint.v1beta1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/mint/v1beta1/params\x12\x8c\x01\n\tInflation\x12*.cosmos.mint.v1beta1.QueryInflationRequest\x1a+.cosmos.mint.v1beta1.QueryInflationResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/cosmos/mint/v1beta1/inflation\x12\xa9\x01\n\x10\x41nnualProvisions\x12\x31.cosmos.mint.v1beta1.QueryAnnualProvisionsRequest\x1a\x32.cosmos.mint.v1beta1.QueryAnnualProvisionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/cosmos/mint/v1beta1/annual_provisionsB+Z)github.com/cosmos/cosmos-sdk/x/mint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.mint.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/mint/types' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYINFLATIONRESPONSE.fields_by_name['inflation']._options = None + _QUERYINFLATIONRESPONSE.fields_by_name['inflation']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\250\347\260*\001' + _QUERYANNUALPROVISIONSRESPONSE.fields_by_name['annual_provisions']._options = None + _QUERYANNUALPROVISIONSRESPONSE.fields_by_name['annual_provisions']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\250\347\260*\001' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\035\022\033/cosmos/mint/v1beta1/params' + _QUERY.methods_by_name['Inflation']._options = None + _QUERY.methods_by_name['Inflation']._serialized_options = b'\202\323\344\223\002 \022\036/cosmos/mint/v1beta1/inflation' + _QUERY.methods_by_name['AnnualProvisions']._options = None + _QUERY.methods_by_name['AnnualProvisions']._serialized_options = b'\202\323\344\223\002(\022&/cosmos/mint/v1beta1/annual_provisions' + _QUERYPARAMSREQUEST._serialized_start=159 + _QUERYPARAMSREQUEST._serialized_end=179 + _QUERYPARAMSRESPONSE._serialized_start=181 + _QUERYPARAMSRESPONSE._serialized_end=266 + _QUERYINFLATIONREQUEST._serialized_start=268 + _QUERYINFLATIONREQUEST._serialized_end=291 + _QUERYINFLATIONRESPONSE._serialized_start=293 + _QUERYINFLATIONRESPONSE._serialized_end=400 + _QUERYANNUALPROVISIONSREQUEST._serialized_start=402 + _QUERYANNUALPROVISIONSREQUEST._serialized_end=432 + _QUERYANNUALPROVISIONSRESPONSE._serialized_start=435 + _QUERYANNUALPROVISIONSRESPONSE._serialized_end=564 + _QUERY._serialized_start=567 + _QUERY._serialized_end=1020 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/mint/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/mint/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..62ce9463 --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/query_pb2.pyi @@ -0,0 +1,114 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.mint.v1beta1.mint_pb2 +import google.protobuf.descriptor +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 QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: + """params defines the parameters of the module.""" + def __init__( + self, + *, + params: cosmos.mint.v1beta1.mint_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryInflationRequest(google.protobuf.message.Message): + """QueryInflationRequest is the request type for the Query/Inflation RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryInflationRequest = QueryInflationRequest + +@typing_extensions.final +class QueryInflationResponse(google.protobuf.message.Message): + """QueryInflationResponse is the response type for the Query/Inflation RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFLATION_FIELD_NUMBER: builtins.int + inflation: builtins.bytes + """inflation is the current minting inflation value.""" + def __init__( + self, + *, + inflation: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["inflation", b"inflation"]) -> None: ... + +global___QueryInflationResponse = QueryInflationResponse + +@typing_extensions.final +class QueryAnnualProvisionsRequest(google.protobuf.message.Message): + """QueryAnnualProvisionsRequest is the request type for the + Query/AnnualProvisions RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryAnnualProvisionsRequest = QueryAnnualProvisionsRequest + +@typing_extensions.final +class QueryAnnualProvisionsResponse(google.protobuf.message.Message): + """QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + annual_provisions: builtins.bytes + """annual_provisions is the current minting annual provisions value.""" + def __init__( + self, + *, + annual_provisions: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["annual_provisions", b"annual_provisions"]) -> None: ... + +global___QueryAnnualProvisionsResponse = QueryAnnualProvisionsResponse diff --git a/nibiru_proto/cosmos/mint/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/mint/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..b5b3b463 --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/query_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.mint.v1beta1 import query_pb2 as cosmos_dot_mint_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query provides defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/cosmos.mint.v1beta1.Query/Params', + request_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.Inflation = channel.unary_unary( + '/cosmos.mint.v1beta1.Query/Inflation', + request_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationRequest.SerializeToString, + response_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationResponse.FromString, + ) + self.AnnualProvisions = channel.unary_unary( + '/cosmos.mint.v1beta1.Query/AnnualProvisions', + request_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsRequest.SerializeToString, + response_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsResponse.FromString, + ) + + +class QueryServicer(object): + """Query provides defines the gRPC querier service. + """ + + def Params(self, request, context): + """Params returns the total set of minting parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Inflation(self, request, context): + """Inflation returns the current minting inflation value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AnnualProvisions(self, request, context): + """AnnualProvisions current minting annual provisions value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'Inflation': grpc.unary_unary_rpc_method_handler( + servicer.Inflation, + request_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationRequest.FromString, + response_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationResponse.SerializeToString, + ), + 'AnnualProvisions': grpc.unary_unary_rpc_method_handler( + servicer.AnnualProvisions, + request_deserializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsRequest.FromString, + response_serializer=cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.mint.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query provides defines the gRPC querier service. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.mint.v1beta1.Query/Params', + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Inflation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.mint.v1beta1.Query/Inflation', + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationRequest.SerializeToString, + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryInflationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AnnualProvisions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.mint.v1beta1.Query/AnnualProvisions', + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsRequest.SerializeToString, + cosmos_dot_mint_dot_v1beta1_dot_query__pb2.QueryAnnualProvisionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.py new file mode 100644 index 00000000..d34dd84a --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/mint/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from cosmos.mint.v1beta1 import mint_pb2 as cosmos_dot_mint_dot_v1beta1_dot_mint__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/mint/v1beta1/tx.proto\x12\x13\x63osmos.mint.v1beta1\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/mint/v1beta1/mint.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xbf\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12>\n\x06params\x18\x02 \x01(\x0b\x32\x1b.cosmos.mint.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:4\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*!cosmos-sdk/x/mint/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2p\n\x03Msg\x12\x62\n\x0cUpdateParams\x12$.cosmos.mint.v1beta1.MsgUpdateParams\x1a,.cosmos.mint.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42+Z)github.com/cosmos/cosmos-sdk/x/mint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.mint.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/cosmos/cosmos-sdk/x/mint/types' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*!cosmos-sdk/x/mint/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGUPDATEPARAMS._serialized_start=179 + _MSGUPDATEPARAMS._serialized_end=370 + _MSGUPDATEPARAMSRESPONSE._serialized_start=372 + _MSGUPDATEPARAMSRESPONSE._serialized_end=397 + _MSG._serialized_start=399 + _MSG._serialized_end=511 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..2eb18b6b --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2.pyi @@ -0,0 +1,62 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.mint.v1beta1.mint_pb2 +import google.protobuf.descriptor +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 MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: + """params defines the x/mint parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.mint.v1beta1.mint_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/mint/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..2883d7cd --- /dev/null +++ b/nibiru_proto/cosmos/mint/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,73 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.mint.v1beta1 import tx_pb2 as cosmos_dot_mint_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the x/mint Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UpdateParams = channel.unary_unary( + '/cosmos.mint.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the x/mint Msg service. + """ + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/mint module + parameters. The authority is defaults to the x/gov module account. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.mint.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the x/mint Msg service. + """ + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.mint.v1beta1.Msg/UpdateParams', + cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_mint_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/msg/v1/msg_pb2.py b/nibiru_proto/cosmos/msg/v1/msg_pb2.py new file mode 100644 index 00000000..6e2eed16 --- /dev/null +++ b/nibiru_proto/cosmos/msg/v1/msg_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/msg/v1/msg.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63osmos/msg/v1/msg.proto\x12\rcosmos.msg.v1\x1a google/protobuf/descriptor.proto:<\n\x07service\x12\x1f.google.protobuf.ServiceOptions\x18\xf0\x8c\xa6\x05 \x01(\x08R\x07service::\n\x06signer\x12\x1f.google.protobuf.MessageOptions\x18\xf0\x8c\xa6\x05 \x03(\tR\x06signerB/Z-github.com/cosmos/cosmos-sdk/types/msgserviceb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.msg.v1.msg_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(service) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(signer) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/types/msgservice' +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/msg/v1/msg_pb2.pyi b/nibiru_proto/cosmos/msg/v1/msg_pb2.pyi new file mode 100644 index 00000000..f08559e4 --- /dev/null +++ b/nibiru_proto/cosmos/msg/v1/msg_pb2.pyi @@ -0,0 +1,31 @@ +""" +@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.containers +import google.protobuf.internal.extension_dict + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +SERVICE_FIELD_NUMBER: builtins.int +SIGNER_FIELD_NUMBER: builtins.int +service: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.ServiceOptions, builtins.bool] +"""service indicates that the service is a Msg service and that requests +must be transported via blockchain transactions rather than gRPC. +Tooling can use this annotation to distinguish between Msg services and +other types of services via reflection. +""" +signer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]] +"""signer must be used in cosmos messages in order +to signal to external clients which fields in a +given cosmos message must be filled with signer +information (address). +The field must be the protobuf name of the message +field extended with this MessageOption. +The field must either be of string kind, or of message +kind in case the signer information is contained within +a message inside the cosmos message. +""" diff --git a/nibiru_proto/cosmos/msg/v1/msg_pb2_grpc.py b/nibiru_proto/cosmos/msg/v1/msg_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/msg/v1/msg_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/nft/module/v1/module_pb2.py b/nibiru_proto/cosmos/nft/module/v1/module_pb2.py new file mode 100644 index 00000000..b87a7334 --- /dev/null +++ b/nibiru_proto/cosmos/nft/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/nft/module/v1/module.proto\x12\x14\x63osmos.nft.module.v1\x1a cosmos/app/v1alpha1/module.proto\"4\n\x06Module:*\xba\xc0\x96\xda\x01$\n\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001$\n\"github.com/cosmos/cosmos-sdk/x/nft' + _MODULE._serialized_start=93 + _MODULE._serialized_end=145 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/nft/module/v1/module_pb2.pyi new file mode 100644 index 00000000..fc55b201 --- /dev/null +++ b/nibiru_proto/cosmos/nft/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the nft module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/nft/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/nft/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/nft/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/nft/v1beta1/event_pb2.py b/nibiru_proto/cosmos/nft/v1beta1/event_pb2.py new file mode 100644 index 00000000..b088e7e8 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/event_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/v1beta1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/nft/v1beta1/event.proto\x12\x12\x63osmos.nft.v1beta1\"j\n\tEventSend\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x04 \x01(\tR\x08receiver\"L\n\tEventMint\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05owner\"L\n\tEventBurn\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05ownerB$Z\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.v1beta1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/x/nft' + _EVENTSEND._serialized_start=54 + _EVENTSEND._serialized_end=160 + _EVENTMINT._serialized_start=162 + _EVENTMINT._serialized_end=238 + _EVENTBURN._serialized_start=240 + _EVENTBURN._serialized_end=316 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/v1beta1/event_pb2.pyi b/nibiru_proto/cosmos/nft/v1beta1/event_pb2.pyi new file mode 100644 index 00000000..8a288663 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/event_pb2.pyi @@ -0,0 +1,97 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 EventSend(google.protobuf.message.Message): + """EventSend is emitted on Msg/Send""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + id: builtins.str + """id is a unique identifier of the nft""" + sender: builtins.str + """sender is the address of the owner of nft""" + receiver: builtins.str + """receiver is the receiver address of nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + sender: builtins.str = ..., + receiver: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id", "receiver", b"receiver", "sender", b"sender"]) -> None: ... + +global___EventSend = EventSend + +@typing_extensions.final +class EventMint(google.protobuf.message.Message): + """EventMint is emitted on Mint""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + id: builtins.str + """id is a unique identifier of the nft""" + owner: builtins.str + """owner is the owner address of the nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + owner: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id", "owner", b"owner"]) -> None: ... + +global___EventMint = EventMint + +@typing_extensions.final +class EventBurn(google.protobuf.message.Message): + """EventBurn is emitted on Burn""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + id: builtins.str + """id is a unique identifier of the nft""" + owner: builtins.str + """owner is the owner address of the nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + owner: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id", "owner", b"owner"]) -> None: ... + +global___EventBurn = EventBurn diff --git a/nibiru_proto/cosmos/nft/v1beta1/event_pb2_grpc.py b/nibiru_proto/cosmos/nft/v1beta1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..77cbfb24 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.nft.v1beta1 import nft_pb2 as cosmos_dot_nft_dot_v1beta1_dot_nft__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/nft/v1beta1/genesis.proto\x12\x12\x63osmos.nft.v1beta1\x1a\x1c\x63osmos/nft/v1beta1/nft.proto\"x\n\x0cGenesisState\x12\x33\n\x07\x63lasses\x18\x01 \x03(\x0b\x32\x19.cosmos.nft.v1beta1.ClassR\x07\x63lasses\x12\x33\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x19.cosmos.nft.v1beta1.EntryR\x07\x65ntries\"J\n\x05\x45ntry\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\x12+\n\x04nfts\x18\x02 \x03(\x0b\x32\x17.cosmos.nft.v1beta1.NFTR\x04nftsB$Z\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/x/nft' + _GENESISSTATE._serialized_start=86 + _GENESISSTATE._serialized_end=206 + _ENTRY._serialized_start=208 + _ENTRY._serialized_end=282 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..73f82eb9 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2.pyi @@ -0,0 +1,65 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.nft.v1beta1.nft_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the nft module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASSES_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + @property + def classes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.nft.v1beta1.nft_pb2.Class]: + """class defines the class of the nft type.""" + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Entry]: + """entry defines all nft owned by a person.""" + def __init__( + self, + *, + classes: collections.abc.Iterable[cosmos.nft.v1beta1.nft_pb2.Class] | None = ..., + entries: collections.abc.Iterable[global___Entry] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["classes", b"classes", "entries", b"entries"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class Entry(google.protobuf.message.Message): + """Entry Defines all nft owned by a person""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OWNER_FIELD_NUMBER: builtins.int + NFTS_FIELD_NUMBER: builtins.int + owner: builtins.str + """owner is the owner address of the following nft""" + @property + def nfts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.nft.v1beta1.nft_pb2.NFT]: + """nfts is a group of nfts of the same owner""" + def __init__( + self, + *, + owner: builtins.str = ..., + nfts: collections.abc.Iterable[cosmos.nft.v1beta1.nft_pb2.NFT] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["nfts", b"nfts", "owner", b"owner"]) -> None: ... + +global___Entry = Entry diff --git a/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.py b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.py new file mode 100644 index 00000000..fa685f2f --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/v1beta1/nft.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/nft/v1beta1/nft.proto\x12\x12\x63osmos.nft.v1beta1\x1a\x19google/protobuf/any.proto\"\xbc\x01\n\x05\x43lass\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x03 \x01(\tR\x06symbol\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03uri\x18\x05 \x01(\tR\x03uri\x12\x19\n\x08uri_hash\x18\x06 \x01(\tR\x07uriHash\x12(\n\x04\x64\x61ta\x18\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x04\x64\x61ta\"\x87\x01\n\x03NFT\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x03 \x01(\tR\x03uri\x12\x19\n\x08uri_hash\x18\x04 \x01(\tR\x07uriHash\x12(\n\x04\x64\x61ta\x18\n \x01(\x0b\x32\x14.google.protobuf.AnyR\x04\x64\x61taB$Z\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.v1beta1.nft_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/x/nft' + _CLASS._serialized_start=80 + _CLASS._serialized_end=268 + _NFT._serialized_start=271 + _NFT._serialized_end=406 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.pyi b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.pyi new file mode 100644 index 00000000..631665a0 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2.pyi @@ -0,0 +1,96 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +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 Class(google.protobuf.message.Message): + """Class defines the class of the nft type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + SYMBOL_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + URI_FIELD_NUMBER: builtins.int + URI_HASH_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + id: builtins.str + """id defines the unique identifier of the NFT classification, similar to the contract address of ERC721""" + name: builtins.str + """name defines the human-readable name of the NFT classification. Optional""" + symbol: builtins.str + """symbol is an abbreviated name for nft classification. Optional""" + description: builtins.str + """description is a brief description of nft classification. Optional""" + uri: builtins.str + """uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional""" + uri_hash: builtins.str + """uri_hash is a hash of the document pointed by uri. Optional""" + @property + def data(self) -> google.protobuf.any_pb2.Any: + """data is the app specific metadata of the NFT class. Optional""" + def __init__( + self, + *, + id: builtins.str = ..., + name: builtins.str = ..., + symbol: builtins.str = ..., + description: builtins.str = ..., + uri: builtins.str = ..., + uri_hash: builtins.str = ..., + data: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data", b"data"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "description", b"description", "id", b"id", "name", b"name", "symbol", b"symbol", "uri", b"uri", "uri_hash", b"uri_hash"]) -> None: ... + +global___Class = Class + +@typing_extensions.final +class NFT(google.protobuf.message.Message): + """NFT defines the NFT.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + URI_FIELD_NUMBER: builtins.int + URI_HASH_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the NFT, similar to the contract address of ERC721""" + id: builtins.str + """id is a unique identifier of the NFT""" + uri: builtins.str + """uri for the NFT metadata stored off chain""" + uri_hash: builtins.str + """uri_hash is a hash of the document pointed by uri""" + @property + def data(self) -> google.protobuf.any_pb2.Any: + """data is an app specific data of the NFT. Optional""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + uri: builtins.str = ..., + uri_hash: builtins.str = ..., + data: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data", b"data"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "data", b"data", "id", b"id", "uri", b"uri", "uri_hash", b"uri_hash"]) -> None: ... + +global___NFT = NFT diff --git a/nibiru_proto/cosmos/nft/v1beta1/nft_pb2_grpc.py b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/nft_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/nft/v1beta1/query_pb2.py b/nibiru_proto/cosmos/nft/v1beta1/query_pb2.py new file mode 100644 index 00000000..c85baac8 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/query_pb2.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.nft.v1beta1 import nft_pb2 as cosmos_dot_nft_dot_v1beta1_dot_nft__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63osmos/nft/v1beta1/query.proto\x12\x12\x63osmos.nft.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x63osmos/nft/v1beta1/nft.proto\"F\n\x13QueryBalanceRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\".\n\x14QueryBalanceResponse\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\">\n\x11QueryOwnerRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"*\n\x12QueryOwnerResponse\x12\x14\n\x05owner\x18\x01 \x01(\tR\x05owner\"/\n\x12QuerySupplyRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\"-\n\x13QuerySupplyResponse\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\"\x8b\x01\n\x10QueryNFTsRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x46\n\npagination\x18\x03 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x89\x01\n\x11QueryNFTsResponse\x12+\n\x04nfts\x18\x01 \x03(\x0b\x32\x17.cosmos.nft.v1beta1.NFTR\x04nfts\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"<\n\x0fQueryNFTRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"=\n\x10QueryNFTResponse\x12)\n\x03nft\x18\x01 \x01(\x0b\x32\x17.cosmos.nft.v1beta1.NFTR\x03nft\".\n\x11QueryClassRequest\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\"E\n\x12QueryClassResponse\x12/\n\x05\x63lass\x18\x01 \x01(\x0b\x32\x19.cosmos.nft.v1beta1.ClassR\x05\x63lass\"]\n\x13QueryClassesRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x94\x01\n\x14QueryClassesResponse\x12\x33\n\x07\x63lasses\x18\x01 \x03(\x0b\x32\x19.cosmos.nft.v1beta1.ClassR\x07\x63lasses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xbe\x07\n\x05Query\x12\x94\x01\n\x07\x42\x61lance\x12\'.cosmos.nft.v1beta1.QueryBalanceRequest\x1a(.cosmos.nft.v1beta1.QueryBalanceResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./cosmos/nft/v1beta1/balance/{owner}/{class_id}\x12\x89\x01\n\x05Owner\x12%.cosmos.nft.v1beta1.QueryOwnerRequest\x1a&.cosmos.nft.v1beta1.QueryOwnerResponse\"1\x82\xd3\xe4\x93\x02+\x12)/cosmos/nft/v1beta1/owner/{class_id}/{id}\x12\x88\x01\n\x06Supply\x12&.cosmos.nft.v1beta1.QuerySupplyRequest\x1a\'.cosmos.nft.v1beta1.QuerySupplyResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/cosmos/nft/v1beta1/supply/{class_id}\x12u\n\x04NFTs\x12$.cosmos.nft.v1beta1.QueryNFTsRequest\x1a%.cosmos.nft.v1beta1.QueryNFTsResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/cosmos/nft/v1beta1/nfts\x12\x82\x01\n\x03NFT\x12#.cosmos.nft.v1beta1.QueryNFTRequest\x1a$.cosmos.nft.v1beta1.QueryNFTResponse\"0\x82\xd3\xe4\x93\x02*\x12(/cosmos/nft/v1beta1/nfts/{class_id}/{id}\x12\x86\x01\n\x05\x43lass\x12%.cosmos.nft.v1beta1.QueryClassRequest\x1a&.cosmos.nft.v1beta1.QueryClassResponse\".\x82\xd3\xe4\x93\x02(\x12&/cosmos/nft/v1beta1/classes/{class_id}\x12\x81\x01\n\x07\x43lasses\x12\'.cosmos.nft.v1beta1.QueryClassesRequest\x1a(.cosmos.nft.v1beta1.QueryClassesResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/nft/v1beta1/classesB$Z\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/x/nft' + _QUERY.methods_by_name['Balance']._options = None + _QUERY.methods_by_name['Balance']._serialized_options = b'\202\323\344\223\0020\022./cosmos/nft/v1beta1/balance/{owner}/{class_id}' + _QUERY.methods_by_name['Owner']._options = None + _QUERY.methods_by_name['Owner']._serialized_options = b'\202\323\344\223\002+\022)/cosmos/nft/v1beta1/owner/{class_id}/{id}' + _QUERY.methods_by_name['Supply']._options = None + _QUERY.methods_by_name['Supply']._serialized_options = b'\202\323\344\223\002\'\022%/cosmos/nft/v1beta1/supply/{class_id}' + _QUERY.methods_by_name['NFTs']._options = None + _QUERY.methods_by_name['NFTs']._serialized_options = b'\202\323\344\223\002\032\022\030/cosmos/nft/v1beta1/nfts' + _QUERY.methods_by_name['NFT']._options = None + _QUERY.methods_by_name['NFT']._serialized_options = b'\202\323\344\223\002*\022(/cosmos/nft/v1beta1/nfts/{class_id}/{id}' + _QUERY.methods_by_name['Class']._options = None + _QUERY.methods_by_name['Class']._serialized_options = b'\202\323\344\223\002(\022&/cosmos/nft/v1beta1/classes/{class_id}' + _QUERY.methods_by_name['Classes']._options = None + _QUERY.methods_by_name['Classes']._serialized_options = b'\202\323\344\223\002\035\022\033/cosmos/nft/v1beta1/classes' + _QUERYBALANCEREQUEST._serialized_start=158 + _QUERYBALANCEREQUEST._serialized_end=228 + _QUERYBALANCERESPONSE._serialized_start=230 + _QUERYBALANCERESPONSE._serialized_end=276 + _QUERYOWNERREQUEST._serialized_start=278 + _QUERYOWNERREQUEST._serialized_end=340 + _QUERYOWNERRESPONSE._serialized_start=342 + _QUERYOWNERRESPONSE._serialized_end=384 + _QUERYSUPPLYREQUEST._serialized_start=386 + _QUERYSUPPLYREQUEST._serialized_end=433 + _QUERYSUPPLYRESPONSE._serialized_start=435 + _QUERYSUPPLYRESPONSE._serialized_end=480 + _QUERYNFTSREQUEST._serialized_start=483 + _QUERYNFTSREQUEST._serialized_end=622 + _QUERYNFTSRESPONSE._serialized_start=625 + _QUERYNFTSRESPONSE._serialized_end=762 + _QUERYNFTREQUEST._serialized_start=764 + _QUERYNFTREQUEST._serialized_end=824 + _QUERYNFTRESPONSE._serialized_start=826 + _QUERYNFTRESPONSE._serialized_end=887 + _QUERYCLASSREQUEST._serialized_start=889 + _QUERYCLASSREQUEST._serialized_end=935 + _QUERYCLASSRESPONSE._serialized_start=937 + _QUERYCLASSRESPONSE._serialized_end=1006 + _QUERYCLASSESREQUEST._serialized_start=1008 + _QUERYCLASSESREQUEST._serialized_end=1101 + _QUERYCLASSESRESPONSE._serialized_start=1104 + _QUERYCLASSESRESPONSE._serialized_end=1252 + _QUERY._serialized_start=1255 + _QUERY._serialized_end=2213 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/nft/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..ed299b64 --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/query_pb2.pyi @@ -0,0 +1,308 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.nft.v1beta1.nft_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 QueryBalanceRequest(google.protobuf.message.Message): + """QueryBalanceRequest is the request type for the Query/Balance RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + owner: builtins.str + """owner is the owner address of the nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + owner: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "owner", b"owner"]) -> None: ... + +global___QueryBalanceRequest = QueryBalanceRequest + +@typing_extensions.final +class QueryBalanceResponse(google.protobuf.message.Message): + """QueryBalanceResponse is the response type for the Query/Balance RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.int + """amount is the number of all NFTs of a given class owned by the owner""" + def __init__( + self, + *, + amount: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___QueryBalanceResponse = QueryBalanceResponse + +@typing_extensions.final +class QueryOwnerRequest(google.protobuf.message.Message): + """QueryOwnerRequest is the request type for the Query/Owner RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + id: builtins.str + """id is a unique identifier of the NFT""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id"]) -> None: ... + +global___QueryOwnerRequest = QueryOwnerRequest + +@typing_extensions.final +class QueryOwnerResponse(google.protobuf.message.Message): + """QueryOwnerResponse is the response type for the Query/Owner RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OWNER_FIELD_NUMBER: builtins.int + owner: builtins.str + """owner is the owner address of the nft""" + def __init__( + self, + *, + owner: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["owner", b"owner"]) -> None: ... + +global___QueryOwnerResponse = QueryOwnerResponse + +@typing_extensions.final +class QuerySupplyRequest(google.protobuf.message.Message): + """QuerySupplyRequest is the request type for the Query/Supply RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id"]) -> None: ... + +global___QuerySupplyRequest = QuerySupplyRequest + +@typing_extensions.final +class QuerySupplyResponse(google.protobuf.message.Message): + """QuerySupplyResponse is the response type for the Query/Supply RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.int + """amount is the number of all NFTs from the given class""" + def __init__( + self, + *, + amount: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___QuerySupplyResponse = QuerySupplyResponse + +@typing_extensions.final +class QueryNFTsRequest(google.protobuf.message.Message): + """QueryNFTstRequest is the request type for the Query/NFTs RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + owner: builtins.str + """owner is the owner address of the nft""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + class_id: builtins.str = ..., + owner: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "owner", b"owner", "pagination", b"pagination"]) -> None: ... + +global___QueryNFTsRequest = QueryNFTsRequest + +@typing_extensions.final +class QueryNFTsResponse(google.protobuf.message.Message): + """QueryNFTsResponse is the response type for the Query/NFTs RPC methods""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NFTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def nfts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.nft.v1beta1.nft_pb2.NFT]: + """NFT defines the NFT""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + nfts: collections.abc.Iterable[cosmos.nft.v1beta1.nft_pb2.NFT] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["nfts", b"nfts", "pagination", b"pagination"]) -> None: ... + +global___QueryNFTsResponse = QueryNFTsResponse + +@typing_extensions.final +class QueryNFTRequest(google.protobuf.message.Message): + """QueryNFTRequest is the request type for the Query/NFT RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + id: builtins.str + """id is a unique identifier of the NFT""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id"]) -> None: ... + +global___QueryNFTRequest = QueryNFTRequest + +@typing_extensions.final +class QueryNFTResponse(google.protobuf.message.Message): + """QueryNFTResponse is the response type for the Query/NFT RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NFT_FIELD_NUMBER: builtins.int + @property + def nft(self) -> cosmos.nft.v1beta1.nft_pb2.NFT: + """owner is the owner address of the nft""" + def __init__( + self, + *, + nft: cosmos.nft.v1beta1.nft_pb2.NFT | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["nft", b"nft"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["nft", b"nft"]) -> None: ... + +global___QueryNFTResponse = QueryNFTResponse + +@typing_extensions.final +class QueryClassRequest(google.protobuf.message.Message): + """QueryClassRequest is the request type for the Query/Class RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id associated with the nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id"]) -> None: ... + +global___QueryClassRequest = QueryClassRequest + +@typing_extensions.final +class QueryClassResponse(google.protobuf.message.Message): + """QueryClassResponse is the response type for the Query/Class RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_FIELD_NUMBER: builtins.int + def __init__( + self, + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["class", b"class"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["class", b"class"]) -> None: ... + +global___QueryClassResponse = QueryClassResponse + +@typing_extensions.final +class QueryClassesRequest(google.protobuf.message.Message): + """QueryClassesRequest is the request type for the Query/Classes RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryClassesRequest = QueryClassesRequest + +@typing_extensions.final +class QueryClassesResponse(google.protobuf.message.Message): + """QueryClassesResponse is the response type for the Query/Classes RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def classes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.nft.v1beta1.nft_pb2.Class]: + """class defines the class of the nft type.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + classes: collections.abc.Iterable[cosmos.nft.v1beta1.nft_pb2.Class] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["classes", b"classes", "pagination", b"pagination"]) -> None: ... + +global___QueryClassesResponse = QueryClassesResponse diff --git a/nibiru_proto/cosmos/nft/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/nft/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..eb4ca61d --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/query_pb2_grpc.py @@ -0,0 +1,275 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.nft.v1beta1 import query_pb2 as cosmos_dot_nft_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Balance = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/Balance', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.FromString, + ) + self.Owner = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/Owner', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerResponse.FromString, + ) + self.Supply = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/Supply', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyResponse.FromString, + ) + self.NFTs = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/NFTs', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsResponse.FromString, + ) + self.NFT = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/NFT', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTResponse.FromString, + ) + self.Class = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/Class', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassResponse.FromString, + ) + self.Classes = channel.unary_unary( + '/cosmos.nft.v1beta1.Query/Classes', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesRequest.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Balance(self, request, context): + """Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Owner(self, request, context): + """Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Supply(self, request, context): + """Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def NFTs(self, request, context): + """NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in + ERC721Enumerable + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def NFT(self, request, context): + """NFT queries an NFT based on its class and id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Class(self, request, context): + """Class queries an NFT class based on its id + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Classes(self, request, context): + """Classes queries all NFT classes + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Balance': grpc.unary_unary_rpc_method_handler( + servicer.Balance, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.SerializeToString, + ), + 'Owner': grpc.unary_unary_rpc_method_handler( + servicer.Owner, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerResponse.SerializeToString, + ), + 'Supply': grpc.unary_unary_rpc_method_handler( + servicer.Supply, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyResponse.SerializeToString, + ), + 'NFTs': grpc.unary_unary_rpc_method_handler( + servicer.NFTs, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsResponse.SerializeToString, + ), + 'NFT': grpc.unary_unary_rpc_method_handler( + servicer.NFT, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTResponse.SerializeToString, + ), + 'Class': grpc.unary_unary_rpc_method_handler( + servicer.Class, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassResponse.SerializeToString, + ), + 'Classes': grpc.unary_unary_rpc_method_handler( + servicer.Classes, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesRequest.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.nft.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Balance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/Balance', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryBalanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Owner(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/Owner', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryOwnerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Supply(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/Supply', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QuerySupplyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def NFTs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/NFTs', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def NFT(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/NFT', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryNFTResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Class(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/Class', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Classes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Query/Classes', + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesRequest.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_query__pb2.QueryClassesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.py new file mode 100644 index 00000000..d341fb9b --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/nft/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/nft/v1beta1/tx.proto\x12\x12\x63osmos.nft.v1beta1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\"\xa9\x01\n\x07MsgSend\x12\x19\n\x08\x63lass_id\x18\x01 \x01(\tR\x07\x63lassId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x30\n\x06sender\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12\x34\n\x08receiver\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08receiver:\x0b\x82\xe7\xb0*\x06sender\"\x11\n\x0fMsgSendResponse2V\n\x03Msg\x12H\n\x04Send\x12\x1b.cosmos.nft.v1beta1.MsgSend\x1a#.cosmos.nft.v1beta1.MsgSendResponse\x1a\x05\x80\xe7\xb0*\x01\x42$Z\"github.com/cosmos/cosmos-sdk/x/nftb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.nft.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\"github.com/cosmos/cosmos-sdk/x/nft' + _MSGSEND.fields_by_name['sender']._options = None + _MSGSEND.fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSEND.fields_by_name['receiver']._options = None + _MSGSEND.fields_by_name['receiver']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSEND._options = None + _MSGSEND._serialized_options = b'\202\347\260*\006sender' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSEND._serialized_start=104 + _MSGSEND._serialized_end=273 + _MSGSENDRESPONSE._serialized_start=275 + _MSGSENDRESPONSE._serialized_end=292 + _MSG._serialized_start=294 + _MSG._serialized_end=380 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..7d25d82a --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2.pyi @@ -0,0 +1,57 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 MsgSend(google.protobuf.message.Message): + """MsgSend represents a message to send a nft from one account to another account.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CLASS_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + class_id: builtins.str + """class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721""" + id: builtins.str + """id defines the unique identification of nft""" + sender: builtins.str + """sender is the address of the owner of nft""" + receiver: builtins.str + """receiver is the receiver address of nft""" + def __init__( + self, + *, + class_id: builtins.str = ..., + id: builtins.str = ..., + sender: builtins.str = ..., + receiver: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "id", b"id", "receiver", b"receiver", "sender", b"sender"]) -> None: ... + +global___MsgSend = MsgSend + +@typing_extensions.final +class MsgSendResponse(google.protobuf.message.Message): + """MsgSendResponse defines the Msg/Send response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgSendResponse = MsgSendResponse diff --git a/nibiru_proto/cosmos/nft/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..54c45b6e --- /dev/null +++ b/nibiru_proto/cosmos/nft/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.nft.v1beta1 import tx_pb2 as cosmos_dot_nft_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the nft Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Send = channel.unary_unary( + '/cosmos.nft.v1beta1.Msg/Send', + request_serializer=cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSend.SerializeToString, + response_deserializer=cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSendResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the nft Msg service. + """ + + def Send(self, request, context): + """Send defines a method to send a nft from one account to another account. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Send': grpc.unary_unary_rpc_method_handler( + servicer.Send, + request_deserializer=cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSend.FromString, + response_serializer=cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSendResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.nft.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the nft Msg service. + """ + + @staticmethod + def Send(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.nft.v1beta1.Msg/Send', + cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSend.SerializeToString, + cosmos_dot_nft_dot_v1beta1_dot_tx__pb2.MsgSendResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.py b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.py new file mode 100644 index 00000000..6dfd9527 --- /dev/null +++ b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/orm/module/v1alpha1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/orm/module/v1alpha1/module.proto\x12\x1a\x63osmos.orm.module.v1alpha1\x1a cosmos/app/v1alpha1/module.proto\"2\n\x06Module:(\xba\xc0\x96\xda\x01\"\n github.com/cosmos/cosmos-sdk/ormb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.module.v1alpha1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001\"\n github.com/cosmos/cosmos-sdk/orm' + _MODULE._serialized_start=105 + _MODULE._serialized_end=155 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.pyi b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.pyi new file mode 100644 index 00000000..8608bae4 --- /dev/null +++ b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2.pyi @@ -0,0 +1,29 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 defines the ORM module which adds providers to the app container for + module-scoped DB's. In the future it may provide gRPC services for interacting + with ORM data. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.py b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.py new file mode 100644 index 00000000..4fd7dd4e --- /dev/null +++ b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/orm/query/v1alpha1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/orm/query/v1alpha1/query.proto\x12\x19\x63osmos.orm.query.v1alpha1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x19google/protobuf/any.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\"\x84\x01\n\nGetRequest\x12!\n\x0cmessage_name\x18\x01 \x01(\tR\x0bmessageName\x12\x14\n\x05index\x18\x02 \x01(\tR\x05index\x12=\n\x06values\x18\x03 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x06values\";\n\x0bGetResponse\x12,\n\x06result\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06result\"\xee\x03\n\x0bListRequest\x12!\n\x0cmessage_name\x18\x01 \x01(\tR\x0bmessageName\x12\x14\n\x05index\x18\x02 \x01(\tR\x05index\x12G\n\x06prefix\x18\x03 \x01(\x0b\x32-.cosmos.orm.query.v1alpha1.ListRequest.PrefixH\x00R\x06prefix\x12\x44\n\x05range\x18\x04 \x01(\x0b\x32,.cosmos.orm.query.v1alpha1.ListRequest.RangeH\x00R\x05range\x12\x46\n\npagination\x18\x05 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\x1aG\n\x06Prefix\x12=\n\x06values\x18\x01 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x06values\x1a}\n\x05Range\x12;\n\x05start\x18\x01 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x05start\x12\x37\n\x03\x65nd\x18\x02 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x03\x65ndB\x07\n\x05query\"\x87\x01\n\x0cListResponse\x12.\n\x07results\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x07results\x12G\n\npagination\x18\x05 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x8c\x02\n\nIndexValue\x12\x14\n\x04uint\x18\x01 \x01(\x04H\x00R\x04uint\x12\x12\n\x03int\x18\x02 \x01(\x03H\x00R\x03int\x12\x12\n\x03str\x18\x03 \x01(\tH\x00R\x03str\x12\x16\n\x05\x62ytes\x18\x04 \x01(\x0cH\x00R\x05\x62ytes\x12\x14\n\x04\x65num\x18\x05 \x01(\tH\x00R\x04\x65num\x12\x14\n\x04\x62ool\x18\x06 \x01(\x08H\x00R\x04\x62ool\x12:\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\ttimestamp\x12\x37\n\x08\x64uration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value2\xb6\x01\n\x05Query\x12T\n\x03Get\x12%.cosmos.orm.query.v1alpha1.GetRequest\x1a&.cosmos.orm.query.v1alpha1.GetResponse\x12W\n\x04List\x12&.cosmos.orm.query.v1alpha1.ListRequest\x1a\'.cosmos.orm.query.v1alpha1.ListResponseb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.query.v1alpha1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _GETREQUEST._serialized_start=205 + _GETREQUEST._serialized_end=337 + _GETRESPONSE._serialized_start=339 + _GETRESPONSE._serialized_end=398 + _LISTREQUEST._serialized_start=401 + _LISTREQUEST._serialized_end=895 + _LISTREQUEST_PREFIX._serialized_start=688 + _LISTREQUEST_PREFIX._serialized_end=759 + _LISTREQUEST_RANGE._serialized_start=761 + _LISTREQUEST_RANGE._serialized_end=886 + _LISTRESPONSE._serialized_start=898 + _LISTRESPONSE._serialized_end=1033 + _INDEXVALUE._serialized_start=1036 + _INDEXVALUE._serialized_end=1304 + _QUERY._serialized_start=1307 + _QUERY._serialized_end=1489 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.pyi b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.pyi new file mode 100644 index 00000000..10e99d6f --- /dev/null +++ b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2.pyi @@ -0,0 +1,244 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 GetRequest(google.protobuf.message.Message): + """GetRequest is the Query/Get request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGE_NAME_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int + message_name: builtins.str + """message_name is the fully-qualified message name of the ORM table being queried.""" + index: builtins.str + """index is the index fields expression used in orm definitions. If it + is empty, the table's primary key is assumed. If it is non-empty, it must + refer to an unique index. + """ + @property + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexValue]: + """values are the values of the fields corresponding to the requested index. + There must be as many values provided as there are fields in the index and + these values must correspond to the index field types. + """ + def __init__( + self, + *, + message_name: builtins.str = ..., + index: builtins.str = ..., + values: collections.abc.Iterable[global___IndexValue] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "message_name", b"message_name", "values", b"values"]) -> None: ... + +global___GetRequest = GetRequest + +@typing_extensions.final +class GetResponse(google.protobuf.message.Message): + """GetResponse is the Query/Get response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + @property + def result(self) -> google.protobuf.any_pb2.Any: + """result is the result of the get query. If no value is found, the gRPC + status code NOT_FOUND will be returned. + """ + def __init__( + self, + *, + result: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + +global___GetResponse = GetResponse + +@typing_extensions.final +class ListRequest(google.protobuf.message.Message): + """ListRequest is the Query/List request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Prefix(google.protobuf.message.Message): + """Prefix specifies the arguments to a prefix query.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexValue]: + """values specifies the index values for the prefix query. + It is valid to special a partial prefix with fewer values than + the number of fields in the index. + """ + def __init__( + self, + *, + values: collections.abc.Iterable[global___IndexValue] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + + @typing_extensions.final + class Range(google.protobuf.message.Message): + """Range specifies the arguments to a range query.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + START_FIELD_NUMBER: builtins.int + END_FIELD_NUMBER: builtins.int + @property + def start(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexValue]: + """start specifies the starting index values for the range query. + It is valid to provide fewer values than the number of fields in the + index. + """ + @property + def end(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexValue]: + """end specifies the inclusive ending index values for the range query. + It is valid to provide fewer values than the number of fields in the + index. + """ + def __init__( + self, + *, + start: collections.abc.Iterable[global___IndexValue] | None = ..., + end: collections.abc.Iterable[global___IndexValue] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["end", b"end", "start", b"start"]) -> None: ... + + MESSAGE_NAME_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + RANGE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + message_name: builtins.str + """message_name is the fully-qualified message name of the ORM table being queried.""" + index: builtins.str + """index is the index fields expression used in orm definitions. If it + is empty, the table's primary key is assumed. + """ + @property + def prefix(self) -> global___ListRequest.Prefix: + """prefix defines a prefix query.""" + @property + def range(self) -> global___ListRequest.Range: + """range defines a range query.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination is the pagination request.""" + def __init__( + self, + *, + message_name: builtins.str = ..., + index: builtins.str = ..., + prefix: global___ListRequest.Prefix | None = ..., + range: global___ListRequest.Range | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "prefix", b"prefix", "query", b"query", "range", b"range"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "message_name", b"message_name", "pagination", b"pagination", "prefix", b"prefix", "query", b"query", "range", b"range"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["query", b"query"]) -> typing_extensions.Literal["prefix", "range"] | None: ... + +global___ListRequest = ListRequest + +@typing_extensions.final +class ListResponse(google.protobuf.message.Message): + """ListResponse is the Query/List response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """results are the results of the query.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination is the pagination response.""" + def __init__( + self, + *, + results: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "results", b"results"]) -> None: ... + +global___ListResponse = ListResponse + +@typing_extensions.final +class IndexValue(google.protobuf.message.Message): + """IndexValue represents the value of a field in an ORM index expression.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UINT_FIELD_NUMBER: builtins.int + INT_FIELD_NUMBER: builtins.int + STR_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + ENUM_FIELD_NUMBER: builtins.int + BOOL_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + uint: builtins.int + """uint specifies a value for an uint32, fixed32, uint64, or fixed64 + index field. + """ + int: builtins.int + """int64 specifies a value for an int32, sfixed32, int64, or sfixed64 + index field. + """ + str: builtins.str + """str specifies a value for a string index field.""" + bytes: builtins.bytes + """bytes specifies a value for a bytes index field.""" + enum: builtins.str + """enum specifies a value for an enum index field.""" + bool: builtins.bool + """bool specifies a value for a bool index field.""" + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + """timestamp specifies a value for a timestamp index field.""" + @property + def duration(self) -> google.protobuf.duration_pb2.Duration: + """duration specifies a value for a duration index field.""" + def __init__( + self, + *, + uint: builtins.int = ..., + int: builtins.int = ..., + str: builtins.str = ..., + bytes: builtins.bytes = ..., + enum: builtins.str = ..., + bool: builtins.bool = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + duration: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["bool", b"bool", "bytes", b"bytes", "duration", b"duration", "enum", b"enum", "int", b"int", "str", b"str", "timestamp", b"timestamp", "uint", b"uint", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bool", b"bool", "bytes", b"bytes", "duration", b"duration", "enum", b"enum", "int", b"int", "str", b"str", "timestamp", b"timestamp", "uint", b"uint", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["uint", "int", "str", "bytes", "enum", "bool", "timestamp", "duration"] | None: ... + +global___IndexValue = IndexValue diff --git a/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py new file mode 100644 index 00000000..e0bef2c3 --- /dev/null +++ b/nibiru_proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.orm.query.v1alpha1 import query_pb2 as cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2 + + +class QueryStub(object): + """Query is a generic gRPC service for querying ORM data. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Get = channel.unary_unary( + '/cosmos.orm.query.v1alpha1.Query/Get', + request_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.SerializeToString, + response_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.FromString, + ) + self.List = channel.unary_unary( + '/cosmos.orm.query.v1alpha1.Query/List', + request_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.SerializeToString, + response_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.FromString, + ) + + +class QueryServicer(object): + """Query is a generic gRPC service for querying ORM data. + """ + + def Get(self, request, context): + """Get queries an ORM table against an unique index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def List(self, request, context): + """List queries an ORM table against an index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.FromString, + response_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.SerializeToString, + ), + 'List': grpc.unary_unary_rpc_method_handler( + servicer.List, + request_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.FromString, + response_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.orm.query.v1alpha1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query is a generic gRPC service for querying ORM data. + """ + + @staticmethod + def Get(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.orm.query.v1alpha1.Query/Get', + cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.SerializeToString, + cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.orm.query.v1alpha1.Query/List', + cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.SerializeToString, + cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/orm/v1/orm_pb2.py b/nibiru_proto/cosmos/orm/v1/orm_pb2.py new file mode 100644 index 00000000..72131e11 --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1/orm_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/orm/v1/orm.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63osmos/orm/v1/orm.proto\x12\rcosmos.orm.v1\x1a google/protobuf/descriptor.proto\"\xa6\x01\n\x0fTableDescriptor\x12\x44\n\x0bprimary_key\x18\x01 \x01(\x0b\x32#.cosmos.orm.v1.PrimaryKeyDescriptorR\nprimaryKey\x12=\n\x05index\x18\x02 \x03(\x0b\x32\'.cosmos.orm.v1.SecondaryIndexDescriptorR\x05index\x12\x0e\n\x02id\x18\x03 \x01(\rR\x02id\"U\n\x14PrimaryKeyDescriptor\x12\x16\n\x06\x66ields\x18\x01 \x01(\tR\x06\x66ields\x12%\n\x0e\x61uto_increment\x18\x02 \x01(\x08R\rautoIncrement\"Z\n\x18SecondaryIndexDescriptor\x12\x16\n\x06\x66ields\x18\x01 \x01(\tR\x06\x66ields\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02id\x12\x16\n\x06unique\x18\x03 \x01(\x08R\x06unique\"%\n\x13SingletonDescriptor\x12\x0e\n\x02id\x18\x01 \x01(\rR\x02id:X\n\x05table\x12\x1f.google.protobuf.MessageOptions\x18\xee\xb3\xea\x31 \x01(\x0b\x32\x1e.cosmos.orm.v1.TableDescriptorR\x05table:d\n\tsingleton\x12\x1f.google.protobuf.MessageOptions\x18\xef\xb3\xea\x31 \x01(\x0b\x32\".cosmos.orm.v1.SingletonDescriptorR\tsingletonb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.v1.orm_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(table) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(singleton) + + DESCRIPTOR._options = None + _TABLEDESCRIPTOR._serialized_start=77 + _TABLEDESCRIPTOR._serialized_end=243 + _PRIMARYKEYDESCRIPTOR._serialized_start=245 + _PRIMARYKEYDESCRIPTOR._serialized_end=330 + _SECONDARYINDEXDESCRIPTOR._serialized_start=332 + _SECONDARYINDEXDESCRIPTOR._serialized_end=422 + _SINGLETONDESCRIPTOR._serialized_start=424 + _SINGLETONDESCRIPTOR._serialized_end=461 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/orm/v1/orm_pb2.pyi b/nibiru_proto/cosmos/orm/v1/orm_pb2.pyi new file mode 100644 index 00000000..965f9999 --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1/orm_pb2.pyi @@ -0,0 +1,176 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.extension_dict +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 TableDescriptor(google.protobuf.message.Message): + """TableDescriptor describes an ORM table.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PRIMARY_KEY_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + @property + def primary_key(self) -> global___PrimaryKeyDescriptor: + """primary_key defines the primary key for the table.""" + @property + def index(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecondaryIndexDescriptor]: + """index defines one or more secondary indexes.""" + id: builtins.int + """id is a non-zero integer ID that must be unique within the + tables and singletons in this file. It may be deprecated in the future when this + can be auto-generated. + """ + def __init__( + self, + *, + primary_key: global___PrimaryKeyDescriptor | None = ..., + index: collections.abc.Iterable[global___SecondaryIndexDescriptor] | None = ..., + id: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["primary_key", b"primary_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "index", b"index", "primary_key", b"primary_key"]) -> None: ... + +global___TableDescriptor = TableDescriptor + +@typing_extensions.final +class PrimaryKeyDescriptor(google.protobuf.message.Message): + """PrimaryKeyDescriptor describes a table primary key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIELDS_FIELD_NUMBER: builtins.int + AUTO_INCREMENT_FIELD_NUMBER: builtins.int + fields: builtins.str + """fields is a comma-separated list of fields in the primary key. Spaces are + not allowed. Supported field types, their encodings, and any applicable constraints + are described below. + - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + is suitable for sorted iteration (not varint encoding). This type is + well-suited for small integers. + - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + is suitable for sorted iteration (not varint encoding). This type is + well-suited for small integers such as auto-incrementing sequences. + - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + sorted iteration. These types are well-suited for encoding fixed with + decimals as integers. + - string's are encoded as raw bytes in terminal key segments and null-terminated + in non-terminal segments. Null characters are thus forbidden in strings. + string fields support sorted iteration. + - bytes are encoded as raw bytes in terminal segments and length-prefixed + with a 32-bit unsigned varint in non-terminal segments. + - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + an encoding that enables sorted iteration. + - google.protobuf.Timestamp and google.protobuf.Duration are encoded + as 12 bytes using an encoding that enables sorted iteration. + - enum fields are encoded using varint encoding and do not support sorted + iteration. + - bool fields are encoded as a single byte 0 or 1. + + All other fields types are unsupported in keys including repeated and + oneof fields. + + Primary keys are prefixed by the varint encoded table id and the byte 0x0 + plus any additional prefix specified by the schema. + """ + auto_increment: builtins.bool + """auto_increment specifies that the primary key is generated by an + auto-incrementing integer. If this is set to true fields must only + contain one field of that is of type uint64. + """ + def __init__( + self, + *, + fields: builtins.str = ..., + auto_increment: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["auto_increment", b"auto_increment", "fields", b"fields"]) -> None: ... + +global___PrimaryKeyDescriptor = PrimaryKeyDescriptor + +@typing_extensions.final +class SecondaryIndexDescriptor(google.protobuf.message.Message): + """PrimaryKeyDescriptor describes a table secondary index.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIELDS_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + UNIQUE_FIELD_NUMBER: builtins.int + fields: builtins.str + """fields is a comma-separated list of fields in the index. The supported + field types are the same as those for PrimaryKeyDescriptor.fields. + Index keys are prefixed by the varint encoded table id and the varint + encoded index id plus any additional prefix specified by the schema. + + In addition the field segments, non-unique index keys are suffixed with + any additional primary key fields not present in the index fields so that the + primary key can be reconstructed. Unique indexes instead of being suffixed + store the remaining primary key fields in the value.. + """ + id: builtins.int + """id is a non-zero integer ID that must be unique within the indexes for this + table and less than 32768. It may be deprecated in the future when this can + be auto-generated. + """ + unique: builtins.bool + """unique specifies that this an unique index.""" + def __init__( + self, + *, + fields: builtins.str = ..., + id: builtins.int = ..., + unique: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields", "id", b"id", "unique", b"unique"]) -> None: ... + +global___SecondaryIndexDescriptor = SecondaryIndexDescriptor + +@typing_extensions.final +class SingletonDescriptor(google.protobuf.message.Message): + """TableDescriptor describes an ORM singleton table which has at most one instance.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + id: builtins.int + """id is a non-zero integer ID that must be unique within the + tables and singletons in this file. It may be deprecated in the future when this + can be auto-generated. + """ + def __init__( + self, + *, + id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ... + +global___SingletonDescriptor = SingletonDescriptor + +TABLE_FIELD_NUMBER: builtins.int +SINGLETON_FIELD_NUMBER: builtins.int +table: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, global___TableDescriptor] +"""table specifies that this message will be used as an ORM table. It cannot +be used together with the singleton option. +""" +singleton: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, global___SingletonDescriptor] +"""singleton specifies that this message will be used as an ORM singleton. It cannot +be used together with the table option. +""" diff --git a/nibiru_proto/cosmos/orm/v1/orm_pb2_grpc.py b/nibiru_proto/cosmos/orm/v1/orm_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1/orm_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.py b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.py new file mode 100644 index 00000000..14befb0c --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/orm/v1alpha1/schema.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/orm/v1alpha1/schema.proto\x12\x13\x63osmos.orm.v1alpha1\x1a google/protobuf/descriptor.proto\"\x93\x02\n\x16ModuleSchemaDescriptor\x12V\n\x0bschema_file\x18\x01 \x03(\x0b\x32\x35.cosmos.orm.v1alpha1.ModuleSchemaDescriptor.FileEntryR\nschemaFile\x12\x16\n\x06prefix\x18\x02 \x01(\x0cR\x06prefix\x1a\x88\x01\n\tFileEntry\x12\x0e\n\x02id\x18\x01 \x01(\rR\x02id\x12&\n\x0fproto_file_name\x18\x02 \x01(\tR\rprotoFileName\x12\x43\n\x0cstorage_type\x18\x03 \x01(\x0e\x32 .cosmos.orm.v1alpha1.StorageTypeR\x0bstorageType*\x9d\x01\n\x0bStorageType\x12$\n STORAGE_TYPE_DEFAULT_UNSPECIFIED\x10\x00\x12\x17\n\x13STORAGE_TYPE_MEMORY\x10\x01\x12\x1a\n\x16STORAGE_TYPE_TRANSIENT\x10\x02\x12\x16\n\x12STORAGE_TYPE_INDEX\x10\x03\x12\x1b\n\x17STORAGE_TYPE_COMMITMENT\x10\x04:t\n\rmodule_schema\x12\x1f.google.protobuf.MessageOptions\x18\xf0\xb3\xea\x31 \x01(\x0b\x32+.cosmos.orm.v1alpha1.ModuleSchemaDescriptorR\x0cmoduleSchemab\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.v1alpha1.schema_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(module_schema) + + DESCRIPTOR._options = None + _STORAGETYPE._serialized_start=370 + _STORAGETYPE._serialized_end=527 + _MODULESCHEMADESCRIPTOR._serialized_start=92 + _MODULESCHEMADESCRIPTOR._serialized_end=367 + _MODULESCHEMADESCRIPTOR_FILEENTRY._serialized_start=231 + _MODULESCHEMADESCRIPTOR_FILEENTRY._serialized_end=367 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.pyi b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.pyi new file mode 100644 index 00000000..f4a6d7e0 --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2.pyi @@ -0,0 +1,165 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.internal.extension_dict +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _StorageType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _StorageTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StorageType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STORAGE_TYPE_DEFAULT_UNSPECIFIED: _StorageType.ValueType # 0 + """STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent + KV-storage where primary key entries are stored in merkle-tree + backed commitment storage and indexes and seqs are stored in + fast index storage. Note that the Cosmos SDK before store/v2alpha1 + does not support this. + """ + STORAGE_TYPE_MEMORY: _StorageType.ValueType # 1 + """STORAGE_TYPE_MEMORY indicates in-memory storage that will be + reloaded every time an app restarts. Tables with this type of storage + will by default be ignored when importing and exporting a module's + state from JSON. + """ + STORAGE_TYPE_TRANSIENT: _StorageType.ValueType # 2 + """STORAGE_TYPE_TRANSIENT indicates transient storage that is reset + at the end of every block. Tables with this type of storage + will by default be ignored when importing and exporting a module's + state from JSON. + """ + STORAGE_TYPE_INDEX: _StorageType.ValueType # 3 + """STORAGE_TYPE_INDEX indicates persistent storage which is not backed + by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK + before store/v2alpha1 does not support this. + """ + STORAGE_TYPE_COMMITMENT: _StorageType.ValueType # 4 + """STORAGE_TYPE_INDEX indicates persistent storage which is backed by + a merkle-tree. With this type of storage, both primary and index keys + will affect the app hash and this is generally less efficient + than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index + keys into index storage. Note that modules built with the + Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT + instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX + because this is the only type of persistent storage available. + """ + +class StorageType(_StorageType, metaclass=_StorageTypeEnumTypeWrapper): + """StorageType""" + +STORAGE_TYPE_DEFAULT_UNSPECIFIED: StorageType.ValueType # 0 +"""STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent +KV-storage where primary key entries are stored in merkle-tree +backed commitment storage and indexes and seqs are stored in +fast index storage. Note that the Cosmos SDK before store/v2alpha1 +does not support this. +""" +STORAGE_TYPE_MEMORY: StorageType.ValueType # 1 +"""STORAGE_TYPE_MEMORY indicates in-memory storage that will be +reloaded every time an app restarts. Tables with this type of storage +will by default be ignored when importing and exporting a module's +state from JSON. +""" +STORAGE_TYPE_TRANSIENT: StorageType.ValueType # 2 +"""STORAGE_TYPE_TRANSIENT indicates transient storage that is reset +at the end of every block. Tables with this type of storage +will by default be ignored when importing and exporting a module's +state from JSON. +""" +STORAGE_TYPE_INDEX: StorageType.ValueType # 3 +"""STORAGE_TYPE_INDEX indicates persistent storage which is not backed +by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK +before store/v2alpha1 does not support this. +""" +STORAGE_TYPE_COMMITMENT: StorageType.ValueType # 4 +"""STORAGE_TYPE_INDEX indicates persistent storage which is backed by +a merkle-tree. With this type of storage, both primary and index keys +will affect the app hash and this is generally less efficient +than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index +keys into index storage. Note that modules built with the +Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT +instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX +because this is the only type of persistent storage available. +""" +global___StorageType = StorageType + +@typing_extensions.final +class ModuleSchemaDescriptor(google.protobuf.message.Message): + """ModuleSchemaDescriptor describe's a module's ORM schema.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class FileEntry(google.protobuf.message.Message): + """FileEntry describes an ORM file used in a module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + PROTO_FILE_NAME_FIELD_NUMBER: builtins.int + STORAGE_TYPE_FIELD_NUMBER: builtins.int + id: builtins.int + """id is a prefix that will be varint encoded and prepended to all the + table keys specified in the file's tables. + """ + proto_file_name: builtins.str + """proto_file_name is the name of a file .proto in that contains + table definitions. The .proto file must be in a package that the + module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. + """ + storage_type: global___StorageType.ValueType + """storage_type optionally indicates the type of storage this file's + tables should used. If it is left unspecified, the default KV-storage + of the app will be used. + """ + def __init__( + self, + *, + id: builtins.int = ..., + proto_file_name: builtins.str = ..., + storage_type: global___StorageType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "proto_file_name", b"proto_file_name", "storage_type", b"storage_type"]) -> None: ... + + SCHEMA_FILE_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + @property + def schema_file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModuleSchemaDescriptor.FileEntry]: ... + prefix: builtins.bytes + """prefix is an optional prefix that precedes all keys in this module's + store. + """ + def __init__( + self, + *, + schema_file: collections.abc.Iterable[global___ModuleSchemaDescriptor.FileEntry] | None = ..., + prefix: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["prefix", b"prefix", "schema_file", b"schema_file"]) -> None: ... + +global___ModuleSchemaDescriptor = ModuleSchemaDescriptor + +MODULE_SCHEMA_FIELD_NUMBER: builtins.int +module_schema: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, global___ModuleSchemaDescriptor] +"""module_schema is used to define the ORM schema for an app module. +All module config messages that use module_schema must also declare +themselves as app module config messages using the cosmos.app.v1.is_module +option. +""" diff --git a/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/params/module/v1/module_pb2.py b/nibiru_proto/cosmos/params/module/v1/module_pb2.py new file mode 100644 index 00000000..bd2566ff --- /dev/null +++ b/nibiru_proto/cosmos/params/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/params/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/params/module/v1/module.proto\x12\x17\x63osmos.params.module.v1\x1a cosmos/app/v1alpha1/module.proto\"7\n\x06Module:-\xba\xc0\x96\xda\x01\'\n%github.com/cosmos/cosmos-sdk/x/paramsb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.params.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001\'\n%github.com/cosmos/cosmos-sdk/x/params' + _MODULE._serialized_start=99 + _MODULE._serialized_end=154 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/params/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/params/module/v1/module_pb2.pyi new file mode 100644 index 00000000..0c20c4e3 --- /dev/null +++ b/nibiru_proto/cosmos/params/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the params module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/params/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/params/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/params/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/params/v1beta1/params_pb2.py b/nibiru_proto/cosmos/params/v1beta1/params_pb2.py new file mode 100644 index 00000000..1fc4950f --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/params_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/params/v1beta1/params.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/params/v1beta1/params.proto\x12\x15\x63osmos.params.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xe9\x01\n\x17ParameterChangeProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12G\n\x07\x63hanges\x18\x03 \x03(\x0b\x32\".cosmos.params.v1beta1.ParamChangeB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x63hanges:M\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*\"cosmos-sdk/ParameterChangeProposal\"W\n\x0bParamChange\x12\x1a\n\x08subspace\x18\x01 \x01(\tR\x08subspace\x12\x10\n\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n\x05value\x18\x03 \x01(\tR\x05value:\x04\x98\xa0\x1f\x00\x42:Z4github.com/cosmos/cosmos-sdk/x/params/types/proposal\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.params.v1beta1.params_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z4github.com/cosmos/cosmos-sdk/x/params/types/proposal\250\342\036\001' + _PARAMETERCHANGEPROPOSAL.fields_by_name['changes']._options = None + _PARAMETERCHANGEPROPOSAL.fields_by_name['changes']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PARAMETERCHANGEPROPOSAL._options = None + _PARAMETERCHANGEPROPOSAL._serialized_options = b'\210\240\037\000\230\240\037\000\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*\"cosmos-sdk/ParameterChangeProposal' + _PARAMCHANGE._options = None + _PARAMCHANGE._serialized_options = b'\230\240\037\000' + _PARAMETERCHANGEPROPOSAL._serialized_start=130 + _PARAMETERCHANGEPROPOSAL._serialized_end=363 + _PARAMCHANGE._serialized_start=365 + _PARAMCHANGE._serialized_end=452 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/params/v1beta1/params_pb2.pyi b/nibiru_proto/cosmos/params/v1beta1/params_pb2.pyi new file mode 100644 index 00000000..c0aa455e --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/params_pb2.pyi @@ -0,0 +1,66 @@ +""" +@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 ParameterChangeProposal(google.protobuf.message.Message): + """ParameterChangeProposal defines a proposal to change one or more parameters.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + CHANGES_FIELD_NUMBER: builtins.int + title: builtins.str + description: builtins.str + @property + def changes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParamChange]: ... + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + changes: collections.abc.Iterable[global___ParamChange] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["changes", b"changes", "description", b"description", "title", b"title"]) -> None: ... + +global___ParameterChangeProposal = ParameterChangeProposal + +@typing_extensions.final +class ParamChange(google.protobuf.message.Message): + """ParamChange defines an individual parameter change, for use in + ParameterChangeProposal. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + subspace: builtins.str + key: builtins.str + value: builtins.str + def __init__( + self, + *, + subspace: builtins.str = ..., + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "subspace", b"subspace", "value", b"value"]) -> None: ... + +global___ParamChange = ParamChange diff --git a/nibiru_proto/cosmos/params/v1beta1/params_pb2_grpc.py b/nibiru_proto/cosmos/params/v1beta1/params_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/params_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/params/v1beta1/query_pb2.py b/nibiru_proto/cosmos/params/v1beta1/query_pb2.py new file mode 100644 index 00000000..ff6c29b8 --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/query_pb2.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/params/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.params.v1beta1 import params_pb2 as cosmos_dot_params_dot_v1beta1_dot_params__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cosmos/params/v1beta1/query.proto\x12\x15\x63osmos.params.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\"cosmos/params/v1beta1/params.proto\x1a\x11\x61mino/amino.proto\"B\n\x12QueryParamsRequest\x12\x1a\n\x08subspace\x18\x01 \x01(\tR\x08subspace\x12\x10\n\x03key\x18\x02 \x01(\tR\x03key\"Z\n\x13QueryParamsResponse\x12\x43\n\x05param\x18\x01 \x01(\x0b\x32\".cosmos.params.v1beta1.ParamChangeB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05param\"\x17\n\x15QuerySubspacesRequest\"W\n\x16QuerySubspacesResponse\x12=\n\tsubspaces\x18\x01 \x03(\x0b\x32\x1f.cosmos.params.v1beta1.SubspaceR\tsubspaces\":\n\x08Subspace\x12\x1a\n\x08subspace\x18\x01 \x01(\tR\x08subspace\x12\x12\n\x04keys\x18\x02 \x03(\tR\x04keys2\xa5\x02\n\x05Query\x12\x86\x01\n\x06Params\x12).cosmos.params.v1beta1.QueryParamsRequest\x1a*.cosmos.params.v1beta1.QueryParamsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/params/v1beta1/params\x12\x92\x01\n\tSubspaces\x12,.cosmos.params.v1beta1.QuerySubspacesRequest\x1a-.cosmos.params.v1beta1.QuerySubspacesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /cosmos/params/v1beta1/subspacesB6Z4github.com/cosmos/cosmos-sdk/x/params/types/proposalb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.params.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z4github.com/cosmos/cosmos-sdk/x/params/types/proposal' + _QUERYPARAMSRESPONSE.fields_by_name['param']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['param']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\037\022\035/cosmos/params/v1beta1/params' + _QUERY.methods_by_name['Subspaces']._options = None + _QUERY.methods_by_name['Subspaces']._serialized_options = b'\202\323\344\223\002\"\022 /cosmos/params/v1beta1/subspaces' + _QUERYPARAMSREQUEST._serialized_start=167 + _QUERYPARAMSREQUEST._serialized_end=233 + _QUERYPARAMSRESPONSE._serialized_start=235 + _QUERYPARAMSRESPONSE._serialized_end=325 + _QUERYSUBSPACESREQUEST._serialized_start=327 + _QUERYSUBSPACESREQUEST._serialized_end=350 + _QUERYSUBSPACESRESPONSE._serialized_start=352 + _QUERYSUBSPACESRESPONSE._serialized_end=439 + _SUBSPACE._serialized_start=441 + _SUBSPACE._serialized_end=499 + _QUERY._serialized_start=502 + _QUERY._serialized_end=795 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/params/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/params/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..13a25e87 --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/query_pb2.pyi @@ -0,0 +1,123 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.params.v1beta1.params_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 QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + subspace: builtins.str + """subspace defines the module to query the parameter for.""" + key: builtins.str + """key defines the key of the parameter in the subspace.""" + def __init__( + self, + *, + subspace: builtins.str = ..., + key: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "subspace", b"subspace"]) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAM_FIELD_NUMBER: builtins.int + @property + def param(self) -> cosmos.params.v1beta1.params_pb2.ParamChange: + """param defines the queried parameter.""" + def __init__( + self, + *, + param: cosmos.params.v1beta1.params_pb2.ParamChange | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["param", b"param"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["param", b"param"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QuerySubspacesRequest(google.protobuf.message.Message): + """QuerySubspacesRequest defines a request type for querying for all registered + subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QuerySubspacesRequest = QuerySubspacesRequest + +@typing_extensions.final +class QuerySubspacesResponse(google.protobuf.message.Message): + """QuerySubspacesResponse defines the response types for querying for all + registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBSPACES_FIELD_NUMBER: builtins.int + @property + def subspaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Subspace]: ... + def __init__( + self, + *, + subspaces: collections.abc.Iterable[global___Subspace] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["subspaces", b"subspaces"]) -> None: ... + +global___QuerySubspacesResponse = QuerySubspacesResponse + +@typing_extensions.final +class Subspace(google.protobuf.message.Message): + """Subspace defines a parameter subspace name and all the keys that exist for + the subspace. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUBSPACE_FIELD_NUMBER: builtins.int + KEYS_FIELD_NUMBER: builtins.int + subspace: builtins.str + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + subspace: builtins.str = ..., + keys: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["keys", b"keys", "subspace", b"subspace"]) -> None: ... + +global___Subspace = Subspace diff --git a/nibiru_proto/cosmos/params/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/params/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..50987d70 --- /dev/null +++ b/nibiru_proto/cosmos/params/v1beta1/query_pb2_grpc.py @@ -0,0 +1,107 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.params.v1beta1 import query_pb2 as cosmos_dot_params_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/cosmos.params.v1beta1.Query/Params', + request_serializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.Subspaces = channel.unary_unary( + '/cosmos.params.v1beta1.Query/Subspaces', + request_serializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesRequest.SerializeToString, + response_deserializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Params(self, request, context): + """Params queries a specific parameter of a module, given its subspace and + key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Subspaces(self, request, context): + """Subspaces queries for all registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'Subspaces': grpc.unary_unary_rpc_method_handler( + servicer.Subspaces, + request_deserializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesRequest.FromString, + response_serializer=cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.params.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.params.v1beta1.Query/Params', + cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_params_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Subspaces(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.params.v1beta1.Query/Subspaces', + cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesRequest.SerializeToString, + cosmos_dot_params_dot_v1beta1_dot_query__pb2.QuerySubspacesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/query/v1/query_pb2.py b/nibiru_proto/cosmos/query/v1/query_pb2.py new file mode 100644 index 00000000..929381cb --- /dev/null +++ b/nibiru_proto/cosmos/query/v1/query_pb2.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/query/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63osmos/query/v1/query.proto\x12\x0f\x63osmos.query.v1\x1a google/protobuf/descriptor.proto:M\n\x11module_query_safe\x12\x1e.google.protobuf.MethodOptions\x18\xf1\x8c\xa6\x05 \x01(\x08R\x0fmoduleQuerySafeB*Z(github.com/cosmos/cosmos-sdk/types/queryb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.query.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(module_query_safe) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z(github.com/cosmos/cosmos-sdk/types/query' +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/query/v1/query_pb2.pyi b/nibiru_proto/cosmos/query/v1/query_pb2.pyi new file mode 100644 index 00000000..ead1d345 --- /dev/null +++ b/nibiru_proto/cosmos/query/v1/query_pb2.pyi @@ -0,0 +1,36 @@ +""" +@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 + +MODULE_QUERY_SAFE_FIELD_NUMBER: builtins.int +module_query_safe: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, builtins.bool] +"""module_query_safe is set to true when the query is safe to be called from +within the state machine, for example from another module's Keeper, via +ADR-033 calls or from CosmWasm contracts. +Concretely, it means that the query is: +1. deterministic: given a block height, returns the exact same response +upon multiple calls; and doesn't introduce any state-machine-breaking +changes across SDK patch version. +2. consumes gas correctly. + +If you are a module developer and want to add this annotation to one of +your own queries, please make sure that the corresponding query: +1. is deterministic and won't introduce state-machine-breaking changes +without a coordinated upgrade path, +2. has its gas tracked, to avoid the attack vector where no gas is +accounted for on potentially high-computation queries. + +For queries that potentially consume a large amount of gas (for example +those with pagination, if the pagination field is incorrectly set), we +also recommend adding Protobuf comments to warn module developers +consuming these queries. + +When set to true, the query can safely be called +""" diff --git a/nibiru_proto/cosmos/query/v1/query_pb2_grpc.py b/nibiru_proto/cosmos/query/v1/query_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/query/v1/query_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/reflection/v1/reflection_pb2.py b/nibiru_proto/cosmos/reflection/v1/reflection_pb2.py new file mode 100644 index 00000000..a78900d8 --- /dev/null +++ b/nibiru_proto/cosmos/reflection/v1/reflection_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/reflection/v1/reflection.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 +from cosmos.query.v1 import query_pb2 as cosmos_dot_query_dot_v1_dot_query__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/reflection/v1/reflection.proto\x12\x14\x63osmos.reflection.v1\x1a google/protobuf/descriptor.proto\x1a\x1b\x63osmos/query/v1/query.proto\"\x18\n\x16\x46ileDescriptorsRequest\"U\n\x17\x46ileDescriptorsResponse\x12:\n\x05\x66iles\x18\x01 \x03(\x0b\x32$.google.protobuf.FileDescriptorProtoR\x05\x66iles2\x8a\x01\n\x11ReflectionService\x12u\n\x0f\x46ileDescriptors\x12,.cosmos.reflection.v1.FileDescriptorsRequest\x1a-.cosmos.reflection.v1.FileDescriptorsResponse\"\x05\x88\xe7\xb0*\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.reflection.v1.reflection_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _REFLECTIONSERVICE.methods_by_name['FileDescriptors']._options = None + _REFLECTIONSERVICE.methods_by_name['FileDescriptors']._serialized_options = b'\210\347\260*\000' + _FILEDESCRIPTORSREQUEST._serialized_start=126 + _FILEDESCRIPTORSREQUEST._serialized_end=150 + _FILEDESCRIPTORSRESPONSE._serialized_start=152 + _FILEDESCRIPTORSRESPONSE._serialized_end=237 + _REFLECTIONSERVICE._serialized_start=240 + _REFLECTIONSERVICE._serialized_end=378 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/reflection/v1/reflection_pb2.pyi b/nibiru_proto/cosmos/reflection/v1/reflection_pb2.pyi new file mode 100644 index 00000000..27eba9d2 --- /dev/null +++ b/nibiru_proto/cosmos/reflection/v1/reflection_pb2.pyi @@ -0,0 +1,49 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +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 FileDescriptorsRequest(google.protobuf.message.Message): + """FileDescriptorsRequest is the Query/FileDescriptors request type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___FileDescriptorsRequest = FileDescriptorsRequest + +@typing_extensions.final +class FileDescriptorsResponse(google.protobuf.message.Message): + """FileDescriptorsResponse is the Query/FileDescriptors response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILES_FIELD_NUMBER: builtins.int + @property + def files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.descriptor_pb2.FileDescriptorProto]: + """files is the file descriptors.""" + def __init__( + self, + *, + files: collections.abc.Iterable[google.protobuf.descriptor_pb2.FileDescriptorProto] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["files", b"files"]) -> None: ... + +global___FileDescriptorsResponse = FileDescriptorsResponse diff --git a/nibiru_proto/cosmos/reflection/v1/reflection_pb2_grpc.py b/nibiru_proto/cosmos/reflection/v1/reflection_pb2_grpc.py new file mode 100644 index 00000000..0361cff0 --- /dev/null +++ b/nibiru_proto/cosmos/reflection/v1/reflection_pb2_grpc.py @@ -0,0 +1,74 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.reflection.v1 import reflection_pb2 as cosmos_dot_reflection_dot_v1_dot_reflection__pb2 + + +class ReflectionServiceStub(object): + """Package cosmos.reflection.v1 provides support for inspecting protobuf + file descriptors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.FileDescriptors = channel.unary_unary( + '/cosmos.reflection.v1.ReflectionService/FileDescriptors', + request_serializer=cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsRequest.SerializeToString, + response_deserializer=cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsResponse.FromString, + ) + + +class ReflectionServiceServicer(object): + """Package cosmos.reflection.v1 provides support for inspecting protobuf + file descriptors. + """ + + def FileDescriptors(self, request, context): + """FileDescriptors queries all the file descriptors in the app in order + to enable easier generation of dynamic clients. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ReflectionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'FileDescriptors': grpc.unary_unary_rpc_method_handler( + servicer.FileDescriptors, + request_deserializer=cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsRequest.FromString, + response_serializer=cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.reflection.v1.ReflectionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ReflectionService(object): + """Package cosmos.reflection.v1 provides support for inspecting protobuf + file descriptors. + """ + + @staticmethod + def FileDescriptors(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.reflection.v1.ReflectionService/FileDescriptors', + cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsRequest.SerializeToString, + cosmos_dot_reflection_dot_v1_dot_reflection__pb2.FileDescriptorsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/slashing/module/v1/module_pb2.py b/nibiru_proto/cosmos/slashing/module/v1/module_pb2.py new file mode 100644 index 00000000..84fe321d --- /dev/null +++ b/nibiru_proto/cosmos/slashing/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/slashing/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/slashing/module/v1/module.proto\x12\x19\x63osmos.slashing.module.v1\x1a cosmos/app/v1alpha1/module.proto\"W\n\x06Module\x12\x1c\n\tauthority\x18\x01 \x01(\tR\tauthority:/\xba\xc0\x96\xda\x01)\n\'github.com/cosmos/cosmos-sdk/x/slashingb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.slashing.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001)\n\'github.com/cosmos/cosmos-sdk/x/slashing' + _MODULE._serialized_start=103 + _MODULE._serialized_end=190 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/slashing/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/slashing/module/v1/module_pb2.pyi new file mode 100644 index 00000000..b55393e4 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/module/v1/module_pb2.pyi @@ -0,0 +1,33 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the slashing module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/slashing/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/slashing/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/slashing/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..95efe267 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/slashing/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.slashing.v1beta1 import slashing_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_slashing__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/slashing/v1beta1/genesis.proto\x12\x17\x63osmos.slashing.v1beta1\x1a\x14gogoproto/gogo.proto\x1a&cosmos/slashing/v1beta1/slashing.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\x88\x02\n\x0cGenesisState\x12\x42\n\x06params\x18\x01 \x01(\x0b\x32\x1f.cosmos.slashing.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\x12T\n\rsigning_infos\x18\x02 \x03(\x0b\x32$.cosmos.slashing.v1beta1.SigningInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0csigningInfos\x12^\n\rmissed_blocks\x18\x03 \x03(\x0b\x32..cosmos.slashing.v1beta1.ValidatorMissedBlocksB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0cmissedBlocks\"\xb1\x01\n\x0bSigningInfo\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12n\n\x16validator_signing_info\x18\x02 \x01(\x0b\x32-.cosmos.slashing.v1beta1.ValidatorSigningInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x14validatorSigningInfo\"\xa1\x01\n\x15ValidatorMissedBlocks\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12T\n\rmissed_blocks\x18\x02 \x03(\x0b\x32$.cosmos.slashing.v1beta1.MissedBlockB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0cmissedBlocks\";\n\x0bMissedBlock\x12\x14\n\x05index\x18\x01 \x01(\x03R\x05index\x12\x16\n\x06missed\x18\x02 \x01(\x08R\x06missedB/Z-github.com/cosmos/cosmos-sdk/x/slashing/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.slashing.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/slashing/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['signing_infos']._options = None + _GENESISSTATE.fields_by_name['signing_infos']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['missed_blocks']._options = None + _GENESISSTATE.fields_by_name['missed_blocks']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _SIGNINGINFO.fields_by_name['address']._options = None + _SIGNINGINFO.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _SIGNINGINFO.fields_by_name['validator_signing_info']._options = None + _SIGNINGINFO.fields_by_name['validator_signing_info']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATORMISSEDBLOCKS.fields_by_name['address']._options = None + _VALIDATORMISSEDBLOCKS.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORMISSEDBLOCKS.fields_by_name['missed_blocks']._options = None + _VALIDATORMISSEDBLOCKS.fields_by_name['missed_blocks']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE._serialized_start=175 + _GENESISSTATE._serialized_end=439 + _SIGNINGINFO._serialized_start=442 + _SIGNINGINFO._serialized_end=619 + _VALIDATORMISSEDBLOCKS._serialized_start=622 + _VALIDATORMISSEDBLOCKS._serialized_end=783 + _MISSEDBLOCK._serialized_start=785 + _MISSEDBLOCK._serialized_end=844 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..af44ebf8 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2.pyi @@ -0,0 +1,123 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.slashing.v1beta1.slashing_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the slashing module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + SIGNING_INFOS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: + """params defines all the parameters of the module.""" + @property + def signing_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningInfo]: + """signing_infos represents a map between validator addresses and their + signing infos. + """ + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorMissedBlocks]: + """missed_blocks represents a map between validator addresses and their + missed blocks. + """ + def __init__( + self, + *, + params: cosmos.slashing.v1beta1.slashing_pb2.Params | None = ..., + signing_infos: collections.abc.Iterable[global___SigningInfo] | None = ..., + missed_blocks: collections.abc.Iterable[global___ValidatorMissedBlocks] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["missed_blocks", b"missed_blocks", "params", b"params", "signing_infos", b"signing_infos"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class SigningInfo(google.protobuf.message.Message): + """SigningInfo stores validator signing info of corresponding address.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SIGNING_INFO_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the validator address.""" + @property + def validator_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: + """validator_signing_info represents the signing info of this validator.""" + def __init__( + self, + *, + address: builtins.str = ..., + validator_signing_info: cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator_signing_info", b"validator_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "validator_signing_info", b"validator_signing_info"]) -> None: ... + +global___SigningInfo = SigningInfo + +@typing_extensions.final +class ValidatorMissedBlocks(google.protobuf.message.Message): + """ValidatorMissedBlocks contains array of missed blocks of corresponding + address. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the validator address.""" + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MissedBlock]: + """missed_blocks is an array of missed blocks by the validator.""" + def __init__( + self, + *, + address: builtins.str = ..., + missed_blocks: collections.abc.Iterable[global___MissedBlock] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "missed_blocks", b"missed_blocks"]) -> None: ... + +global___ValidatorMissedBlocks = ValidatorMissedBlocks + +@typing_extensions.final +class MissedBlock(google.protobuf.message.Message): + """MissedBlock contains height and missed status as boolean.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + MISSED_FIELD_NUMBER: builtins.int + index: builtins.int + """index is the height at which the block was missed.""" + missed: builtins.bool + """missed is the missed status.""" + def __init__( + self, + *, + index: builtins.int = ..., + missed: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "missed", b"missed"]) -> None: ... + +global___MissedBlock = MissedBlock diff --git a/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.py b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.py new file mode 100644 index 00000000..cbb20c32 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/slashing/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.slashing.v1beta1 import slashing_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_slashing__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cosmos/slashing/v1beta1/query.proto\x12\x17\x63osmos.slashing.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a&cosmos/slashing/v1beta1/slashing.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\x14\n\x12QueryParamsRequest\"Y\n\x13QueryParamsResponse\x12\x42\n\x06params\x18\x01 \x01(\x0b\x32\x1f.cosmos.slashing.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\"V\n\x17QuerySigningInfoRequest\x12;\n\x0c\x63ons_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0b\x63onsAddress\"~\n\x18QuerySigningInfoResponse\x12\x62\n\x10val_signing_info\x18\x01 \x01(\x0b\x32-.cosmos.slashing.v1beta1.ValidatorSigningInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0evalSigningInfo\"b\n\x18QuerySigningInfosRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb2\x01\n\x19QuerySigningInfosResponse\x12L\n\x04info\x18\x01 \x03(\x0b\x32-.cosmos.slashing.v1beta1.ValidatorSigningInfoB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04info\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xf2\x03\n\x05Query\x12\x8c\x01\n\x06Params\x12+.cosmos.slashing.v1beta1.QueryParamsRequest\x1a,.cosmos.slashing.v1beta1.QueryParamsResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/cosmos/slashing/v1beta1/params\x12\xb1\x01\n\x0bSigningInfo\x12\x30.cosmos.slashing.v1beta1.QuerySigningInfoRequest\x1a\x31.cosmos.slashing.v1beta1.QuerySigningInfoResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/cosmos/slashing/v1beta1/signing_infos/{cons_address}\x12\xa5\x01\n\x0cSigningInfos\x12\x31.cosmos.slashing.v1beta1.QuerySigningInfosRequest\x1a\x32.cosmos.slashing.v1beta1.QuerySigningInfosResponse\".\x82\xd3\xe4\x93\x02(\x12&/cosmos/slashing/v1beta1/signing_infosB/Z-github.com/cosmos/cosmos-sdk/x/slashing/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.slashing.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/slashing/types' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYSIGNINGINFOREQUEST.fields_by_name['cons_address']._options = None + _QUERYSIGNINGINFOREQUEST.fields_by_name['cons_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYSIGNINGINFORESPONSE.fields_by_name['val_signing_info']._options = None + _QUERYSIGNINGINFORESPONSE.fields_by_name['val_signing_info']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYSIGNINGINFOSRESPONSE.fields_by_name['info']._options = None + _QUERYSIGNINGINFOSRESPONSE.fields_by_name['info']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002!\022\037/cosmos/slashing/v1beta1/params' + _QUERY.methods_by_name['SigningInfo']._options = None + _QUERY.methods_by_name['SigningInfo']._serialized_options = b'\202\323\344\223\0027\0225/cosmos/slashing/v1beta1/signing_infos/{cons_address}' + _QUERY.methods_by_name['SigningInfos']._options = None + _QUERY.methods_by_name['SigningInfos']._serialized_options = b'\202\323\344\223\002(\022&/cosmos/slashing/v1beta1/signing_infos' + _QUERYPARAMSREQUEST._serialized_start=246 + _QUERYPARAMSREQUEST._serialized_end=266 + _QUERYPARAMSRESPONSE._serialized_start=268 + _QUERYPARAMSRESPONSE._serialized_end=357 + _QUERYSIGNINGINFOREQUEST._serialized_start=359 + _QUERYSIGNINGINFOREQUEST._serialized_end=445 + _QUERYSIGNINGINFORESPONSE._serialized_start=447 + _QUERYSIGNINGINFORESPONSE._serialized_end=573 + _QUERYSIGNINGINFOSREQUEST._serialized_start=575 + _QUERYSIGNINGINFOSREQUEST._serialized_end=673 + _QUERYSIGNINGINFOSRESPONSE._serialized_start=676 + _QUERYSIGNINGINFOSRESPONSE._serialized_end=854 + _QUERY._serialized_start=857 + _QUERY._serialized_end=1355 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..2810e76b --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2.pyi @@ -0,0 +1,139 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.slashing.v1beta1.slashing_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 QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... + def __init__( + self, + *, + params: cosmos.slashing.v1beta1.slashing_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QuerySigningInfoRequest(google.protobuf.message.Message): + """QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONS_ADDRESS_FIELD_NUMBER: builtins.int + cons_address: builtins.str + """cons_address is the address to query signing info of""" + def __init__( + self, + *, + cons_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["cons_address", b"cons_address"]) -> None: ... + +global___QuerySigningInfoRequest = QuerySigningInfoRequest + +@typing_extensions.final +class QuerySigningInfoResponse(google.protobuf.message.Message): + """QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VAL_SIGNING_INFO_FIELD_NUMBER: builtins.int + @property + def val_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: + """val_signing_info is the signing info of requested val cons address""" + def __init__( + self, + *, + val_signing_info: cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["val_signing_info", b"val_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["val_signing_info", b"val_signing_info"]) -> None: ... + +global___QuerySigningInfoResponse = QuerySigningInfoResponse + +@typing_extensions.final +class QuerySigningInfosRequest(google.protobuf.message.Message): + """QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QuerySigningInfosRequest = QuerySigningInfosRequest + +@typing_extensions.final +class QuerySigningInfosResponse(google.protobuf.message.Message): + """QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]: + """info is the signing info of all validators""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__( + self, + *, + info: collections.abc.Iterable[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info", "pagination", b"pagination"]) -> None: ... + +global___QuerySigningInfosResponse = QuerySigningInfosResponse diff --git a/nibiru_proto/cosmos/slashing/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..0cd13ae9 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/query_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.slashing.v1beta1 import query_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query provides defines the gRPC querier service + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/cosmos.slashing.v1beta1.Query/Params', + request_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.SigningInfo = channel.unary_unary( + '/cosmos.slashing.v1beta1.Query/SigningInfo', + request_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoResponse.FromString, + ) + self.SigningInfos = channel.unary_unary( + '/cosmos.slashing.v1beta1.Query/SigningInfos', + request_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosRequest.SerializeToString, + response_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosResponse.FromString, + ) + + +class QueryServicer(object): + """Query provides defines the gRPC querier service + """ + + def Params(self, request, context): + """Params queries the parameters of slashing module + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SigningInfo(self, request, context): + """SigningInfo queries the signing info of given cons address + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SigningInfos(self, request, context): + """SigningInfos queries signing info of all validators + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'SigningInfo': grpc.unary_unary_rpc_method_handler( + servicer.SigningInfo, + request_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoRequest.FromString, + response_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoResponse.SerializeToString, + ), + 'SigningInfos': grpc.unary_unary_rpc_method_handler( + servicer.SigningInfos, + request_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosRequest.FromString, + response_serializer=cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.slashing.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query provides defines the gRPC querier service + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.slashing.v1beta1.Query/Params', + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SigningInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.slashing.v1beta1.Query/SigningInfo', + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoRequest.SerializeToString, + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SigningInfos(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.slashing.v1beta1.Query/SigningInfos', + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosRequest.SerializeToString, + cosmos_dot_slashing_dot_v1beta1_dot_query__pb2.QuerySigningInfosResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.py b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.py new file mode 100644 index 00000000..6445869e --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/slashing/v1beta1/slashing.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&cosmos/slashing/v1beta1/slashing.proto\x12\x17\x63osmos.slashing.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xbc\x02\n\x14ValidatorSigningInfo\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12!\n\x0cstart_height\x18\x02 \x01(\x03R\x0bstartHeight\x12!\n\x0cindex_offset\x18\x03 \x01(\x03R\x0bindexOffset\x12L\n\x0cjailed_until\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0bjailedUntil\x12\x1e\n\ntombstoned\x18\x05 \x01(\x08R\ntombstoned\x12\x32\n\x15missed_blocks_counter\x18\x06 \x01(\x03R\x13missedBlocksCounter:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\x84\x04\n\x06Params\x12\x30\n\x14signed_blocks_window\x18\x01 \x01(\x03R\x12signedBlocksWindow\x12\x66\n\x15min_signed_per_window\x18\x02 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xa8\xe7\xb0*\x01R\x12minSignedPerWindow\x12^\n\x16\x64owntime_jail_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x14\x64owntimeJailDuration\x12p\n\x1aslash_fraction_double_sign\x18\x04 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xa8\xe7\xb0*\x01R\x17slashFractionDoubleSign\x12k\n\x17slash_fraction_downtime\x18\x05 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xa8\xe7\xb0*\x01R\x15slashFractionDowntime:!\x8a\xe7\xb0*\x1c\x63osmos-sdk/x/slashing/ParamsB3Z-github.com/cosmos/cosmos-sdk/x/slashing/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.slashing.v1beta1.slashing_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/slashing/types\250\342\036\001' + _VALIDATORSIGNINGINFO.fields_by_name['address']._options = None + _VALIDATORSIGNINGINFO.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATORSIGNINGINFO.fields_by_name['jailed_until']._options = None + _VALIDATORSIGNINGINFO.fields_by_name['jailed_until']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _VALIDATORSIGNINGINFO._options = None + _VALIDATORSIGNINGINFO._serialized_options = b'\230\240\037\000\350\240\037\001' + _PARAMS.fields_by_name['min_signed_per_window']._options = None + _PARAMS.fields_by_name['min_signed_per_window']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\250\347\260*\001' + _PARAMS.fields_by_name['downtime_jail_duration']._options = None + _PARAMS.fields_by_name['downtime_jail_duration']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _PARAMS.fields_by_name['slash_fraction_double_sign']._options = None + _PARAMS.fields_by_name['slash_fraction_double_sign']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\250\347\260*\001' + _PARAMS.fields_by_name['slash_fraction_downtime']._options = None + _PARAMS.fields_by_name['slash_fraction_downtime']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\250\347\260*\001' + _PARAMS._options = None + _PARAMS._serialized_options = b'\212\347\260*\034cosmos-sdk/x/slashing/Params' + _VALIDATORSIGNINGINFO._serialized_start=201 + _VALIDATORSIGNINGINFO._serialized_end=517 + _PARAMS._serialized_start=520 + _PARAMS._serialized_end=1036 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.pyi b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.pyi new file mode 100644 index 00000000..89f0889c --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2.pyi @@ -0,0 +1,96 @@ +""" +@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 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 ValidatorSigningInfo(google.protobuf.message.Message): + """ValidatorSigningInfo defines a validator's signing info for monitoring their + liveness activity. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + START_HEIGHT_FIELD_NUMBER: builtins.int + INDEX_OFFSET_FIELD_NUMBER: builtins.int + JAILED_UNTIL_FIELD_NUMBER: builtins.int + TOMBSTONED_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_COUNTER_FIELD_NUMBER: builtins.int + address: builtins.str + start_height: builtins.int + """Height at which validator was first a candidate OR was unjailed""" + index_offset: builtins.int + """Index which is incremented each time the validator was a bonded + in a block and may have signed a precommit or not. This in conjunction with the + `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. + """ + @property + def jailed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Timestamp until which the validator is jailed due to liveness downtime.""" + tombstoned: builtins.bool + """Whether or not a validator has been tombstoned (killed out of validator set). It is set + once the validator commits an equivocation or for any other configured misbehiavor. + """ + missed_blocks_counter: builtins.int + """A counter kept to avoid unnecessary array reads. + Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + """ + def __init__( + self, + *, + address: builtins.str = ..., + start_height: builtins.int = ..., + index_offset: builtins.int = ..., + jailed_until: google.protobuf.timestamp_pb2.Timestamp | None = ..., + tombstoned: builtins.bool = ..., + missed_blocks_counter: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["jailed_until", b"jailed_until"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "index_offset", b"index_offset", "jailed_until", b"jailed_until", "missed_blocks_counter", b"missed_blocks_counter", "start_height", b"start_height", "tombstoned", b"tombstoned"]) -> None: ... + +global___ValidatorSigningInfo = ValidatorSigningInfo + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params represents the parameters used for by the slashing module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNED_BLOCKS_WINDOW_FIELD_NUMBER: builtins.int + MIN_SIGNED_PER_WINDOW_FIELD_NUMBER: builtins.int + DOWNTIME_JAIL_DURATION_FIELD_NUMBER: builtins.int + SLASH_FRACTION_DOUBLE_SIGN_FIELD_NUMBER: builtins.int + SLASH_FRACTION_DOWNTIME_FIELD_NUMBER: builtins.int + signed_blocks_window: builtins.int + min_signed_per_window: builtins.bytes + @property + def downtime_jail_duration(self) -> google.protobuf.duration_pb2.Duration: ... + slash_fraction_double_sign: builtins.bytes + slash_fraction_downtime: builtins.bytes + def __init__( + self, + *, + signed_blocks_window: builtins.int = ..., + min_signed_per_window: builtins.bytes = ..., + downtime_jail_duration: google.protobuf.duration_pb2.Duration | None = ..., + slash_fraction_double_sign: builtins.bytes = ..., + slash_fraction_downtime: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["downtime_jail_duration", b"downtime_jail_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["downtime_jail_duration", b"downtime_jail_duration", "min_signed_per_window", b"min_signed_per_window", "signed_blocks_window", b"signed_blocks_window", "slash_fraction_double_sign", b"slash_fraction_double_sign", "slash_fraction_downtime", b"slash_fraction_downtime"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.py b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.py new file mode 100644 index 00000000..043a9109 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/slashing/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.slashing.v1beta1 import slashing_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_slashing__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/slashing/v1beta1/tx.proto\x12\x17\x63osmos.slashing.v1beta1\x1a\x14gogoproto/gogo.proto\x1a&cosmos/slashing/v1beta1/slashing.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\x9e\x01\n\tMsgUnjail\x12[\n\x0evalidator_addr\x18\x01 \x01(\tB4\xea\xde\x1f\x07\x61\x64\x64ress\xd2\xb4-\x14\x63osmos.AddressString\xa2\xe7\xb0*\x07\x61\x64\x64ress\xa8\xe7\xb0*\x01R\rvalidatorAddr:4\x88\xa0\x1f\x00\x98\xa0\x1f\x01\x82\xe7\xb0*\x0evalidator_addr\x8a\xe7\xb0*\x14\x63osmos-sdk/MsgUnjail\"\x13\n\x11MsgUnjailResponse\"\xc7\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x42\n\x06params\x18\x02 \x01(\x0b\x32\x1f.cosmos.slashing.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:8\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*%cosmos-sdk/x/slashing/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\xd2\x01\n\x03Msg\x12X\n\x06Unjail\x12\".cosmos.slashing.v1beta1.MsgUnjail\x1a*.cosmos.slashing.v1beta1.MsgUnjailResponse\x12j\n\x0cUpdateParams\x12(.cosmos.slashing.v1beta1.MsgUpdateParams\x1a\x30.cosmos.slashing.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x33Z-github.com/cosmos/cosmos-sdk/x/slashing/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.slashing.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/x/slashing/types\250\342\036\001' + _MSGUNJAIL.fields_by_name['validator_addr']._options = None + _MSGUNJAIL.fields_by_name['validator_addr']._serialized_options = b'\352\336\037\007address\322\264-\024cosmos.AddressString\242\347\260*\007address\250\347\260*\001' + _MSGUNJAIL._options = None + _MSGUNJAIL._serialized_options = b'\210\240\037\000\230\240\037\001\202\347\260*\016validator_addr\212\347\260*\024cosmos-sdk/MsgUnjail' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*%cosmos-sdk/x/slashing/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGUNJAIL._serialized_start=195 + _MSGUNJAIL._serialized_end=353 + _MSGUNJAILRESPONSE._serialized_start=355 + _MSGUNJAILRESPONSE._serialized_end=374 + _MSGUPDATEPARAMS._serialized_start=377 + _MSGUPDATEPARAMS._serialized_end=576 + _MSGUPDATEPARAMSRESPONSE._serialized_start=578 + _MSGUPDATEPARAMSRESPONSE._serialized_end=603 + _MSG._serialized_start=606 + _MSG._serialized_end=816 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..6f021697 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2.pyi @@ -0,0 +1,91 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.slashing.v1beta1.slashing_pb2 +import google.protobuf.descriptor +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 MsgUnjail(google.protobuf.message.Message): + """MsgUnjail defines the Msg/Unjail request type""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___MsgUnjail = MsgUnjail + +@typing_extensions.final +class MsgUnjailResponse(google.protobuf.message.Message): + """MsgUnjailResponse defines the Msg/Unjail response type""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUnjailResponse = MsgUnjailResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: + """params defines the x/slashing parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.slashing.v1beta1.slashing_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..41c6e172 --- /dev/null +++ b/nibiru_proto/cosmos/slashing/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,109 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.slashing.v1beta1 import tx_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the slashing Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Unjail = channel.unary_unary( + '/cosmos.slashing.v1beta1.Msg/Unjail', + request_serializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjail.SerializeToString, + response_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjailResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.slashing.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the slashing Msg service. + """ + + def Unjail(self, request, context): + """Unjail defines a method for unjailing a jailed validator, thus returning + them into the bonded validator set, so they can begin receiving provisions + and rewards again. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines a governance operation for updating the x/slashing module + parameters. The authority defaults to the x/gov module account. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Unjail': grpc.unary_unary_rpc_method_handler( + servicer.Unjail, + request_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjail.FromString, + response_serializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjailResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.slashing.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the slashing Msg service. + """ + + @staticmethod + def Unjail(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.slashing.v1beta1.Msg/Unjail', + cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjail.SerializeToString, + cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUnjailResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.slashing.v1beta1.Msg/UpdateParams', + cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/staking/module/v1/module_pb2.py b/nibiru_proto/cosmos/staking/module/v1/module_pb2.py new file mode 100644 index 00000000..9f132640 --- /dev/null +++ b/nibiru_proto/cosmos/staking/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/staking/module/v1/module.proto\x12\x18\x63osmos.staking.module.v1\x1a cosmos/app/v1alpha1/module.proto\"w\n\x06Module\x12\x1f\n\x0bhooks_order\x18\x01 \x03(\tR\nhooksOrder\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority:.\xba\xc0\x96\xda\x01(\n&github.com/cosmos/cosmos-sdk/x/stakingb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001(\n&github.com/cosmos/cosmos-sdk/x/staking' + _MODULE._serialized_start=101 + _MODULE._serialized_end=220 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/staking/module/v1/module_pb2.pyi new file mode 100644 index 00000000..467333a7 --- /dev/null +++ b/nibiru_proto/cosmos/staking/module/v1/module_pb2.pyi @@ -0,0 +1,43 @@ +""" +@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 of the staking module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HOOKS_ORDER_FIELD_NUMBER: builtins.int + AUTHORITY_FIELD_NUMBER: builtins.int + @property + def hooks_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """hooks_order specifies the order of staking hooks and should be a list + of module names which provide a staking hooks instance. If no order is + provided, then hooks will be applied in alphabetical order of module names. + """ + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + hooks_order: collections.abc.Iterable[builtins.str] | None = ..., + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "hooks_order", b"hooks_order"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/staking/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/staking/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/staking/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.py b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.py new file mode 100644 index 00000000..a71471c5 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/staking/v1beta1/authz.proto\x12\x16\x63osmos.staking.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\x9d\x04\n\x12StakeAuthorization\x12\x65\n\nmax_tokens\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB+\xaa\xdf\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\tmaxTokens\x12V\n\nallow_list\x18\x02 \x01(\x0b\x32\x35.cosmos.staking.v1beta1.StakeAuthorization.ValidatorsH\x00R\tallowList\x12T\n\tdeny_list\x18\x03 \x01(\x0b\x32\x35.cosmos.staking.v1beta1.StakeAuthorization.ValidatorsH\x00R\x08\x64\x65nyList\x12X\n\x12\x61uthorization_type\x18\x04 \x01(\x0e\x32).cosmos.staking.v1beta1.AuthorizationTypeR\x11\x61uthorizationType\x1a@\n\nValidators\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x03(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress:H\xca\xb4-\"cosmos.authz.v1beta1.Authorization\x8a\xe7\xb0*\x1d\x63osmos-sdk/StakeAuthorizationB\x0c\n\nvalidators*\x9e\x01\n\x11\x41uthorizationType\x12\"\n\x1e\x41UTHORIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTHORIZATION_TYPE_DELEGATE\x10\x01\x12!\n\x1d\x41UTHORIZATION_TYPE_UNDELEGATE\x10\x02\x12!\n\x1d\x41UTHORIZATION_TYPE_REDELEGATE\x10\x03\x42.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.v1beta1.authz_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/staking/types' + _STAKEAUTHORIZATION_VALIDATORS.fields_by_name['address']._options = None + _STAKEAUTHORIZATION_VALIDATORS.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _STAKEAUTHORIZATION.fields_by_name['max_tokens']._options = None + _STAKEAUTHORIZATION.fields_by_name['max_tokens']._serialized_options = b'\252\337\037\'github.com/cosmos/cosmos-sdk/types.Coin' + _STAKEAUTHORIZATION._options = None + _STAKEAUTHORIZATION._serialized_options = b'\312\264-\"cosmos.authz.v1beta1.Authorization\212\347\260*\035cosmos-sdk/StakeAuthorization' + _AUTHORIZATIONTYPE._serialized_start=707 + _AUTHORIZATIONTYPE._serialized_end=865 + _STAKEAUTHORIZATION._serialized_start=163 + _STAKEAUTHORIZATION._serialized_end=704 + _STAKEAUTHORIZATION_VALIDATORS._serialized_start=552 + _STAKEAUTHORIZATION_VALIDATORS._serialized_end=616 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.pyi b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.pyi new file mode 100644 index 00000000..9c8e3b37 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2.pyi @@ -0,0 +1,109 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _AuthorizationType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _AuthorizationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AuthorizationType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + AUTHORIZATION_TYPE_UNSPECIFIED: _AuthorizationType.ValueType # 0 + """AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type""" + AUTHORIZATION_TYPE_DELEGATE: _AuthorizationType.ValueType # 1 + """AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate""" + AUTHORIZATION_TYPE_UNDELEGATE: _AuthorizationType.ValueType # 2 + """AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate""" + AUTHORIZATION_TYPE_REDELEGATE: _AuthorizationType.ValueType # 3 + """AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate""" + +class AuthorizationType(_AuthorizationType, metaclass=_AuthorizationTypeEnumTypeWrapper): + """AuthorizationType defines the type of staking module authorization type + + Since: cosmos-sdk 0.43 + """ + +AUTHORIZATION_TYPE_UNSPECIFIED: AuthorizationType.ValueType # 0 +"""AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type""" +AUTHORIZATION_TYPE_DELEGATE: AuthorizationType.ValueType # 1 +"""AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate""" +AUTHORIZATION_TYPE_UNDELEGATE: AuthorizationType.ValueType # 2 +"""AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate""" +AUTHORIZATION_TYPE_REDELEGATE: AuthorizationType.ValueType # 3 +"""AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate""" +global___AuthorizationType = AuthorizationType + +@typing_extensions.final +class StakeAuthorization(google.protobuf.message.Message): + """StakeAuthorization defines authorization for delegate/undelegate/redelegate. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Validators(google.protobuf.message.Message): + """Validators defines list of validator addresses.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + @property + def address(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + address: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + + MAX_TOKENS_FIELD_NUMBER: builtins.int + ALLOW_LIST_FIELD_NUMBER: builtins.int + DENY_LIST_FIELD_NUMBER: builtins.int + AUTHORIZATION_TYPE_FIELD_NUMBER: builtins.int + @property + def max_tokens(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + empty, there is no spend limit and any amount of coins can be delegated. + """ + @property + def allow_list(self) -> global___StakeAuthorization.Validators: + """allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + account. + """ + @property + def deny_list(self) -> global___StakeAuthorization.Validators: + """deny_list specifies list of validator addresses to whom grantee can not delegate tokens.""" + authorization_type: global___AuthorizationType.ValueType + """authorization_type defines one of AuthorizationType.""" + def __init__( + self, + *, + max_tokens: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + allow_list: global___StakeAuthorization.Validators | None = ..., + deny_list: global___StakeAuthorization.Validators | None = ..., + authorization_type: global___AuthorizationType.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allow_list", b"allow_list", "deny_list", b"deny_list", "max_tokens", b"max_tokens", "validators", b"validators"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allow_list", b"allow_list", "authorization_type", b"authorization_type", "deny_list", b"deny_list", "max_tokens", b"max_tokens", "validators", b"validators"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["validators", b"validators"]) -> typing_extensions.Literal["allow_list", "deny_list"] | None: ... + +global___StakeAuthorization = StakeAuthorization diff --git a/nibiru_proto/cosmos/staking/v1beta1/authz_pb2_grpc.py b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.py b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.py new file mode 100644 index 00000000..11af3661 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.staking.v1beta1 import staking_pb2 as cosmos_dot_staking_dot_v1beta1_dot_staking__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/staking/v1beta1/genesis.proto\x12\x16\x63osmos.staking.v1beta1\x1a\x14gogoproto/gogo.proto\x1a$cosmos/staking/v1beta1/staking.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\x9a\x05\n\x0cGenesisState\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32\x1e.cosmos.staking.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params\x12]\n\x10last_total_power\x18\x02 \x01(\x0c\x42\x33\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xa8\xe7\xb0*\x01R\x0elastTotalPower\x12i\n\x15last_validator_powers\x18\x03 \x03(\x0b\x32*.cosmos.staking.v1beta1.LastValidatorPowerB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x13lastValidatorPowers\x12L\n\nvalidators\x18\x04 \x03(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\nvalidators\x12O\n\x0b\x64\x65legations\x18\x05 \x03(\x0b\x32\".cosmos.staking.v1beta1.DelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x64\x65legations\x12k\n\x15unbonding_delegations\x18\x06 \x03(\x0b\x32+.cosmos.staking.v1beta1.UnbondingDelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x14unbondingDelegations\x12U\n\rredelegations\x18\x07 \x03(\x0b\x32$.cosmos.staking.v1beta1.RedelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rredelegations\x12\x1a\n\x08\x65xported\x18\x08 \x01(\x08R\x08\x65xported\"h\n\x12LastValidatorPower\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12\x14\n\x05power\x18\x02 \x01(\x03R\x05power:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x42.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.v1beta1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/staking/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['last_total_power']._options = None + _GENESISSTATE.fields_by_name['last_total_power']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\250\347\260*\001' + _GENESISSTATE.fields_by_name['last_validator_powers']._options = None + _GENESISSTATE.fields_by_name['last_validator_powers']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['validators']._options = None + _GENESISSTATE.fields_by_name['validators']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['delegations']._options = None + _GENESISSTATE.fields_by_name['delegations']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['unbonding_delegations']._options = None + _GENESISSTATE.fields_by_name['unbonding_delegations']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _GENESISSTATE.fields_by_name['redelegations']._options = None + _GENESISSTATE.fields_by_name['redelegations']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _LASTVALIDATORPOWER.fields_by_name['address']._options = None + _LASTVALIDATORPOWER.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _LASTVALIDATORPOWER._options = None + _LASTVALIDATORPOWER._serialized_options = b'\210\240\037\000\350\240\037\000' + _GENESISSTATE._serialized_start=171 + _GENESISSTATE._serialized_end=837 + _LASTVALIDATORPOWER._serialized_start=839 + _LASTVALIDATORPOWER._serialized_end=943 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.pyi b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.pyi new file mode 100644 index 00000000..ec403494 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2.pyi @@ -0,0 +1,96 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.staking.v1beta1.staking_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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the staking module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + LAST_TOTAL_POWER_FIELD_NUMBER: builtins.int + LAST_VALIDATOR_POWERS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + DELEGATIONS_FIELD_NUMBER: builtins.int + UNBONDING_DELEGATIONS_FIELD_NUMBER: builtins.int + REDELEGATIONS_FIELD_NUMBER: builtins.int + EXPORTED_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: + """params defines all the parameters of related to deposit.""" + last_total_power: builtins.bytes + """last_total_power tracks the total amounts of bonded tokens recorded during + the previous end block. + """ + @property + def last_validator_powers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LastValidatorPower]: + """last_validator_powers is a special index that provides a historical list + of the last-block's bonded validators. + """ + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: + """delegations defines the validator set at genesis.""" + @property + def delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Delegation]: + """delegations defines the delegations active at genesis.""" + @property + def unbonding_delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: + """unbonding_delegations defines the unbonding delegations active at genesis.""" + @property + def redelegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Redelegation]: + """redelegations defines the redelegations active at genesis.""" + exported: builtins.bool + def __init__( + self, + *, + params: cosmos.staking.v1beta1.staking_pb2.Params | None = ..., + last_total_power: builtins.bytes = ..., + last_validator_powers: collections.abc.Iterable[global___LastValidatorPower] | None = ..., + validators: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator] | None = ..., + delegations: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.Delegation] | None = ..., + unbonding_delegations: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] | None = ..., + redelegations: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.Redelegation] | None = ..., + exported: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegations", b"delegations", "exported", b"exported", "last_total_power", b"last_total_power", "last_validator_powers", b"last_validator_powers", "params", b"params", "redelegations", b"redelegations", "unbonding_delegations", b"unbonding_delegations", "validators", b"validators"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class LastValidatorPower(google.protobuf.message.Message): + """LastValidatorPower required for validator set update logic.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the address of the validator.""" + power: builtins.int + """power defines the power of the validator.""" + def __init__( + self, + *, + address: builtins.str = ..., + power: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "power", b"power"]) -> None: ... + +global___LastValidatorPower = LastValidatorPower diff --git a/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2_grpc.py b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/staking/v1beta1/query_pb2.py b/nibiru_proto/cosmos/staking/v1beta1/query_pb2.py new file mode 100644 index 00000000..9ffeb3a9 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/query_pb2.py @@ -0,0 +1,185 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.staking.v1beta1 import staking_pb2 as cosmos_dot_staking_dot_v1beta1_dot_staking__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.query.v1 import query_pb2 as cosmos_dot_query_dot_v1_dot_query__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/staking/v1beta1/query.proto\x12\x16\x63osmos.staking.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/staking/v1beta1/staking.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1b\x63osmos/query/v1/query.proto\x1a\x11\x61mino/amino.proto\"x\n\x16QueryValidatorsRequest\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb0\x01\n\x17QueryValidatorsResponse\x12L\n\nvalidators\x18\x01 \x03(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\nvalidators\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"X\n\x15QueryValidatorRequest\x12?\n\x0evalidator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr\"d\n\x16QueryValidatorResponse\x12J\n\tvalidator\x18\x01 \x01(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tvalidator\"\xab\x01\n QueryValidatorDelegationsRequest\x12?\n\x0evalidator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xed\x01\n!QueryValidatorDelegationsResponse\x12\x7f\n\x14\x64\x65legation_responses\x18\x01 \x03(\x0b\x32*.cosmos.staking.v1beta1.DelegationResponseB \xc8\xde\x1f\x00\xaa\xdf\x1f\x13\x44\x65legationResponses\xa8\xe7\xb0*\x01R\x13\x64\x65legationResponses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xb4\x01\n)QueryValidatorUnbondingDelegationsRequest\x12?\n\x0evalidator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xde\x01\n*QueryValidatorUnbondingDelegationsResponse\x12g\n\x13unbonding_responses\x18\x01 \x03(\x0b\x32+.cosmos.staking.v1beta1.UnbondingDelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x12unbondingResponses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xa4\x01\n\x16QueryDelegationRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12?\n\x0evalidator_addr\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"v\n\x17QueryDelegationResponse\x12[\n\x13\x64\x65legation_response\x18\x01 \x01(\x0b\x32*.cosmos.staking.v1beta1.DelegationResponseR\x12\x64\x65legationResponse\"\xad\x01\n\x1fQueryUnbondingDelegationRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12?\n\x0evalidator_addr\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"r\n QueryUnbondingDelegationResponse\x12N\n\x06unbond\x18\x01 \x01(\x0b\x32+.cosmos.staking.v1beta1.UnbondingDelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06unbond\"\xb5\x01\n QueryDelegatorDelegationsRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xd6\x01\n!QueryDelegatorDelegationsResponse\x12h\n\x14\x64\x65legation_responses\x18\x01 \x03(\x0b\x32*.cosmos.staking.v1beta1.DelegationResponseB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x13\x64\x65legationResponses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xbe\x01\n)QueryDelegatorUnbondingDelegationsRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xde\x01\n*QueryDelegatorUnbondingDelegationsResponse\x12g\n\x13unbonding_responses\x18\x01 \x03(\x0b\x32+.cosmos.staking.v1beta1.UnbondingDelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x12unbondingResponses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xbe\x02\n\x19QueryRedelegationsRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12\x46\n\x12src_validator_addr\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10srcValidatorAddr\x12\x46\n\x12\x64st_validator_addr\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64stValidatorAddr\x12\x46\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xd5\x01\n\x1aQueryRedelegationsResponse\x12n\n\x16redelegation_responses\x18\x01 \x03(\x0b\x32,.cosmos.staking.v1beta1.RedelegationResponseB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x15redelegationResponses\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xb4\x01\n\x1fQueryDelegatorValidatorsRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xb9\x01\n QueryDelegatorValidatorsResponse\x12L\n\nvalidators\x18\x01 \x03(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\nvalidators\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xac\x01\n\x1eQueryDelegatorValidatorRequest\x12?\n\x0e\x64\x65legator_addr\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rdelegatorAddr\x12?\n\x0evalidator_addr\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"m\n\x1fQueryDelegatorValidatorResponse\x12J\n\tvalidator\x18\x01 \x01(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tvalidator\"4\n\x1aQueryHistoricalInfoRequest\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\"Y\n\x1bQueryHistoricalInfoResponse\x12:\n\x04hist\x18\x01 \x01(\x0b\x32&.cosmos.staking.v1beta1.HistoricalInfoR\x04hist\"\x12\n\x10QueryPoolRequest\"P\n\x11QueryPoolResponse\x12;\n\x04pool\x18\x01 \x01(\x0b\x32\x1c.cosmos.staking.v1beta1.PoolB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04pool\"\x14\n\x12QueryParamsRequest\"X\n\x13QueryParamsResponse\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32\x1e.cosmos.staking.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params2\xb0\x16\n\x05Query\x12\x9e\x01\n\nValidators\x12..cosmos.staking.v1beta1.QueryValidatorsRequest\x1a/.cosmos.staking.v1beta1.QueryValidatorsResponse\"/\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02$\x12\"/cosmos/staking/v1beta1/validators\x12\xac\x01\n\tValidator\x12-.cosmos.staking.v1beta1.QueryValidatorRequest\x1a..cosmos.staking.v1beta1.QueryValidatorResponse\"@\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x35\x12\x33/cosmos/staking/v1beta1/validators/{validator_addr}\x12\xd9\x01\n\x14ValidatorDelegations\x12\x38.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest\x1a\x39.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse\"L\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x41\x12?/cosmos/staking/v1beta1/validators/{validator_addr}/delegations\x12\xfe\x01\n\x1dValidatorUnbondingDelegations\x12\x41.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest\x1a\x42.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse\"V\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02K\x12I/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations\x12\xcc\x01\n\nDelegation\x12..cosmos.staking.v1beta1.QueryDelegationRequest\x1a/.cosmos.staking.v1beta1.QueryDelegationResponse\"]\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02R\x12P/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}\x12\xfc\x01\n\x13UnbondingDelegation\x12\x37.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest\x1a\x38.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse\"r\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02g\x12\x65/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation\x12\xce\x01\n\x14\x44\x65legatorDelegations\x12\x38.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest\x1a\x39.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse\"A\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/staking/v1beta1/delegations/{delegator_addr}\x12\xfe\x01\n\x1d\x44\x65legatorUnbondingDelegations\x12\x41.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest\x1a\x42.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse\"V\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02K\x12I/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations\x12\xc6\x01\n\rRedelegations\x12\x31.cosmos.staking.v1beta1.QueryRedelegationsRequest\x1a\x32.cosmos.staking.v1beta1.QueryRedelegationsResponse\"N\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x43\x12\x41/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations\x12\xd5\x01\n\x13\x44\x65legatorValidators\x12\x37.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest\x1a\x38.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse\"K\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02@\x12>/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators\x12\xe3\x01\n\x12\x44\x65legatorValidator\x12\x36.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest\x1a\x37.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse\"\\\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02Q\x12O/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}\x12\xb8\x01\n\x0eHistoricalInfo\x12\x32.cosmos.staking.v1beta1.QueryHistoricalInfoRequest\x1a\x33.cosmos.staking.v1beta1.QueryHistoricalInfoResponse\"=\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x32\x12\x30/cosmos/staking/v1beta1/historical_info/{height}\x12\x86\x01\n\x04Pool\x12(.cosmos.staking.v1beta1.QueryPoolRequest\x1a).cosmos.staking.v1beta1.QueryPoolResponse\")\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02\x1e\x12\x1c/cosmos/staking/v1beta1/pool\x12\x8e\x01\n\x06Params\x12*.cosmos.staking.v1beta1.QueryParamsRequest\x1a+.cosmos.staking.v1beta1.QueryParamsResponse\"+\x88\xe7\xb0*\x01\x82\xd3\xe4\x93\x02 \x12\x1e/cosmos/staking/v1beta1/paramsB.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/staking/types' + _QUERYVALIDATORSRESPONSE.fields_by_name['validators']._options = None + _QUERYVALIDATORSRESPONSE.fields_by_name['validators']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVALIDATORREQUEST.fields_by_name['validator_addr']._options = None + _QUERYVALIDATORREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORRESPONSE.fields_by_name['validator']._options = None + _QUERYVALIDATORRESPONSE.fields_by_name['validator']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYVALIDATORDELEGATIONSREQUEST.fields_by_name['validator_addr']._options = None + _QUERYVALIDATORDELEGATIONSREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORDELEGATIONSRESPONSE.fields_by_name['delegation_responses']._options = None + _QUERYVALIDATORDELEGATIONSRESPONSE.fields_by_name['delegation_responses']._serialized_options = b'\310\336\037\000\252\337\037\023DelegationResponses\250\347\260*\001' + _QUERYVALIDATORUNBONDINGDELEGATIONSREQUEST.fields_by_name['validator_addr']._options = None + _QUERYVALIDATORUNBONDINGDELEGATIONSREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYVALIDATORUNBONDINGDELEGATIONSRESPONSE.fields_by_name['unbonding_responses']._options = None + _QUERYVALIDATORUNBONDINGDELEGATIONSRESPONSE.fields_by_name['unbonding_responses']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATIONREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYDELEGATIONREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATIONREQUEST.fields_by_name['validator_addr']._options = None + _QUERYDELEGATIONREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATIONREQUEST._options = None + _QUERYDELEGATIONREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYUNBONDINGDELEGATIONREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYUNBONDINGDELEGATIONREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYUNBONDINGDELEGATIONREQUEST.fields_by_name['validator_addr']._options = None + _QUERYUNBONDINGDELEGATIONREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYUNBONDINGDELEGATIONREQUEST._options = None + _QUERYUNBONDINGDELEGATIONREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYUNBONDINGDELEGATIONRESPONSE.fields_by_name['unbond']._options = None + _QUERYUNBONDINGDELEGATIONRESPONSE.fields_by_name['unbond']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATORDELEGATIONSREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYDELEGATORDELEGATIONSREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORDELEGATIONSREQUEST._options = None + _QUERYDELEGATORDELEGATIONSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORDELEGATIONSRESPONSE.fields_by_name['delegation_responses']._options = None + _QUERYDELEGATORDELEGATIONSRESPONSE.fields_by_name['delegation_responses']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST._options = None + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORUNBONDINGDELEGATIONSRESPONSE.fields_by_name['unbonding_responses']._options = None + _QUERYDELEGATORUNBONDINGDELEGATIONSRESPONSE.fields_by_name['unbonding_responses']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYREDELEGATIONSREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYREDELEGATIONSREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYREDELEGATIONSREQUEST.fields_by_name['src_validator_addr']._options = None + _QUERYREDELEGATIONSREQUEST.fields_by_name['src_validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYREDELEGATIONSREQUEST.fields_by_name['dst_validator_addr']._options = None + _QUERYREDELEGATIONSREQUEST.fields_by_name['dst_validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYREDELEGATIONSREQUEST._options = None + _QUERYREDELEGATIONSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYREDELEGATIONSRESPONSE.fields_by_name['redelegation_responses']._options = None + _QUERYREDELEGATIONSRESPONSE.fields_by_name['redelegation_responses']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATORVALIDATORSREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYDELEGATORVALIDATORSREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORVALIDATORSREQUEST._options = None + _QUERYDELEGATORVALIDATORSREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORVALIDATORSRESPONSE.fields_by_name['validators']._options = None + _QUERYDELEGATORVALIDATORSRESPONSE.fields_by_name['validators']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYDELEGATORVALIDATORREQUEST.fields_by_name['delegator_addr']._options = None + _QUERYDELEGATORVALIDATORREQUEST.fields_by_name['delegator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORVALIDATORREQUEST.fields_by_name['validator_addr']._options = None + _QUERYDELEGATORVALIDATORREQUEST.fields_by_name['validator_addr']._serialized_options = b'\322\264-\024cosmos.AddressString' + _QUERYDELEGATORVALIDATORREQUEST._options = None + _QUERYDELEGATORVALIDATORREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYDELEGATORVALIDATORRESPONSE.fields_by_name['validator']._options = None + _QUERYDELEGATORVALIDATORRESPONSE.fields_by_name['validator']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPOOLRESPONSE.fields_by_name['pool']._options = None + _QUERYPOOLRESPONSE.fields_by_name['pool']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _QUERY.methods_by_name['Validators']._options = None + _QUERY.methods_by_name['Validators']._serialized_options = b'\210\347\260*\001\202\323\344\223\002$\022\"/cosmos/staking/v1beta1/validators' + _QUERY.methods_by_name['Validator']._options = None + _QUERY.methods_by_name['Validator']._serialized_options = b'\210\347\260*\001\202\323\344\223\0025\0223/cosmos/staking/v1beta1/validators/{validator_addr}' + _QUERY.methods_by_name['ValidatorDelegations']._options = None + _QUERY.methods_by_name['ValidatorDelegations']._serialized_options = b'\210\347\260*\001\202\323\344\223\002A\022?/cosmos/staking/v1beta1/validators/{validator_addr}/delegations' + _QUERY.methods_by_name['ValidatorUnbondingDelegations']._options = None + _QUERY.methods_by_name['ValidatorUnbondingDelegations']._serialized_options = b'\210\347\260*\001\202\323\344\223\002K\022I/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations' + _QUERY.methods_by_name['Delegation']._options = None + _QUERY.methods_by_name['Delegation']._serialized_options = b'\210\347\260*\001\202\323\344\223\002R\022P/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}' + _QUERY.methods_by_name['UnbondingDelegation']._options = None + _QUERY.methods_by_name['UnbondingDelegation']._serialized_options = b'\210\347\260*\001\202\323\344\223\002g\022e/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation' + _QUERY.methods_by_name['DelegatorDelegations']._options = None + _QUERY.methods_by_name['DelegatorDelegations']._serialized_options = b'\210\347\260*\001\202\323\344\223\0026\0224/cosmos/staking/v1beta1/delegations/{delegator_addr}' + _QUERY.methods_by_name['DelegatorUnbondingDelegations']._options = None + _QUERY.methods_by_name['DelegatorUnbondingDelegations']._serialized_options = b'\210\347\260*\001\202\323\344\223\002K\022I/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations' + _QUERY.methods_by_name['Redelegations']._options = None + _QUERY.methods_by_name['Redelegations']._serialized_options = b'\210\347\260*\001\202\323\344\223\002C\022A/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations' + _QUERY.methods_by_name['DelegatorValidators']._options = None + _QUERY.methods_by_name['DelegatorValidators']._serialized_options = b'\210\347\260*\001\202\323\344\223\002@\022>/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators' + _QUERY.methods_by_name['DelegatorValidator']._options = None + _QUERY.methods_by_name['DelegatorValidator']._serialized_options = b'\210\347\260*\001\202\323\344\223\002Q\022O/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}' + _QUERY.methods_by_name['HistoricalInfo']._options = None + _QUERY.methods_by_name['HistoricalInfo']._serialized_options = b'\210\347\260*\001\202\323\344\223\0022\0220/cosmos/staking/v1beta1/historical_info/{height}' + _QUERY.methods_by_name['Pool']._options = None + _QUERY.methods_by_name['Pool']._serialized_options = b'\210\347\260*\001\202\323\344\223\002\036\022\034/cosmos/staking/v1beta1/pool' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\210\347\260*\001\202\323\344\223\002 \022\036/cosmos/staking/v1beta1/params' + _QUERYVALIDATORSREQUEST._serialized_start=271 + _QUERYVALIDATORSREQUEST._serialized_end=391 + _QUERYVALIDATORSRESPONSE._serialized_start=394 + _QUERYVALIDATORSRESPONSE._serialized_end=570 + _QUERYVALIDATORREQUEST._serialized_start=572 + _QUERYVALIDATORREQUEST._serialized_end=660 + _QUERYVALIDATORRESPONSE._serialized_start=662 + _QUERYVALIDATORRESPONSE._serialized_end=762 + _QUERYVALIDATORDELEGATIONSREQUEST._serialized_start=765 + _QUERYVALIDATORDELEGATIONSREQUEST._serialized_end=936 + _QUERYVALIDATORDELEGATIONSRESPONSE._serialized_start=939 + _QUERYVALIDATORDELEGATIONSRESPONSE._serialized_end=1176 + _QUERYVALIDATORUNBONDINGDELEGATIONSREQUEST._serialized_start=1179 + _QUERYVALIDATORUNBONDINGDELEGATIONSREQUEST._serialized_end=1359 + _QUERYVALIDATORUNBONDINGDELEGATIONSRESPONSE._serialized_start=1362 + _QUERYVALIDATORUNBONDINGDELEGATIONSRESPONSE._serialized_end=1584 + _QUERYDELEGATIONREQUEST._serialized_start=1587 + _QUERYDELEGATIONREQUEST._serialized_end=1751 + _QUERYDELEGATIONRESPONSE._serialized_start=1753 + _QUERYDELEGATIONRESPONSE._serialized_end=1871 + _QUERYUNBONDINGDELEGATIONREQUEST._serialized_start=1874 + _QUERYUNBONDINGDELEGATIONREQUEST._serialized_end=2047 + _QUERYUNBONDINGDELEGATIONRESPONSE._serialized_start=2049 + _QUERYUNBONDINGDELEGATIONRESPONSE._serialized_end=2163 + _QUERYDELEGATORDELEGATIONSREQUEST._serialized_start=2166 + _QUERYDELEGATORDELEGATIONSREQUEST._serialized_end=2347 + _QUERYDELEGATORDELEGATIONSRESPONSE._serialized_start=2350 + _QUERYDELEGATORDELEGATIONSRESPONSE._serialized_end=2564 + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST._serialized_start=2567 + _QUERYDELEGATORUNBONDINGDELEGATIONSREQUEST._serialized_end=2757 + _QUERYDELEGATORUNBONDINGDELEGATIONSRESPONSE._serialized_start=2760 + _QUERYDELEGATORUNBONDINGDELEGATIONSRESPONSE._serialized_end=2982 + _QUERYREDELEGATIONSREQUEST._serialized_start=2985 + _QUERYREDELEGATIONSREQUEST._serialized_end=3303 + _QUERYREDELEGATIONSRESPONSE._serialized_start=3306 + _QUERYREDELEGATIONSRESPONSE._serialized_end=3519 + _QUERYDELEGATORVALIDATORSREQUEST._serialized_start=3522 + _QUERYDELEGATORVALIDATORSREQUEST._serialized_end=3702 + _QUERYDELEGATORVALIDATORSRESPONSE._serialized_start=3705 + _QUERYDELEGATORVALIDATORSRESPONSE._serialized_end=3890 + _QUERYDELEGATORVALIDATORREQUEST._serialized_start=3893 + _QUERYDELEGATORVALIDATORREQUEST._serialized_end=4065 + _QUERYDELEGATORVALIDATORRESPONSE._serialized_start=4067 + _QUERYDELEGATORVALIDATORRESPONSE._serialized_end=4176 + _QUERYHISTORICALINFOREQUEST._serialized_start=4178 + _QUERYHISTORICALINFOREQUEST._serialized_end=4230 + _QUERYHISTORICALINFORESPONSE._serialized_start=4232 + _QUERYHISTORICALINFORESPONSE._serialized_end=4321 + _QUERYPOOLREQUEST._serialized_start=4323 + _QUERYPOOLREQUEST._serialized_end=4341 + _QUERYPOOLRESPONSE._serialized_start=4343 + _QUERYPOOLRESPONSE._serialized_end=4423 + _QUERYPARAMSREQUEST._serialized_start=4425 + _QUERYPARAMSREQUEST._serialized_end=4445 + _QUERYPARAMSRESPONSE._serialized_start=4447 + _QUERYPARAMSRESPONSE._serialized_end=4535 + _QUERY._serialized_start=4538 + _QUERY._serialized_end=7402 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/staking/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..72cb6f37 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/query_pb2.pyi @@ -0,0 +1,668 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.staking.v1beta1.staking_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 QueryValidatorsRequest(google.protobuf.message.Message): + """QueryValidatorsRequest is request type for Query/Validators RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STATUS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + status: builtins.str + """status enables to query for validators matching a given status.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + status: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "status", b"status"]) -> None: ... + +global___QueryValidatorsRequest = QueryValidatorsRequest + +@typing_extensions.final +class QueryValidatorsResponse(google.protobuf.message.Message): + """QueryValidatorsResponse is response type for the Query/Validators RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: + """validators contains all the queried validators.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + validators: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validators", b"validators"]) -> None: ... + +global___QueryValidatorsResponse = QueryValidatorsResponse + +@typing_extensions.final +class QueryValidatorRequest(google.protobuf.message.Message): + """QueryValidatorRequest is response type for the Query/Validator RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___QueryValidatorRequest = QueryValidatorRequest + +@typing_extensions.final +class QueryValidatorResponse(google.protobuf.message.Message): + """QueryValidatorResponse is response type for the Query/Validator RPC method""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: + """validator defines the validator info.""" + def __init__( + self, + *, + validator: cosmos.staking.v1beta1.staking_pb2.Validator | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> None: ... + +global___QueryValidatorResponse = QueryValidatorResponse + +@typing_extensions.final +class QueryValidatorDelegationsRequest(google.protobuf.message.Message): + """QueryValidatorDelegationsRequest is request type for the + Query/ValidatorDelegations RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validator_addr", b"validator_addr"]) -> None: ... + +global___QueryValidatorDelegationsRequest = QueryValidatorDelegationsRequest + +@typing_extensions.final +class QueryValidatorDelegationsResponse(google.protobuf.message.Message): + """QueryValidatorDelegationsResponse is response type for the + Query/ValidatorDelegations RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + delegation_responses: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegation_responses", b"delegation_responses", "pagination", b"pagination"]) -> None: ... + +global___QueryValidatorDelegationsResponse = QueryValidatorDelegationsResponse + +@typing_extensions.final +class QueryValidatorUnbondingDelegationsRequest(google.protobuf.message.Message): + """QueryValidatorUnbondingDelegationsRequest is required type for the + Query/ValidatorUnbondingDelegations RPC method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validator_addr", b"validator_addr"]) -> None: ... + +global___QueryValidatorUnbondingDelegationsRequest = QueryValidatorUnbondingDelegationsRequest + +@typing_extensions.final +class QueryValidatorUnbondingDelegationsResponse(google.protobuf.message.Message): + """QueryValidatorUnbondingDelegationsResponse is response type for the + Query/ValidatorUnbondingDelegations RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + unbonding_responses: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "unbonding_responses", b"unbonding_responses"]) -> None: ... + +global___QueryValidatorUnbondingDelegationsResponse = QueryValidatorUnbondingDelegationsResponse + +@typing_extensions.final +class QueryDelegationRequest(google.protobuf.message.Message): + """QueryDelegationRequest is request type for the Query/Delegation RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "validator_addr", b"validator_addr"]) -> None: ... + +global___QueryDelegationRequest = QueryDelegationRequest + +@typing_extensions.final +class QueryDelegationResponse(google.protobuf.message.Message): + """QueryDelegationResponse is response type for the Query/Delegation RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATION_RESPONSE_FIELD_NUMBER: builtins.int + @property + def delegation_response(self) -> cosmos.staking.v1beta1.staking_pb2.DelegationResponse: + """delegation_responses defines the delegation info of a delegation.""" + def __init__( + self, + *, + delegation_response: cosmos.staking.v1beta1.staking_pb2.DelegationResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["delegation_response", b"delegation_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegation_response", b"delegation_response"]) -> None: ... + +global___QueryDelegationResponse = QueryDelegationResponse + +@typing_extensions.final +class QueryUnbondingDelegationRequest(google.protobuf.message.Message): + """QueryUnbondingDelegationRequest is request type for the + Query/UnbondingDelegation RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "validator_addr", b"validator_addr"]) -> None: ... + +global___QueryUnbondingDelegationRequest = QueryUnbondingDelegationRequest + +@typing_extensions.final +class QueryUnbondingDelegationResponse(google.protobuf.message.Message): + """QueryDelegationResponse is response type for the Query/UnbondingDelegation + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNBOND_FIELD_NUMBER: builtins.int + @property + def unbond(self) -> cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation: + """unbond defines the unbonding information of a delegation.""" + def __init__( + self, + *, + unbond: cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["unbond", b"unbond"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["unbond", b"unbond"]) -> None: ... + +global___QueryUnbondingDelegationResponse = QueryUnbondingDelegationResponse + +@typing_extensions.final +class QueryDelegatorDelegationsRequest(google.protobuf.message.Message): + """QueryDelegatorDelegationsRequest is request type for the + Query/DelegatorDelegations RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "pagination", b"pagination"]) -> None: ... + +global___QueryDelegatorDelegationsRequest = QueryDelegatorDelegationsRequest + +@typing_extensions.final +class QueryDelegatorDelegationsResponse(google.protobuf.message.Message): + """QueryDelegatorDelegationsResponse is response type for the + Query/DelegatorDelegations RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: + """delegation_responses defines all the delegations' info of a delegator.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + delegation_responses: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegation_responses", b"delegation_responses", "pagination", b"pagination"]) -> None: ... + +global___QueryDelegatorDelegationsResponse = QueryDelegatorDelegationsResponse + +@typing_extensions.final +class QueryDelegatorUnbondingDelegationsRequest(google.protobuf.message.Message): + """QueryDelegatorUnbondingDelegationsRequest is request type for the + Query/DelegatorUnbondingDelegations RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "pagination", b"pagination"]) -> None: ... + +global___QueryDelegatorUnbondingDelegationsRequest = QueryDelegatorUnbondingDelegationsRequest + +@typing_extensions.final +class QueryDelegatorUnbondingDelegationsResponse(google.protobuf.message.Message): + """QueryUnbondingDelegatorDelegationsResponse is response type for the + Query/UnbondingDelegatorDelegations RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + unbonding_responses: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "unbonding_responses", b"unbonding_responses"]) -> None: ... + +global___QueryDelegatorUnbondingDelegationsResponse = QueryDelegatorUnbondingDelegationsResponse + +@typing_extensions.final +class QueryRedelegationsRequest(google.protobuf.message.Message): + """QueryRedelegationsRequest is request type for the Query/Redelegations RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + SRC_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + DST_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + src_validator_addr: builtins.str + """src_validator_addr defines the validator address to redelegate from.""" + dst_validator_addr: builtins.str + """dst_validator_addr defines the validator address to redelegate to.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + src_validator_addr: builtins.str = ..., + dst_validator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "dst_validator_addr", b"dst_validator_addr", "pagination", b"pagination", "src_validator_addr", b"src_validator_addr"]) -> None: ... + +global___QueryRedelegationsRequest = QueryRedelegationsRequest + +@typing_extensions.final +class QueryRedelegationsResponse(google.protobuf.message.Message): + """QueryRedelegationsResponse is response type for the Query/Redelegations RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REDELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def redelegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + redelegation_responses: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "redelegation_responses", b"redelegation_responses"]) -> None: ... + +global___QueryRedelegationsResponse = QueryRedelegationsResponse + +@typing_extensions.final +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + """QueryDelegatorValidatorsRequest is request type for the + Query/DelegatorValidators RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "pagination", b"pagination"]) -> None: ... + +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +@typing_extensions.final +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + """QueryDelegatorValidatorsResponse is response type for the + Query/DelegatorValidators RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: + """validators defines the validators' info of a delegator.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + validators: collections.abc.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validators", b"validators"]) -> None: ... + +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +@typing_extensions.final +class QueryDelegatorValidatorRequest(google.protobuf.message.Message): + """QueryDelegatorValidatorRequest is request type for the + Query/DelegatorValidator RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + delegator_addr: builtins.str + """delegator_addr defines the delegator address to query for.""" + validator_addr: builtins.str + """validator_addr defines the validator address to query for.""" + def __init__( + self, + *, + delegator_addr: builtins.str = ..., + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_addr", b"delegator_addr", "validator_addr", b"validator_addr"]) -> None: ... + +global___QueryDelegatorValidatorRequest = QueryDelegatorValidatorRequest + +@typing_extensions.final +class QueryDelegatorValidatorResponse(google.protobuf.message.Message): + """QueryDelegatorValidatorResponse response type for the + Query/DelegatorValidator RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: + """validator defines the validator info.""" + def __init__( + self, + *, + validator: cosmos.staking.v1beta1.staking_pb2.Validator | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> None: ... + +global___QueryDelegatorValidatorResponse = QueryDelegatorValidatorResponse + +@typing_extensions.final +class QueryHistoricalInfoRequest(google.protobuf.message.Message): + """QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int + """height defines at which height to query the historical info.""" + def __init__( + self, + *, + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height"]) -> None: ... + +global___QueryHistoricalInfoRequest = QueryHistoricalInfoRequest + +@typing_extensions.final +class QueryHistoricalInfoResponse(google.protobuf.message.Message): + """QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HIST_FIELD_NUMBER: builtins.int + @property + def hist(self) -> cosmos.staking.v1beta1.staking_pb2.HistoricalInfo: + """hist defines the historical info at the given height.""" + def __init__( + self, + *, + hist: cosmos.staking.v1beta1.staking_pb2.HistoricalInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["hist", b"hist"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["hist", b"hist"]) -> None: ... + +global___QueryHistoricalInfoResponse = QueryHistoricalInfoResponse + +@typing_extensions.final +class QueryPoolRequest(google.protobuf.message.Message): + """QueryPoolRequest is request type for the Query/Pool RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryPoolRequest = QueryPoolRequest + +@typing_extensions.final +class QueryPoolResponse(google.protobuf.message.Message): + """QueryPoolResponse is response type for the Query/Pool RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_FIELD_NUMBER: builtins.int + @property + def pool(self) -> cosmos.staking.v1beta1.staking_pb2.Pool: + """pool defines the pool info.""" + def __init__( + self, + *, + pool: cosmos.staking.v1beta1.staking_pb2.Pool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool", b"pool"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool", b"pool"]) -> None: ... + +global___QueryPoolResponse = QueryPoolResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: + """params holds all the parameters of this module.""" + def __init__( + self, + *, + params: cosmos.staking.v1beta1.staking_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse diff --git a/nibiru_proto/cosmos/staking/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/staking/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..d7902512 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/query_pb2_grpc.py @@ -0,0 +1,537 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.staking.v1beta1 import query_pb2 as cosmos_dot_staking_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Validators = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Validators', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsResponse.FromString, + ) + self.Validator = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Validator', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorResponse.FromString, + ) + self.ValidatorDelegations = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/ValidatorDelegations', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsResponse.FromString, + ) + self.ValidatorUnbondingDelegations = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsResponse.FromString, + ) + self.Delegation = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Delegation', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationResponse.FromString, + ) + self.UnbondingDelegation = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/UnbondingDelegation', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationResponse.FromString, + ) + self.DelegatorDelegations = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/DelegatorDelegations', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsResponse.FromString, + ) + self.DelegatorUnbondingDelegations = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsResponse.FromString, + ) + self.Redelegations = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Redelegations', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsResponse.FromString, + ) + self.DelegatorValidators = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/DelegatorValidators', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.FromString, + ) + self.DelegatorValidator = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/DelegatorValidator', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorResponse.FromString, + ) + self.HistoricalInfo = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/HistoricalInfo', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoResponse.FromString, + ) + self.Pool = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Pool', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolResponse.FromString, + ) + self.Params = channel.unary_unary( + '/cosmos.staking.v1beta1.Query/Params', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Validators(self, request, context): + """Validators queries all validators that match the given status. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Validator(self, request, context): + """Validator queries validator info for given validator address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorDelegations(self, request, context): + """ValidatorDelegations queries delegate info for given validator. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidatorUnbondingDelegations(self, request, context): + """ValidatorUnbondingDelegations queries unbonding delegations of a validator. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Delegation(self, request, context): + """Delegation queries delegate info for given validator delegator pair. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnbondingDelegation(self, request, context): + """UnbondingDelegation queries unbonding info for given validator delegator + pair. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorDelegations(self, request, context): + """DelegatorDelegations queries all delegations of a given delegator address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorUnbondingDelegations(self, request, context): + """DelegatorUnbondingDelegations queries all unbonding delegations of a given + delegator address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Redelegations(self, request, context): + """Redelegations queries redelegations of given address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorValidators(self, request, context): + """DelegatorValidators queries all validators info for given delegator + address. + + When called from another module, this query might consume a high amount of + gas if the pagination field is incorrectly set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegatorValidator(self, request, context): + """DelegatorValidator queries validator info for given delegator validator + pair. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def HistoricalInfo(self, request, context): + """HistoricalInfo queries the historical info for given height. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Pool(self, request, context): + """Pool queries the pool info. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Parameters queries the staking parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Validators': grpc.unary_unary_rpc_method_handler( + servicer.Validators, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsResponse.SerializeToString, + ), + 'Validator': grpc.unary_unary_rpc_method_handler( + servicer.Validator, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorResponse.SerializeToString, + ), + 'ValidatorDelegations': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorDelegations, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsResponse.SerializeToString, + ), + 'ValidatorUnbondingDelegations': grpc.unary_unary_rpc_method_handler( + servicer.ValidatorUnbondingDelegations, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsResponse.SerializeToString, + ), + 'Delegation': grpc.unary_unary_rpc_method_handler( + servicer.Delegation, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationResponse.SerializeToString, + ), + 'UnbondingDelegation': grpc.unary_unary_rpc_method_handler( + servicer.UnbondingDelegation, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationResponse.SerializeToString, + ), + 'DelegatorDelegations': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorDelegations, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsResponse.SerializeToString, + ), + 'DelegatorUnbondingDelegations': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorUnbondingDelegations, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsResponse.SerializeToString, + ), + 'Redelegations': grpc.unary_unary_rpc_method_handler( + servicer.Redelegations, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsResponse.SerializeToString, + ), + 'DelegatorValidators': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorValidators, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.SerializeToString, + ), + 'DelegatorValidator': grpc.unary_unary_rpc_method_handler( + servicer.DelegatorValidator, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorResponse.SerializeToString, + ), + 'HistoricalInfo': grpc.unary_unary_rpc_method_handler( + servicer.HistoricalInfo, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoResponse.SerializeToString, + ), + 'Pool': grpc.unary_unary_rpc_method_handler( + servicer.Pool, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.staking.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Validators(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Validators', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Validator(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Validator', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorDelegations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/ValidatorDelegations', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorDelegationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidatorUnbondingDelegations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryValidatorUnbondingDelegationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Delegation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Delegation', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnbondingDelegation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/UnbondingDelegation', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryUnbondingDelegationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorDelegations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/DelegatorDelegations', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorDelegationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorUnbondingDelegations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorUnbondingDelegationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Redelegations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Redelegations', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryRedelegationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorValidators(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/DelegatorValidators', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegatorValidator(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/DelegatorValidator', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryDelegatorValidatorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def HistoricalInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/HistoricalInfo', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryHistoricalInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Pool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Pool', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Query/Params', + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.py b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.py new file mode 100644 index 00000000..e5828905 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.py @@ -0,0 +1,223 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/staking.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from tendermint.abci import types_pb2 as tendermint_dot_abci_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/staking/v1beta1/staking.proto\x12\x16\x63osmos.staking.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\x1a\x1ctendermint/types/types.proto\x1a\x1btendermint/abci/types.proto\"\x93\x01\n\x0eHistoricalInfo\x12;\n\x06header\x18\x01 \x01(\x0b\x32\x18.tendermint.types.HeaderB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06header\x12\x44\n\x06valset\x18\x02 \x03(\x0b\x32!.cosmos.staking.v1beta1.ValidatorB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06valset\"\xac\x02\n\x0f\x43ommissionRates\x12P\n\x04rate\x18\x01 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x04rate\x12W\n\x08max_rate\x18\x02 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x07maxRate\x12\x64\n\x0fmax_change_rate\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\rmaxChangeRate:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xc5\x01\n\nCommission\x12\x61\n\x10\x63ommission_rates\x18\x01 \x01(\x0b\x32\'.cosmos.staking.v1beta1.CommissionRatesB\r\xc8\xde\x1f\x00\xd0\xde\x1f\x01\xa8\xe7\xb0*\x01R\x0f\x63ommissionRates\x12J\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\nupdateTime:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xac\x01\n\x0b\x44\x65scription\x12\x18\n\x07moniker\x18\x01 \x01(\tR\x07moniker\x12\x1a\n\x08identity\x18\x02 \x01(\tR\x08identity\x12\x18\n\x07website\x18\x03 \x01(\tR\x07website\x12)\n\x10security_contact\x18\x04 \x01(\tR\x0fsecurityContact\x12\x18\n\x07\x64\x65tails\x18\x05 \x01(\tR\x07\x64\x65tails:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xbb\x07\n\tValidator\x12\x43\n\x10operator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0foperatorAddress\x12Y\n\x10\x63onsensus_pubkey\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x18\xca\xb4-\x14\x63osmos.crypto.PubKeyR\x0f\x63onsensusPubkey\x12\x16\n\x06jailed\x18\x03 \x01(\x08R\x06jailed\x12:\n\x06status\x18\x04 \x01(\x0e\x32\".cosmos.staking.v1beta1.BondStatusR\x06status\x12T\n\x06tokens\x18\x05 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x06tokens\x12g\n\x10\x64\x65legator_shares\x18\x06 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x0f\x64\x65legatorShares\x12P\n\x0b\x64\x65scription\x18\x07 \x01(\x0b\x32#.cosmos.staking.v1beta1.DescriptionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x64\x65scription\x12)\n\x10unbonding_height\x18\x08 \x01(\x03R\x0funbondingHeight\x12P\n\x0eunbonding_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\runbondingTime\x12M\n\ncommission\x18\n \x01(\x0b\x32\".cosmos.staking.v1beta1.CommissionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\ncommission\x12l\n\x13min_self_delegation\x18\x0b \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x11minSelfDelegation\x12<\n\x1bunbonding_on_hold_ref_count\x18\x0c \x01(\x03R\x17unbondingOnHoldRefCount\x12#\n\runbonding_ids\x18\r \x03(\x04R\x0cunbondingIds:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"P\n\x0cValAddresses\x12\x36\n\taddresses\x18\x01 \x03(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\taddresses:\x08\x98\xa0\x1f\x00\x80\xdc \x01\"\xa4\x01\n\x06\x44VPair\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"J\n\x07\x44VPairs\x12?\n\x05pairs\x18\x01 \x03(\x0b\x32\x1e.cosmos.staking.v1beta1.DVPairB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05pairs\"\xfd\x01\n\nDVVTriplet\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12L\n\x15validator_src_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorSrcAddress\x12L\n\x15validator_dst_address\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorDstAddress:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"X\n\x0b\x44VVTriplets\x12I\n\x08triplets\x18\x01 \x03(\x0b\x32\".cosmos.staking.v1beta1.DVVTripletB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x08triplets\"\xfe\x01\n\nDelegation\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12T\n\x06shares\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x06shares:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x88\x02\n\x13UnbondingDelegation\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12U\n\x07\x65ntries\x18\x03 \x03(\x0b\x32\x30.cosmos.staking.v1beta1.UnbondingDelegationEntryB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x65ntries:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xc1\x03\n\x18UnbondingDelegationEntry\x12\'\n\x0f\x63reation_height\x18\x01 \x01(\x03R\x0e\x63reationHeight\x12R\n\x0f\x63ompletion_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0e\x63ompletionTime\x12\x65\n\x0finitial_balance\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x0einitialBalance\x12V\n\x07\x62\x61lance\x18\x04 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x07\x62\x61lance\x12!\n\x0cunbonding_id\x18\x05 \x01(\x04R\x0bunbondingId\x12<\n\x1bunbonding_on_hold_ref_count\x18\x06 \x01(\x03R\x17unbondingOnHoldRefCount:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xbf\x03\n\x11RedelegationEntry\x12\'\n\x0f\x63reation_height\x18\x01 \x01(\x03R\x0e\x63reationHeight\x12R\n\x0f\x63ompletion_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0e\x63ompletionTime\x12\x65\n\x0finitial_balance\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x0einitialBalance\x12[\n\nshares_dst\x18\x04 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\tsharesDst\x12!\n\x0cunbonding_id\x18\x05 \x01(\x04R\x0bunbondingId\x12<\n\x1bunbonding_on_hold_ref_count\x18\x06 \x01(\x03R\x17unbondingOnHoldRefCount:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xcf\x02\n\x0cRedelegation\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12L\n\x15validator_src_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorSrcAddress\x12L\n\x15validator_dst_address\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorDstAddress\x12N\n\x07\x65ntries\x18\x04 \x03(\x0b\x32).cosmos.staking.v1beta1.RedelegationEntryB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x65ntries:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x97\x03\n\x06Params\x12O\n\x0eunbonding_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\r\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xa8\xe7\xb0*\x01R\runbondingTime\x12%\n\x0emax_validators\x18\x02 \x01(\rR\rmaxValidators\x12\x1f\n\x0bmax_entries\x18\x03 \x01(\rR\nmaxEntries\x12-\n\x12historical_entries\x18\x04 \x01(\rR\x11historicalEntries\x12\x1d\n\nbond_denom\x18\x05 \x01(\tR\tbondDenom\x12|\n\x13min_commission_rate\x18\x06 \x01(\tBL\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x1ayaml:\"min_commission_rate\"R\x11minCommissionRate:(\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x1b\x63osmos-sdk/x/staking/Params\"\xad\x01\n\x12\x44\x65legationResponse\x12M\n\ndelegation\x18\x01 \x01(\x0b\x32\".cosmos.staking.v1beta1.DelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\ndelegation\x12>\n\x07\x62\x61lance\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x62\x61lance:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xde\x01\n\x19RedelegationEntryResponse\x12\x63\n\x12redelegation_entry\x18\x01 \x01(\x0b\x32).cosmos.staking.v1beta1.RedelegationEntryB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x11redelegationEntry\x12V\n\x07\x62\x61lance\x18\x04 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x07\x62\x61lance:\x04\xe8\xa0\x1f\x01\"\xc9\x01\n\x14RedelegationResponse\x12S\n\x0credelegation\x18\x01 \x01(\x0b\x32$.cosmos.staking.v1beta1.RedelegationB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0credelegation\x12V\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x31.cosmos.staking.v1beta1.RedelegationEntryResponseB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07\x65ntries:\x04\xe8\xa0\x1f\x00\"\x8e\x02\n\x04Pool\x12\x82\x01\n\x11not_bonded_tokens\x18\x01 \x01(\tBV\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xea\xde\x1f\x11not_bonded_tokens\xd2\xb4-\ncosmos.Int\xa8\xe7\xb0*\x01R\x0fnotBondedTokens\x12w\n\rbonded_tokens\x18\x02 \x01(\tBR\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xea\xde\x1f\rbonded_tokens\xd2\xb4-\ncosmos.Int\xa8\xe7\xb0*\x01R\x0c\x62ondedTokens:\x08\xe8\xa0\x1f\x01\xf0\xa0\x1f\x01\"Y\n\x10ValidatorUpdates\x12\x45\n\x07updates\x18\x01 \x03(\x0b\x32 .tendermint.abci.ValidatorUpdateB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07updates*\xb6\x01\n\nBondStatus\x12,\n\x17\x42OND_STATUS_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUnspecified\x12&\n\x14\x42OND_STATUS_UNBONDED\x10\x01\x1a\x0c\x8a\x9d \x08Unbonded\x12(\n\x15\x42OND_STATUS_UNBONDING\x10\x02\x1a\r\x8a\x9d \tUnbonding\x12\"\n\x12\x42OND_STATUS_BONDED\x10\x03\x1a\n\x8a\x9d \x06\x42onded\x1a\x04\x88\xa3\x1e\x00*]\n\nInfraction\x12\x1a\n\x16INFRACTION_UNSPECIFIED\x10\x00\x12\x1a\n\x16INFRACTION_DOUBLE_SIGN\x10\x01\x12\x17\n\x13INFRACTION_DOWNTIME\x10\x02\x42.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.v1beta1.staking_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/staking/types' + _BONDSTATUS._options = None + _BONDSTATUS._serialized_options = b'\210\243\036\000' + _BONDSTATUS.values_by_name["BOND_STATUS_UNSPECIFIED"]._options = None + _BONDSTATUS.values_by_name["BOND_STATUS_UNSPECIFIED"]._serialized_options = b'\212\235 \013Unspecified' + _BONDSTATUS.values_by_name["BOND_STATUS_UNBONDED"]._options = None + _BONDSTATUS.values_by_name["BOND_STATUS_UNBONDED"]._serialized_options = b'\212\235 \010Unbonded' + _BONDSTATUS.values_by_name["BOND_STATUS_UNBONDING"]._options = None + _BONDSTATUS.values_by_name["BOND_STATUS_UNBONDING"]._serialized_options = b'\212\235 \tUnbonding' + _BONDSTATUS.values_by_name["BOND_STATUS_BONDED"]._options = None + _BONDSTATUS.values_by_name["BOND_STATUS_BONDED"]._serialized_options = b'\212\235 \006Bonded' + _HISTORICALINFO.fields_by_name['header']._options = None + _HISTORICALINFO.fields_by_name['header']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _HISTORICALINFO.fields_by_name['valset']._options = None + _HISTORICALINFO.fields_by_name['valset']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _COMMISSIONRATES.fields_by_name['rate']._options = None + _COMMISSIONRATES.fields_by_name['rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _COMMISSIONRATES.fields_by_name['max_rate']._options = None + _COMMISSIONRATES.fields_by_name['max_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _COMMISSIONRATES.fields_by_name['max_change_rate']._options = None + _COMMISSIONRATES.fields_by_name['max_change_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _COMMISSIONRATES._options = None + _COMMISSIONRATES._serialized_options = b'\230\240\037\000\350\240\037\001' + _COMMISSION.fields_by_name['commission_rates']._options = None + _COMMISSION.fields_by_name['commission_rates']._serialized_options = b'\310\336\037\000\320\336\037\001\250\347\260*\001' + _COMMISSION.fields_by_name['update_time']._options = None + _COMMISSION.fields_by_name['update_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _COMMISSION._options = None + _COMMISSION._serialized_options = b'\230\240\037\000\350\240\037\001' + _DESCRIPTION._options = None + _DESCRIPTION._serialized_options = b'\230\240\037\000\350\240\037\001' + _VALIDATOR.fields_by_name['operator_address']._options = None + _VALIDATOR.fields_by_name['operator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALIDATOR.fields_by_name['consensus_pubkey']._options = None + _VALIDATOR.fields_by_name['consensus_pubkey']._serialized_options = b'\312\264-\024cosmos.crypto.PubKey' + _VALIDATOR.fields_by_name['tokens']._options = None + _VALIDATOR.fields_by_name['tokens']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _VALIDATOR.fields_by_name['delegator_shares']._options = None + _VALIDATOR.fields_by_name['delegator_shares']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _VALIDATOR.fields_by_name['description']._options = None + _VALIDATOR.fields_by_name['description']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATOR.fields_by_name['unbonding_time']._options = None + _VALIDATOR.fields_by_name['unbonding_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _VALIDATOR.fields_by_name['commission']._options = None + _VALIDATOR.fields_by_name['commission']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _VALIDATOR.fields_by_name['min_self_delegation']._options = None + _VALIDATOR.fields_by_name['min_self_delegation']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _VALIDATOR._options = None + _VALIDATOR._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _VALADDRESSES.fields_by_name['addresses']._options = None + _VALADDRESSES.fields_by_name['addresses']._serialized_options = b'\322\264-\024cosmos.AddressString' + _VALADDRESSES._options = None + _VALADDRESSES._serialized_options = b'\230\240\037\000\200\334 \001' + _DVPAIR.fields_by_name['delegator_address']._options = None + _DVPAIR.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DVPAIR.fields_by_name['validator_address']._options = None + _DVPAIR.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DVPAIR._options = None + _DVPAIR._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _DVPAIRS.fields_by_name['pairs']._options = None + _DVPAIRS.fields_by_name['pairs']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DVVTRIPLET.fields_by_name['delegator_address']._options = None + _DVVTRIPLET.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DVVTRIPLET.fields_by_name['validator_src_address']._options = None + _DVVTRIPLET.fields_by_name['validator_src_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DVVTRIPLET.fields_by_name['validator_dst_address']._options = None + _DVVTRIPLET.fields_by_name['validator_dst_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DVVTRIPLET._options = None + _DVVTRIPLET._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _DVVTRIPLETS.fields_by_name['triplets']._options = None + _DVVTRIPLETS.fields_by_name['triplets']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DELEGATION.fields_by_name['delegator_address']._options = None + _DELEGATION.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATION.fields_by_name['validator_address']._options = None + _DELEGATION.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _DELEGATION.fields_by_name['shares']._options = None + _DELEGATION.fields_by_name['shares']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _DELEGATION._options = None + _DELEGATION._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _UNBONDINGDELEGATION.fields_by_name['delegator_address']._options = None + _UNBONDINGDELEGATION.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _UNBONDINGDELEGATION.fields_by_name['validator_address']._options = None + _UNBONDINGDELEGATION.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _UNBONDINGDELEGATION.fields_by_name['entries']._options = None + _UNBONDINGDELEGATION.fields_by_name['entries']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _UNBONDINGDELEGATION._options = None + _UNBONDINGDELEGATION._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _UNBONDINGDELEGATIONENTRY.fields_by_name['completion_time']._options = None + _UNBONDINGDELEGATIONENTRY.fields_by_name['completion_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _UNBONDINGDELEGATIONENTRY.fields_by_name['initial_balance']._options = None + _UNBONDINGDELEGATIONENTRY.fields_by_name['initial_balance']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _UNBONDINGDELEGATIONENTRY.fields_by_name['balance']._options = None + _UNBONDINGDELEGATIONENTRY.fields_by_name['balance']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _UNBONDINGDELEGATIONENTRY._options = None + _UNBONDINGDELEGATIONENTRY._serialized_options = b'\230\240\037\000\350\240\037\001' + _REDELEGATIONENTRY.fields_by_name['completion_time']._options = None + _REDELEGATIONENTRY.fields_by_name['completion_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _REDELEGATIONENTRY.fields_by_name['initial_balance']._options = None + _REDELEGATIONENTRY.fields_by_name['initial_balance']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _REDELEGATIONENTRY.fields_by_name['shares_dst']._options = None + _REDELEGATIONENTRY.fields_by_name['shares_dst']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _REDELEGATIONENTRY._options = None + _REDELEGATIONENTRY._serialized_options = b'\230\240\037\000\350\240\037\001' + _REDELEGATION.fields_by_name['delegator_address']._options = None + _REDELEGATION.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _REDELEGATION.fields_by_name['validator_src_address']._options = None + _REDELEGATION.fields_by_name['validator_src_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _REDELEGATION.fields_by_name['validator_dst_address']._options = None + _REDELEGATION.fields_by_name['validator_dst_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _REDELEGATION.fields_by_name['entries']._options = None + _REDELEGATION.fields_by_name['entries']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _REDELEGATION._options = None + _REDELEGATION._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _PARAMS.fields_by_name['unbonding_time']._options = None + _PARAMS.fields_by_name['unbonding_time']._serialized_options = b'\310\336\037\000\230\337\037\001\250\347\260*\001' + _PARAMS.fields_by_name['min_commission_rate']._options = None + _PARAMS.fields_by_name['min_commission_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\032yaml:\"min_commission_rate\"' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000\350\240\037\001\212\347\260*\033cosmos-sdk/x/staking/Params' + _DELEGATIONRESPONSE.fields_by_name['delegation']._options = None + _DELEGATIONRESPONSE.fields_by_name['delegation']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DELEGATIONRESPONSE.fields_by_name['balance']._options = None + _DELEGATIONRESPONSE.fields_by_name['balance']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _DELEGATIONRESPONSE._options = None + _DELEGATIONRESPONSE._serialized_options = b'\230\240\037\000\350\240\037\000' + _REDELEGATIONENTRYRESPONSE.fields_by_name['redelegation_entry']._options = None + _REDELEGATIONENTRYRESPONSE.fields_by_name['redelegation_entry']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _REDELEGATIONENTRYRESPONSE.fields_by_name['balance']._options = None + _REDELEGATIONENTRYRESPONSE.fields_by_name['balance']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _REDELEGATIONENTRYRESPONSE._options = None + _REDELEGATIONENTRYRESPONSE._serialized_options = b'\350\240\037\001' + _REDELEGATIONRESPONSE.fields_by_name['redelegation']._options = None + _REDELEGATIONRESPONSE.fields_by_name['redelegation']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _REDELEGATIONRESPONSE.fields_by_name['entries']._options = None + _REDELEGATIONRESPONSE.fields_by_name['entries']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _REDELEGATIONRESPONSE._options = None + _REDELEGATIONRESPONSE._serialized_options = b'\350\240\037\000' + _POOL.fields_by_name['not_bonded_tokens']._options = None + _POOL.fields_by_name['not_bonded_tokens']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\352\336\037\021not_bonded_tokens\322\264-\ncosmos.Int\250\347\260*\001' + _POOL.fields_by_name['bonded_tokens']._options = None + _POOL.fields_by_name['bonded_tokens']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\352\336\037\rbonded_tokens\322\264-\ncosmos.Int\250\347\260*\001' + _POOL._options = None + _POOL._serialized_options = b'\350\240\037\001\360\240\037\001' + _VALIDATORUPDATES.fields_by_name['updates']._options = None + _VALIDATORUPDATES.fields_by_name['updates']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _BONDSTATUS._serialized_start=5916 + _BONDSTATUS._serialized_end=6098 + _INFRACTION._serialized_start=6100 + _INFRACTION._serialized_end=6193 + _HISTORICALINFO._serialized_start=316 + _HISTORICALINFO._serialized_end=463 + _COMMISSIONRATES._serialized_start=466 + _COMMISSIONRATES._serialized_end=766 + _COMMISSION._serialized_start=769 + _COMMISSION._serialized_end=966 + _DESCRIPTION._serialized_start=969 + _DESCRIPTION._serialized_end=1141 + _VALIDATOR._serialized_start=1144 + _VALIDATOR._serialized_end=2099 + _VALADDRESSES._serialized_start=2101 + _VALADDRESSES._serialized_end=2181 + _DVPAIR._serialized_start=2184 + _DVPAIR._serialized_end=2348 + _DVPAIRS._serialized_start=2350 + _DVPAIRS._serialized_end=2424 + _DVVTRIPLET._serialized_start=2427 + _DVVTRIPLET._serialized_end=2680 + _DVVTRIPLETS._serialized_start=2682 + _DVVTRIPLETS._serialized_end=2770 + _DELEGATION._serialized_start=2773 + _DELEGATION._serialized_end=3027 + _UNBONDINGDELEGATION._serialized_start=3030 + _UNBONDINGDELEGATION._serialized_end=3294 + _UNBONDINGDELEGATIONENTRY._serialized_start=3297 + _UNBONDINGDELEGATIONENTRY._serialized_end=3746 + _REDELEGATIONENTRY._serialized_start=3749 + _REDELEGATIONENTRY._serialized_end=4196 + _REDELEGATION._serialized_start=4199 + _REDELEGATION._serialized_end=4534 + _PARAMS._serialized_start=4537 + _PARAMS._serialized_end=4944 + _DELEGATIONRESPONSE._serialized_start=4947 + _DELEGATIONRESPONSE._serialized_end=5120 + _REDELEGATIONENTRYRESPONSE._serialized_start=5123 + _REDELEGATIONENTRYRESPONSE._serialized_end=5345 + _REDELEGATIONRESPONSE._serialized_start=5348 + _REDELEGATIONRESPONSE._serialized_end=5549 + _POOL._serialized_start=5552 + _POOL._serialized_end=5822 + _VALIDATORUPDATES._serialized_start=5824 + _VALIDATORUPDATES._serialized_end=5913 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.pyi b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.pyi new file mode 100644 index 00000000..b6bdedb8 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2.pyi @@ -0,0 +1,711 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import tendermint.abci.types_pb2 +import tendermint.types.types_pb2 +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _BondStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _BondStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BondStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + BOND_STATUS_UNSPECIFIED: _BondStatus.ValueType # 0 + """UNSPECIFIED defines an invalid validator status.""" + BOND_STATUS_UNBONDED: _BondStatus.ValueType # 1 + """UNBONDED defines a validator that is not bonded.""" + BOND_STATUS_UNBONDING: _BondStatus.ValueType # 2 + """UNBONDING defines a validator that is unbonding.""" + BOND_STATUS_BONDED: _BondStatus.ValueType # 3 + """BONDED defines a validator that is bonded.""" + +class BondStatus(_BondStatus, metaclass=_BondStatusEnumTypeWrapper): + """BondStatus is the status of a validator.""" + +BOND_STATUS_UNSPECIFIED: BondStatus.ValueType # 0 +"""UNSPECIFIED defines an invalid validator status.""" +BOND_STATUS_UNBONDED: BondStatus.ValueType # 1 +"""UNBONDED defines a validator that is not bonded.""" +BOND_STATUS_UNBONDING: BondStatus.ValueType # 2 +"""UNBONDING defines a validator that is unbonding.""" +BOND_STATUS_BONDED: BondStatus.ValueType # 3 +"""BONDED defines a validator that is bonded.""" +global___BondStatus = BondStatus + +class _Infraction: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _InfractionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Infraction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + INFRACTION_UNSPECIFIED: _Infraction.ValueType # 0 + """UNSPECIFIED defines an empty infraction.""" + INFRACTION_DOUBLE_SIGN: _Infraction.ValueType # 1 + """DOUBLE_SIGN defines a validator that double-signs a block.""" + INFRACTION_DOWNTIME: _Infraction.ValueType # 2 + """DOWNTIME defines a validator that missed signing too many blocks.""" + +class Infraction(_Infraction, metaclass=_InfractionEnumTypeWrapper): + """Infraction indicates the infraction a validator commited.""" + +INFRACTION_UNSPECIFIED: Infraction.ValueType # 0 +"""UNSPECIFIED defines an empty infraction.""" +INFRACTION_DOUBLE_SIGN: Infraction.ValueType # 1 +"""DOUBLE_SIGN defines a validator that double-signs a block.""" +INFRACTION_DOWNTIME: Infraction.ValueType # 2 +"""DOWNTIME defines a validator that missed signing too many blocks.""" +global___Infraction = Infraction + +@typing_extensions.final +class HistoricalInfo(google.protobuf.message.Message): + """HistoricalInfo contains header and validator information for a given block. + It is stored as part of staking module's state, which persists the `n` most + recent HistoricalInfo + (`n` is set by the staking module's `historical_entries` parameter). + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEADER_FIELD_NUMBER: builtins.int + VALSET_FIELD_NUMBER: builtins.int + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def valset(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + def __init__( + self, + *, + header: tendermint.types.types_pb2.Header | None = ..., + valset: collections.abc.Iterable[global___Validator] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["header", b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["header", b"header", "valset", b"valset"]) -> None: ... + +global___HistoricalInfo = HistoricalInfo + +@typing_extensions.final +class CommissionRates(google.protobuf.message.Message): + """CommissionRates defines the initial commission rates to be used for creating + a validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RATE_FIELD_NUMBER: builtins.int + MAX_RATE_FIELD_NUMBER: builtins.int + MAX_CHANGE_RATE_FIELD_NUMBER: builtins.int + rate: builtins.str + """rate is the commission rate charged to delegators, as a fraction.""" + max_rate: builtins.str + """max_rate defines the maximum commission rate which validator can ever charge, as a fraction.""" + max_change_rate: builtins.str + """max_change_rate defines the maximum daily increase of the validator commission, as a fraction.""" + def __init__( + self, + *, + rate: builtins.str = ..., + max_rate: builtins.str = ..., + max_change_rate: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["max_change_rate", b"max_change_rate", "max_rate", b"max_rate", "rate", b"rate"]) -> None: ... + +global___CommissionRates = CommissionRates + +@typing_extensions.final +class Commission(google.protobuf.message.Message): + """Commission defines commission parameters for a given validator.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMMISSION_RATES_FIELD_NUMBER: builtins.int + UPDATE_TIME_FIELD_NUMBER: builtins.int + @property + def commission_rates(self) -> global___CommissionRates: + """commission_rates defines the initial commission rates to be used for creating a validator.""" + @property + def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """update_time is the last time the commission rate was changed.""" + def __init__( + self, + *, + commission_rates: global___CommissionRates | None = ..., + update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commission_rates", b"commission_rates", "update_time", b"update_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commission_rates", b"commission_rates", "update_time", b"update_time"]) -> None: ... + +global___Commission = Commission + +@typing_extensions.final +class Description(google.protobuf.message.Message): + """Description defines a validator description.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MONIKER_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + WEBSITE_FIELD_NUMBER: builtins.int + SECURITY_CONTACT_FIELD_NUMBER: builtins.int + DETAILS_FIELD_NUMBER: builtins.int + moniker: builtins.str + """moniker defines a human-readable name for the validator.""" + identity: builtins.str + """identity defines an optional identity signature (ex. UPort or Keybase).""" + website: builtins.str + """website defines an optional website link.""" + security_contact: builtins.str + """security_contact defines an optional email for security contact.""" + details: builtins.str + """details define other optional details.""" + def __init__( + self, + *, + moniker: builtins.str = ..., + identity: builtins.str = ..., + website: builtins.str = ..., + security_contact: builtins.str = ..., + details: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["details", b"details", "identity", b"identity", "moniker", b"moniker", "security_contact", b"security_contact", "website", b"website"]) -> None: ... + +global___Description = Description + +@typing_extensions.final +class Validator(google.protobuf.message.Message): + """Validator defines a validator, together with the total amount of the + Validator's bond shares and their exchange rate to coins. Slashing results in + a decrease in the exchange rate, allowing correct calculation of future + undelegations without iterating over delegators. When coins are delegated to + this validator, the validator is credited with a delegation whose number of + bond shares is based on the amount of coins delegated divided by the current + exchange rate. Voting power can be calculated as total bonded shares + multiplied by exchange rate. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATOR_ADDRESS_FIELD_NUMBER: builtins.int + CONSENSUS_PUBKEY_FIELD_NUMBER: builtins.int + JAILED_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + TOKENS_FIELD_NUMBER: builtins.int + DELEGATOR_SHARES_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UNBONDING_HEIGHT_FIELD_NUMBER: builtins.int + UNBONDING_TIME_FIELD_NUMBER: builtins.int + COMMISSION_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + UNBONDING_ON_HOLD_REF_COUNT_FIELD_NUMBER: builtins.int + UNBONDING_IDS_FIELD_NUMBER: builtins.int + operator_address: builtins.str + """operator_address defines the address of the validator's operator; bech encoded in JSON.""" + @property + def consensus_pubkey(self) -> google.protobuf.any_pb2.Any: + """consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.""" + jailed: builtins.bool + """jailed defined whether the validator has been jailed from bonded status or not.""" + status: global___BondStatus.ValueType + """status is the validator status (bonded/unbonding/unbonded).""" + tokens: builtins.str + """tokens define the delegated tokens (incl. self-delegation).""" + delegator_shares: builtins.str + """delegator_shares defines total shares issued to a validator's delegators.""" + @property + def description(self) -> global___Description: + """description defines the description terms for the validator.""" + unbonding_height: builtins.int + """unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.""" + @property + def unbonding_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.""" + @property + def commission(self) -> global___Commission: + """commission defines the commission parameters.""" + min_self_delegation: builtins.str + """min_self_delegation is the validator's self declared minimum self delegation. + + Since: cosmos-sdk 0.46 + """ + unbonding_on_hold_ref_count: builtins.int + """strictly positive if this validator's unbonding has been stopped by external modules""" + @property + def unbonding_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: + """list of unbonding ids, each uniquely identifing an unbonding of this validator""" + def __init__( + self, + *, + operator_address: builtins.str = ..., + consensus_pubkey: google.protobuf.any_pb2.Any | None = ..., + jailed: builtins.bool = ..., + status: global___BondStatus.ValueType = ..., + tokens: builtins.str = ..., + delegator_shares: builtins.str = ..., + description: global___Description | None = ..., + unbonding_height: builtins.int = ..., + unbonding_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + commission: global___Commission | None = ..., + min_self_delegation: builtins.str = ..., + unbonding_on_hold_ref_count: builtins.int = ..., + unbonding_ids: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commission", b"commission", "consensus_pubkey", b"consensus_pubkey", "description", b"description", "unbonding_time", b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission", "consensus_pubkey", b"consensus_pubkey", "delegator_shares", b"delegator_shares", "description", b"description", "jailed", b"jailed", "min_self_delegation", b"min_self_delegation", "operator_address", b"operator_address", "status", b"status", "tokens", b"tokens", "unbonding_height", b"unbonding_height", "unbonding_ids", b"unbonding_ids", "unbonding_on_hold_ref_count", b"unbonding_on_hold_ref_count", "unbonding_time", b"unbonding_time"]) -> None: ... + +global___Validator = Validator + +@typing_extensions.final +class ValAddresses(google.protobuf.message.Message): + """ValAddresses defines a repeated set of validator addresses.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESSES_FIELD_NUMBER: builtins.int + @property + def addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + addresses: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["addresses", b"addresses"]) -> None: ... + +global___ValAddresses = ValAddresses + +@typing_extensions.final +class DVPair(google.protobuf.message.Message): + """DVPair is struct that just has a delegator-validator pair with no other data. + It is intended to be used as a marshalable pointer. For example, a DVPair can + be used to construct the key to getting an UnbondingDelegation from state. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_address: builtins.str + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___DVPair = DVPair + +@typing_extensions.final +class DVPairs(google.protobuf.message.Message): + """DVPairs defines an array of DVPair objects.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIRS_FIELD_NUMBER: builtins.int + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVPair]: ... + def __init__( + self, + *, + pairs: collections.abc.Iterable[global___DVPair] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pairs", b"pairs"]) -> None: ... + +global___DVPairs = DVPairs + +@typing_extensions.final +class DVVTriplet(google.protobuf.message.Message): + """DVVTriplet is struct that just has a delegator-validator-validator triplet + with no other data. It is intended to be used as a marshalable pointer. For + example, a DVVTriplet can be used to construct the key to getting a + Redelegation from state. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_src_address: builtins.str + validator_dst_address: builtins.str + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_src_address: builtins.str = ..., + validator_dst_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "validator_dst_address", b"validator_dst_address", "validator_src_address", b"validator_src_address"]) -> None: ... + +global___DVVTriplet = DVVTriplet + +@typing_extensions.final +class DVVTriplets(google.protobuf.message.Message): + """DVVTriplets defines an array of DVVTriplet objects.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRIPLETS_FIELD_NUMBER: builtins.int + @property + def triplets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVVTriplet]: ... + def __init__( + self, + *, + triplets: collections.abc.Iterable[global___DVVTriplet] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["triplets", b"triplets"]) -> None: ... + +global___DVVTriplets = DVVTriplets + +@typing_extensions.final +class Delegation(google.protobuf.message.Message): + """Delegation represents the bond with tokens held by an account. It is + owned by one delegator, and is associated with the voting power of one + validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + SHARES_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address is the bech32-encoded address of the delegator.""" + validator_address: builtins.str + """validator_address is the bech32-encoded address of the validator.""" + shares: builtins.str + """shares define the delegation shares received.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + shares: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "shares", b"shares", "validator_address", b"validator_address"]) -> None: ... + +global___Delegation = Delegation + +@typing_extensions.final +class UnbondingDelegation(google.protobuf.message.Message): + """UnbondingDelegation stores all of a single delegator's unbonding bonds + for a single validator in an time-ordered list. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address is the bech32-encoded address of the delegator.""" + validator_address: builtins.str + """validator_address is the bech32-encoded address of the validator.""" + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UnbondingDelegationEntry]: + """entries are the unbonding delegation entries. + unbonding delegation entries + """ + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + entries: collections.abc.Iterable[global___UnbondingDelegationEntry] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "entries", b"entries", "validator_address", b"validator_address"]) -> None: ... + +global___UnbondingDelegation = UnbondingDelegation + +@typing_extensions.final +class UnbondingDelegationEntry(google.protobuf.message.Message): + """UnbondingDelegationEntry defines an unbonding object with relevant metadata.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATION_HEIGHT_FIELD_NUMBER: builtins.int + COMPLETION_TIME_FIELD_NUMBER: builtins.int + INITIAL_BALANCE_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + UNBONDING_ID_FIELD_NUMBER: builtins.int + UNBONDING_ON_HOLD_REF_COUNT_FIELD_NUMBER: builtins.int + creation_height: builtins.int + """creation_height is the height which the unbonding took place.""" + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """completion_time is the unix time for unbonding completion.""" + initial_balance: builtins.str + """initial_balance defines the tokens initially scheduled to receive at completion.""" + balance: builtins.str + """balance defines the tokens to receive at completion.""" + unbonding_id: builtins.int + """Incrementing id that uniquely identifies this entry""" + unbonding_on_hold_ref_count: builtins.int + """Strictly positive if this entry's unbonding has been stopped by external modules""" + def __init__( + self, + *, + creation_height: builtins.int = ..., + completion_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + initial_balance: builtins.str = ..., + balance: builtins.str = ..., + unbonding_id: builtins.int = ..., + unbonding_on_hold_ref_count: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balance", b"balance", "completion_time", b"completion_time", "creation_height", b"creation_height", "initial_balance", b"initial_balance", "unbonding_id", b"unbonding_id", "unbonding_on_hold_ref_count", b"unbonding_on_hold_ref_count"]) -> None: ... + +global___UnbondingDelegationEntry = UnbondingDelegationEntry + +@typing_extensions.final +class RedelegationEntry(google.protobuf.message.Message): + """RedelegationEntry defines a redelegation object with relevant metadata.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATION_HEIGHT_FIELD_NUMBER: builtins.int + COMPLETION_TIME_FIELD_NUMBER: builtins.int + INITIAL_BALANCE_FIELD_NUMBER: builtins.int + SHARES_DST_FIELD_NUMBER: builtins.int + UNBONDING_ID_FIELD_NUMBER: builtins.int + UNBONDING_ON_HOLD_REF_COUNT_FIELD_NUMBER: builtins.int + creation_height: builtins.int + """creation_height defines the height which the redelegation took place.""" + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """completion_time defines the unix time for redelegation completion.""" + initial_balance: builtins.str + """initial_balance defines the initial balance when redelegation started.""" + shares_dst: builtins.str + """shares_dst is the amount of destination-validator shares created by redelegation.""" + unbonding_id: builtins.int + """Incrementing id that uniquely identifies this entry""" + unbonding_on_hold_ref_count: builtins.int + """Strictly positive if this entry's unbonding has been stopped by external modules""" + def __init__( + self, + *, + creation_height: builtins.int = ..., + completion_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + initial_balance: builtins.str = ..., + shares_dst: builtins.str = ..., + unbonding_id: builtins.int = ..., + unbonding_on_hold_ref_count: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time", "creation_height", b"creation_height", "initial_balance", b"initial_balance", "shares_dst", b"shares_dst", "unbonding_id", b"unbonding_id", "unbonding_on_hold_ref_count", b"unbonding_on_hold_ref_count"]) -> None: ... + +global___RedelegationEntry = RedelegationEntry + +@typing_extensions.final +class Redelegation(google.protobuf.message.Message): + """Redelegation contains the list of a particular delegator's redelegating bonds + from a particular source validator to a particular destination validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + """delegator_address is the bech32-encoded address of the delegator.""" + validator_src_address: builtins.str + """validator_src_address is the validator redelegation source operator address.""" + validator_dst_address: builtins.str + """validator_dst_address is the validator redelegation destination operator address.""" + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntry]: + """entries are the redelegation entries. + redelegation entries + """ + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_src_address: builtins.str = ..., + validator_dst_address: builtins.str = ..., + entries: collections.abc.Iterable[global___RedelegationEntry] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegator_address", b"delegator_address", "entries", b"entries", "validator_dst_address", b"validator_dst_address", "validator_src_address", b"validator_src_address"]) -> None: ... + +global___Redelegation = Redelegation + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params defines the parameters for the x/staking module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNBONDING_TIME_FIELD_NUMBER: builtins.int + MAX_VALIDATORS_FIELD_NUMBER: builtins.int + MAX_ENTRIES_FIELD_NUMBER: builtins.int + HISTORICAL_ENTRIES_FIELD_NUMBER: builtins.int + BOND_DENOM_FIELD_NUMBER: builtins.int + MIN_COMMISSION_RATE_FIELD_NUMBER: builtins.int + @property + def unbonding_time(self) -> google.protobuf.duration_pb2.Duration: + """unbonding_time is the time duration of unbonding.""" + max_validators: builtins.int + """max_validators is the maximum number of validators.""" + max_entries: builtins.int + """max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).""" + historical_entries: builtins.int + """historical_entries is the number of historical entries to persist.""" + bond_denom: builtins.str + """bond_denom defines the bondable coin denomination.""" + min_commission_rate: builtins.str + """min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators""" + def __init__( + self, + *, + unbonding_time: google.protobuf.duration_pb2.Duration | None = ..., + max_validators: builtins.int = ..., + max_entries: builtins.int = ..., + historical_entries: builtins.int = ..., + bond_denom: builtins.str = ..., + min_commission_rate: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["unbonding_time", b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bond_denom", b"bond_denom", "historical_entries", b"historical_entries", "max_entries", b"max_entries", "max_validators", b"max_validators", "min_commission_rate", b"min_commission_rate", "unbonding_time", b"unbonding_time"]) -> None: ... + +global___Params = Params + +@typing_extensions.final +class DelegationResponse(google.protobuf.message.Message): + """DelegationResponse is equivalent to Delegation except that it contains a + balance in addition to shares which is more suitable for client responses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATION_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + @property + def delegation(self) -> global___Delegation: ... + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + delegation: global___Delegation | None = ..., + balance: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["balance", b"balance", "delegation", b"delegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balance", b"balance", "delegation", b"delegation"]) -> None: ... + +global___DelegationResponse = DelegationResponse + +@typing_extensions.final +class RedelegationEntryResponse(google.protobuf.message.Message): + """RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + contains a balance in addition to shares which is more suitable for client + responses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REDELEGATION_ENTRY_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + @property + def redelegation_entry(self) -> global___RedelegationEntry: ... + balance: builtins.str + def __init__( + self, + *, + redelegation_entry: global___RedelegationEntry | None = ..., + balance: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["redelegation_entry", b"redelegation_entry"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["balance", b"balance", "redelegation_entry", b"redelegation_entry"]) -> None: ... + +global___RedelegationEntryResponse = RedelegationEntryResponse + +@typing_extensions.final +class RedelegationResponse(google.protobuf.message.Message): + """RedelegationResponse is equivalent to a Redelegation except that its entries + contain a balance in addition to shares which is more suitable for client + responses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REDELEGATION_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + @property + def redelegation(self) -> global___Redelegation: ... + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntryResponse]: ... + def __init__( + self, + *, + redelegation: global___Redelegation | None = ..., + entries: collections.abc.Iterable[global___RedelegationEntryResponse] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["redelegation", b"redelegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["entries", b"entries", "redelegation", b"redelegation"]) -> None: ... + +global___RedelegationResponse = RedelegationResponse + +@typing_extensions.final +class Pool(google.protobuf.message.Message): + """Pool is used for tracking bonded and not-bonded token supply of the bond + denomination. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NOT_BONDED_TOKENS_FIELD_NUMBER: builtins.int + BONDED_TOKENS_FIELD_NUMBER: builtins.int + not_bonded_tokens: builtins.str + bonded_tokens: builtins.str + def __init__( + self, + *, + not_bonded_tokens: builtins.str = ..., + bonded_tokens: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bonded_tokens", b"bonded_tokens", "not_bonded_tokens", b"not_bonded_tokens"]) -> None: ... + +global___Pool = Pool + +@typing_extensions.final +class ValidatorUpdates(google.protobuf.message.Message): + """ValidatorUpdates defines an array of abci.ValidatorUpdate objects. + TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UPDATES_FIELD_NUMBER: builtins.int + @property + def updates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.ValidatorUpdate]: ... + def __init__( + self, + *, + updates: collections.abc.Iterable[tendermint.abci.types_pb2.ValidatorUpdate] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["updates", b"updates"]) -> None: ... + +global___ValidatorUpdates = ValidatorUpdates diff --git a/nibiru_proto/cosmos/staking/v1beta1/staking_pb2_grpc.py b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/staking_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.py new file mode 100644 index 00000000..9920042c --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.staking.v1beta1 import staking_pb2 as cosmos_dot_staking_dot_v1beta1_dot_staking__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/staking/v1beta1/tx.proto\x12\x16\x63osmos.staking.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a$cosmos/staking/v1beta1/staking.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\x92\x05\n\x12MsgCreateValidator\x12P\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32#.cosmos.staking.v1beta1.DescriptionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x64\x65scription\x12R\n\ncommission\x18\x02 \x01(\x0b\x32\'.cosmos.staking.v1beta1.CommissionRatesB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\ncommission\x12l\n\x13min_self_delegation\x18\x03 \x01(\tB<\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x11minSelfDelegation\x12\x45\n\x11\x64\x65legator_address\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x05 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x46\n\x06pubkey\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyB\x18\xca\xb4-\x14\x63osmos.crypto.PubKeyR\x06pubkey\x12:\n\x05value\x18\x07 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x05value:V\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x82\xe7\xb0*\x11validator_address\x8a\xe7\xb0*\x1d\x63osmos-sdk/MsgCreateValidator\"\x1c\n\x1aMsgCreateValidatorResponse\"\xb8\x03\n\x10MsgEditValidator\x12P\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32#.cosmos.staking.v1beta1.DescriptionB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0b\x64\x65scription\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12\x61\n\x0f\x63ommission_rate\x18\x03 \x01(\tB8\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xd2\xb4-\ncosmos.DecR\x0e\x63ommissionRate\x12h\n\x13min_self_delegation\x18\x04 \x01(\tB8\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xd2\xb4-\ncosmos.IntR\x11minSelfDelegation:>\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11validator_address\x8a\xe7\xb0*\x1b\x63osmos-sdk/MsgEditValidator\"\x1a\n\x18MsgEditValidatorResponse\"\x94\x02\n\x0bMsgDelegate\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12<\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount:9\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*\x16\x63osmos-sdk/MsgDelegate\"\x15\n\x13MsgDelegateResponse\"\xf7\x02\n\x12MsgBeginRedelegate\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12L\n\x15validator_src_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorSrcAddress\x12L\n\x15validator_dst_address\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x13validatorDstAddress\x12<\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount:@\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*\x1d\x63osmos-sdk/MsgBeginRedelegate\"p\n\x1aMsgBeginRedelegateResponse\x12R\n\x0f\x63ompletion_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0e\x63ompletionTime\"\x98\x02\n\rMsgUndelegate\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12<\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount:;\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*\x18\x63osmos-sdk/MsgUndelegate\"k\n\x15MsgUndelegateResponse\x12R\n\x0f\x63ompletion_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\r\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x0e\x63ompletionTime\"\xdf\x02\n\x1cMsgCancelUnbondingDelegation\x12\x45\n\x11\x64\x65legator_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10\x64\x65legatorAddress\x12\x45\n\x11validator_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x10validatorAddress\x12<\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount\x12\'\n\x0f\x63reation_height\x18\x04 \x01(\x03R\x0e\x63reationHeight:J\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x11\x64\x65legator_address\x8a\xe7\xb0*\'cosmos-sdk/MsgCancelUnbondingDelegation\"&\n$MsgCancelUnbondingDelegationResponse\"\xc5\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x41\n\x06params\x18\x02 \x01(\x0b\x32\x1e.cosmos.staking.v1beta1.ParamsB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06params:7\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*$cosmos-sdk/x/staking/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\x9d\x06\n\x03Msg\x12q\n\x0f\x43reateValidator\x12*.cosmos.staking.v1beta1.MsgCreateValidator\x1a\x32.cosmos.staking.v1beta1.MsgCreateValidatorResponse\x12k\n\rEditValidator\x12(.cosmos.staking.v1beta1.MsgEditValidator\x1a\x30.cosmos.staking.v1beta1.MsgEditValidatorResponse\x12\\\n\x08\x44\x65legate\x12#.cosmos.staking.v1beta1.MsgDelegate\x1a+.cosmos.staking.v1beta1.MsgDelegateResponse\x12q\n\x0f\x42\x65ginRedelegate\x12*.cosmos.staking.v1beta1.MsgBeginRedelegate\x1a\x32.cosmos.staking.v1beta1.MsgBeginRedelegateResponse\x12\x62\n\nUndelegate\x12%.cosmos.staking.v1beta1.MsgUndelegate\x1a-.cosmos.staking.v1beta1.MsgUndelegateResponse\x12\x8f\x01\n\x19\x43\x61ncelUnbondingDelegation\x12\x34.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation\x1a<.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse\x12h\n\x0cUpdateParams\x12\'.cosmos.staking.v1beta1.MsgUpdateParams\x1a/.cosmos.staking.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.staking.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/staking/types' + _MSGCREATEVALIDATOR.fields_by_name['description']._options = None + _MSGCREATEVALIDATOR.fields_by_name['description']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEVALIDATOR.fields_by_name['commission']._options = None + _MSGCREATEVALIDATOR.fields_by_name['commission']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEVALIDATOR.fields_by_name['min_self_delegation']._options = None + _MSGCREATEVALIDATOR.fields_by_name['min_self_delegation']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _MSGCREATEVALIDATOR.fields_by_name['delegator_address']._options = None + _MSGCREATEVALIDATOR.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEVALIDATOR.fields_by_name['validator_address']._options = None + _MSGCREATEVALIDATOR.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEVALIDATOR.fields_by_name['pubkey']._options = None + _MSGCREATEVALIDATOR.fields_by_name['pubkey']._serialized_options = b'\312\264-\024cosmos.crypto.PubKey' + _MSGCREATEVALIDATOR.fields_by_name['value']._options = None + _MSGCREATEVALIDATOR.fields_by_name['value']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEVALIDATOR._options = None + _MSGCREATEVALIDATOR._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\202\347\260*\021validator_address\212\347\260*\035cosmos-sdk/MsgCreateValidator' + _MSGEDITVALIDATOR.fields_by_name['description']._options = None + _MSGEDITVALIDATOR.fields_by_name['description']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGEDITVALIDATOR.fields_by_name['validator_address']._options = None + _MSGEDITVALIDATOR.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGEDITVALIDATOR.fields_by_name['commission_rate']._options = None + _MSGEDITVALIDATOR.fields_by_name['commission_rate']._serialized_options = b'\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\322\264-\ncosmos.Dec' + _MSGEDITVALIDATOR.fields_by_name['min_self_delegation']._options = None + _MSGEDITVALIDATOR.fields_by_name['min_self_delegation']._serialized_options = b'\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\322\264-\ncosmos.Int' + _MSGEDITVALIDATOR._options = None + _MSGEDITVALIDATOR._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021validator_address\212\347\260*\033cosmos-sdk/MsgEditValidator' + _MSGDELEGATE.fields_by_name['delegator_address']._options = None + _MSGDELEGATE.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGDELEGATE.fields_by_name['validator_address']._options = None + _MSGDELEGATE.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGDELEGATE.fields_by_name['amount']._options = None + _MSGDELEGATE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGDELEGATE._options = None + _MSGDELEGATE._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*\026cosmos-sdk/MsgDelegate' + _MSGBEGINREDELEGATE.fields_by_name['delegator_address']._options = None + _MSGBEGINREDELEGATE.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGBEGINREDELEGATE.fields_by_name['validator_src_address']._options = None + _MSGBEGINREDELEGATE.fields_by_name['validator_src_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGBEGINREDELEGATE.fields_by_name['validator_dst_address']._options = None + _MSGBEGINREDELEGATE.fields_by_name['validator_dst_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGBEGINREDELEGATE.fields_by_name['amount']._options = None + _MSGBEGINREDELEGATE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGBEGINREDELEGATE._options = None + _MSGBEGINREDELEGATE._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*\035cosmos-sdk/MsgBeginRedelegate' + _MSGBEGINREDELEGATERESPONSE.fields_by_name['completion_time']._options = None + _MSGBEGINREDELEGATERESPONSE.fields_by_name['completion_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _MSGUNDELEGATE.fields_by_name['delegator_address']._options = None + _MSGUNDELEGATE.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUNDELEGATE.fields_by_name['validator_address']._options = None + _MSGUNDELEGATE.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUNDELEGATE.fields_by_name['amount']._options = None + _MSGUNDELEGATE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUNDELEGATE._options = None + _MSGUNDELEGATE._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*\030cosmos-sdk/MsgUndelegate' + _MSGUNDELEGATERESPONSE.fields_by_name['completion_time']._options = None + _MSGUNDELEGATERESPONSE.fields_by_name['completion_time']._serialized_options = b'\310\336\037\000\220\337\037\001\250\347\260*\001' + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['delegator_address']._options = None + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['delegator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['validator_address']._options = None + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['validator_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['amount']._options = None + _MSGCANCELUNBONDINGDELEGATION.fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCANCELUNBONDINGDELEGATION._options = None + _MSGCANCELUNBONDINGDELEGATION._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\021delegator_address\212\347\260*\'cosmos-sdk/MsgCancelUnbondingDelegation' + _MSGUPDATEPARAMS.fields_by_name['authority']._options = None + _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGUPDATEPARAMS.fields_by_name['params']._options = None + _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGUPDATEPARAMS._options = None + _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority\212\347\260*$cosmos-sdk/x/staking/MsgUpdateParams' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGCREATEVALIDATOR._serialized_start=283 + _MSGCREATEVALIDATOR._serialized_end=941 + _MSGCREATEVALIDATORRESPONSE._serialized_start=943 + _MSGCREATEVALIDATORRESPONSE._serialized_end=971 + _MSGEDITVALIDATOR._serialized_start=974 + _MSGEDITVALIDATOR._serialized_end=1414 + _MSGEDITVALIDATORRESPONSE._serialized_start=1416 + _MSGEDITVALIDATORRESPONSE._serialized_end=1442 + _MSGDELEGATE._serialized_start=1445 + _MSGDELEGATE._serialized_end=1721 + _MSGDELEGATERESPONSE._serialized_start=1723 + _MSGDELEGATERESPONSE._serialized_end=1744 + _MSGBEGINREDELEGATE._serialized_start=1747 + _MSGBEGINREDELEGATE._serialized_end=2122 + _MSGBEGINREDELEGATERESPONSE._serialized_start=2124 + _MSGBEGINREDELEGATERESPONSE._serialized_end=2236 + _MSGUNDELEGATE._serialized_start=2239 + _MSGUNDELEGATE._serialized_end=2519 + _MSGUNDELEGATERESPONSE._serialized_start=2521 + _MSGUNDELEGATERESPONSE._serialized_end=2628 + _MSGCANCELUNBONDINGDELEGATION._serialized_start=2631 + _MSGCANCELUNBONDINGDELEGATION._serialized_end=2982 + _MSGCANCELUNBONDINGDELEGATIONRESPONSE._serialized_start=2984 + _MSGCANCELUNBONDINGDELEGATIONRESPONSE._serialized_end=3022 + _MSGUPDATEPARAMS._serialized_start=3025 + _MSGUPDATEPARAMS._serialized_end=3222 + _MSGUPDATEPARAMSRESPONSE._serialized_start=3224 + _MSGUPDATEPARAMSRESPONSE._serialized_end=3249 + _MSG._serialized_start=3252 + _MSG._serialized_end=4049 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..634227d4 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2.pyi @@ -0,0 +1,344 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import cosmos.staking.v1beta1.staking_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 MsgCreateValidator(google.protobuf.message.Message): + """MsgCreateValidator defines a SDK message for creating a new validator.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DESCRIPTION_FIELD_NUMBER: builtins.int + COMMISSION_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + PUBKEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + @property + def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... + @property + def commission(self) -> cosmos.staking.v1beta1.staking_pb2.CommissionRates: ... + min_self_delegation: builtins.str + delegator_address: builtins.str + validator_address: builtins.str + @property + def pubkey(self) -> google.protobuf.any_pb2.Any: ... + @property + def value(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + description: cosmos.staking.v1beta1.staking_pb2.Description | None = ..., + commission: cosmos.staking.v1beta1.staking_pb2.CommissionRates | None = ..., + min_self_delegation: builtins.str = ..., + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + pubkey: google.protobuf.any_pb2.Any | None = ..., + value: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commission", b"commission", "description", b"description", "pubkey", b"pubkey", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission", "delegator_address", b"delegator_address", "description", b"description", "min_self_delegation", b"min_self_delegation", "pubkey", b"pubkey", "validator_address", b"validator_address", "value", b"value"]) -> None: ... + +global___MsgCreateValidator = MsgCreateValidator + +@typing_extensions.final +class MsgCreateValidatorResponse(google.protobuf.message.Message): + """MsgCreateValidatorResponse defines the Msg/CreateValidator response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCreateValidatorResponse = MsgCreateValidatorResponse + +@typing_extensions.final +class MsgEditValidator(google.protobuf.message.Message): + """MsgEditValidator defines a SDK message for editing an existing validator.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DESCRIPTION_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + COMMISSION_RATE_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + @property + def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... + validator_address: builtins.str + commission_rate: builtins.str + """We pass a reference to the new commission rate and min self delegation as + it's not mandatory to update. If not updated, the deserialized rate will be + zero with no way to distinguish if an update was intended. + REF: #2373 + """ + min_self_delegation: builtins.str + def __init__( + self, + *, + description: cosmos.staking.v1beta1.staking_pb2.Description | None = ..., + validator_address: builtins.str = ..., + commission_rate: builtins.str = ..., + min_self_delegation: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["description", b"description"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commission_rate", b"commission_rate", "description", b"description", "min_self_delegation", b"min_self_delegation", "validator_address", b"validator_address"]) -> None: ... + +global___MsgEditValidator = MsgEditValidator + +@typing_extensions.final +class MsgEditValidatorResponse(google.protobuf.message.Message): + """MsgEditValidatorResponse defines the Msg/EditValidator response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgEditValidatorResponse = MsgEditValidatorResponse + +@typing_extensions.final +class MsgDelegate(google.protobuf.message.Message): + """MsgDelegate defines a SDK message for performing a delegation of coins + from a delegator to a validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_address: builtins.str + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + amount: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___MsgDelegate = MsgDelegate + +@typing_extensions.final +class MsgDelegateResponse(google.protobuf.message.Message): + """MsgDelegateResponse defines the Msg/Delegate response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgDelegateResponse = MsgDelegateResponse + +@typing_extensions.final +class MsgBeginRedelegate(google.protobuf.message.Message): + """MsgBeginRedelegate defines a SDK message for performing a redelegation + of coins from a delegator and source validator to a destination validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_src_address: builtins.str + validator_dst_address: builtins.str + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_src_address: builtins.str = ..., + validator_dst_address: builtins.str = ..., + amount: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "delegator_address", b"delegator_address", "validator_dst_address", b"validator_dst_address", "validator_src_address", b"validator_src_address"]) -> None: ... + +global___MsgBeginRedelegate = MsgBeginRedelegate + +@typing_extensions.final +class MsgBeginRedelegateResponse(google.protobuf.message.Message): + """MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPLETION_TIME_FIELD_NUMBER: builtins.int + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + completion_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> None: ... + +global___MsgBeginRedelegateResponse = MsgBeginRedelegateResponse + +@typing_extensions.final +class MsgUndelegate(google.protobuf.message.Message): + """MsgUndelegate defines a SDK message for performing an undelegation from a + delegate and a validator. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_address: builtins.str + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + amount: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___MsgUndelegate = MsgUndelegate + +@typing_extensions.final +class MsgUndelegateResponse(google.protobuf.message.Message): + """MsgUndelegateResponse defines the Msg/Undelegate response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPLETION_TIME_FIELD_NUMBER: builtins.int + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + completion_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["completion_time", b"completion_time"]) -> None: ... + +global___MsgUndelegateResponse = MsgUndelegateResponse + +@typing_extensions.final +class MsgCancelUnbondingDelegation(google.protobuf.message.Message): + """MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + CREATION_HEIGHT_FIELD_NUMBER: builtins.int + delegator_address: builtins.str + validator_address: builtins.str + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """amount is always less than or equal to unbonding delegation entry balance""" + creation_height: builtins.int + """creation_height is the height which the unbonding took place.""" + def __init__( + self, + *, + delegator_address: builtins.str = ..., + validator_address: builtins.str = ..., + amount: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + creation_height: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "creation_height", b"creation_height", "delegator_address", b"delegator_address", "validator_address", b"validator_address"]) -> None: ... + +global___MsgCancelUnbondingDelegation = MsgCancelUnbondingDelegation + +@typing_extensions.final +class MsgCancelUnbondingDelegationResponse(google.protobuf.message.Message): + """MsgCancelUnbondingDelegationResponse + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCancelUnbondingDelegationResponse = MsgCancelUnbondingDelegationResponse + +@typing_extensions.final +class MsgUpdateParams(google.protobuf.message.Message): + """MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: + """params defines the x/staking parameters to update. + + NOTE: All parameters must be supplied. + """ + def __init__( + self, + *, + authority: builtins.str = ..., + params: cosmos.staking.v1beta1.staking_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "params", b"params"]) -> None: ... + +global___MsgUpdateParams = MsgUpdateParams + +@typing_extensions.final +class MsgUpdateParamsResponse(google.protobuf.message.Message): + """MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgUpdateParamsResponse = MsgUpdateParamsResponse diff --git a/nibiru_proto/cosmos/staking/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..c8991d33 --- /dev/null +++ b/nibiru_proto/cosmos/staking/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,282 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.staking.v1beta1 import tx_pb2 as cosmos_dot_staking_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the staking Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateValidator = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/CreateValidator', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidator.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidatorResponse.FromString, + ) + self.EditValidator = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/EditValidator', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidator.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidatorResponse.FromString, + ) + self.Delegate = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/Delegate', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegate.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegateResponse.FromString, + ) + self.BeginRedelegate = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/BeginRedelegate', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegate.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegateResponse.FromString, + ) + self.Undelegate = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/Undelegate', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegate.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegateResponse.FromString, + ) + self.CancelUnbondingDelegation = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegation.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegationResponse.FromString, + ) + self.UpdateParams = channel.unary_unary( + '/cosmos.staking.v1beta1.Msg/UpdateParams', + request_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + response_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the staking Msg service. + """ + + def CreateValidator(self, request, context): + """CreateValidator defines a method for creating a new validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EditValidator(self, request, context): + """EditValidator defines a method for editing an existing validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Delegate(self, request, context): + """Delegate defines a method for performing a delegation of coins + from a delegator to a validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BeginRedelegate(self, request, context): + """BeginRedelegate defines a method for performing a redelegation + of coins from a delegator and source validator to a destination validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Undelegate(self, request, context): + """Undelegate defines a method for performing an undelegation from a + delegate and a validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CancelUnbondingDelegation(self, request, context): + """CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation + and delegate back to previous validator. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateParams(self, request, context): + """UpdateParams defines an operation for updating the x/staking module + parameters. + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateValidator': grpc.unary_unary_rpc_method_handler( + servicer.CreateValidator, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidator.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidatorResponse.SerializeToString, + ), + 'EditValidator': grpc.unary_unary_rpc_method_handler( + servicer.EditValidator, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidator.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidatorResponse.SerializeToString, + ), + 'Delegate': grpc.unary_unary_rpc_method_handler( + servicer.Delegate, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegate.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegateResponse.SerializeToString, + ), + 'BeginRedelegate': grpc.unary_unary_rpc_method_handler( + servicer.BeginRedelegate, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegate.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegateResponse.SerializeToString, + ), + 'Undelegate': grpc.unary_unary_rpc_method_handler( + servicer.Undelegate, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegate.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegateResponse.SerializeToString, + ), + 'CancelUnbondingDelegation': grpc.unary_unary_rpc_method_handler( + servicer.CancelUnbondingDelegation, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegation.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegationResponse.SerializeToString, + ), + 'UpdateParams': grpc.unary_unary_rpc_method_handler( + servicer.UpdateParams, + request_deserializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, + response_serializer=cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.staking.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the staking Msg service. + """ + + @staticmethod + def CreateValidator(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/CreateValidator', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidator.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCreateValidatorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EditValidator(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/EditValidator', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidator.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgEditValidatorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Delegate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/Delegate', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegate.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgDelegateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BeginRedelegate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/BeginRedelegate', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegate.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgBeginRedelegateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Undelegate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/Undelegate', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegate.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUndelegateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CancelUnbondingDelegation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegation.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgCancelUnbondingDelegationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.staking.v1beta1.Msg/UpdateParams', + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, + cosmos_dot_staking_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/tx/config/v1/config_pb2.py b/nibiru_proto/cosmos/tx/config/v1/config_pb2.py new file mode 100644 index 00000000..e2899d7c --- /dev/null +++ b/nibiru_proto/cosmos/tx/config/v1/config_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/tx/config/v1/config.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/tx/config/v1/config.proto\x12\x13\x63osmos.tx.config.v1\x1a cosmos/app/v1alpha1/module.proto\"\x90\x01\n\x06\x43onfig\x12*\n\x11skip_ante_handler\x18\x01 \x01(\x08R\x0fskipAnteHandler\x12*\n\x11skip_post_handler\x18\x02 \x01(\x08R\x0fskipPostHandler:.\xba\xc0\x96\xda\x01(\n&github.com/cosmos/cosmos-sdk/x/auth/txb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.tx.config.v1.config_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _CONFIG._options = None + _CONFIG._serialized_options = b'\272\300\226\332\001(\n&github.com/cosmos/cosmos-sdk/x/auth/tx' + _CONFIG._serialized_start=92 + _CONFIG._serialized_end=236 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/tx/config/v1/config_pb2.pyi b/nibiru_proto/cosmos/tx/config/v1/config_pb2.pyi new file mode 100644 index 00000000..ed78d87a --- /dev/null +++ b/nibiru_proto/cosmos/tx/config/v1/config_pb2.pyi @@ -0,0 +1,41 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 is the config object of the x/auth/tx package.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SKIP_ANTE_HANDLER_FIELD_NUMBER: builtins.int + SKIP_POST_HANDLER_FIELD_NUMBER: builtins.int + skip_ante_handler: builtins.bool + """skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override + this functionality. + """ + skip_post_handler: builtins.bool + """skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override + this functionality. + """ + def __init__( + self, + *, + skip_ante_handler: builtins.bool = ..., + skip_post_handler: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["skip_ante_handler", b"skip_ante_handler", "skip_post_handler", b"skip_post_handler"]) -> None: ... + +global___Config = Config diff --git a/nibiru_proto/cosmos/tx/config/v1/config_pb2_grpc.py b/nibiru_proto/cosmos/tx/config/v1/config_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/tx/config/v1/config_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.py b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.py new file mode 100644 index 00000000..1478765d --- /dev/null +++ b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/tx/signing/v1beta1/signing.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.crypto.multisig.v1beta1 import multisig_pb2 as cosmos_dot_crypto_dot_multisig_dot_v1beta1_dot_multisig__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/tx/signing/v1beta1/signing.proto\x12\x19\x63osmos.tx.signing.v1beta1\x1a-cosmos/crypto/multisig/v1beta1/multisig.proto\x1a\x19google/protobuf/any.proto\"f\n\x14SignatureDescriptors\x12N\n\nsignatures\x18\x01 \x03(\x0b\x32..cosmos.tx.signing.v1beta1.SignatureDescriptorR\nsignatures\"\xf5\x04\n\x13SignatureDescriptor\x12\x33\n\npublic_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\tpublicKey\x12G\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x33.cosmos.tx.signing.v1beta1.SignatureDescriptor.DataR\x04\x64\x61ta\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x1a\xc3\x03\n\x04\x44\x61ta\x12T\n\x06single\x18\x01 \x01(\x0b\x32:.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.SingleH\x00R\x06single\x12Q\n\x05multi\x18\x02 \x01(\x0b\x32\x39.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.MultiH\x00R\x05multi\x1a_\n\x06Single\x12\x37\n\x04mode\x18\x01 \x01(\x0e\x32#.cosmos.tx.signing.v1beta1.SignModeR\x04mode\x12\x1c\n\tsignature\x18\x02 \x01(\x0cR\tsignature\x1a\xa9\x01\n\x05Multi\x12K\n\x08\x62itarray\x18\x01 \x01(\x0b\x32/.cosmos.crypto.multisig.v1beta1.CompactBitArrayR\x08\x62itarray\x12S\n\nsignatures\x18\x02 \x03(\x0b\x32\x33.cosmos.tx.signing.v1beta1.SignatureDescriptor.DataR\nsignaturesB\x05\n\x03sum*\xa5\x01\n\x08SignMode\x12\x19\n\x15SIGN_MODE_UNSPECIFIED\x10\x00\x12\x14\n\x10SIGN_MODE_DIRECT\x10\x01\x12\x15\n\x11SIGN_MODE_TEXTUAL\x10\x02\x12\x18\n\x14SIGN_MODE_DIRECT_AUX\x10\x03\x12\x1f\n\x1bSIGN_MODE_LEGACY_AMINO_JSON\x10\x7f\x12\x16\n\x11SIGN_MODE_EIP_191\x10\xbf\x01\x42/Z-github.com/cosmos/cosmos-sdk/types/tx/signingb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.tx.signing.v1beta1.signing_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/cosmos/cosmos-sdk/types/tx/signing' + _SIGNMODE._serialized_start=881 + _SIGNMODE._serialized_end=1046 + _SIGNATUREDESCRIPTORS._serialized_start=144 + _SIGNATUREDESCRIPTORS._serialized_end=246 + _SIGNATUREDESCRIPTOR._serialized_start=249 + _SIGNATUREDESCRIPTOR._serialized_end=878 + _SIGNATUREDESCRIPTOR_DATA._serialized_start=427 + _SIGNATUREDESCRIPTOR_DATA._serialized_end=878 + _SIGNATUREDESCRIPTOR_DATA_SINGLE._serialized_start=604 + _SIGNATUREDESCRIPTOR_DATA_SINGLE._serialized_end=699 + _SIGNATUREDESCRIPTOR_DATA_MULTI._serialized_start=702 + _SIGNATUREDESCRIPTOR_DATA_MULTI._serialized_end=871 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi new file mode 100644 index 00000000..68fb7250 --- /dev/null +++ b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi @@ -0,0 +1,236 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.crypto.multisig.v1beta1.multisig_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _SignMode: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SignModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignMode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SIGN_MODE_UNSPECIFIED: _SignMode.ValueType # 0 + """SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + rejected. + """ + SIGN_MODE_DIRECT: _SignMode.ValueType # 1 + """SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + verified with raw bytes from Tx. + """ + SIGN_MODE_TEXTUAL: _SignMode.ValueType # 2 + """SIGN_MODE_TEXTUAL is a future signing mode that will verify some + human-readable textual representation on top of the binary representation + from SIGN_MODE_DIRECT. It is currently not supported. + """ + SIGN_MODE_DIRECT_AUX: _SignMode.ValueType # 3 + """SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + require signers signing over other signers' `signer_info`. It also allows + for adding Tips in transactions. + + Since: cosmos-sdk 0.46 + """ + SIGN_MODE_LEGACY_AMINO_JSON: _SignMode.ValueType # 127 + """SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + Amino JSON and will be removed in the future. + """ + SIGN_MODE_EIP_191: _SignMode.ValueType # 191 + """SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + + Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + but is not implemented on the SDK by default. To enable EIP-191, you need + to pass a custom `TxConfig` that has an implementation of + `SignModeHandler` for EIP-191. The SDK may decide to fully support + EIP-191 in the future. + + Since: cosmos-sdk 0.45.2 + """ + +class SignMode(_SignMode, metaclass=_SignModeEnumTypeWrapper): + """SignMode represents a signing mode with its own security guarantees. + + This enum should be considered a registry of all known sign modes + in the Cosmos ecosystem. Apps are not expected to support all known + sign modes. Apps that would like to support custom sign modes are + encouraged to open a small PR against this file to add a new case + to this SignMode enum describing their sign mode so that different + apps have a consistent version of this enum. + """ + +SIGN_MODE_UNSPECIFIED: SignMode.ValueType # 0 +"""SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be +rejected. +""" +SIGN_MODE_DIRECT: SignMode.ValueType # 1 +"""SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is +verified with raw bytes from Tx. +""" +SIGN_MODE_TEXTUAL: SignMode.ValueType # 2 +"""SIGN_MODE_TEXTUAL is a future signing mode that will verify some +human-readable textual representation on top of the binary representation +from SIGN_MODE_DIRECT. It is currently not supported. +""" +SIGN_MODE_DIRECT_AUX: SignMode.ValueType # 3 +"""SIGN_MODE_DIRECT_AUX specifies a signing mode which uses +SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not +require signers signing over other signers' `signer_info`. It also allows +for adding Tips in transactions. + +Since: cosmos-sdk 0.46 +""" +SIGN_MODE_LEGACY_AMINO_JSON: SignMode.ValueType # 127 +"""SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses +Amino JSON and will be removed in the future. +""" +SIGN_MODE_EIP_191: SignMode.ValueType # 191 +"""SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos +SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + +Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, +but is not implemented on the SDK by default. To enable EIP-191, you need +to pass a custom `TxConfig` that has an implementation of +`SignModeHandler` for EIP-191. The SDK may decide to fully support +EIP-191 in the future. + +Since: cosmos-sdk 0.45.2 +""" +global___SignMode = SignMode + +@typing_extensions.final +class SignatureDescriptors(google.protobuf.message.Message): + """SignatureDescriptors wraps multiple SignatureDescriptor's.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNATURES_FIELD_NUMBER: builtins.int + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor]: + """signatures are the signature descriptors""" + def __init__( + self, + *, + signatures: collections.abc.Iterable[global___SignatureDescriptor] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["signatures", b"signatures"]) -> None: ... + +global___SignatureDescriptors = SignatureDescriptors + +@typing_extensions.final +class SignatureDescriptor(google.protobuf.message.Message): + """SignatureDescriptor is a convenience type which represents the full data for + a signature including the public key of the signer, signing modes and the + signature itself. It is primarily used for coordinating signatures between + clients. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Data(google.protobuf.message.Message): + """Data represents signature data""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Single(google.protobuf.message.Message): + """Single is the signature data for a single signer""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODE_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + mode: global___SignMode.ValueType + """mode is the signing mode of the single signer""" + signature: builtins.bytes + """signature is the raw signature bytes""" + def __init__( + self, + *, + mode: global___SignMode.ValueType = ..., + signature: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["mode", b"mode", "signature", b"signature"]) -> None: ... + + @typing_extensions.final + class Multi(google.protobuf.message.Message): + """Multi is the signature data for a multisig public key""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BITARRAY_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: + """bitarray specifies which keys within the multisig are signing""" + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor.Data]: + """signatures is the signatures of the multi-signature""" + def __init__( + self, + *, + bitarray: cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray | None = ..., + signatures: collections.abc.Iterable[global___SignatureDescriptor.Data] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["bitarray", b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bitarray", b"bitarray", "signatures", b"signatures"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + @property + def single(self) -> global___SignatureDescriptor.Data.Single: + """single represents a single signer""" + @property + def multi(self) -> global___SignatureDescriptor.Data.Multi: + """multi represents a multisig signer""" + def __init__( + self, + *, + single: global___SignatureDescriptor.Data.Single | None = ..., + multi: global___SignatureDescriptor.Data.Multi | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["multi", b"multi", "single", b"single", "sum", b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["multi", b"multi", "single", b"single", "sum", b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["sum", b"sum"]) -> typing_extensions.Literal["single", "multi"] | None: ... + + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + @property + def public_key(self) -> google.protobuf.any_pb2.Any: + """public_key is the public key of the signer""" + @property + def data(self) -> global___SignatureDescriptor.Data: ... + sequence: builtins.int + """sequence is the sequence of the account, which describes the + number of committed transactions signed by a given address. It is used to prevent + replay attacks. + """ + def __init__( + self, + *, + public_key: google.protobuf.any_pb2.Any | None = ..., + data: global___SignatureDescriptor.Data | None = ..., + sequence: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data", b"data", "public_key", b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "public_key", b"public_key", "sequence", b"sequence"]) -> None: ... + +global___SignatureDescriptor = SignatureDescriptor diff --git a/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.py b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/tx/v1beta1/service_pb2.py b/nibiru_proto/cosmos/tx/v1beta1/service_pb2.py new file mode 100644 index 00000000..47404585 --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/service_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/tx/v1beta1/service.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.abci.v1beta1 import abci_pb2 as cosmos_dot_base_dot_abci_dot_v1beta1_dot_abci__pb2 +from cosmos.tx.v1beta1 import tx_pb2 as cosmos_dot_tx_dot_v1beta1_dot_tx__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from tendermint.types import block_pb2 as tendermint_dot_types_dot_block__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/tx/v1beta1/service.proto\x12\x11\x63osmos.tx.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#cosmos/base/abci/v1beta1/abci.proto\x1a\x1a\x63osmos/tx/v1beta1/tx.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1ctendermint/types/block.proto\x1a\x1ctendermint/types/types.proto\"\xd9\x01\n\x12GetTxsEventRequest\x12\x16\n\x06\x65vents\x18\x01 \x03(\tR\x06\x65vents\x12J\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestB\x02\x18\x01R\npagination\x12\x35\n\x08order_by\x18\x03 \x01(\x0e\x32\x1a.cosmos.tx.v1beta1.OrderByR\x07orderBy\x12\x12\n\x04page\x18\x04 \x01(\x04R\x04page\x12\x14\n\x05limit\x18\x05 \x01(\x04R\x05limit\"\xea\x01\n\x13GetTxsEventResponse\x12\'\n\x03txs\x18\x01 \x03(\x0b\x32\x15.cosmos.tx.v1beta1.TxR\x03txs\x12G\n\x0ctx_responses\x18\x02 \x03(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponseR\x0btxResponses\x12K\n\npagination\x18\x03 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseB\x02\x18\x01R\npagination\x12\x14\n\x05total\x18\x04 \x01(\x04R\x05total\"e\n\x12\x42roadcastTxRequest\x12\x19\n\x08tx_bytes\x18\x01 \x01(\x0cR\x07txBytes\x12\x34\n\x04mode\x18\x02 \x01(\x0e\x32 .cosmos.tx.v1beta1.BroadcastModeR\x04mode\"\\\n\x13\x42roadcastTxResponse\x12\x45\n\x0btx_response\x18\x01 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponseR\ntxResponse\"W\n\x0fSimulateRequest\x12)\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.TxB\x02\x18\x01R\x02tx\x12\x19\n\x08tx_bytes\x18\x02 \x01(\x0cR\x07txBytes\"\x8a\x01\n\x10SimulateResponse\x12<\n\x08gas_info\x18\x01 \x01(\x0b\x32!.cosmos.base.abci.v1beta1.GasInfoR\x07gasInfo\x12\x38\n\x06result\x18\x02 \x01(\x0b\x32 .cosmos.base.abci.v1beta1.ResultR\x06result\"\"\n\x0cGetTxRequest\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\"}\n\rGetTxResponse\x12%\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.TxR\x02tx\x12\x45\n\x0btx_response\x18\x02 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponseR\ntxResponse\"x\n\x16GetBlockWithTxsRequest\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xf0\x01\n\x17GetBlockWithTxsResponse\x12\'\n\x03txs\x18\x01 \x03(\x0b\x32\x15.cosmos.tx.v1beta1.TxR\x03txs\x12\x34\n\x08\x62lock_id\x18\x02 \x01(\x0b\x32\x19.tendermint.types.BlockIDR\x07\x62lockId\x12-\n\x05\x62lock\x18\x03 \x01(\x0b\x32\x17.tendermint.types.BlockR\x05\x62lock\x12G\n\npagination\x18\x04 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\",\n\x0fTxDecodeRequest\x12\x19\n\x08tx_bytes\x18\x01 \x01(\x0cR\x07txBytes\"9\n\x10TxDecodeResponse\x12%\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.TxR\x02tx\"8\n\x0fTxEncodeRequest\x12%\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.TxR\x02tx\"-\n\x10TxEncodeResponse\x12\x19\n\x08tx_bytes\x18\x01 \x01(\x0cR\x07txBytes\"5\n\x14TxEncodeAminoRequest\x12\x1d\n\namino_json\x18\x01 \x01(\tR\taminoJson\":\n\x15TxEncodeAminoResponse\x12!\n\x0c\x61mino_binary\x18\x01 \x01(\x0cR\x0b\x61minoBinary\"9\n\x14TxDecodeAminoRequest\x12!\n\x0c\x61mino_binary\x18\x01 \x01(\x0cR\x0b\x61minoBinary\"6\n\x15TxDecodeAminoResponse\x12\x1d\n\namino_json\x18\x01 \x01(\tR\taminoJson*H\n\x07OrderBy\x12\x18\n\x14ORDER_BY_UNSPECIFIED\x10\x00\x12\x10\n\x0cORDER_BY_ASC\x10\x01\x12\x11\n\rORDER_BY_DESC\x10\x02*\x80\x01\n\rBroadcastMode\x12\x1e\n\x1a\x42ROADCAST_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x14\x42ROADCAST_MODE_BLOCK\x10\x01\x1a\x02\x08\x01\x12\x17\n\x13\x42ROADCAST_MODE_SYNC\x10\x02\x12\x18\n\x14\x42ROADCAST_MODE_ASYNC\x10\x03\x32\xaa\t\n\x07Service\x12{\n\x08Simulate\x12\".cosmos.tx.v1beta1.SimulateRequest\x1a#.cosmos.tx.v1beta1.SimulateResponse\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/cosmos/tx/v1beta1/simulate\x12q\n\x05GetTx\x12\x1f.cosmos.tx.v1beta1.GetTxRequest\x1a .cosmos.tx.v1beta1.GetTxResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/tx/v1beta1/txs/{hash}\x12\x7f\n\x0b\x42roadcastTx\x12%.cosmos.tx.v1beta1.BroadcastTxRequest\x1a&.cosmos.tx.v1beta1.BroadcastTxResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/cosmos/tx/v1beta1/txs\x12|\n\x0bGetTxsEvent\x12%.cosmos.tx.v1beta1.GetTxsEventRequest\x1a&.cosmos.tx.v1beta1.GetTxsEventResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/cosmos/tx/v1beta1/txs\x12\x97\x01\n\x0fGetBlockWithTxs\x12).cosmos.tx.v1beta1.GetBlockWithTxsRequest\x1a*.cosmos.tx.v1beta1.GetBlockWithTxsResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/cosmos/tx/v1beta1/txs/block/{height}\x12y\n\x08TxDecode\x12\".cosmos.tx.v1beta1.TxDecodeRequest\x1a#.cosmos.tx.v1beta1.TxDecodeResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/cosmos/tx/v1beta1/decode\x12y\n\x08TxEncode\x12\".cosmos.tx.v1beta1.TxEncodeRequest\x1a#.cosmos.tx.v1beta1.TxEncodeResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/cosmos/tx/v1beta1/encode\x12\x8e\x01\n\rTxEncodeAmino\x12\'.cosmos.tx.v1beta1.TxEncodeAminoRequest\x1a(.cosmos.tx.v1beta1.TxEncodeAminoResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/cosmos/tx/v1beta1/encode/amino\x12\x8e\x01\n\rTxDecodeAmino\x12\'.cosmos.tx.v1beta1.TxDecodeAminoRequest\x1a(.cosmos.tx.v1beta1.TxDecodeAminoResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/cosmos/tx/v1beta1/decode/aminoB\'Z%github.com/cosmos/cosmos-sdk/types/txb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.tx.v1beta1.service_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z%github.com/cosmos/cosmos-sdk/types/tx' + _BROADCASTMODE.values_by_name["BROADCAST_MODE_BLOCK"]._options = None + _BROADCASTMODE.values_by_name["BROADCAST_MODE_BLOCK"]._serialized_options = b'\010\001' + _GETTXSEVENTREQUEST.fields_by_name['pagination']._options = None + _GETTXSEVENTREQUEST.fields_by_name['pagination']._serialized_options = b'\030\001' + _GETTXSEVENTRESPONSE.fields_by_name['pagination']._options = None + _GETTXSEVENTRESPONSE.fields_by_name['pagination']._serialized_options = b'\030\001' + _SIMULATEREQUEST.fields_by_name['tx']._options = None + _SIMULATEREQUEST.fields_by_name['tx']._serialized_options = b'\030\001' + _SERVICE.methods_by_name['Simulate']._options = None + _SERVICE.methods_by_name['Simulate']._serialized_options = b'\202\323\344\223\002 :\001*\"\033/cosmos/tx/v1beta1/simulate' + _SERVICE.methods_by_name['GetTx']._options = None + _SERVICE.methods_by_name['GetTx']._serialized_options = b'\202\323\344\223\002\037\022\035/cosmos/tx/v1beta1/txs/{hash}' + _SERVICE.methods_by_name['BroadcastTx']._options = None + _SERVICE.methods_by_name['BroadcastTx']._serialized_options = b'\202\323\344\223\002\033:\001*\"\026/cosmos/tx/v1beta1/txs' + _SERVICE.methods_by_name['GetTxsEvent']._options = None + _SERVICE.methods_by_name['GetTxsEvent']._serialized_options = b'\202\323\344\223\002\030\022\026/cosmos/tx/v1beta1/txs' + _SERVICE.methods_by_name['GetBlockWithTxs']._options = None + _SERVICE.methods_by_name['GetBlockWithTxs']._serialized_options = b'\202\323\344\223\002\'\022%/cosmos/tx/v1beta1/txs/block/{height}' + _SERVICE.methods_by_name['TxDecode']._options = None + _SERVICE.methods_by_name['TxDecode']._serialized_options = b'\202\323\344\223\002\036:\001*\"\031/cosmos/tx/v1beta1/decode' + _SERVICE.methods_by_name['TxEncode']._options = None + _SERVICE.methods_by_name['TxEncode']._serialized_options = b'\202\323\344\223\002\036:\001*\"\031/cosmos/tx/v1beta1/encode' + _SERVICE.methods_by_name['TxEncodeAmino']._options = None + _SERVICE.methods_by_name['TxEncodeAmino']._serialized_options = b'\202\323\344\223\002$:\001*\"\037/cosmos/tx/v1beta1/encode/amino' + _SERVICE.methods_by_name['TxDecodeAmino']._options = None + _SERVICE.methods_by_name['TxDecodeAmino']._serialized_options = b'\202\323\344\223\002$:\001*\"\037/cosmos/tx/v1beta1/decode/amino' + _ORDERBY._serialized_start=2105 + _ORDERBY._serialized_end=2177 + _BROADCASTMODE._serialized_start=2180 + _BROADCASTMODE._serialized_end=2308 + _GETTXSEVENTREQUEST._serialized_start=254 + _GETTXSEVENTREQUEST._serialized_end=471 + _GETTXSEVENTRESPONSE._serialized_start=474 + _GETTXSEVENTRESPONSE._serialized_end=708 + _BROADCASTTXREQUEST._serialized_start=710 + _BROADCASTTXREQUEST._serialized_end=811 + _BROADCASTTXRESPONSE._serialized_start=813 + _BROADCASTTXRESPONSE._serialized_end=905 + _SIMULATEREQUEST._serialized_start=907 + _SIMULATEREQUEST._serialized_end=994 + _SIMULATERESPONSE._serialized_start=997 + _SIMULATERESPONSE._serialized_end=1135 + _GETTXREQUEST._serialized_start=1137 + _GETTXREQUEST._serialized_end=1171 + _GETTXRESPONSE._serialized_start=1173 + _GETTXRESPONSE._serialized_end=1298 + _GETBLOCKWITHTXSREQUEST._serialized_start=1300 + _GETBLOCKWITHTXSREQUEST._serialized_end=1420 + _GETBLOCKWITHTXSRESPONSE._serialized_start=1423 + _GETBLOCKWITHTXSRESPONSE._serialized_end=1663 + _TXDECODEREQUEST._serialized_start=1665 + _TXDECODEREQUEST._serialized_end=1709 + _TXDECODERESPONSE._serialized_start=1711 + _TXDECODERESPONSE._serialized_end=1768 + _TXENCODEREQUEST._serialized_start=1770 + _TXENCODEREQUEST._serialized_end=1826 + _TXENCODERESPONSE._serialized_start=1828 + _TXENCODERESPONSE._serialized_end=1873 + _TXENCODEAMINOREQUEST._serialized_start=1875 + _TXENCODEAMINOREQUEST._serialized_end=1928 + _TXENCODEAMINORESPONSE._serialized_start=1930 + _TXENCODEAMINORESPONSE._serialized_end=1988 + _TXDECODEAMINOREQUEST._serialized_start=1990 + _TXDECODEAMINOREQUEST._serialized_end=2047 + _TXDECODEAMINORESPONSE._serialized_start=2049 + _TXDECODEAMINORESPONSE._serialized_end=2103 + _SERVICE._serialized_start=2311 + _SERVICE._serialized_end=3505 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/tx/v1beta1/service_pb2.pyi b/nibiru_proto/cosmos/tx/v1beta1/service_pb2.pyi new file mode 100644 index 00000000..cfe36f3c --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/service_pb2.pyi @@ -0,0 +1,556 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.abci.v1beta1.abci_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.tx.v1beta1.tx_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import tendermint.types.block_pb2 +import tendermint.types.types_pb2 +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _OrderBy: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _OrderByEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OrderBy.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + ORDER_BY_UNSPECIFIED: _OrderBy.ValueType # 0 + """ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.""" + ORDER_BY_ASC: _OrderBy.ValueType # 1 + """ORDER_BY_ASC defines ascending order""" + ORDER_BY_DESC: _OrderBy.ValueType # 2 + """ORDER_BY_DESC defines descending order""" + +class OrderBy(_OrderBy, metaclass=_OrderByEnumTypeWrapper): + """OrderBy defines the sorting order""" + +ORDER_BY_UNSPECIFIED: OrderBy.ValueType # 0 +"""ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.""" +ORDER_BY_ASC: OrderBy.ValueType # 1 +"""ORDER_BY_ASC defines ascending order""" +ORDER_BY_DESC: OrderBy.ValueType # 2 +"""ORDER_BY_DESC defines descending order""" +global___OrderBy = OrderBy + +class _BroadcastMode: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _BroadcastModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BroadcastMode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + BROADCAST_MODE_UNSPECIFIED: _BroadcastMode.ValueType # 0 + """zero-value for mode ordering""" + BROADCAST_MODE_BLOCK: _BroadcastMode.ValueType # 1 + """DEPRECATED: use BROADCAST_MODE_SYNC instead, + BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. + """ + BROADCAST_MODE_SYNC: _BroadcastMode.ValueType # 2 + """BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + a CheckTx execution response only. + """ + BROADCAST_MODE_ASYNC: _BroadcastMode.ValueType # 3 + """BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + immediately. + """ + +class BroadcastMode(_BroadcastMode, metaclass=_BroadcastModeEnumTypeWrapper): + """BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.""" + +BROADCAST_MODE_UNSPECIFIED: BroadcastMode.ValueType # 0 +"""zero-value for mode ordering""" +BROADCAST_MODE_BLOCK: BroadcastMode.ValueType # 1 +"""DEPRECATED: use BROADCAST_MODE_SYNC instead, +BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. +""" +BROADCAST_MODE_SYNC: BroadcastMode.ValueType # 2 +"""BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for +a CheckTx execution response only. +""" +BROADCAST_MODE_ASYNC: BroadcastMode.ValueType # 3 +"""BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns +immediately. +""" +global___BroadcastMode = BroadcastMode + +@typing_extensions.final +class GetTxsEventRequest(google.protobuf.message.Message): + """GetTxsEventRequest is the request type for the Service.TxsByEvents + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + PAGE_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """events is the list of transaction event type.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines a pagination for the request. + Deprecated post v0.46.x: use page and limit instead. + """ + order_by: global___OrderBy.ValueType + page: builtins.int + """page is the page number to query, starts at 1. If not provided, will default to first page.""" + limit: builtins.int + """limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + """ + def __init__( + self, + *, + events: collections.abc.Iterable[builtins.str] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + order_by: global___OrderBy.ValueType = ..., + page: builtins.int = ..., + limit: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["events", b"events", "limit", b"limit", "order_by", b"order_by", "page", b"page", "pagination", b"pagination"]) -> None: ... + +global___GetTxsEventRequest = GetTxsEventRequest + +@typing_extensions.final +class GetTxsEventResponse(google.protobuf.message.Message): + """GetTxsEventResponse is the response type for the Service.TxsByEvents + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TXS_FIELD_NUMBER: builtins.int + TX_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.tx.v1beta1.tx_pb2.Tx]: + """txs is the list of queried transactions.""" + @property + def tx_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]: + """tx_responses is the list of queried TxResponses.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines a pagination for the response. + Deprecated post v0.46.x: use total instead. + """ + total: builtins.int + """total is total number of results available""" + def __init__( + self, + *, + txs: collections.abc.Iterable[cosmos.tx.v1beta1.tx_pb2.Tx] | None = ..., + tx_responses: collections.abc.Iterable[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + total: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "total", b"total", "tx_responses", b"tx_responses", "txs", b"txs"]) -> None: ... + +global___GetTxsEventResponse = GetTxsEventResponse + +@typing_extensions.final +class BroadcastTxRequest(google.protobuf.message.Message): + """BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_BYTES_FIELD_NUMBER: builtins.int + MODE_FIELD_NUMBER: builtins.int + tx_bytes: builtins.bytes + """tx_bytes is the raw transaction.""" + mode: global___BroadcastMode.ValueType + def __init__( + self, + *, + tx_bytes: builtins.bytes = ..., + mode: global___BroadcastMode.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["mode", b"mode", "tx_bytes", b"tx_bytes"]) -> None: ... + +global___BroadcastTxRequest = BroadcastTxRequest + +@typing_extensions.final +class BroadcastTxResponse(google.protobuf.message.Message): + """BroadcastTxResponse is the response type for the + Service.BroadcastTx method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_RESPONSE_FIELD_NUMBER: builtins.int + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: + """tx_response is the queried TxResponses.""" + def __init__( + self, + *, + tx_response: cosmos.base.abci.v1beta1.abci_pb2.TxResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx_response", b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx_response", b"tx_response"]) -> None: ... + +global___BroadcastTxResponse = BroadcastTxResponse + +@typing_extensions.final +class SimulateRequest(google.protobuf.message.Message): + """SimulateRequest is the request type for the Service.Simulate + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + TX_BYTES_FIELD_NUMBER: builtins.int + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: + """tx is the transaction to simulate. + Deprecated. Send raw tx bytes instead. + """ + tx_bytes: builtins.bytes + """tx_bytes is the raw transaction. + + Since: cosmos-sdk 0.43 + """ + def __init__( + self, + *, + tx: cosmos.tx.v1beta1.tx_pb2.Tx | None = ..., + tx_bytes: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx", "tx_bytes", b"tx_bytes"]) -> None: ... + +global___SimulateRequest = SimulateRequest + +@typing_extensions.final +class SimulateResponse(google.protobuf.message.Message): + """SimulateResponse is the response type for the + Service.SimulateRPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GAS_INFO_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + @property + def gas_info(self) -> cosmos.base.abci.v1beta1.abci_pb2.GasInfo: + """gas_info is the information about gas used in the simulation.""" + @property + def result(self) -> cosmos.base.abci.v1beta1.abci_pb2.Result: + """result is the result of the simulation.""" + def __init__( + self, + *, + gas_info: cosmos.base.abci.v1beta1.abci_pb2.GasInfo | None = ..., + result: cosmos.base.abci.v1beta1.abci_pb2.Result | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["gas_info", b"gas_info", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["gas_info", b"gas_info", "result", b"result"]) -> None: ... + +global___SimulateResponse = SimulateResponse + +@typing_extensions.final +class GetTxRequest(google.protobuf.message.Message): + """GetTxRequest is the request type for the Service.GetTx + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + hash: builtins.str + """hash is the tx hash to query, encoded as a hex string.""" + def __init__( + self, + *, + hash: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash"]) -> None: ... + +global___GetTxRequest = GetTxRequest + +@typing_extensions.final +class GetTxResponse(google.protobuf.message.Message): + """GetTxResponse is the response type for the Service.GetTx method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + TX_RESPONSE_FIELD_NUMBER: builtins.int + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: + """tx is the queried transaction.""" + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: + """tx_response is the queried TxResponses.""" + def __init__( + self, + *, + tx: cosmos.tx.v1beta1.tx_pb2.Tx | None = ..., + tx_response: cosmos.base.abci.v1beta1.abci_pb2.TxResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx", "tx_response", b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx", "tx_response", b"tx_response"]) -> None: ... + +global___GetTxResponse = GetTxResponse + +@typing_extensions.final +class GetBlockWithTxsRequest(google.protobuf.message.Message): + """GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + RPC method. + + Since: cosmos-sdk 0.45.2 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + height: builtins.int + """height is the height of the block to query.""" + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines a pagination for the request.""" + def __init__( + self, + *, + height: builtins.int = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "pagination", b"pagination"]) -> None: ... + +global___GetBlockWithTxsRequest = GetBlockWithTxsRequest + +@typing_extensions.final +class GetBlockWithTxsResponse(google.protobuf.message.Message): + """GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + + Since: cosmos-sdk 0.45.2 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TXS_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.tx.v1beta1.tx_pb2.Tx]: + """txs are the transactions in the block.""" + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines a pagination for the response.""" + def __init__( + self, + *, + txs: collections.abc.Iterable[cosmos.tx.v1beta1.tx_pb2.Tx] | None = ..., + block_id: tendermint.types.types_pb2.BlockID | None = ..., + block: tendermint.types.block_pb2.Block | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block", b"block", "block_id", b"block_id", "pagination", b"pagination", "txs", b"txs"]) -> None: ... + +global___GetBlockWithTxsResponse = GetBlockWithTxsResponse + +@typing_extensions.final +class TxDecodeRequest(google.protobuf.message.Message): + """TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_BYTES_FIELD_NUMBER: builtins.int + tx_bytes: builtins.bytes + """tx_bytes is the raw transaction.""" + def __init__( + self, + *, + tx_bytes: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["tx_bytes", b"tx_bytes"]) -> None: ... + +global___TxDecodeRequest = TxDecodeRequest + +@typing_extensions.final +class TxDecodeResponse(google.protobuf.message.Message): + """TxDecodeResponse is the response type for the + Service.TxDecode method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: + """tx is the decoded transaction.""" + def __init__( + self, + *, + tx: cosmos.tx.v1beta1.tx_pb2.Tx | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> None: ... + +global___TxDecodeResponse = TxDecodeResponse + +@typing_extensions.final +class TxEncodeRequest(google.protobuf.message.Message): + """TxEncodeRequest is the request type for the Service.TxEncode + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: + """tx is the transaction to encode.""" + def __init__( + self, + *, + tx: cosmos.tx.v1beta1.tx_pb2.Tx | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> None: ... + +global___TxEncodeRequest = TxEncodeRequest + +@typing_extensions.final +class TxEncodeResponse(google.protobuf.message.Message): + """TxEncodeResponse is the response type for the + Service.TxEncode method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_BYTES_FIELD_NUMBER: builtins.int + tx_bytes: builtins.bytes + """tx_bytes is the encoded transaction bytes.""" + def __init__( + self, + *, + tx_bytes: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["tx_bytes", b"tx_bytes"]) -> None: ... + +global___TxEncodeResponse = TxEncodeResponse + +@typing_extensions.final +class TxEncodeAminoRequest(google.protobuf.message.Message): + """TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMINO_JSON_FIELD_NUMBER: builtins.int + amino_json: builtins.str + def __init__( + self, + *, + amino_json: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amino_json", b"amino_json"]) -> None: ... + +global___TxEncodeAminoRequest = TxEncodeAminoRequest + +@typing_extensions.final +class TxEncodeAminoResponse(google.protobuf.message.Message): + """TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMINO_BINARY_FIELD_NUMBER: builtins.int + amino_binary: builtins.bytes + def __init__( + self, + *, + amino_binary: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amino_binary", b"amino_binary"]) -> None: ... + +global___TxEncodeAminoResponse = TxEncodeAminoResponse + +@typing_extensions.final +class TxDecodeAminoRequest(google.protobuf.message.Message): + """TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMINO_BINARY_FIELD_NUMBER: builtins.int + amino_binary: builtins.bytes + def __init__( + self, + *, + amino_binary: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amino_binary", b"amino_binary"]) -> None: ... + +global___TxDecodeAminoRequest = TxDecodeAminoRequest + +@typing_extensions.final +class TxDecodeAminoResponse(google.protobuf.message.Message): + """TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino + RPC method. + + Since: cosmos-sdk 0.47 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMINO_JSON_FIELD_NUMBER: builtins.int + amino_json: builtins.str + def __init__( + self, + *, + amino_json: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amino_json", b"amino_json"]) -> None: ... + +global___TxDecodeAminoResponse = TxDecodeAminoResponse diff --git a/nibiru_proto/cosmos/tx/v1beta1/service_pb2_grpc.py b/nibiru_proto/cosmos/tx/v1beta1/service_pb2_grpc.py new file mode 100644 index 00000000..050560af --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/service_pb2_grpc.py @@ -0,0 +1,352 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.tx.v1beta1 import service_pb2 as cosmos_dot_tx_dot_v1beta1_dot_service__pb2 + + +class ServiceStub(object): + """Service defines a gRPC service for interacting with transactions. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Simulate = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/Simulate', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateResponse.FromString, + ) + self.GetTx = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/GetTx', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxResponse.FromString, + ) + self.BroadcastTx = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/BroadcastTx', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxResponse.FromString, + ) + self.GetTxsEvent = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/GetTxsEvent', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventResponse.FromString, + ) + self.GetBlockWithTxs = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/GetBlockWithTxs', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsResponse.FromString, + ) + self.TxDecode = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/TxDecode', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeResponse.FromString, + ) + self.TxEncode = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/TxEncode', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeResponse.FromString, + ) + self.TxEncodeAmino = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/TxEncodeAmino', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoResponse.FromString, + ) + self.TxDecodeAmino = channel.unary_unary( + '/cosmos.tx.v1beta1.Service/TxDecodeAmino', + request_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoRequest.SerializeToString, + response_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoResponse.FromString, + ) + + +class ServiceServicer(object): + """Service defines a gRPC service for interacting with transactions. + """ + + def Simulate(self, request, context): + """Simulate simulates executing a transaction for estimating gas usage. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTx(self, request, context): + """GetTx fetches a tx by hash. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BroadcastTx(self, request, context): + """BroadcastTx broadcast transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTxsEvent(self, request, context): + """GetTxsEvent fetches txs by event. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBlockWithTxs(self, request, context): + """GetBlockWithTxs fetches a block with decoded txs. + + Since: cosmos-sdk 0.45.2 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TxDecode(self, request, context): + """TxDecode decodes the transaction. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TxEncode(self, request, context): + """TxEncode encodes the transaction. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TxEncodeAmino(self, request, context): + """TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TxDecodeAmino(self, request, context): + """TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. + + Since: cosmos-sdk 0.47 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Simulate': grpc.unary_unary_rpc_method_handler( + servicer.Simulate, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateResponse.SerializeToString, + ), + 'GetTx': grpc.unary_unary_rpc_method_handler( + servicer.GetTx, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxResponse.SerializeToString, + ), + 'BroadcastTx': grpc.unary_unary_rpc_method_handler( + servicer.BroadcastTx, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxResponse.SerializeToString, + ), + 'GetTxsEvent': grpc.unary_unary_rpc_method_handler( + servicer.GetTxsEvent, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventResponse.SerializeToString, + ), + 'GetBlockWithTxs': grpc.unary_unary_rpc_method_handler( + servicer.GetBlockWithTxs, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsResponse.SerializeToString, + ), + 'TxDecode': grpc.unary_unary_rpc_method_handler( + servicer.TxDecode, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeResponse.SerializeToString, + ), + 'TxEncode': grpc.unary_unary_rpc_method_handler( + servicer.TxEncode, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeResponse.SerializeToString, + ), + 'TxEncodeAmino': grpc.unary_unary_rpc_method_handler( + servicer.TxEncodeAmino, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoResponse.SerializeToString, + ), + 'TxDecodeAmino': grpc.unary_unary_rpc_method_handler( + servicer.TxDecodeAmino, + request_deserializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoRequest.FromString, + response_serializer=cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.tx.v1beta1.Service', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Service(object): + """Service defines a gRPC service for interacting with transactions. + """ + + @staticmethod + def Simulate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/Simulate', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.SimulateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/GetTx', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BroadcastTx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/BroadcastTx', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.BroadcastTxResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTxsEvent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/GetTxsEvent', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetTxsEventResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetBlockWithTxs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/GetBlockWithTxs', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.GetBlockWithTxsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TxDecode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/TxDecode', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TxEncode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/TxEncode', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TxEncodeAmino(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/TxEncodeAmino', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxEncodeAminoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TxDecodeAmino(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.tx.v1beta1.Service/TxDecodeAmino', + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoRequest.SerializeToString, + cosmos_dot_tx_dot_v1beta1_dot_service__pb2.TxDecodeAminoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.py new file mode 100644 index 00000000..9e5530b9 --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/tx/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.crypto.multisig.v1beta1 import multisig_pb2 as cosmos_dot_crypto_dot_multisig_dot_v1beta1_dot_multisig__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.tx.signing.v1beta1 import signing_pb2 as cosmos_dot_tx_dot_signing_dot_v1beta1_dot_signing__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63osmos/tx/v1beta1/tx.proto\x12\x11\x63osmos.tx.v1beta1\x1a\x14gogoproto/gogo.proto\x1a-cosmos/crypto/multisig/v1beta1/multisig.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\'cosmos/tx/signing/v1beta1/signing.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\x8d\x01\n\x02Tx\x12-\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.cosmos.tx.v1beta1.TxBodyR\x04\x62ody\x12\x38\n\tauth_info\x18\x02 \x01(\x0b\x32\x1b.cosmos.tx.v1beta1.AuthInfoR\x08\x61uthInfo\x12\x1e\n\nsignatures\x18\x03 \x03(\x0cR\nsignatures\"n\n\x05TxRaw\x12\x1d\n\nbody_bytes\x18\x01 \x01(\x0cR\tbodyBytes\x12&\n\x0f\x61uth_info_bytes\x18\x02 \x01(\x0cR\rauthInfoBytes\x12\x1e\n\nsignatures\x18\x03 \x03(\x0cR\nsignatures\"\x92\x01\n\x07SignDoc\x12\x1d\n\nbody_bytes\x18\x01 \x01(\x0cR\tbodyBytes\x12&\n\x0f\x61uth_info_bytes\x18\x02 \x01(\x0cR\rauthInfoBytes\x12\x19\n\x08\x63hain_id\x18\x03 \x01(\tR\x07\x63hainId\x12%\n\x0e\x61\x63\x63ount_number\x18\x04 \x01(\x04R\raccountNumber\"\xee\x01\n\x10SignDocDirectAux\x12\x1d\n\nbody_bytes\x18\x01 \x01(\x0cR\tbodyBytes\x12\x33\n\npublic_key\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\tpublicKey\x12\x19\n\x08\x63hain_id\x18\x03 \x01(\tR\x07\x63hainId\x12%\n\x0e\x61\x63\x63ount_number\x18\x04 \x01(\x04R\raccountNumber\x12\x1a\n\x08sequence\x18\x05 \x01(\x04R\x08sequence\x12(\n\x03tip\x18\x06 \x01(\x0b\x32\x16.cosmos.tx.v1beta1.TipR\x03tip\"\x95\x02\n\x06TxBody\x12\x30\n\x08messages\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messages\x12\x12\n\x04memo\x18\x02 \x01(\tR\x04memo\x12%\n\x0etimeout_height\x18\x03 \x01(\x04R\rtimeoutHeight\x12\x42\n\x11\x65xtension_options\x18\xff\x07 \x03(\x0b\x32\x14.google.protobuf.AnyR\x10\x65xtensionOptions\x12Z\n\x1enon_critical_extension_options\x18\xff\x0f \x03(\x0b\x32\x14.google.protobuf.AnyR\x1bnonCriticalExtensionOptions\"\xa0\x01\n\x08\x41uthInfo\x12@\n\x0csigner_infos\x18\x01 \x03(\x0b\x32\x1d.cosmos.tx.v1beta1.SignerInfoR\x0bsignerInfos\x12(\n\x03\x66\x65\x65\x18\x02 \x01(\x0b\x32\x16.cosmos.tx.v1beta1.FeeR\x03\x66\x65\x65\x12(\n\x03tip\x18\x03 \x01(\x0b\x32\x16.cosmos.tx.v1beta1.TipR\x03tip\"\x97\x01\n\nSignerInfo\x12\x33\n\npublic_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\tpublicKey\x12\x38\n\tmode_info\x18\x02 \x01(\x0b\x32\x1b.cosmos.tx.v1beta1.ModeInfoR\x08modeInfo\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\"\xe0\x02\n\x08ModeInfo\x12<\n\x06single\x18\x01 \x01(\x0b\x32\".cosmos.tx.v1beta1.ModeInfo.SingleH\x00R\x06single\x12\x39\n\x05multi\x18\x02 \x01(\x0b\x32!.cosmos.tx.v1beta1.ModeInfo.MultiH\x00R\x05multi\x1a\x41\n\x06Single\x12\x37\n\x04mode\x18\x01 \x01(\x0e\x32#.cosmos.tx.signing.v1beta1.SignModeR\x04mode\x1a\x90\x01\n\x05Multi\x12K\n\x08\x62itarray\x18\x01 \x01(\x0b\x32/.cosmos.crypto.multisig.v1beta1.CompactBitArrayR\x08\x62itarray\x12:\n\nmode_infos\x18\x02 \x03(\x0b\x32\x1b.cosmos.tx.v1beta1.ModeInfoR\tmodeInfosB\x05\n\x03sum\"\xeb\x01\n\x03\x46\x65\x65\x12\x63\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x06\x61mount\x12\x1b\n\tgas_limit\x18\x02 \x01(\x04R\x08gasLimit\x12.\n\x05payer\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05payer\x12\x32\n\x07granter\x18\x04 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07granter\"\x9c\x01\n\x03Tip\x12\x63\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x06\x61mount\x12\x30\n\x06tipper\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06tipper\"\xce\x01\n\rAuxSignerData\x12\x32\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07\x61\x64\x64ress\x12>\n\x08sign_doc\x18\x02 \x01(\x0b\x32#.cosmos.tx.v1beta1.SignDocDirectAuxR\x07signDoc\x12\x37\n\x04mode\x18\x03 \x01(\x0e\x32#.cosmos.tx.signing.v1beta1.SignModeR\x04mode\x12\x10\n\x03sig\x18\x04 \x01(\x0cR\x03sigB\'Z%github.com/cosmos/cosmos-sdk/types/txb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.tx.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z%github.com/cosmos/cosmos-sdk/types/tx' + _FEE.fields_by_name['amount']._options = None + _FEE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _FEE.fields_by_name['payer']._options = None + _FEE.fields_by_name['payer']._serialized_options = b'\322\264-\024cosmos.AddressString' + _FEE.fields_by_name['granter']._options = None + _FEE.fields_by_name['granter']._serialized_options = b'\322\264-\024cosmos.AddressString' + _TIP.fields_by_name['amount']._options = None + _TIP.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _TIP.fields_by_name['tipper']._options = None + _TIP.fields_by_name['tipper']._serialized_options = b'\322\264-\024cosmos.AddressString' + _AUXSIGNERDATA.fields_by_name['address']._options = None + _AUXSIGNERDATA.fields_by_name['address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _TX._serialized_start=246 + _TX._serialized_end=387 + _TXRAW._serialized_start=389 + _TXRAW._serialized_end=499 + _SIGNDOC._serialized_start=502 + _SIGNDOC._serialized_end=648 + _SIGNDOCDIRECTAUX._serialized_start=651 + _SIGNDOCDIRECTAUX._serialized_end=889 + _TXBODY._serialized_start=892 + _TXBODY._serialized_end=1169 + _AUTHINFO._serialized_start=1172 + _AUTHINFO._serialized_end=1332 + _SIGNERINFO._serialized_start=1335 + _SIGNERINFO._serialized_end=1486 + _MODEINFO._serialized_start=1489 + _MODEINFO._serialized_end=1841 + _MODEINFO_SINGLE._serialized_start=1622 + _MODEINFO_SINGLE._serialized_end=1687 + _MODEINFO_MULTI._serialized_start=1690 + _MODEINFO_MULTI._serialized_end=1834 + _FEE._serialized_start=1844 + _FEE._serialized_end=2079 + _TIP._serialized_start=2082 + _TIP._serialized_end=2238 + _AUXSIGNERDATA._serialized_start=2241 + _AUXSIGNERDATA._serialized_end=2447 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..5deca7db --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2.pyi @@ -0,0 +1,510 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.crypto.multisig.v1beta1.multisig_pb2 +import cosmos.tx.signing.v1beta1.signing_pb2 +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 Tx(google.protobuf.message.Message): + """Tx is the standard type used for broadcasting transactions.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BODY_FIELD_NUMBER: builtins.int + AUTH_INFO_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + @property + def body(self) -> global___TxBody: + """body is the processable content of the transaction""" + @property + def auth_info(self) -> global___AuthInfo: + """auth_info is the authorization related content of the transaction, + specifically signers, signer modes and fee + """ + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """signatures is a list of signatures that matches the length and order of + AuthInfo's signer_infos to allow connecting signature meta information like + public key and signing mode by position. + """ + def __init__( + self, + *, + body: global___TxBody | None = ..., + auth_info: global___AuthInfo | None = ..., + signatures: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["auth_info", b"auth_info", "body", b"body"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["auth_info", b"auth_info", "body", b"body", "signatures", b"signatures"]) -> None: ... + +global___Tx = Tx + +@typing_extensions.final +class TxRaw(google.protobuf.message.Message): + """TxRaw is a variant of Tx that pins the signer's exact binary representation + of body and auth_info. This is used for signing, broadcasting and + verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + as the transaction ID. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BODY_BYTES_FIELD_NUMBER: builtins.int + AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + body_bytes: builtins.bytes + """body_bytes is a protobuf serialization of a TxBody that matches the + representation in SignDoc. + """ + auth_info_bytes: builtins.bytes + """auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + representation in SignDoc. + """ + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """signatures is a list of signatures that matches the length and order of + AuthInfo's signer_infos to allow connecting signature meta information like + public key and signing mode by position. + """ + def __init__( + self, + *, + body_bytes: builtins.bytes = ..., + auth_info_bytes: builtins.bytes = ..., + signatures: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["auth_info_bytes", b"auth_info_bytes", "body_bytes", b"body_bytes", "signatures", b"signatures"]) -> None: ... + +global___TxRaw = TxRaw + +@typing_extensions.final +class SignDoc(google.protobuf.message.Message): + """SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BODY_BYTES_FIELD_NUMBER: builtins.int + AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int + body_bytes: builtins.bytes + """body_bytes is protobuf serialization of a TxBody that matches the + representation in TxRaw. + """ + auth_info_bytes: builtins.bytes + """auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + representation in TxRaw. + """ + chain_id: builtins.str + """chain_id is the unique identifier of the chain this transaction targets. + It prevents signed transactions from being used on another chain by an + attacker + """ + account_number: builtins.int + """account_number is the account number of the account in state""" + def __init__( + self, + *, + body_bytes: builtins.bytes = ..., + auth_info_bytes: builtins.bytes = ..., + chain_id: builtins.str = ..., + account_number: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account_number", b"account_number", "auth_info_bytes", b"auth_info_bytes", "body_bytes", b"body_bytes", "chain_id", b"chain_id"]) -> None: ... + +global___SignDoc = SignDoc + +@typing_extensions.final +class SignDocDirectAux(google.protobuf.message.Message): + """SignDocDirectAux is the type used for generating sign bytes for + SIGN_MODE_DIRECT_AUX. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BODY_BYTES_FIELD_NUMBER: builtins.int + PUBLIC_KEY_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + TIP_FIELD_NUMBER: builtins.int + body_bytes: builtins.bytes + """body_bytes is protobuf serialization of a TxBody that matches the + representation in TxRaw. + """ + @property + def public_key(self) -> google.protobuf.any_pb2.Any: + """public_key is the public key of the signing account.""" + chain_id: builtins.str + """chain_id is the identifier of the chain this transaction targets. + It prevents signed transactions from being used on another chain by an + attacker. + """ + account_number: builtins.int + """account_number is the account number of the account in state.""" + sequence: builtins.int + """sequence is the sequence number of the signing account.""" + @property + def tip(self) -> global___Tip: + """Tip is the optional tip used for transactions fees paid in another denom. + It should be left empty if the signer is not the tipper for this + transaction. + + This field is ignored if the chain didn't enable tips, i.e. didn't add the + `TipDecorator` in its posthandler. + """ + def __init__( + self, + *, + body_bytes: builtins.bytes = ..., + public_key: google.protobuf.any_pb2.Any | None = ..., + chain_id: builtins.str = ..., + account_number: builtins.int = ..., + sequence: builtins.int = ..., + tip: global___Tip | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["public_key", b"public_key", "tip", b"tip"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["account_number", b"account_number", "body_bytes", b"body_bytes", "chain_id", b"chain_id", "public_key", b"public_key", "sequence", b"sequence", "tip", b"tip"]) -> None: ... + +global___SignDocDirectAux = SignDocDirectAux + +@typing_extensions.final +class TxBody(google.protobuf.message.Message): + """TxBody is the body of a transaction that all signers sign over.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGES_FIELD_NUMBER: builtins.int + MEMO_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int + NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """messages is a list of messages to be executed. The required signers of + those messages define the number and order of elements in AuthInfo's + signer_infos and Tx's signatures. Each required signer address is added to + the list only the first time it occurs. + By convention, the first required signer (usually from the first message) + is referred to as the primary signer and pays the fee for the whole + transaction. + """ + memo: builtins.str + """memo is any arbitrary note/comment to be added to the transaction. + WARNING: in clients, any publicly exposed text should not be called memo, + but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + """ + timeout_height: builtins.int + """timeout is the block height after which this transaction will not + be processed by the chain + """ + @property + def extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """extension_options are arbitrary options that can be added by chains + when the default options are not sufficient. If any of these are present + and can't be handled, the transaction will be rejected + """ + @property + def non_critical_extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: + """extension_options are arbitrary options that can be added by chains + when the default options are not sufficient. If any of these are present + and can't be handled, they will be ignored + """ + def __init__( + self, + *, + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + memo: builtins.str = ..., + timeout_height: builtins.int = ..., + extension_options: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + non_critical_extension_options: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["extension_options", b"extension_options", "memo", b"memo", "messages", b"messages", "non_critical_extension_options", b"non_critical_extension_options", "timeout_height", b"timeout_height"]) -> None: ... + +global___TxBody = TxBody + +@typing_extensions.final +class AuthInfo(google.protobuf.message.Message): + """AuthInfo describes the fee and signer modes that are used to sign a + transaction. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNER_INFOS_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + TIP_FIELD_NUMBER: builtins.int + @property + def signer_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignerInfo]: + """signer_infos defines the signing modes for the required signers. The number + and order of elements must match the required signers from TxBody's + messages. The first element is the primary signer and the one which pays + the fee. + """ + @property + def fee(self) -> global___Fee: + """Fee is the fee and gas limit for the transaction. The first signer is the + primary signer and the one which pays the fee. The fee can be calculated + based on the cost of evaluating the body and doing signature verification + of the signers. This can be estimated via simulation. + """ + @property + def tip(self) -> global___Tip: + """Tip is the optional tip used for transactions fees paid in another denom. + + This field is ignored if the chain didn't enable tips, i.e. didn't add the + `TipDecorator` in its posthandler. + + Since: cosmos-sdk 0.46 + """ + def __init__( + self, + *, + signer_infos: collections.abc.Iterable[global___SignerInfo] | None = ..., + fee: global___Fee | None = ..., + tip: global___Tip | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["fee", b"fee", "tip", b"tip"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["fee", b"fee", "signer_infos", b"signer_infos", "tip", b"tip"]) -> None: ... + +global___AuthInfo = AuthInfo + +@typing_extensions.final +class SignerInfo(google.protobuf.message.Message): + """SignerInfo describes the public key and signing mode of a single top-level + signer. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PUBLIC_KEY_FIELD_NUMBER: builtins.int + MODE_INFO_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + @property + def public_key(self) -> google.protobuf.any_pb2.Any: + """public_key is the public key of the signer. It is optional for accounts + that already exist in state. If unset, the verifier can use the required \\ + signer address for this position and lookup the public key. + """ + @property + def mode_info(self) -> global___ModeInfo: + """mode_info describes the signing mode of the signer and is a nested + structure to support nested multisig pubkey's + """ + sequence: builtins.int + """sequence is the sequence of the account, which describes the + number of committed transactions signed by a given address. It is used to + prevent replay attacks. + """ + def __init__( + self, + *, + public_key: google.protobuf.any_pb2.Any | None = ..., + mode_info: global___ModeInfo | None = ..., + sequence: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["mode_info", b"mode_info", "public_key", b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["mode_info", b"mode_info", "public_key", b"public_key", "sequence", b"sequence"]) -> None: ... + +global___SignerInfo = SignerInfo + +@typing_extensions.final +class ModeInfo(google.protobuf.message.Message): + """ModeInfo describes the signing mode of a single or nested multisig signer.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Single(google.protobuf.message.Message): + """Single is the mode info for a single signer. It is structured as a message + to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + future + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODE_FIELD_NUMBER: builtins.int + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.ValueType + """mode is the signing mode of the single signer""" + def __init__( + self, + *, + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["mode", b"mode"]) -> None: ... + + @typing_extensions.final + class Multi(google.protobuf.message.Message): + """Multi is the mode info for a multisig public key""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BITARRAY_FIELD_NUMBER: builtins.int + MODE_INFOS_FIELD_NUMBER: builtins.int + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: + """bitarray specifies which keys within the multisig are signing""" + @property + def mode_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModeInfo]: + """mode_infos is the corresponding modes of the signers of the multisig + which could include nested multisig public keys + """ + def __init__( + self, + *, + bitarray: cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray | None = ..., + mode_infos: collections.abc.Iterable[global___ModeInfo] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["bitarray", b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bitarray", b"bitarray", "mode_infos", b"mode_infos"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + @property + def single(self) -> global___ModeInfo.Single: + """single represents a single signer""" + @property + def multi(self) -> global___ModeInfo.Multi: + """multi represents a nested multisig signer""" + def __init__( + self, + *, + single: global___ModeInfo.Single | None = ..., + multi: global___ModeInfo.Multi | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["multi", b"multi", "single", b"single", "sum", b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["multi", b"multi", "single", b"single", "sum", b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["sum", b"sum"]) -> typing_extensions.Literal["single", "multi"] | None: ... + +global___ModeInfo = ModeInfo + +@typing_extensions.final +class Fee(google.protobuf.message.Message): + """Fee includes the amount of coins paid in fees and the maximum + gas to be used by the transaction. The ratio yields an effective "gasprice", + which must be above some miminum to be accepted into the mempool. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + GAS_LIMIT_FIELD_NUMBER: builtins.int + PAYER_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount is the amount of coins to be paid as a fee""" + gas_limit: builtins.int + """gas_limit is the maximum gas that can be used in transaction processing + before an out of gas error occurs + """ + payer: builtins.str + """if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + the payer must be a tx signer (and thus have signed this field in AuthInfo). + setting this field does *not* change the ordering of required signers for the transaction. + """ + granter: builtins.str + """if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + not support fee grants, this will fail + """ + def __init__( + self, + *, + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + gas_limit: builtins.int = ..., + payer: builtins.str = ..., + granter: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "gas_limit", b"gas_limit", "granter", b"granter", "payer", b"payer"]) -> None: ... + +global___Fee = Fee + +@typing_extensions.final +class Tip(google.protobuf.message.Message): + """Tip is the tip used for meta-transactions. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + TIPPER_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """amount is the amount of the tip""" + tipper: builtins.str + """tipper is the address of the account paying for the tip""" + def __init__( + self, + *, + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + tipper: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "tipper", b"tipper"]) -> None: ... + +global___Tip = Tip + +@typing_extensions.final +class AuxSignerData(google.protobuf.message.Message): + """AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + tipper) builds and sends to the fee payer (who will build and broadcast the + actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + by the node if sent directly as-is. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + SIGN_DOC_FIELD_NUMBER: builtins.int + MODE_FIELD_NUMBER: builtins.int + SIG_FIELD_NUMBER: builtins.int + address: builtins.str + """address is the bech32-encoded address of the auxiliary signer. If using + AuxSignerData across different chains, the bech32 prefix of the target + chain (where the final transaction is broadcasted) should be used. + """ + @property + def sign_doc(self) -> global___SignDocDirectAux: + """sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + signs. Note: we use the same sign doc even if we're signing with + LEGACY_AMINO_JSON. + """ + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.ValueType + """mode is the signing mode of the single signer.""" + sig: builtins.bytes + """sig is the signature of the sign doc.""" + def __init__( + self, + *, + address: builtins.str = ..., + sign_doc: global___SignDocDirectAux | None = ..., + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.ValueType = ..., + sig: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["sign_doc", b"sign_doc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "mode", b"mode", "sig", b"sig", "sign_doc", b"sign_doc"]) -> None: ... + +global___AuxSignerData = AuxSignerData diff --git a/nibiru_proto/cosmos/tx/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/tx/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.py b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.py new file mode 100644 index 00000000..b4b49d73 --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/upgrade/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/upgrade/module/v1/module.proto\x12\x18\x63osmos.upgrade.module.v1\x1a cosmos/app/v1alpha1/module.proto\"V\n\x06Module\x12\x1c\n\tauthority\x18\x01 \x01(\tR\tauthority:.\xba\xc0\x96\xda\x01(\n&github.com/cosmos/cosmos-sdk/x/upgradeb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.upgrade.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001(\n&github.com/cosmos/cosmos-sdk/x/upgrade' + _MODULE._serialized_start=101 + _MODULE._serialized_end=187 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.pyi new file mode 100644 index 00000000..4ed61e34 --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2.pyi @@ -0,0 +1,33 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 of the upgrade module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority defines the custom module authority. If not set, defaults to the governance module.""" + def __init__( + self, + *, + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority"]) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/upgrade/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.py b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.py new file mode 100644 index 00000000..ebb41e7e --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/upgrade/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.upgrade.v1beta1 import upgrade_pb2 as cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"cosmos/upgrade/v1beta1/query.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x19\n\x17QueryCurrentPlanRequest\"L\n\x18QueryCurrentPlanResponse\x12\x30\n\x04plan\x18\x01 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanR\x04plan\"-\n\x17QueryAppliedPlanRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"2\n\x18QueryAppliedPlanResponse\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\"I\n\"QueryUpgradedConsensusStateRequest\x12\x1f\n\x0blast_height\x18\x01 \x01(\x03R\nlastHeight:\x02\x18\x01\"i\n#QueryUpgradedConsensusStateResponse\x12\x38\n\x18upgraded_consensus_state\x18\x02 \x01(\x0cR\x16upgradedConsensusState:\x02\x18\x01J\x04\x08\x01\x10\x02\"=\n\x1aQueryModuleVersionsRequest\x12\x1f\n\x0bmodule_name\x18\x01 \x01(\tR\nmoduleName\"m\n\x1bQueryModuleVersionsResponse\x12N\n\x0fmodule_versions\x18\x01 \x03(\x0b\x32%.cosmos.upgrade.v1beta1.ModuleVersionR\x0emoduleVersions\"\x17\n\x15QueryAuthorityRequest\"2\n\x16QueryAuthorityResponse\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress2\xf4\x06\n\x05Query\x12\x9e\x01\n\x0b\x43urrentPlan\x12/.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/upgrade/v1beta1/current_plan\x12\xa5\x01\n\x0b\x41ppliedPlan\x12/.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/upgrade/v1beta1/applied_plan/{name}\x12\xdc\x01\n\x16UpgradedConsensusState\x12:.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest\x1a;.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse\"I\x88\x02\x01\x82\xd3\xe4\x93\x02@\x12>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}\x12\xaa\x01\n\x0eModuleVersions\x12\x32.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest\x1a\x33.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/upgrade/v1beta1/module_versions\x12\x95\x01\n\tAuthority\x12-.cosmos.upgrade.v1beta1.QueryAuthorityRequest\x1a..cosmos.upgrade.v1beta1.QueryAuthorityResponse\")\x82\xd3\xe4\x93\x02#\x12!/cosmos/upgrade/v1beta1/authorityB.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.upgrade.v1beta1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types' + _QUERYUPGRADEDCONSENSUSSTATEREQUEST._options = None + _QUERYUPGRADEDCONSENSUSSTATEREQUEST._serialized_options = b'\030\001' + _QUERYUPGRADEDCONSENSUSSTATERESPONSE._options = None + _QUERYUPGRADEDCONSENSUSSTATERESPONSE._serialized_options = b'\030\001' + _QUERY.methods_by_name['CurrentPlan']._options = None + _QUERY.methods_by_name['CurrentPlan']._serialized_options = b'\202\323\344\223\002&\022$/cosmos/upgrade/v1beta1/current_plan' + _QUERY.methods_by_name['AppliedPlan']._options = None + _QUERY.methods_by_name['AppliedPlan']._serialized_options = b'\202\323\344\223\002-\022+/cosmos/upgrade/v1beta1/applied_plan/{name}' + _QUERY.methods_by_name['UpgradedConsensusState']._options = None + _QUERY.methods_by_name['UpgradedConsensusState']._serialized_options = b'\210\002\001\202\323\344\223\002@\022>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}' + _QUERY.methods_by_name['ModuleVersions']._options = None + _QUERY.methods_by_name['ModuleVersions']._serialized_options = b'\202\323\344\223\002)\022\'/cosmos/upgrade/v1beta1/module_versions' + _QUERY.methods_by_name['Authority']._options = None + _QUERY.methods_by_name['Authority']._serialized_options = b'\202\323\344\223\002#\022!/cosmos/upgrade/v1beta1/authority' + _QUERYCURRENTPLANREQUEST._serialized_start=130 + _QUERYCURRENTPLANREQUEST._serialized_end=155 + _QUERYCURRENTPLANRESPONSE._serialized_start=157 + _QUERYCURRENTPLANRESPONSE._serialized_end=233 + _QUERYAPPLIEDPLANREQUEST._serialized_start=235 + _QUERYAPPLIEDPLANREQUEST._serialized_end=280 + _QUERYAPPLIEDPLANRESPONSE._serialized_start=282 + _QUERYAPPLIEDPLANRESPONSE._serialized_end=332 + _QUERYUPGRADEDCONSENSUSSTATEREQUEST._serialized_start=334 + _QUERYUPGRADEDCONSENSUSSTATEREQUEST._serialized_end=407 + _QUERYUPGRADEDCONSENSUSSTATERESPONSE._serialized_start=409 + _QUERYUPGRADEDCONSENSUSSTATERESPONSE._serialized_end=514 + _QUERYMODULEVERSIONSREQUEST._serialized_start=516 + _QUERYMODULEVERSIONSREQUEST._serialized_end=577 + _QUERYMODULEVERSIONSRESPONSE._serialized_start=579 + _QUERYMODULEVERSIONSRESPONSE._serialized_end=688 + _QUERYAUTHORITYREQUEST._serialized_start=690 + _QUERYAUTHORITYREQUEST._serialized_end=713 + _QUERYAUTHORITYRESPONSE._serialized_start=715 + _QUERYAUTHORITYRESPONSE._serialized_end=765 + _QUERY._serialized_start=768 + _QUERY._serialized_end=1652 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.pyi b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.pyi new file mode 100644 index 00000000..c598b070 --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2.pyi @@ -0,0 +1,219 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.upgrade.v1beta1.upgrade_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 QueryCurrentPlanRequest(google.protobuf.message.Message): + """QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryCurrentPlanRequest = QueryCurrentPlanRequest + +@typing_extensions.final +class QueryCurrentPlanResponse(google.protobuf.message.Message): + """QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PLAN_FIELD_NUMBER: builtins.int + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: + """plan is the current upgrade plan.""" + def __init__( + self, + *, + plan: cosmos.upgrade.v1beta1.upgrade_pb2.Plan | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["plan", b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["plan", b"plan"]) -> None: ... + +global___QueryCurrentPlanResponse = QueryCurrentPlanResponse + +@typing_extensions.final +class QueryAppliedPlanRequest(google.protobuf.message.Message): + """QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + """name is the name of the applied plan to query for.""" + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ... + +global___QueryAppliedPlanRequest = QueryAppliedPlanRequest + +@typing_extensions.final +class QueryAppliedPlanResponse(google.protobuf.message.Message): + """QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int + """height is the block height at which the plan was applied.""" + def __init__( + self, + *, + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height"]) -> None: ... + +global___QueryAppliedPlanResponse = QueryAppliedPlanResponse + +@typing_extensions.final +class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): + """QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LAST_HEIGHT_FIELD_NUMBER: builtins.int + last_height: builtins.int + """last height of the current chain must be sent in request + as this is the height under which next consensus state is stored + """ + def __init__( + self, + *, + last_height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["last_height", b"last_height"]) -> None: ... + +global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest + +@typing_extensions.final +class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): + """QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + upgraded_consensus_state: builtins.bytes + """Since: cosmos-sdk 0.43""" + def __init__( + self, + *, + upgraded_consensus_state: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["upgraded_consensus_state", b"upgraded_consensus_state"]) -> None: ... + +global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse + +@typing_extensions.final +class QueryModuleVersionsRequest(google.protobuf.message.Message): + """QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + RPC method. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_NAME_FIELD_NUMBER: builtins.int + module_name: builtins.str + """module_name is a field to query a specific module + consensus version from state. Leaving this empty will + fetch the full list of module versions from state + """ + def __init__( + self, + *, + module_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module_name", b"module_name"]) -> None: ... + +global___QueryModuleVersionsRequest = QueryModuleVersionsRequest + +@typing_extensions.final +class QueryModuleVersionsResponse(google.protobuf.message.Message): + """QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + RPC method. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_VERSIONS_FIELD_NUMBER: builtins.int + @property + def module_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]: + """module_versions is a list of module names with their consensus versions.""" + def __init__( + self, + *, + module_versions: collections.abc.Iterable[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module_versions", b"module_versions"]) -> None: ... + +global___QueryModuleVersionsResponse = QueryModuleVersionsResponse + +@typing_extensions.final +class QueryAuthorityRequest(google.protobuf.message.Message): + """QueryAuthorityRequest is the request type for Query/Authority + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryAuthorityRequest = QueryAuthorityRequest + +@typing_extensions.final +class QueryAuthorityResponse(google.protobuf.message.Message): + """QueryAuthorityResponse is the response type for Query/Authority + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + address: builtins.str + def __init__( + self, + *, + address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address"]) -> None: ... + +global___QueryAuthorityResponse = QueryAuthorityResponse diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py new file mode 100644 index 00000000..29236eba --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py @@ -0,0 +1,215 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.upgrade.v1beta1 import query_pb2 as cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC upgrade querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CurrentPlan = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/CurrentPlan', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanResponse.FromString, + ) + self.AppliedPlan = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/AppliedPlan', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanResponse.FromString, + ) + self.UpgradedConsensusState = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, + ) + self.ModuleVersions = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/ModuleVersions', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.FromString, + ) + self.Authority = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/Authority', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC upgrade querier service. + """ + + def CurrentPlan(self, request, context): + """CurrentPlan queries the current upgrade plan. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AppliedPlan(self, request, context): + """AppliedPlan queries a previously applied upgrade plan by its name. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpgradedConsensusState(self, request, context): + """UpgradedConsensusState queries the consensus state that will serve + as a trusted kernel for the next version of this chain. It will only be + stored at the last height of this chain. + UpgradedConsensusState RPC not supported with legacy querier + This rpc is deprecated now that IBC has its own replacement + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModuleVersions(self, request, context): + """ModuleVersions queries the list of module versions from state. + + Since: cosmos-sdk 0.43 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Authority(self, request, context): + """Returns the account with authority to conduct upgrades + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CurrentPlan': grpc.unary_unary_rpc_method_handler( + servicer.CurrentPlan, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanResponse.SerializeToString, + ), + 'AppliedPlan': grpc.unary_unary_rpc_method_handler( + servicer.AppliedPlan, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanResponse.SerializeToString, + ), + 'UpgradedConsensusState': grpc.unary_unary_rpc_method_handler( + servicer.UpgradedConsensusState, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.SerializeToString, + ), + 'ModuleVersions': grpc.unary_unary_rpc_method_handler( + servicer.ModuleVersions, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.SerializeToString, + ), + 'Authority': grpc.unary_unary_rpc_method_handler( + servicer.Authority, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.upgrade.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC upgrade querier service. + """ + + @staticmethod + def CurrentPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/CurrentPlan', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryCurrentPlanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AppliedPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/AppliedPlan', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAppliedPlanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpgradedConsensusState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleVersions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/ModuleVersions', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Authority(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/Authority', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryAuthorityResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.py new file mode 100644 index 00000000..4a66f61b --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/upgrade/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.upgrade.v1beta1 import upgrade_pb2 as cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/upgrade/v1beta1/tx.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xbb\x01\n\x12MsgSoftwareUpgrade\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12;\n\x04plan\x18\x02 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04plan:0\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x1d\x63osmos-sdk/MsgSoftwareUpgrade\"\x1c\n\x1aMsgSoftwareUpgradeResponse\"z\n\x10MsgCancelUpgrade\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority:.\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x1b\x63osmos-sdk/MsgCancelUpgrade\"\x1a\n\x18MsgCancelUpgradeResponse2\xec\x01\n\x03Msg\x12q\n\x0fSoftwareUpgrade\x12*.cosmos.upgrade.v1beta1.MsgSoftwareUpgrade\x1a\x32.cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse\x12k\n\rCancelUpgrade\x12(.cosmos.upgrade.v1beta1.MsgCancelUpgrade\x1a\x30.cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse\x1a\x05\x80\xe7\xb0*\x01\x42.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.upgrade.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types' + _MSGSOFTWAREUPGRADE.fields_by_name['authority']._options = None + _MSGSOFTWAREUPGRADE.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGSOFTWAREUPGRADE.fields_by_name['plan']._options = None + _MSGSOFTWAREUPGRADE.fields_by_name['plan']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGSOFTWAREUPGRADE._options = None + _MSGSOFTWAREUPGRADE._serialized_options = b'\202\347\260*\tauthority\212\347\260*\035cosmos-sdk/MsgSoftwareUpgrade' + _MSGCANCELUPGRADE.fields_by_name['authority']._options = None + _MSGCANCELUPGRADE.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCANCELUPGRADE._options = None + _MSGCANCELUPGRADE._serialized_options = b'\202\347\260*\tauthority\212\347\260*\033cosmos-sdk/MsgCancelUpgrade' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGSOFTWAREUPGRADE._serialized_start=191 + _MSGSOFTWAREUPGRADE._serialized_end=378 + _MSGSOFTWAREUPGRADERESPONSE._serialized_start=380 + _MSGSOFTWAREUPGRADERESPONSE._serialized_end=408 + _MSGCANCELUPGRADE._serialized_start=410 + _MSGCANCELUPGRADE._serialized_end=532 + _MSGCANCELUPGRADERESPONSE._serialized_start=534 + _MSGCANCELUPGRADERESPONSE._serialized_end=560 + _MSG._serialized_start=563 + _MSG._serialized_end=799 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..991b7b71 --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2.pyi @@ -0,0 +1,94 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Since: cosmos-sdk 0.46""" +import builtins +import cosmos.upgrade.v1beta1.upgrade_pb2 +import google.protobuf.descriptor +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 MsgSoftwareUpgrade(google.protobuf.message.Message): + """MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: + """plan is the upgrade plan.""" + def __init__( + self, + *, + authority: builtins.str = ..., + plan: cosmos.upgrade.v1beta1.upgrade_pb2.Plan | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["plan", b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority", "plan", b"plan"]) -> None: ... + +global___MsgSoftwareUpgrade = MsgSoftwareUpgrade + +@typing_extensions.final +class MsgSoftwareUpgradeResponse(google.protobuf.message.Message): + """MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgSoftwareUpgradeResponse = MsgSoftwareUpgradeResponse + +@typing_extensions.final +class MsgCancelUpgrade(google.protobuf.message.Message): + """MsgCancelUpgrade is the Msg/CancelUpgrade request type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUTHORITY_FIELD_NUMBER: builtins.int + authority: builtins.str + """authority is the address that controls the module (defaults to x/gov unless overwritten).""" + def __init__( + self, + *, + authority: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["authority", b"authority"]) -> None: ... + +global___MsgCancelUpgrade = MsgCancelUpgrade + +@typing_extensions.final +class MsgCancelUpgradeResponse(google.protobuf.message.Message): + """MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCancelUpgradeResponse = MsgCancelUpgradeResponse diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..96e749ce --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,109 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.upgrade.v1beta1 import tx_pb2 as cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the upgrade Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SoftwareUpgrade = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Msg/SoftwareUpgrade', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgrade.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgradeResponse.FromString, + ) + self.CancelUpgrade = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Msg/CancelUpgrade', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgrade.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgradeResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the upgrade Msg service. + """ + + def SoftwareUpgrade(self, request, context): + """SoftwareUpgrade is a governance operation for initiating a software upgrade. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CancelUpgrade(self, request, context): + """CancelUpgrade is a governance operation for cancelling a previously + approved software upgrade. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SoftwareUpgrade': grpc.unary_unary_rpc_method_handler( + servicer.SoftwareUpgrade, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgrade.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgradeResponse.SerializeToString, + ), + 'CancelUpgrade': grpc.unary_unary_rpc_method_handler( + servicer.CancelUpgrade, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgrade.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgradeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.upgrade.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the upgrade Msg service. + """ + + @staticmethod + def SoftwareUpgrade(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Msg/SoftwareUpgrade', + cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgrade.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgSoftwareUpgradeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CancelUpgrade(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Msg/CancelUpgrade', + cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgrade.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_tx__pb2.MsgCancelUpgradeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.py b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.py new file mode 100644 index 00000000..65a27058 --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/upgrade/v1beta1/upgrade.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/upgrade/v1beta1/upgrade.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x11\x61mino/amino.proto\"\xf3\x01\n\x04Plan\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12?\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0f\x18\x01\xc8\xde\x1f\x00\x90\xdf\x1f\x01\xa8\xe7\xb0*\x01R\x04time\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12\x12\n\x04info\x18\x04 \x01(\tR\x04info\x12L\n\x15upgraded_client_state\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyB\x02\x18\x01R\x13upgradedClientState:\x1c\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0f\x63osmos-sdk/Plan\"\xdf\x01\n\x17SoftwareUpgradeProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12;\n\x04plan\x18\x03 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04plan:O\x18\x01\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*\"cosmos-sdk/SoftwareUpgradeProposal\"\xae\x01\n\x1d\x43\x61ncelSoftwareUpgradeProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription:U\x18\x01\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*(cosmos-sdk/CancelSoftwareUpgradeProposal\"G\n\rModuleVersion\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x04R\x07version:\x08\x98\xa0\x1f\x01\xe8\xa0\x1f\x01\x42\x32Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\xc8\xe1\x1e\x00\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.upgrade.v1beta1.upgrade_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\310\341\036\000' + _PLAN.fields_by_name['time']._options = None + _PLAN.fields_by_name['time']._serialized_options = b'\030\001\310\336\037\000\220\337\037\001\250\347\260*\001' + _PLAN.fields_by_name['upgraded_client_state']._options = None + _PLAN.fields_by_name['upgraded_client_state']._serialized_options = b'\030\001' + _PLAN._options = None + _PLAN._serialized_options = b'\230\240\037\000\350\240\037\001\212\347\260*\017cosmos-sdk/Plan' + _SOFTWAREUPGRADEPROPOSAL.fields_by_name['plan']._options = None + _SOFTWAREUPGRADEPROPOSAL.fields_by_name['plan']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _SOFTWAREUPGRADEPROPOSAL._options = None + _SOFTWAREUPGRADEPROPOSAL._serialized_options = b'\030\001\230\240\037\000\350\240\037\001\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*\"cosmos-sdk/SoftwareUpgradeProposal' + _CANCELSOFTWAREUPGRADEPROPOSAL._options = None + _CANCELSOFTWAREUPGRADEPROPOSAL._serialized_options = b'\030\001\230\240\037\000\350\240\037\001\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*(cosmos-sdk/CancelSoftwareUpgradeProposal' + _MODULEVERSION._options = None + _MODULEVERSION._serialized_options = b'\230\240\037\001\350\240\037\001' + _PLAN._serialized_start=193 + _PLAN._serialized_end=436 + _SOFTWAREUPGRADEPROPOSAL._serialized_start=439 + _SOFTWAREUPGRADEPROPOSAL._serialized_end=662 + _CANCELSOFTWAREUPGRADEPROPOSAL._serialized_start=665 + _CANCELSOFTWAREUPGRADEPROPOSAL._serialized_end=839 + _MODULEVERSION._serialized_start=841 + _MODULEVERSION._serialized_end=912 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi new file mode 100644 index 00000000..a886097a --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi @@ -0,0 +1,152 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 Plan(google.protobuf.message.Message): + """Plan specifies information about a planned upgrade and when it should occur.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + name: builtins.str + """Sets the name for the upgrade. This name will be used by the upgraded + version of the software to apply any special "on-upgrade" commands during + the first BeginBlock method after the upgrade is applied. It is also used + to detect whether a software version can handle a given upgrade. If no + upgrade handler with this name has been set in the software, it will be + assumed that the software is out-of-date when the upgrade Time or Height is + reached and the software will exit. + """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + has been removed from the SDK. + If this field is not empty, an error will be thrown. + """ + height: builtins.int + """The height at which the upgrade must be performed.""" + info: builtins.str + """Any application specific upgrade info to be included on-chain + such as a git commit that validators could automatically upgrade to + """ + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: + """Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + moved to the IBC module in the sub module 02-client. + If this field is not empty, an error will be thrown. + """ + def __init__( + self, + *, + name: builtins.str = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + height: builtins.int = ..., + info: builtins.str = ..., + upgraded_client_state: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["time", b"time", "upgraded_client_state", b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "info", b"info", "name", b"name", "time", b"time", "upgraded_client_state", b"upgraded_client_state"]) -> None: ... + +global___Plan = Plan + +@typing_extensions.final +class SoftwareUpgradeProposal(google.protobuf.message.Message): + """SoftwareUpgradeProposal is a gov Content type for initiating a software + upgrade. + Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + proposals, see MsgSoftwareUpgrade. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + title: builtins.str + """title of the proposal""" + description: builtins.str + """description of the proposal""" + @property + def plan(self) -> global___Plan: + """plan of the proposal""" + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + plan: global___Plan | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["plan", b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "plan", b"plan", "title", b"title"]) -> None: ... + +global___SoftwareUpgradeProposal = SoftwareUpgradeProposal + +@typing_extensions.final +class CancelSoftwareUpgradeProposal(google.protobuf.message.Message): + """CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + upgrade. + Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + proposals, see MsgCancelUpgrade. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: builtins.str + """title of the proposal""" + description: builtins.str + """description of the proposal""" + def __init__( + self, + *, + title: builtins.str = ..., + description: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "title", b"title"]) -> None: ... + +global___CancelSoftwareUpgradeProposal = CancelSoftwareUpgradeProposal + +@typing_extensions.final +class ModuleVersion(google.protobuf.message.Message): + """ModuleVersion specifies a module and its consensus version. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + name: builtins.str + """name of the app module""" + version: builtins.int + """consensus version of the app module""" + def __init__( + self, + *, + name: builtins.str = ..., + version: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "version", b"version"]) -> None: ... + +global___ModuleVersion = ModuleVersion diff --git a/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.py b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/vesting/module/v1/module_pb2.py b/nibiru_proto/cosmos/vesting/module/v1/module_pb2.py new file mode 100644 index 00000000..415c33df --- /dev/null +++ b/nibiru_proto/cosmos/vesting/module/v1/module_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/vesting/module/v1/module.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/vesting/module/v1/module.proto\x12\x18\x63osmos.vesting.module.v1\x1a cosmos/app/v1alpha1/module.proto\"=\n\x06Module:3\xba\xc0\x96\xda\x01-\n+github.com/cosmos/cosmos-sdk/x/auth/vestingb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.vesting.module.v1.module_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _MODULE._options = None + _MODULE._serialized_options = b'\272\300\226\332\001-\n+github.com/cosmos/cosmos-sdk/x/auth/vesting' + _MODULE._serialized_start=101 + _MODULE._serialized_end=162 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/vesting/module/v1/module_pb2.pyi b/nibiru_proto/cosmos/vesting/module/v1/module_pb2.pyi new file mode 100644 index 00000000..192a7c9c --- /dev/null +++ b/nibiru_proto/cosmos/vesting/module/v1/module_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +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 of the vesting module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Module = Module diff --git a/nibiru_proto/cosmos/vesting/module/v1/module_pb2_grpc.py b/nibiru_proto/cosmos/vesting/module/v1/module_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/vesting/module/v1/module_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.py b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.py new file mode 100644 index 00000000..cee7bad7 --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/vesting/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.vesting.v1beta1 import vesting_pb2 as cosmos_dot_vesting_dot_v1beta1_dot_vesting__pb2 +from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 +from amino import amino_pb2 as amino_dot_amino__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63osmos/vesting/v1beta1/tx.proto\x12\x16\x63osmos.vesting.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a$cosmos/vesting/v1beta1/vesting.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\"\xec\x02\n\x17MsgCreateVestingAccount\x12;\n\x0c\x66rom_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0b\x66romAddress\x12\x37\n\nto_address\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\ttoAddress\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x03R\x07\x65ndTime\x12\x18\n\x07\x64\x65layed\x18\x05 \x01(\x08R\x07\x64\x65layed:<\xe8\xa0\x1f\x01\x82\xe7\xb0*\x0c\x66rom_address\x8a\xe7\xb0*\"cosmos-sdk/MsgCreateVestingAccount\"!\n\x1fMsgCreateVestingAccountResponse\"\xbe\x02\n\x1fMsgCreatePermanentLockedAccount\x12:\n\x0c\x66rom_address\x18\x01 \x01(\tB\x17\xf2\xde\x1f\x13yaml:\"from_address\"R\x0b\x66romAddress\x12\x34\n\nto_address\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"to_address\"R\ttoAddress\x12h\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:?\xe8\xa0\x1f\x01\x82\xe7\xb0*\x0c\x66rom_address\x8a\xe7\xb0*%cosmos-sdk/MsgCreatePermLockedAccount\")\n\'MsgCreatePermanentLockedAccountResponse\"\x9c\x02\n\x1fMsgCreatePeriodicVestingAccount\x12!\n\x0c\x66rom_address\x18\x01 \x01(\tR\x0b\x66romAddress\x12\x1d\n\nto_address\x18\x02 \x01(\tR\ttoAddress\x12\x1d\n\nstart_time\x18\x03 \x01(\x03R\tstartTime\x12R\n\x0fvesting_periods\x18\x04 \x03(\x0b\x32\x1e.cosmos.vesting.v1beta1.PeriodB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0evestingPeriods:D\xe8\xa0\x1f\x00\x82\xe7\xb0*\x0c\x66rom_address\x8a\xe7\xb0**cosmos-sdk/MsgCreatePeriodicVestingAccount\")\n\'MsgCreatePeriodicVestingAccountResponse2\xc5\x03\n\x03Msg\x12\x80\x01\n\x14\x43reateVestingAccount\x12/.cosmos.vesting.v1beta1.MsgCreateVestingAccount\x1a\x37.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse\x12\x98\x01\n\x1c\x43reatePermanentLockedAccount\x12\x37.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount\x1a?.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse\x12\x98\x01\n\x1c\x43reatePeriodicVestingAccount\x12\x37.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount\x1a?.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x33Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.vesting.v1beta1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/types' + _MSGCREATEVESTINGACCOUNT.fields_by_name['from_address']._options = None + _MSGCREATEVESTINGACCOUNT.fields_by_name['from_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEVESTINGACCOUNT.fields_by_name['to_address']._options = None + _MSGCREATEVESTINGACCOUNT.fields_by_name['to_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _MSGCREATEVESTINGACCOUNT.fields_by_name['amount']._options = None + _MSGCREATEVESTINGACCOUNT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGCREATEVESTINGACCOUNT._options = None + _MSGCREATEVESTINGACCOUNT._serialized_options = b'\350\240\037\001\202\347\260*\014from_address\212\347\260*\"cosmos-sdk/MsgCreateVestingAccount' + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['from_address']._options = None + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['from_address']._serialized_options = b'\362\336\037\023yaml:\"from_address\"' + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['to_address']._options = None + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['to_address']._serialized_options = b'\362\336\037\021yaml:\"to_address\"' + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['amount']._options = None + _MSGCREATEPERMANENTLOCKEDACCOUNT.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _MSGCREATEPERMANENTLOCKEDACCOUNT._options = None + _MSGCREATEPERMANENTLOCKEDACCOUNT._serialized_options = b'\350\240\037\001\202\347\260*\014from_address\212\347\260*%cosmos-sdk/MsgCreatePermLockedAccount' + _MSGCREATEPERIODICVESTINGACCOUNT.fields_by_name['vesting_periods']._options = None + _MSGCREATEPERIODICVESTINGACCOUNT.fields_by_name['vesting_periods']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _MSGCREATEPERIODICVESTINGACCOUNT._options = None + _MSGCREATEPERIODICVESTINGACCOUNT._serialized_options = b'\350\240\037\000\202\347\260*\014from_address\212\347\260**cosmos-sdk/MsgCreatePeriodicVestingAccount' + _MSG._options = None + _MSG._serialized_options = b'\200\347\260*\001' + _MSGCREATEVESTINGACCOUNT._serialized_start=223 + _MSGCREATEVESTINGACCOUNT._serialized_end=587 + _MSGCREATEVESTINGACCOUNTRESPONSE._serialized_start=589 + _MSGCREATEVESTINGACCOUNTRESPONSE._serialized_end=622 + _MSGCREATEPERMANENTLOCKEDACCOUNT._serialized_start=625 + _MSGCREATEPERMANENTLOCKEDACCOUNT._serialized_end=943 + _MSGCREATEPERMANENTLOCKEDACCOUNTRESPONSE._serialized_start=945 + _MSGCREATEPERMANENTLOCKEDACCOUNTRESPONSE._serialized_end=986 + _MSGCREATEPERIODICVESTINGACCOUNT._serialized_start=989 + _MSGCREATEPERIODICVESTINGACCOUNT._serialized_end=1273 + _MSGCREATEPERIODICVESTINGACCOUNTRESPONSE._serialized_start=1275 + _MSGCREATEPERIODICVESTINGACCOUNTRESPONSE._serialized_end=1316 + _MSG._serialized_start=1319 + _MSG._serialized_end=1772 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.pyi b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.pyi new file mode 100644 index 00000000..96f30ba5 --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2.pyi @@ -0,0 +1,155 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import cosmos.vesting.v1beta1.vesting_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 MsgCreateVestingAccount(google.protobuf.message.Message): + """MsgCreateVestingAccount defines a message that enables creating a vesting + account. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + DELAYED_FIELD_NUMBER: builtins.int + from_address: builtins.str + to_address: builtins.str + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + end_time: builtins.int + """end of vesting as unix time (in seconds).""" + delayed: builtins.bool + def __init__( + self, + *, + from_address: builtins.str = ..., + to_address: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + end_time: builtins.int = ..., + delayed: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "delayed", b"delayed", "end_time", b"end_time", "from_address", b"from_address", "to_address", b"to_address"]) -> None: ... + +global___MsgCreateVestingAccount = MsgCreateVestingAccount + +@typing_extensions.final +class MsgCreateVestingAccountResponse(google.protobuf.message.Message): + """MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCreateVestingAccountResponse = MsgCreateVestingAccountResponse + +@typing_extensions.final +class MsgCreatePermanentLockedAccount(google.protobuf.message.Message): + """MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + locked account. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + from_address: builtins.str + to_address: builtins.str + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + from_address: builtins.str = ..., + to_address: builtins.str = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "from_address", b"from_address", "to_address", b"to_address"]) -> None: ... + +global___MsgCreatePermanentLockedAccount = MsgCreatePermanentLockedAccount + +@typing_extensions.final +class MsgCreatePermanentLockedAccountResponse(google.protobuf.message.Message): + """MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCreatePermanentLockedAccountResponse = MsgCreatePermanentLockedAccountResponse + +@typing_extensions.final +class MsgCreatePeriodicVestingAccount(google.protobuf.message.Message): + """MsgCreateVestingAccount defines a message that enables creating a vesting + account. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + VESTING_PERIODS_FIELD_NUMBER: builtins.int + from_address: builtins.str + to_address: builtins.str + start_time: builtins.int + """start of vesting as unix time (in seconds).""" + @property + def vesting_periods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.vesting.v1beta1.vesting_pb2.Period]: ... + def __init__( + self, + *, + from_address: builtins.str = ..., + to_address: builtins.str = ..., + start_time: builtins.int = ..., + vesting_periods: collections.abc.Iterable[cosmos.vesting.v1beta1.vesting_pb2.Period] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["from_address", b"from_address", "start_time", b"start_time", "to_address", b"to_address", "vesting_periods", b"vesting_periods"]) -> None: ... + +global___MsgCreatePeriodicVestingAccount = MsgCreatePeriodicVestingAccount + +@typing_extensions.final +class MsgCreatePeriodicVestingAccountResponse(google.protobuf.message.Message): + """MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + response type. + + Since: cosmos-sdk 0.46 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgCreatePeriodicVestingAccountResponse = MsgCreatePeriodicVestingAccountResponse diff --git a/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2_grpc.py b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2_grpc.py new file mode 100644 index 00000000..a076555a --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,145 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.vesting.v1beta1 import tx_pb2 as cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the bank Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateVestingAccount = channel.unary_unary( + '/cosmos.vesting.v1beta1.Msg/CreateVestingAccount', + request_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccount.SerializeToString, + response_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccountResponse.FromString, + ) + self.CreatePermanentLockedAccount = channel.unary_unary( + '/cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount', + request_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccount.SerializeToString, + response_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccountResponse.FromString, + ) + self.CreatePeriodicVestingAccount = channel.unary_unary( + '/cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount', + request_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccount.SerializeToString, + response_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccountResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the bank Msg service. + """ + + def CreateVestingAccount(self, request, context): + """CreateVestingAccount defines a method that enables creating a vesting + account. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePermanentLockedAccount(self, request, context): + """CreatePermanentLockedAccount defines a method that enables creating a permanent + locked account. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePeriodicVestingAccount(self, request, context): + """CreatePeriodicVestingAccount defines a method that enables creating a + periodic vesting account. + + Since: cosmos-sdk 0.46 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateVestingAccount': grpc.unary_unary_rpc_method_handler( + servicer.CreateVestingAccount, + request_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccount.FromString, + response_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccountResponse.SerializeToString, + ), + 'CreatePermanentLockedAccount': grpc.unary_unary_rpc_method_handler( + servicer.CreatePermanentLockedAccount, + request_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccount.FromString, + response_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccountResponse.SerializeToString, + ), + 'CreatePeriodicVestingAccount': grpc.unary_unary_rpc_method_handler( + servicer.CreatePeriodicVestingAccount, + request_deserializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccount.FromString, + response_serializer=cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccountResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.vesting.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the bank Msg service. + """ + + @staticmethod + def CreateVestingAccount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.vesting.v1beta1.Msg/CreateVestingAccount', + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccount.SerializeToString, + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreateVestingAccountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePermanentLockedAccount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount', + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccount.SerializeToString, + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePermanentLockedAccountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePeriodicVestingAccount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount', + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccount.SerializeToString, + cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2.MsgCreatePeriodicVestingAccountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.py b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.py new file mode 100644 index 00000000..dc7ae9d1 --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/vesting/v1beta1/vesting.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from amino import amino_pb2 as amino_dot_amino__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos.auth.v1beta1 import auth_pb2 as cosmos_dot_auth_dot_v1beta1_dot_auth__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$cosmos/vesting/v1beta1/vesting.proto\x12\x16\x63osmos.vesting.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\"\x9b\x04\n\x12\x42\x61seVestingAccount\x12I\n\x0c\x62\x61se_account\x18\x01 \x01(\x0b\x32 .cosmos.auth.v1beta1.BaseAccountB\x04\xd0\xde\x1f\x01R\x0b\x62\x61seAccount\x12{\n\x10original_vesting\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x0foriginalVesting\x12w\n\x0e\x64\x65legated_free\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\rdelegatedFree\x12}\n\x11\x64\x65legated_vesting\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x10\x64\x65legatedVesting\x12\x19\n\x08\x65nd_time\x18\x05 \x01(\x03R\x07\x65ndTime:*\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x8a\xe7\xb0*\x1d\x63osmos-sdk/BaseVestingAccount\"\xcf\x01\n\x18\x43ontinuousVestingAccount\x12\x62\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01R\x12\x62\x61seVestingAccount\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime:0\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x8a\xe7\xb0*#cosmos-sdk/ContinuousVestingAccount\"\xaa\x01\n\x15\x44\x65layedVestingAccount\x12\x62\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01R\x12\x62\x61seVestingAccount:-\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x8a\xe7\xb0* cosmos-sdk/DelayedVestingAccount\"\x90\x01\n\x06Period\x12\x16\n\x06length\x18\x01 \x01(\x03R\x06length\x12h\n\x06\x61mount\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\x06\x61mount:\x04\x98\xa0\x1f\x00\"\x9f\x02\n\x16PeriodicVestingAccount\x12\x62\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01R\x12\x62\x61seVestingAccount\x12\x1d\n\nstart_time\x18\x02 \x01(\x03R\tstartTime\x12R\n\x0fvesting_periods\x18\x03 \x03(\x0b\x32\x1e.cosmos.vesting.v1beta1.PeriodB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0evestingPeriods:.\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x8a\xe7\xb0*!cosmos-sdk/PeriodicVestingAccount\"\xac\x01\n\x16PermanentLockedAccount\x12\x62\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01R\x12\x62\x61seVestingAccount:.\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x8a\xe7\xb0*!cosmos-sdk/PermanentLockedAccountB3Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.vesting.v1beta1.vesting_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/types' + _BASEVESTINGACCOUNT.fields_by_name['base_account']._options = None + _BASEVESTINGACCOUNT.fields_by_name['base_account']._serialized_options = b'\320\336\037\001' + _BASEVESTINGACCOUNT.fields_by_name['original_vesting']._options = None + _BASEVESTINGACCOUNT.fields_by_name['original_vesting']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _BASEVESTINGACCOUNT.fields_by_name['delegated_free']._options = None + _BASEVESTINGACCOUNT.fields_by_name['delegated_free']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _BASEVESTINGACCOUNT.fields_by_name['delegated_vesting']._options = None + _BASEVESTINGACCOUNT.fields_by_name['delegated_vesting']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _BASEVESTINGACCOUNT._options = None + _BASEVESTINGACCOUNT._serialized_options = b'\210\240\037\000\230\240\037\000\212\347\260*\035cosmos-sdk/BaseVestingAccount' + _CONTINUOUSVESTINGACCOUNT.fields_by_name['base_vesting_account']._options = None + _CONTINUOUSVESTINGACCOUNT.fields_by_name['base_vesting_account']._serialized_options = b'\320\336\037\001' + _CONTINUOUSVESTINGACCOUNT._options = None + _CONTINUOUSVESTINGACCOUNT._serialized_options = b'\210\240\037\000\230\240\037\000\212\347\260*#cosmos-sdk/ContinuousVestingAccount' + _DELAYEDVESTINGACCOUNT.fields_by_name['base_vesting_account']._options = None + _DELAYEDVESTINGACCOUNT.fields_by_name['base_vesting_account']._serialized_options = b'\320\336\037\001' + _DELAYEDVESTINGACCOUNT._options = None + _DELAYEDVESTINGACCOUNT._serialized_options = b'\210\240\037\000\230\240\037\000\212\347\260* cosmos-sdk/DelayedVestingAccount' + _PERIOD.fields_by_name['amount']._options = None + _PERIOD.fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' + _PERIOD._options = None + _PERIOD._serialized_options = b'\230\240\037\000' + _PERIODICVESTINGACCOUNT.fields_by_name['base_vesting_account']._options = None + _PERIODICVESTINGACCOUNT.fields_by_name['base_vesting_account']._serialized_options = b'\320\336\037\001' + _PERIODICVESTINGACCOUNT.fields_by_name['vesting_periods']._options = None + _PERIODICVESTINGACCOUNT.fields_by_name['vesting_periods']._serialized_options = b'\310\336\037\000\250\347\260*\001' + _PERIODICVESTINGACCOUNT._options = None + _PERIODICVESTINGACCOUNT._serialized_options = b'\210\240\037\000\230\240\037\000\212\347\260*!cosmos-sdk/PeriodicVestingAccount' + _PERMANENTLOCKEDACCOUNT.fields_by_name['base_vesting_account']._options = None + _PERMANENTLOCKEDACCOUNT.fields_by_name['base_vesting_account']._serialized_options = b'\320\336\037\001' + _PERMANENTLOCKEDACCOUNT._options = None + _PERMANENTLOCKEDACCOUNT._serialized_options = b'\210\240\037\000\230\240\037\000\212\347\260*!cosmos-sdk/PermanentLockedAccount' + _BASEVESTINGACCOUNT._serialized_start=170 + _BASEVESTINGACCOUNT._serialized_end=709 + _CONTINUOUSVESTINGACCOUNT._serialized_start=712 + _CONTINUOUSVESTINGACCOUNT._serialized_end=919 + _DELAYEDVESTINGACCOUNT._serialized_start=922 + _DELAYEDVESTINGACCOUNT._serialized_end=1092 + _PERIOD._serialized_start=1095 + _PERIOD._serialized_end=1239 + _PERIODICVESTINGACCOUNT._serialized_start=1242 + _PERIODICVESTINGACCOUNT._serialized_end=1529 + _PERMANENTLOCKEDACCOUNT._serialized_start=1532 + _PERMANENTLOCKEDACCOUNT._serialized_end=1704 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.pyi b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.pyi new file mode 100644 index 00000000..821eb4b8 --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2.pyi @@ -0,0 +1,177 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.auth.v1beta1.auth_pb2 +import cosmos.base.v1beta1.coin_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 BaseVestingAccount(google.protobuf.message.Message): + """BaseVestingAccount implements the VestingAccount interface. It contains all + the necessary fields needed for any vesting account implementation. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_ACCOUNT_FIELD_NUMBER: builtins.int + ORIGINAL_VESTING_FIELD_NUMBER: builtins.int + DELEGATED_FREE_FIELD_NUMBER: builtins.int + DELEGATED_VESTING_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + @property + def base_account(self) -> cosmos.auth.v1beta1.auth_pb2.BaseAccount: ... + @property + def original_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def delegated_free(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def delegated_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + end_time: builtins.int + """Vesting end time, as unix timestamp (in seconds).""" + def __init__( + self, + *, + base_account: cosmos.auth.v1beta1.auth_pb2.BaseAccount | None = ..., + original_vesting: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + delegated_free: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + delegated_vesting: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + end_time: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_account", b"base_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_account", b"base_account", "delegated_free", b"delegated_free", "delegated_vesting", b"delegated_vesting", "end_time", b"end_time", "original_vesting", b"original_vesting"]) -> None: ... + +global___BaseVestingAccount = BaseVestingAccount + +@typing_extensions.final +class ContinuousVestingAccount(google.protobuf.message.Message): + """ContinuousVestingAccount implements the VestingAccount interface. It + continuously vests by unlocking coins linearly with respect to time. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + start_time: builtins.int + """Vesting start time, as unix timestamp (in seconds).""" + def __init__( + self, + *, + base_vesting_account: global___BaseVestingAccount | None = ..., + start_time: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account", "start_time", b"start_time"]) -> None: ... + +global___ContinuousVestingAccount = ContinuousVestingAccount + +@typing_extensions.final +class DelayedVestingAccount(google.protobuf.message.Message): + """DelayedVestingAccount implements the VestingAccount interface. It vests all + coins after a specific time, but non prior. In other words, it keeps them + locked until a specified time. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + def __init__( + self, + *, + base_vesting_account: global___BaseVestingAccount | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> None: ... + +global___DelayedVestingAccount = DelayedVestingAccount + +@typing_extensions.final +class Period(google.protobuf.message.Message): + """Period defines a length of time and amount of coins that will vest.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LENGTH_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + length: builtins.int + """Period duration in seconds.""" + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + length: builtins.int = ..., + amount: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "length", b"length"]) -> None: ... + +global___Period = Period + +@typing_extensions.final +class PeriodicVestingAccount(google.protobuf.message.Message): + """PeriodicVestingAccount implements the VestingAccount interface. It + periodically vests by unlocking coins during each specified period. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + VESTING_PERIODS_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + start_time: builtins.int + @property + def vesting_periods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Period]: ... + def __init__( + self, + *, + base_vesting_account: global___BaseVestingAccount | None = ..., + start_time: builtins.int = ..., + vesting_periods: collections.abc.Iterable[global___Period] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account", "start_time", b"start_time", "vesting_periods", b"vesting_periods"]) -> None: ... + +global___PeriodicVestingAccount = PeriodicVestingAccount + +@typing_extensions.final +class PermanentLockedAccount(google.protobuf.message.Message): + """PermanentLockedAccount implements the VestingAccount interface. It does + not ever release coins, locking them indefinitely. Coins in this account can + still be used for delegating and for governance votes even while locked. + + Since: cosmos-sdk 0.43 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + def __init__( + self, + *, + base_vesting_account: global___BaseVestingAccount | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["base_vesting_account", b"base_vesting_account"]) -> None: ... + +global___PermanentLockedAccount = PermanentLockedAccount diff --git a/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.py b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/cosmos_proto/cosmos_pb2.py b/nibiru_proto/cosmos_proto/cosmos_pb2.py new file mode 100644 index 00000000..c0b60c97 --- /dev/null +++ b/nibiru_proto/cosmos_proto/cosmos_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos_proto/cosmos.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63osmos_proto/cosmos.proto\x12\x0c\x63osmos_proto\x1a google/protobuf/descriptor.proto\"K\n\x13InterfaceDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\"\x81\x01\n\x10ScalarDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x37\n\nfield_type\x18\x03 \x03(\x0e\x32\x18.cosmos_proto.ScalarTypeR\tfieldType*X\n\nScalarType\x12\x1b\n\x17SCALAR_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12SCALAR_TYPE_STRING\x10\x01\x12\x15\n\x11SCALAR_TYPE_BYTES\x10\x02:T\n\x14implements_interface\x12\x1f.google.protobuf.MessageOptions\x18\xc9\xd6\x05 \x03(\tR\x13implementsInterface:L\n\x11\x61\x63\x63\x65pts_interface\x12\x1d.google.protobuf.FieldOptions\x18\xc9\xd6\x05 \x01(\tR\x10\x61\x63\x63\x65ptsInterface:7\n\x06scalar\x12\x1d.google.protobuf.FieldOptions\x18\xca\xd6\x05 \x01(\tR\x06scalar:n\n\x11\x64\x65\x63lare_interface\x12\x1c.google.protobuf.FileOptions\x18\xbd\xb3\x30 \x03(\x0b\x32!.cosmos_proto.InterfaceDescriptorR\x10\x64\x65\x63lareInterface:e\n\x0e\x64\x65\x63lare_scalar\x12\x1c.google.protobuf.FileOptions\x18\xbe\xb3\x30 \x03(\x0b\x32\x1e.cosmos_proto.ScalarDescriptorR\rdeclareScalarB-Z+github.com/cosmos/cosmos-proto;cosmos_protob\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos_proto.cosmos_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(implements_interface) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(accepts_interface) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(scalar) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(declare_interface) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(declare_scalar) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z+github.com/cosmos/cosmos-proto;cosmos_proto' + _SCALARTYPE._serialized_start=286 + _SCALARTYPE._serialized_end=374 + _INTERFACEDESCRIPTOR._serialized_start=77 + _INTERFACEDESCRIPTOR._serialized_end=152 + _SCALARDESCRIPTOR._serialized_start=155 + _SCALARDESCRIPTOR._serialized_end=284 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/cosmos_proto/cosmos_pb2.pyi b/nibiru_proto/cosmos_proto/cosmos_pb2.pyi new file mode 100644 index 00000000..36a500bd --- /dev/null +++ b/nibiru_proto/cosmos_proto/cosmos_pb2.pyi @@ -0,0 +1,153 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.internal.extension_dict +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _ScalarType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ScalarTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ScalarType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SCALAR_TYPE_UNSPECIFIED: _ScalarType.ValueType # 0 + SCALAR_TYPE_STRING: _ScalarType.ValueType # 1 + SCALAR_TYPE_BYTES: _ScalarType.ValueType # 2 + +class ScalarType(_ScalarType, metaclass=_ScalarTypeEnumTypeWrapper): ... + +SCALAR_TYPE_UNSPECIFIED: ScalarType.ValueType # 0 +SCALAR_TYPE_STRING: ScalarType.ValueType # 1 +SCALAR_TYPE_BYTES: ScalarType.ValueType # 2 +global___ScalarType = ScalarType + +@typing_extensions.final +class InterfaceDescriptor(google.protobuf.message.Message): + """InterfaceDescriptor describes an interface type to be used with + accepts_interface and implements_interface and declared by declare_interface. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + name: builtins.str + """name is the name of the interface. It should be a short-name (without + a period) such that the fully qualified name of the interface will be + package.name, ex. for the package a.b and interface named C, the + fully-qualified name will be a.b.C. + """ + description: builtins.str + """description is a human-readable description of the interface and its + purpose. + """ + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name"]) -> None: ... + +global___InterfaceDescriptor = InterfaceDescriptor + +@typing_extensions.final +class ScalarDescriptor(google.protobuf.message.Message): + """ScalarDescriptor describes an scalar type to be used with + the scalar field option and declared by declare_scalar. + Scalars extend simple protobuf built-in types with additional + syntax and semantics, for instance to represent big integers. + Scalars should ideally define an encoding such that there is only one + valid syntactical representation for a given semantic meaning, + i.e. the encoding should be deterministic. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + FIELD_TYPE_FIELD_NUMBER: builtins.int + name: builtins.str + """name is the name of the scalar. It should be a short-name (without + a period) such that the fully qualified name of the scalar will be + package.name, ex. for the package a.b and scalar named C, the + fully-qualified name will be a.b.C. + """ + description: builtins.str + """description is a human-readable description of the scalar and its + encoding format. For instance a big integer or decimal scalar should + specify precisely the expected encoding format. + """ + @property + def field_type(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ScalarType.ValueType]: + """field_type is the type of field with which this scalar can be used. + Scalars can be used with one and only one type of field so that + encoding standards and simple and clear. Currently only string and + bytes fields are supported for scalars. + """ + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str = ..., + field_type: collections.abc.Iterable[global___ScalarType.ValueType] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "field_type", b"field_type", "name", b"name"]) -> None: ... + +global___ScalarDescriptor = ScalarDescriptor + +IMPLEMENTS_INTERFACE_FIELD_NUMBER: builtins.int +ACCEPTS_INTERFACE_FIELD_NUMBER: builtins.int +SCALAR_FIELD_NUMBER: builtins.int +DECLARE_INTERFACE_FIELD_NUMBER: builtins.int +DECLARE_SCALAR_FIELD_NUMBER: builtins.int +implements_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]] +"""implements_interface is used to indicate the type name of the interface +that a message implements so that it can be used in google.protobuf.Any +fields that accept that interface. A message can implement multiple +interfaces. Interfaces should be declared using a declare_interface +file option. +""" +accepts_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +"""accepts_interface is used to annotate that a google.protobuf.Any +field accepts messages that implement the specified interface. +Interfaces should be declared using a declare_interface file option. +""" +scalar: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +"""scalar is used to indicate that this field follows the formatting defined +by the named scalar which should be declared with declare_scalar. Code +generators may choose to use this information to map this field to a +language-specific type representing the scalar. +""" +declare_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceDescriptor]] +"""declare_interface declares an interface type to be used with +accepts_interface and implements_interface. Interface names are +expected to follow the following convention such that their declaration +can be discovered by tools: for a given interface type a.b.C, it is +expected that the declaration will be found in a protobuf file named +a/b/interfaces.proto in the file descriptor set. +""" +declare_scalar: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScalarDescriptor]] +"""declare_scalar declares a scalar type to be used with +the scalar field option. Scalar names are +expected to follow the following convention such that their declaration +can be discovered by tools: for a given scalar type a.b.C, it is +expected that the declaration will be found in a protobuf file named +a/b/scalars.proto in the file descriptor set. +""" diff --git a/nibiru_proto/cosmos_proto/cosmos_pb2_grpc.py b/nibiru_proto/cosmos_proto/cosmos_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/cosmos_proto/cosmos_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/gogoproto/gogo_pb2.py b/nibiru_proto/gogoproto/gogo_pb2.py new file mode 100644 index 00000000..ca9ad436 --- /dev/null +++ b/nibiru_proto/gogoproto/gogo_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: gogoproto/gogo.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a google/protobuf/descriptor.proto:N\n\x13goproto_enum_prefix\x12\x1c.google.protobuf.EnumOptions\x18\xb1\xe4\x03 \x01(\x08R\x11goprotoEnumPrefix:R\n\x15goproto_enum_stringer\x12\x1c.google.protobuf.EnumOptions\x18\xc5\xe4\x03 \x01(\x08R\x13goprotoEnumStringer:C\n\renum_stringer\x12\x1c.google.protobuf.EnumOptions\x18\xc6\xe4\x03 \x01(\x08R\x0c\x65numStringer:G\n\x0f\x65num_customname\x12\x1c.google.protobuf.EnumOptions\x18\xc7\xe4\x03 \x01(\tR\x0e\x65numCustomname::\n\x08\x65numdecl\x12\x1c.google.protobuf.EnumOptions\x18\xc8\xe4\x03 \x01(\x08R\x08\x65numdecl:V\n\x14\x65numvalue_customname\x12!.google.protobuf.EnumValueOptions\x18\xd1\x83\x04 \x01(\tR\x13\x65numvalueCustomname:N\n\x13goproto_getters_all\x12\x1c.google.protobuf.FileOptions\x18\x99\xec\x03 \x01(\x08R\x11goprotoGettersAll:U\n\x17goproto_enum_prefix_all\x12\x1c.google.protobuf.FileOptions\x18\x9a\xec\x03 \x01(\x08R\x14goprotoEnumPrefixAll:P\n\x14goproto_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\x9b\xec\x03 \x01(\x08R\x12goprotoStringerAll:J\n\x11verbose_equal_all\x12\x1c.google.protobuf.FileOptions\x18\x9c\xec\x03 \x01(\x08R\x0fverboseEqualAll:9\n\x08\x66\x61\x63\x65_all\x12\x1c.google.protobuf.FileOptions\x18\x9d\xec\x03 \x01(\x08R\x07\x66\x61\x63\x65\x41ll:A\n\x0cgostring_all\x12\x1c.google.protobuf.FileOptions\x18\x9e\xec\x03 \x01(\x08R\x0bgostringAll:A\n\x0cpopulate_all\x12\x1c.google.protobuf.FileOptions\x18\x9f\xec\x03 \x01(\x08R\x0bpopulateAll:A\n\x0cstringer_all\x12\x1c.google.protobuf.FileOptions\x18\xa0\xec\x03 \x01(\x08R\x0bstringerAll:?\n\x0bonlyone_all\x12\x1c.google.protobuf.FileOptions\x18\xa1\xec\x03 \x01(\x08R\nonlyoneAll:;\n\tequal_all\x12\x1c.google.protobuf.FileOptions\x18\xa5\xec\x03 \x01(\x08R\x08\x65qualAll:G\n\x0f\x64\x65scription_all\x12\x1c.google.protobuf.FileOptions\x18\xa6\xec\x03 \x01(\x08R\x0e\x64\x65scriptionAll:?\n\x0btestgen_all\x12\x1c.google.protobuf.FileOptions\x18\xa7\xec\x03 \x01(\x08R\ntestgenAll:A\n\x0c\x62\x65nchgen_all\x12\x1c.google.protobuf.FileOptions\x18\xa8\xec\x03 \x01(\x08R\x0b\x62\x65nchgenAll:C\n\rmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xa9\xec\x03 \x01(\x08R\x0cmarshalerAll:G\n\x0funmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xaa\xec\x03 \x01(\x08R\x0eunmarshalerAll:P\n\x14stable_marshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xab\xec\x03 \x01(\x08R\x12stableMarshalerAll:;\n\tsizer_all\x12\x1c.google.protobuf.FileOptions\x18\xac\xec\x03 \x01(\x08R\x08sizerAll:Y\n\x19goproto_enum_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\xad\xec\x03 \x01(\x08R\x16goprotoEnumStringerAll:J\n\x11\x65num_stringer_all\x12\x1c.google.protobuf.FileOptions\x18\xae\xec\x03 \x01(\x08R\x0f\x65numStringerAll:P\n\x14unsafe_marshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xaf\xec\x03 \x01(\x08R\x12unsafeMarshalerAll:T\n\x16unsafe_unmarshaler_all\x12\x1c.google.protobuf.FileOptions\x18\xb0\xec\x03 \x01(\x08R\x14unsafeUnmarshalerAll:[\n\x1agoproto_extensions_map_all\x12\x1c.google.protobuf.FileOptions\x18\xb1\xec\x03 \x01(\x08R\x17goprotoExtensionsMapAll:X\n\x18goproto_unrecognized_all\x12\x1c.google.protobuf.FileOptions\x18\xb2\xec\x03 \x01(\x08R\x16goprotoUnrecognizedAll:I\n\x10gogoproto_import\x12\x1c.google.protobuf.FileOptions\x18\xb3\xec\x03 \x01(\x08R\x0fgogoprotoImport:E\n\x0eprotosizer_all\x12\x1c.google.protobuf.FileOptions\x18\xb4\xec\x03 \x01(\x08R\rprotosizerAll:?\n\x0b\x63ompare_all\x12\x1c.google.protobuf.FileOptions\x18\xb5\xec\x03 \x01(\x08R\ncompareAll:A\n\x0ctypedecl_all\x12\x1c.google.protobuf.FileOptions\x18\xb6\xec\x03 \x01(\x08R\x0btypedeclAll:A\n\x0c\x65numdecl_all\x12\x1c.google.protobuf.FileOptions\x18\xb7\xec\x03 \x01(\x08R\x0b\x65numdeclAll:Q\n\x14goproto_registration\x12\x1c.google.protobuf.FileOptions\x18\xb8\xec\x03 \x01(\x08R\x13goprotoRegistration:G\n\x0fmessagename_all\x12\x1c.google.protobuf.FileOptions\x18\xb9\xec\x03 \x01(\x08R\x0emessagenameAll:R\n\x15goproto_sizecache_all\x12\x1c.google.protobuf.FileOptions\x18\xba\xec\x03 \x01(\x08R\x13goprotoSizecacheAll:N\n\x13goproto_unkeyed_all\x12\x1c.google.protobuf.FileOptions\x18\xbb\xec\x03 \x01(\x08R\x11goprotoUnkeyedAll:J\n\x0fgoproto_getters\x12\x1f.google.protobuf.MessageOptions\x18\x81\xf4\x03 \x01(\x08R\x0egoprotoGetters:L\n\x10goproto_stringer\x12\x1f.google.protobuf.MessageOptions\x18\x83\xf4\x03 \x01(\x08R\x0fgoprotoStringer:F\n\rverbose_equal\x12\x1f.google.protobuf.MessageOptions\x18\x84\xf4\x03 \x01(\x08R\x0cverboseEqual:5\n\x04\x66\x61\x63\x65\x12\x1f.google.protobuf.MessageOptions\x18\x85\xf4\x03 \x01(\x08R\x04\x66\x61\x63\x65:=\n\x08gostring\x12\x1f.google.protobuf.MessageOptions\x18\x86\xf4\x03 \x01(\x08R\x08gostring:=\n\x08populate\x12\x1f.google.protobuf.MessageOptions\x18\x87\xf4\x03 \x01(\x08R\x08populate:=\n\x08stringer\x12\x1f.google.protobuf.MessageOptions\x18\xc0\x8b\x04 \x01(\x08R\x08stringer:;\n\x07onlyone\x12\x1f.google.protobuf.MessageOptions\x18\x89\xf4\x03 \x01(\x08R\x07onlyone:7\n\x05\x65qual\x12\x1f.google.protobuf.MessageOptions\x18\x8d\xf4\x03 \x01(\x08R\x05\x65qual:C\n\x0b\x64\x65scription\x12\x1f.google.protobuf.MessageOptions\x18\x8e\xf4\x03 \x01(\x08R\x0b\x64\x65scription:;\n\x07testgen\x12\x1f.google.protobuf.MessageOptions\x18\x8f\xf4\x03 \x01(\x08R\x07testgen:=\n\x08\x62\x65nchgen\x12\x1f.google.protobuf.MessageOptions\x18\x90\xf4\x03 \x01(\x08R\x08\x62\x65nchgen:?\n\tmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x91\xf4\x03 \x01(\x08R\tmarshaler:C\n\x0bunmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x92\xf4\x03 \x01(\x08R\x0bunmarshaler:L\n\x10stable_marshaler\x12\x1f.google.protobuf.MessageOptions\x18\x93\xf4\x03 \x01(\x08R\x0fstableMarshaler:7\n\x05sizer\x12\x1f.google.protobuf.MessageOptions\x18\x94\xf4\x03 \x01(\x08R\x05sizer:L\n\x10unsafe_marshaler\x12\x1f.google.protobuf.MessageOptions\x18\x97\xf4\x03 \x01(\x08R\x0funsafeMarshaler:P\n\x12unsafe_unmarshaler\x12\x1f.google.protobuf.MessageOptions\x18\x98\xf4\x03 \x01(\x08R\x11unsafeUnmarshaler:W\n\x16goproto_extensions_map\x12\x1f.google.protobuf.MessageOptions\x18\x99\xf4\x03 \x01(\x08R\x14goprotoExtensionsMap:T\n\x14goproto_unrecognized\x12\x1f.google.protobuf.MessageOptions\x18\x9a\xf4\x03 \x01(\x08R\x13goprotoUnrecognized:A\n\nprotosizer\x12\x1f.google.protobuf.MessageOptions\x18\x9c\xf4\x03 \x01(\x08R\nprotosizer:;\n\x07\x63ompare\x12\x1f.google.protobuf.MessageOptions\x18\x9d\xf4\x03 \x01(\x08R\x07\x63ompare:=\n\x08typedecl\x12\x1f.google.protobuf.MessageOptions\x18\x9e\xf4\x03 \x01(\x08R\x08typedecl:C\n\x0bmessagename\x12\x1f.google.protobuf.MessageOptions\x18\xa1\xf4\x03 \x01(\x08R\x0bmessagename:N\n\x11goproto_sizecache\x12\x1f.google.protobuf.MessageOptions\x18\xa2\xf4\x03 \x01(\x08R\x10goprotoSizecache:J\n\x0fgoproto_unkeyed\x12\x1f.google.protobuf.MessageOptions\x18\xa3\xf4\x03 \x01(\x08R\x0egoprotoUnkeyed:;\n\x08nullable\x12\x1d.google.protobuf.FieldOptions\x18\xe9\xfb\x03 \x01(\x08R\x08nullable:5\n\x05\x65mbed\x12\x1d.google.protobuf.FieldOptions\x18\xea\xfb\x03 \x01(\x08R\x05\x65mbed:?\n\ncustomtype\x12\x1d.google.protobuf.FieldOptions\x18\xeb\xfb\x03 \x01(\tR\ncustomtype:?\n\ncustomname\x12\x1d.google.protobuf.FieldOptions\x18\xec\xfb\x03 \x01(\tR\ncustomname:9\n\x07jsontag\x12\x1d.google.protobuf.FieldOptions\x18\xed\xfb\x03 \x01(\tR\x07jsontag:;\n\x08moretags\x12\x1d.google.protobuf.FieldOptions\x18\xee\xfb\x03 \x01(\tR\x08moretags:;\n\x08\x63\x61sttype\x12\x1d.google.protobuf.FieldOptions\x18\xef\xfb\x03 \x01(\tR\x08\x63\x61sttype:9\n\x07\x63\x61stkey\x12\x1d.google.protobuf.FieldOptions\x18\xf0\xfb\x03 \x01(\tR\x07\x63\x61stkey:=\n\tcastvalue\x12\x1d.google.protobuf.FieldOptions\x18\xf1\xfb\x03 \x01(\tR\tcastvalue:9\n\x07stdtime\x12\x1d.google.protobuf.FieldOptions\x18\xf2\xfb\x03 \x01(\x08R\x07stdtime:A\n\x0bstdduration\x12\x1d.google.protobuf.FieldOptions\x18\xf3\xfb\x03 \x01(\x08R\x0bstdduration:?\n\nwktpointer\x12\x1d.google.protobuf.FieldOptions\x18\xf4\xfb\x03 \x01(\x08R\nwktpointer:C\n\x0c\x63\x61strepeated\x12\x1d.google.protobuf.FieldOptions\x18\xf5\xfb\x03 \x01(\tR\x0c\x63\x61strepeatedBH\n\x13\x63om.google.protobufB\nGoGoProtosZ%github.com/cosmos/gogoproto/gogoproto') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'gogoproto.gogo_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(goproto_enum_prefix) + google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(goproto_enum_stringer) + google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enum_stringer) + google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enum_customname) + google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(enumdecl) + google_dot_protobuf_dot_descriptor__pb2.EnumValueOptions.RegisterExtension(enumvalue_customname) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_getters_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_enum_prefix_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_stringer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(verbose_equal_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(face_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gostring_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(populate_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(stringer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(onlyone_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(equal_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(description_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(testgen_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(benchgen_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(marshaler_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unmarshaler_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(stable_marshaler_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(sizer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_enum_stringer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(enum_stringer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unsafe_marshaler_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(unsafe_unmarshaler_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_extensions_map_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_unrecognized_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gogoproto_import) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(protosizer_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(compare_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(typedecl_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(enumdecl_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_registration) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(messagename_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_sizecache_all) + google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(goproto_unkeyed_all) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_getters) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_stringer) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(verbose_equal) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(face) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(gostring) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(populate) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(stringer) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(onlyone) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(equal) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(description) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(testgen) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(benchgen) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(marshaler) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unmarshaler) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(stable_marshaler) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(sizer) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unsafe_marshaler) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(unsafe_unmarshaler) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_extensions_map) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_unrecognized) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(protosizer) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(compare) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(typedecl) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(messagename) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_sizecache) + google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(goproto_unkeyed) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(nullable) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(embed) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(customtype) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(customname) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(jsontag) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(moretags) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(casttype) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(castkey) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(castvalue) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(stdtime) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(stdduration) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(wktpointer) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(castrepeated) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\023com.google.protobufB\nGoGoProtosZ%github.com/cosmos/gogoproto/gogoproto' +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/gogoproto/gogo_pb2.pyi b/nibiru_proto/gogoproto/gogo_pb2.pyi new file mode 100644 index 00000000..720fb7e3 --- /dev/null +++ b/nibiru_proto/gogoproto/gogo_pb2.pyi @@ -0,0 +1,192 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Protocol Buffers for Go with Gadgets + +Copyright (c) 2013, The GoGo Authors. All rights reserved. +http://github.com/cosmos/gogoproto + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +GOPROTO_ENUM_PREFIX_FIELD_NUMBER: builtins.int +GOPROTO_ENUM_STRINGER_FIELD_NUMBER: builtins.int +ENUM_STRINGER_FIELD_NUMBER: builtins.int +ENUM_CUSTOMNAME_FIELD_NUMBER: builtins.int +ENUMDECL_FIELD_NUMBER: builtins.int +ENUMVALUE_CUSTOMNAME_FIELD_NUMBER: builtins.int +GOPROTO_GETTERS_ALL_FIELD_NUMBER: builtins.int +GOPROTO_ENUM_PREFIX_ALL_FIELD_NUMBER: builtins.int +GOPROTO_STRINGER_ALL_FIELD_NUMBER: builtins.int +VERBOSE_EQUAL_ALL_FIELD_NUMBER: builtins.int +FACE_ALL_FIELD_NUMBER: builtins.int +GOSTRING_ALL_FIELD_NUMBER: builtins.int +POPULATE_ALL_FIELD_NUMBER: builtins.int +STRINGER_ALL_FIELD_NUMBER: builtins.int +ONLYONE_ALL_FIELD_NUMBER: builtins.int +EQUAL_ALL_FIELD_NUMBER: builtins.int +DESCRIPTION_ALL_FIELD_NUMBER: builtins.int +TESTGEN_ALL_FIELD_NUMBER: builtins.int +BENCHGEN_ALL_FIELD_NUMBER: builtins.int +MARSHALER_ALL_FIELD_NUMBER: builtins.int +UNMARSHALER_ALL_FIELD_NUMBER: builtins.int +STABLE_MARSHALER_ALL_FIELD_NUMBER: builtins.int +SIZER_ALL_FIELD_NUMBER: builtins.int +GOPROTO_ENUM_STRINGER_ALL_FIELD_NUMBER: builtins.int +ENUM_STRINGER_ALL_FIELD_NUMBER: builtins.int +UNSAFE_MARSHALER_ALL_FIELD_NUMBER: builtins.int +UNSAFE_UNMARSHALER_ALL_FIELD_NUMBER: builtins.int +GOPROTO_EXTENSIONS_MAP_ALL_FIELD_NUMBER: builtins.int +GOPROTO_UNRECOGNIZED_ALL_FIELD_NUMBER: builtins.int +GOGOPROTO_IMPORT_FIELD_NUMBER: builtins.int +PROTOSIZER_ALL_FIELD_NUMBER: builtins.int +COMPARE_ALL_FIELD_NUMBER: builtins.int +TYPEDECL_ALL_FIELD_NUMBER: builtins.int +ENUMDECL_ALL_FIELD_NUMBER: builtins.int +GOPROTO_REGISTRATION_FIELD_NUMBER: builtins.int +MESSAGENAME_ALL_FIELD_NUMBER: builtins.int +GOPROTO_SIZECACHE_ALL_FIELD_NUMBER: builtins.int +GOPROTO_UNKEYED_ALL_FIELD_NUMBER: builtins.int +GOPROTO_GETTERS_FIELD_NUMBER: builtins.int +GOPROTO_STRINGER_FIELD_NUMBER: builtins.int +VERBOSE_EQUAL_FIELD_NUMBER: builtins.int +FACE_FIELD_NUMBER: builtins.int +GOSTRING_FIELD_NUMBER: builtins.int +POPULATE_FIELD_NUMBER: builtins.int +STRINGER_FIELD_NUMBER: builtins.int +ONLYONE_FIELD_NUMBER: builtins.int +EQUAL_FIELD_NUMBER: builtins.int +DESCRIPTION_FIELD_NUMBER: builtins.int +TESTGEN_FIELD_NUMBER: builtins.int +BENCHGEN_FIELD_NUMBER: builtins.int +MARSHALER_FIELD_NUMBER: builtins.int +UNMARSHALER_FIELD_NUMBER: builtins.int +STABLE_MARSHALER_FIELD_NUMBER: builtins.int +SIZER_FIELD_NUMBER: builtins.int +UNSAFE_MARSHALER_FIELD_NUMBER: builtins.int +UNSAFE_UNMARSHALER_FIELD_NUMBER: builtins.int +GOPROTO_EXTENSIONS_MAP_FIELD_NUMBER: builtins.int +GOPROTO_UNRECOGNIZED_FIELD_NUMBER: builtins.int +PROTOSIZER_FIELD_NUMBER: builtins.int +COMPARE_FIELD_NUMBER: builtins.int +TYPEDECL_FIELD_NUMBER: builtins.int +MESSAGENAME_FIELD_NUMBER: builtins.int +GOPROTO_SIZECACHE_FIELD_NUMBER: builtins.int +GOPROTO_UNKEYED_FIELD_NUMBER: builtins.int +NULLABLE_FIELD_NUMBER: builtins.int +EMBED_FIELD_NUMBER: builtins.int +CUSTOMTYPE_FIELD_NUMBER: builtins.int +CUSTOMNAME_FIELD_NUMBER: builtins.int +JSONTAG_FIELD_NUMBER: builtins.int +MORETAGS_FIELD_NUMBER: builtins.int +CASTTYPE_FIELD_NUMBER: builtins.int +CASTKEY_FIELD_NUMBER: builtins.int +CASTVALUE_FIELD_NUMBER: builtins.int +STDTIME_FIELD_NUMBER: builtins.int +STDDURATION_FIELD_NUMBER: builtins.int +WKTPOINTER_FIELD_NUMBER: builtins.int +CASTREPEATED_FIELD_NUMBER: builtins.int +goproto_enum_prefix: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] +goproto_enum_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] +enum_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] +enum_customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.str] +enumdecl: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] +enumvalue_customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumValueOptions, builtins.str] +goproto_getters_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_enum_prefix_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +verbose_equal_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +face_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +gostring_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +populate_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +onlyone_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +equal_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +description_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +testgen_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +benchgen_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +unmarshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +stable_marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +sizer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_enum_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +enum_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +unsafe_marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +unsafe_unmarshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_extensions_map_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_unrecognized_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +gogoproto_import: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +protosizer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +compare_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +typedecl_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +enumdecl_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_registration: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +messagename_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_sizecache_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_unkeyed_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] +goproto_getters: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +goproto_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +verbose_equal: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +face: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +gostring: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +populate: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +onlyone: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +equal: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +description: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +testgen: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +benchgen: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +unmarshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +stable_marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +sizer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +unsafe_marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +unsafe_unmarshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +goproto_extensions_map: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +goproto_unrecognized: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +protosizer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +compare: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +typedecl: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +messagename: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +goproto_sizecache: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +goproto_unkeyed: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] +nullable: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] +embed: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] +customtype: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +jsontag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +moretags: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +casttype: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +castkey: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +castvalue: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +stdtime: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] +stdduration: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] +wktpointer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] +castrepeated: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] diff --git a/nibiru_proto/gogoproto/gogo_pb2_grpc.py b/nibiru_proto/gogoproto/gogo_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/gogoproto/gogo_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/google/api/annotations_pb2.py b/nibiru_proto/google/api/annotations_pb2.py new file mode 100644 index 00000000..0c59221d --- /dev/null +++ b/nibiru_proto/google/api/annotations_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/api/annotations.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import http_pb2 as google_dot_api_dot_http__pb2 +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleR\x04httpBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.annotations_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI' +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/google/api/annotations_pb2.pyi b/nibiru_proto/google/api/annotations_pb2.pyi new file mode 100644 index 00000000..dffbc29a --- /dev/null +++ b/nibiru_proto/google/api/annotations_pb2.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2015 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import google.api.http_pb2 +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +HTTP_FIELD_NUMBER: builtins.int +http: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, google.api.http_pb2.HttpRule] +"""See `HttpRule`.""" diff --git a/nibiru_proto/google/api/annotations_pb2_grpc.py b/nibiru_proto/google/api/annotations_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/google/api/annotations_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/google/api/http_pb2.py b/nibiru_proto/google/api/http_pb2.py new file mode 100644 index 00000000..1ac08af1 --- /dev/null +++ b/nibiru_proto/google/api/http_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/api/http.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRuleR\x05rules\x12\x45\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08R\x1c\x66ullyDecodeReservedExpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12\x12\n\x03get\x18\x02 \x01(\tH\x00R\x03get\x12\x12\n\x03put\x18\x03 \x01(\tH\x00R\x03put\x12\x14\n\x04post\x18\x04 \x01(\tH\x00R\x04post\x12\x18\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00R\x06\x64\x65lete\x12\x16\n\x05patch\x18\x06 \x01(\tH\x00R\x05patch\x12\x37\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00R\x06\x63ustom\x12\x12\n\x04\x62ody\x18\x07 \x01(\tR\x04\x62ody\x12#\n\rresponse_body\x18\x0c \x01(\tR\x0cresponseBody\x12\x45\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleR\x12\x61\x64\x64itionalBindingsB\t\n\x07pattern\";\n\x11\x43ustomHttpPattern\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n\x04path\x18\x02 \x01(\tR\x04pathBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.http_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI' + _HTTP._serialized_start=37 + _HTTP._serialized_end=158 + _HTTPRULE._serialized_start=161 + _HTTPRULE._serialized_end=507 + _CUSTOMHTTPPATTERN._serialized_start=509 + _CUSTOMHTTPPATTERN._serialized_end=568 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/google/api/http_pb2.pyi b/nibiru_proto/google/api/http_pb2.pyi new file mode 100644 index 00000000..b44e41f5 --- /dev/null +++ b/nibiru_proto/google/api/http_pb2.pyi @@ -0,0 +1,438 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2015 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +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 Http(google.protobuf.message.Message): + """Defines the HTTP configuration for an API service. It contains a list of + [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + to one or more HTTP REST API methods. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULES_FIELD_NUMBER: builtins.int + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: builtins.int + @property + def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: + """A list of HTTP configuration rules that apply to individual API methods. + + **NOTE:** All service configuration rules follow "last one wins" order. + """ + fully_decode_reserved_expansion: builtins.bool + """When set to true, URL path parameters will be fully URI-decoded except in + cases of single segment matches in reserved expansion, where "%2F" will be + left encoded. + + The default behavior is to not decode RFC 6570 reserved characters in multi + segment matches. + """ + def __init__( + self, + *, + rules: collections.abc.Iterable[global___HttpRule] | None = ..., + fully_decode_reserved_expansion: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fully_decode_reserved_expansion", b"fully_decode_reserved_expansion", "rules", b"rules"]) -> None: ... + +global___Http = Http + +@typing_extensions.final +class HttpRule(google.protobuf.message.Message): + """# gRPC Transcoding + + gRPC Transcoding is a feature for mapping between a gRPC method and one or + more HTTP REST endpoints. It allows developers to build a single API service + that supports both gRPC APIs and REST APIs. Many systems, including [Google + APIs](https://github.com/googleapis/googleapis), + [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + and use it for large scale production services. + + `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + how different portions of the gRPC request message are mapped to the URL + path, URL query parameters, and HTTP request body. It also controls how the + gRPC response message is mapped to the HTTP response body. `HttpRule` is + typically specified as an `google.api.http` annotation on the gRPC method. + + Each mapping specifies a URL path template and an HTTP method. The path + template may refer to one or more fields in the gRPC request message, as long + as each field is a non-repeated field with a primitive (non-message) type. + The path template controls how fields of the request message are mapped to + the URL path. + + Example: + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http) = { + get: "/v1/{name=messages/*}" + }; + } + } + message GetMessageRequest { + string name = 1; // Mapped to URL path. + } + message Message { + string text = 1; // The resource content. + } + + This enables an HTTP REST to gRPC mapping as below: + + HTTP | gRPC + -----|----- + `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + + Any fields in the request message which are not bound by the path template + automatically become HTTP query parameters if there is no HTTP request body. + For example: + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http) = { + get:"/v1/messages/{message_id}" + }; + } + } + message GetMessageRequest { + message SubMessage { + string subfield = 1; + } + string message_id = 1; // Mapped to URL path. + int64 revision = 2; // Mapped to URL query parameter `revision`. + SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + } + + This enables a HTTP JSON to RPC mapping as below: + + HTTP | gRPC + -----|----- + `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + "foo"))` + + Note that fields which are mapped to URL query parameters must have a + primitive type or a repeated primitive type or a non-repeated message type. + In the case of a repeated type, the parameter can be repeated in the URL + as `...?param=A¶m=B`. In the case of a message type, each field of the + message is mapped to a separate parameter, such as + `...?foo.a=A&foo.b=B&foo.c=C`. + + For HTTP methods that allow a request body, the `body` field + specifies the mapping. Consider a REST update method on the + message resource collection: + + service Messaging { + rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + option (google.api.http) = { + patch: "/v1/messages/{message_id}" + body: "message" + }; + } + } + message UpdateMessageRequest { + string message_id = 1; // mapped to the URL + Message message = 2; // mapped to the body + } + + The following HTTP JSON to RPC mapping is enabled, where the + representation of the JSON in the request body is determined by + protos JSON encoding: + + HTTP | gRPC + -----|----- + `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + "123456" message { text: "Hi!" })` + + The special name `*` can be used in the body mapping to define that + every field not bound by the path template should be mapped to the + request body. This enables the following alternative definition of + the update method: + + service Messaging { + rpc UpdateMessage(Message) returns (Message) { + option (google.api.http) = { + patch: "/v1/messages/{message_id}" + body: "*" + }; + } + } + message Message { + string message_id = 1; + string text = 2; + } + + + The following HTTP JSON to RPC mapping is enabled: + + HTTP | gRPC + -----|----- + `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + "123456" text: "Hi!")` + + Note that when using `*` in the body mapping, it is not possible to + have HTTP parameters, as all fields not bound by the path end in + the body. This makes this option more rarely used in practice when + defining REST APIs. The common usage of `*` is in custom methods + which don't use the URL at all for transferring data. + + It is possible to define multiple HTTP methods for one RPC by using + the `additional_bindings` option. Example: + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http) = { + get: "/v1/messages/{message_id}" + additional_bindings { + get: "/v1/users/{user_id}/messages/{message_id}" + } + }; + } + } + message GetMessageRequest { + string message_id = 1; + string user_id = 2; + } + + This enables the following two alternative HTTP JSON to RPC mappings: + + HTTP | gRPC + -----|----- + `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + "123456")` + + ## Rules for HTTP mapping + + 1. Leaf request fields (recursive expansion nested messages in the request + message) are classified into three categories: + - Fields referred by the path template. They are passed via the URL path. + - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP + request body. + - All other fields are passed via the URL query parameters, and the + parameter name is the field path in the request message. A repeated + field can be represented as multiple query parameters under the same + name. + 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields + are passed via URL path and HTTP request body. + 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all + fields are passed via URL path and URL query parameters. + + ### Path template syntax + + Template = "/" Segments [ Verb ] ; + Segments = Segment { "/" Segment } ; + Segment = "*" | "**" | LITERAL | Variable ; + Variable = "{" FieldPath [ "=" Segments ] "}" ; + FieldPath = IDENT { "." IDENT } ; + Verb = ":" LITERAL ; + + The syntax `*` matches a single URL path segment. The syntax `**` matches + zero or more URL path segments, which must be the last part of the URL path + except the `Verb`. + + The syntax `Variable` matches part of the URL path as specified by its + template. A variable template must not contain other variables. If a variable + matches a single path segment, its template may be omitted, e.g. `{var}` + is equivalent to `{var=*}`. + + The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + contains any reserved character, such characters should be percent-encoded + before the matching. + + If a variable contains exactly one path segment, such as `"{var}"` or + `"{var=*}"`, when such a variable is expanded into a URL path on the client + side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + server side does the reverse decoding. Such variables show up in the + [Discovery + Document](https://developers.google.com/discovery/v1/reference/apis) as + `{var}`. + + If a variable contains multiple path segments, such as `"{var=foo/*}"` + or `"{var=**}"`, when such a variable is expanded into a URL path on the + client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + The server side does the reverse decoding, except "%2F" and "%2f" are left + unchanged. Such variables show up in the + [Discovery + Document](https://developers.google.com/discovery/v1/reference/apis) as + `{+var}`. + + ## Using gRPC API Service Configuration + + gRPC API Service Configuration (service config) is a configuration language + for configuring a gRPC service to become a user-facing product. The + service config is simply the YAML representation of the `google.api.Service` + proto message. + + As an alternative to annotating your proto file, you can configure gRPC + transcoding in your service config YAML files. You do this by specifying a + `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + effect as the proto annotation. This can be particularly useful if you + have a proto that is reused in multiple services. Note that any transcoding + specified in the service config will override any matching transcoding + configuration in the proto. + + Example: + + http: + rules: + # Selects a gRPC method and applies HttpRule to it. + - selector: example.v1.Messaging.GetMessage + get: /v1/messages/{message_id}/{sub.subfield} + + ## Special notes + + When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + proto to JSON conversion must follow the [proto3 + specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + + While the single segment variable follows the semantics of + [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + Expansion, the multi segment variable **does not** follow RFC 6570 Section + 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + does not expand special characters like `?` and `#`, which would lead + to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + for multi segment variables. + + The path variables **must not** refer to any repeated or mapped field, + because client libraries are not capable of handling such variable expansion. + + The path variables **must not** capture the leading "/" character. The reason + is that the most common use case "{var}" does not capture the leading "/" + character. For consistency, all path variables must share the same behavior. + + Repeated message fields must not be mapped to URL query parameters, because + no client library can support such complicated mapping. + + If an API needs to use a JSON array for request or response body, it can map + the request or response body to a repeated field. However, some gRPC + Transcoding implementations may not support this feature. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SELECTOR_FIELD_NUMBER: builtins.int + GET_FIELD_NUMBER: builtins.int + PUT_FIELD_NUMBER: builtins.int + POST_FIELD_NUMBER: builtins.int + DELETE_FIELD_NUMBER: builtins.int + PATCH_FIELD_NUMBER: builtins.int + CUSTOM_FIELD_NUMBER: builtins.int + BODY_FIELD_NUMBER: builtins.int + RESPONSE_BODY_FIELD_NUMBER: builtins.int + ADDITIONAL_BINDINGS_FIELD_NUMBER: builtins.int + selector: builtins.str + """Selects a method to which this rule applies. + + Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + """ + get: builtins.str + """Maps to HTTP GET. Used for listing and getting information about + resources. + """ + put: builtins.str + """Maps to HTTP PUT. Used for replacing a resource.""" + post: builtins.str + """Maps to HTTP POST. Used for creating a resource or performing an action.""" + delete: builtins.str + """Maps to HTTP DELETE. Used for deleting a resource.""" + patch: builtins.str + """Maps to HTTP PATCH. Used for updating a resource.""" + @property + def custom(self) -> global___CustomHttpPattern: + """The custom pattern is used for specifying an HTTP method that is not + included in the `pattern` field, such as HEAD, or "*" to leave the + HTTP method unspecified for this rule. The wild-card rule is useful + for services that provide content to Web (HTML) clients. + """ + body: builtins.str + """The name of the request field whose value is mapped to the HTTP request + body, or `*` for mapping all request fields not captured by the path + pattern to the HTTP body, or omitted for not having any HTTP request body. + + NOTE: the referred field must be present at the top-level of the request + message type. + """ + response_body: builtins.str + """Optional. The name of the response field whose value is mapped to the HTTP + response body. When omitted, the entire response message will be used + as the HTTP response body. + + NOTE: The referred field must be present at the top-level of the response + message type. + """ + @property + def additional_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: + """Additional HTTP bindings for the selector. Nested bindings must + not contain an `additional_bindings` field themselves (that is, + the nesting may only be one level deep). + """ + def __init__( + self, + *, + selector: builtins.str = ..., + get: builtins.str = ..., + put: builtins.str = ..., + post: builtins.str = ..., + delete: builtins.str = ..., + patch: builtins.str = ..., + custom: global___CustomHttpPattern | None = ..., + body: builtins.str = ..., + response_body: builtins.str = ..., + additional_bindings: collections.abc.Iterable[global___HttpRule] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["custom", b"custom", "delete", b"delete", "get", b"get", "patch", b"patch", "pattern", b"pattern", "post", b"post", "put", b"put"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["additional_bindings", b"additional_bindings", "body", b"body", "custom", b"custom", "delete", b"delete", "get", b"get", "patch", b"patch", "pattern", b"pattern", "post", b"post", "put", b"put", "response_body", b"response_body", "selector", b"selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["pattern", b"pattern"]) -> typing_extensions.Literal["get", "put", "post", "delete", "patch", "custom"] | None: ... + +global___HttpRule = HttpRule + +@typing_extensions.final +class CustomHttpPattern(google.protobuf.message.Message): + """A custom pattern is used for defining custom HTTP verb.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KIND_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + kind: builtins.str + """The name of this custom HTTP verb.""" + path: builtins.str + """The path matched by this custom verb.""" + def __init__( + self, + *, + kind: builtins.str = ..., + path: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "path", b"path"]) -> None: ... + +global___CustomHttpPattern = CustomHttpPattern diff --git a/nibiru_proto/google/api/http_pb2_grpc.py b/nibiru_proto/google/api/http_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/google/api/http_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/__init__.py b/nibiru_proto/nibiru/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/epochs/__init__.py b/nibiru_proto/nibiru/epochs/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/epochs/v1/__init__.py b/nibiru_proto/nibiru/epochs/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/epochs/v1/event_pb2.py b/nibiru_proto/nibiru/epochs/v1/event_pb2.py new file mode 100644 index 00000000..f4a98363 --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/event_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/epochs/v1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/epochs/v1/event.proto\x12\x10nibiru.epochs.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\x01\n\x0f\x45ventEpochStart\x12!\n\x0c\x65poch_number\x18\x01 \x01(\x04R\x0b\x65pochNumber\x12N\n\x10\x65poch_start_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x0e\x65pochStartTime\"2\n\rEventEpochEnd\x12!\n\x0c\x65poch_number\x18\x01 \x01(\x04R\x0b\x65pochNumberB.Z,github.com/NibiruChain/nibiru/x/epochs/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.epochs.v1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/epochs/types' + _EVENTEPOCHSTART.fields_by_name['epoch_start_time']._options = None + _EVENTEPOCHSTART.fields_by_name['epoch_start_time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _EVENTEPOCHSTART._serialized_start=106 + _EVENTEPOCHSTART._serialized_end=238 + _EVENTEPOCHEND._serialized_start=240 + _EVENTEPOCHEND._serialized_end=290 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/epochs/v1/event_pb2.pyi b/nibiru_proto/nibiru/epochs/v1/event_pb2.pyi new file mode 100644 index 00000000..3d11e23c --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/event_pb2.pyi @@ -0,0 +1,54 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +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 EventEpochStart(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EPOCH_NUMBER_FIELD_NUMBER: builtins.int + EPOCH_START_TIME_FIELD_NUMBER: builtins.int + epoch_number: builtins.int + """Epoch number, starting from 1.""" + @property + def epoch_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The start timestamp of the epoch.""" + def __init__( + self, + *, + epoch_number: builtins.int = ..., + epoch_start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["epoch_start_time", b"epoch_start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["epoch_number", b"epoch_number", "epoch_start_time", b"epoch_start_time"]) -> None: ... + +global___EventEpochStart = EventEpochStart + +@typing_extensions.final +class EventEpochEnd(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EPOCH_NUMBER_FIELD_NUMBER: builtins.int + epoch_number: builtins.int + """Epoch number, starting from 1.""" + def __init__( + self, + *, + epoch_number: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["epoch_number", b"epoch_number"]) -> None: ... + +global___EventEpochEnd = EventEpochEnd diff --git a/nibiru_proto/nibiru/epochs/v1/event_pb2_grpc.py b/nibiru_proto/nibiru/epochs/v1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/epochs/v1/genesis_pb2.py b/nibiru_proto/nibiru/epochs/v1/genesis_pb2.py new file mode 100644 index 00000000..88769dda --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/genesis_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/epochs/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from nibiru_proto.nibiru.epochs.v1 import state_pb2 as nibiru_dot_epochs_dot_v1_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1enibiru/epochs/v1/genesis.proto\x12\x10nibiru.epochs.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cnibiru/epochs/v1/state.proto\"I\n\x0cGenesisState\x12\x39\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1b.nibiru.epochs.v1.EpochInfoB\x04\xc8\xde\x1f\x00R\x06\x65pochsB.Z,github.com/NibiruChain/nibiru/x/epochs/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.epochs.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/epochs/types' + _GENESISSTATE.fields_by_name['epochs']._options = None + _GENESISSTATE.fields_by_name['epochs']._serialized_options = b'\310\336\037\000' + _GENESISSTATE._serialized_start=169 + _GENESISSTATE._serialized_end=242 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/epochs/v1/genesis_pb2.pyi b/nibiru_proto/nibiru/epochs/v1/genesis_pb2.pyi new file mode 100644 index 00000000..618d98cf --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/genesis_pb2.pyi @@ -0,0 +1,36 @@ +""" +@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 nibiru.epochs.v1.state_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the epochs module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EPOCHS_FIELD_NUMBER: builtins.int + @property + def epochs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.epochs.v1.state_pb2.EpochInfo]: ... + def __init__( + self, + *, + epochs: collections.abc.Iterable[nibiru.epochs.v1.state_pb2.EpochInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["epochs", b"epochs"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/epochs/v1/genesis_pb2_grpc.py b/nibiru_proto/nibiru/epochs/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/epochs/v1/query_pb2.py b/nibiru_proto/nibiru/epochs/v1/query_pb2.py new file mode 100644 index 00000000..80f1dc59 --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/query_pb2.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/epochs/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from nibiru_proto.nibiru.epochs.v1 import state_pb2 as nibiru_dot_epochs_dot_v1_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/epochs/v1/query.proto\x12\x10nibiru.epochs.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cnibiru/epochs/v1/state.proto\"\x18\n\x16QueryEpochsInfoRequest\"T\n\x17QueryEpochsInfoResponse\x12\x39\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1b.nibiru.epochs.v1.EpochInfoB\x04\xc8\xde\x1f\x00R\x06\x65pochs\":\n\x18QueryCurrentEpochRequest\x12\x1e\n\nidentifier\x18\x01 \x01(\tR\nidentifier\"@\n\x19QueryCurrentEpochResponse\x12#\n\rcurrent_epoch\x18\x01 \x01(\x04R\x0c\x63urrentEpoch2\xaa\x02\n\x05Query\x12\x88\x01\n\nEpochInfos\x12(.nibiru.epochs.v1.QueryEpochsInfoRequest\x1a).nibiru.epochs.v1.QueryEpochsInfoResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/nibiru/epochs/v1beta1/epochs\x12\x95\x01\n\x0c\x43urrentEpoch\x12*.nibiru.epochs.v1.QueryCurrentEpochRequest\x1a+.nibiru.epochs.v1.QueryCurrentEpochResponse\",\x82\xd3\xe4\x93\x02&\x12$/nibiru/epochs/v1beta1/current_epochB.Z,github.com/NibiruChain/nibiru/x/epochs/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.epochs.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/epochs/types' + _QUERYEPOCHSINFORESPONSE.fields_by_name['epochs']._options = None + _QUERYEPOCHSINFORESPONSE.fields_by_name['epochs']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['EpochInfos']._options = None + _QUERY.methods_by_name['EpochInfos']._serialized_options = b'\202\323\344\223\002\037\022\035/nibiru/epochs/v1beta1/epochs' + _QUERY.methods_by_name['CurrentEpoch']._options = None + _QUERY.methods_by_name['CurrentEpoch']._serialized_options = b'\202\323\344\223\002&\022$/nibiru/epochs/v1beta1/current_epoch' + _QUERYEPOCHSINFOREQUEST._serialized_start=176 + _QUERYEPOCHSINFOREQUEST._serialized_end=200 + _QUERYEPOCHSINFORESPONSE._serialized_start=202 + _QUERYEPOCHSINFORESPONSE._serialized_end=286 + _QUERYCURRENTEPOCHREQUEST._serialized_start=288 + _QUERYCURRENTEPOCHREQUEST._serialized_end=346 + _QUERYCURRENTEPOCHRESPONSE._serialized_start=348 + _QUERYCURRENTEPOCHRESPONSE._serialized_end=412 + _QUERY._serialized_start=415 + _QUERY._serialized_end=713 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/epochs/v1/query_pb2.pyi b/nibiru_proto/nibiru/epochs/v1/query_pb2.pyi new file mode 100644 index 00000000..012a2063 --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/query_pb2.pyi @@ -0,0 +1,74 @@ +""" +@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 nibiru.epochs.v1.state_pb2 +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 QueryEpochsInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryEpochsInfoRequest = QueryEpochsInfoRequest + +@typing_extensions.final +class QueryEpochsInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EPOCHS_FIELD_NUMBER: builtins.int + @property + def epochs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.epochs.v1.state_pb2.EpochInfo]: ... + def __init__( + self, + *, + epochs: collections.abc.Iterable[nibiru.epochs.v1.state_pb2.EpochInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["epochs", b"epochs"]) -> None: ... + +global___QueryEpochsInfoResponse = QueryEpochsInfoResponse + +@typing_extensions.final +class QueryCurrentEpochRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IDENTIFIER_FIELD_NUMBER: builtins.int + identifier: builtins.str + def __init__( + self, + *, + identifier: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["identifier", b"identifier"]) -> None: ... + +global___QueryCurrentEpochRequest = QueryCurrentEpochRequest + +@typing_extensions.final +class QueryCurrentEpochResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CURRENT_EPOCH_FIELD_NUMBER: builtins.int + current_epoch: builtins.int + def __init__( + self, + *, + current_epoch: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["current_epoch", b"current_epoch"]) -> None: ... + +global___QueryCurrentEpochResponse = QueryCurrentEpochResponse diff --git a/nibiru_proto/nibiru/epochs/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/epochs/v1/query_pb2_grpc.py new file mode 100644 index 00000000..05c254e0 --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/query_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.epochs.v1 import query_pb2 as nibiru_dot_epochs_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.EpochInfos = channel.unary_unary( + '/nibiru.epochs.v1.Query/EpochInfos', + request_serializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoRequest.SerializeToString, + response_deserializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoResponse.FromString, + ) + self.CurrentEpoch = channel.unary_unary( + '/nibiru.epochs.v1.Query/CurrentEpoch', + request_serializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochRequest.SerializeToString, + response_deserializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def EpochInfos(self, request, context): + """EpochInfos provide running epochInfos + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CurrentEpoch(self, request, context): + """CurrentEpoch provide current epoch of specified identifier + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'EpochInfos': grpc.unary_unary_rpc_method_handler( + servicer.EpochInfos, + request_deserializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoRequest.FromString, + response_serializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoResponse.SerializeToString, + ), + 'CurrentEpoch': grpc.unary_unary_rpc_method_handler( + servicer.CurrentEpoch, + request_deserializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochRequest.FromString, + response_serializer=nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.epochs.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def EpochInfos(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.epochs.v1.Query/EpochInfos', + nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoRequest.SerializeToString, + nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryEpochsInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CurrentEpoch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.epochs.v1.Query/CurrentEpoch', + nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochRequest.SerializeToString, + nibiru_dot_epochs_dot_v1_dot_query__pb2.QueryCurrentEpochResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/epochs/v1/state_pb2.py b/nibiru_proto/nibiru/epochs/v1/state_pb2.py new file mode 100644 index 00000000..fa765b3a --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/state_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/epochs/v1/state.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/epochs/v1/state.proto\x12\x10nibiru.epochs.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8a\x04\n\tEpochInfo\x12\x1e\n\nidentifier\x18\x01 \x01(\tR\nidentifier\x12X\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x11yaml:\"start_time\"\x90\xdf\x1f\x01R\tstartTime\x12h\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB1\xc8\xde\x1f\x00\xea\xde\x1f\x12\x64uration,omitempty\xf2\xde\x1f\x0fyaml:\"duration\"\x98\xdf\x1f\x01R\x08\x64uration\x12#\n\rcurrent_epoch\x18\x04 \x01(\x04R\x0c\x63urrentEpoch\x12\x80\x01\n\x18\x63urrent_epoch_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB+\xc8\xde\x1f\x00\xf2\xde\x1f\x1fyaml:\"current_epoch_start_time\"\x90\xdf\x1f\x01R\x15\x63urrentEpochStartTime\x12\x34\n\x16\x65poch_counting_started\x18\x06 \x01(\x08R\x14\x65pochCountingStarted\x12;\n\x1a\x63urrent_epoch_start_height\x18\x07 \x01(\x03R\x17\x63urrentEpochStartHeightB.Z,github.com/NibiruChain/nibiru/x/epochs/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.epochs.v1.state_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/epochs/types' + _EPOCHINFO.fields_by_name['start_time']._options = None + _EPOCHINFO.fields_by_name['start_time']._serialized_options = b'\310\336\037\000\362\336\037\021yaml:\"start_time\"\220\337\037\001' + _EPOCHINFO.fields_by_name['duration']._options = None + _EPOCHINFO.fields_by_name['duration']._serialized_options = b'\310\336\037\000\352\336\037\022duration,omitempty\362\336\037\017yaml:\"duration\"\230\337\037\001' + _EPOCHINFO.fields_by_name['current_epoch_start_time']._options = None + _EPOCHINFO.fields_by_name['current_epoch_start_time']._serialized_options = b'\310\336\037\000\362\336\037\037yaml:\"current_epoch_start_time\"\220\337\037\001' + _EPOCHINFO._serialized_start=138 + _EPOCHINFO._serialized_end=660 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/epochs/v1/state_pb2.pyi b/nibiru_proto/nibiru/epochs/v1/state_pb2.pyi new file mode 100644 index 00000000..25c2a3b7 --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/state_pb2.pyi @@ -0,0 +1,63 @@ +""" +@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 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 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: builtins.str + """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.""" + @property + def duration(self) -> google.protobuf.duration_pb2.Duration: + """How long each epoch lasts for.""" + 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.""" + 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: builtins.str = ..., + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + duration: google.protobuf.duration_pb2.Duration | None = ..., + current_epoch: builtins.int = ..., + current_epoch_start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + 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 diff --git a/nibiru_proto/nibiru/epochs/v1/state_pb2_grpc.py b/nibiru_proto/nibiru/epochs/v1/state_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/epochs/v1/state_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/genmsg/__init__.py b/nibiru_proto/nibiru/genmsg/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/genmsg/v1/__init__.py b/nibiru_proto/nibiru/genmsg/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.py b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.py new file mode 100644 index 00000000..92a8062f --- /dev/null +++ b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/genmsg/v1/genmsg.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnibiru/genmsg/v1/genmsg.proto\x12\x10nibiru.genmsg.v1\x1a\x19google/protobuf/any.proto\"@\n\x0cGenesisState\x12\x30\n\x08messages\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x08messagesB+Z)github.com/NibiruChain/nibiru/x/genmsg/v1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.genmsg.v1.genmsg_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z)github.com/NibiruChain/nibiru/x/genmsg/v1' + _GENESISSTATE._serialized_start=78 + _GENESISSTATE._serialized_end=142 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.pyi b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.pyi new file mode 100644 index 00000000..808f7d53 --- /dev/null +++ b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2.pyi @@ -0,0 +1,36 @@ +""" +@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 GenesisState(google.protobuf.message.Message): + """GenesisState represents the messages to be processed during genesis by the genmsg module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGES_FIELD_NUMBER: builtins.int + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__( + self, + *, + messages: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["messages", b"messages"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2_grpc.py b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/genmsg/v1/genmsg_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/inflation/__init__.py b/nibiru_proto/nibiru/inflation/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/inflation/v1/__init__.py b/nibiru_proto/nibiru/inflation/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/inflation/v1/genesis_pb2.py b/nibiru_proto/nibiru/inflation/v1/genesis_pb2.py new file mode 100644 index 00000000..cd85cf0a --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/genesis_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/inflation/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from nibiru_proto.nibiru.inflation.v1 import inflation_pb2 as nibiru_dot_inflation_dot_v1_dot_inflation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!nibiru/inflation/v1/genesis.proto\x12\x13nibiru.inflation.v1\x1a\x14gogoproto/gogo.proto\x1a#nibiru/inflation/v1/inflation.proto\"\x88\x01\n\x0cGenesisState\x12\x39\n\x06params\x18\x01 \x01(\x0b\x32\x1b.nibiru.inflation.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\x16\n\x06period\x18\x02 \x01(\x04R\x06period\x12%\n\x0eskipped_epochs\x18\x03 \x01(\x04R\rskippedEpochs\"\xb6\x02\n\x06Params\x12+\n\x11inflation_enabled\x18\x01 \x01(\x08R\x10inflationEnabled\x12j\n\x17\x65xponential_calculation\x18\x02 \x01(\x0b\x32+.nibiru.inflation.v1.ExponentialCalculationB\x04\xc8\xde\x1f\x00R\x16\x65xponentialCalculation\x12g\n\x16inflation_distribution\x18\x03 \x01(\x0b\x32*.nibiru.inflation.v1.InflationDistributionB\x04\xc8\xde\x1f\x00R\x15inflationDistribution\x12*\n\x11\x65pochs_per_period\x18\x04 \x01(\x04R\x0f\x65pochsPerPeriodB1Z/github.com/NibiruChain/nibiru/x/inflation/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.inflation.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z/github.com/NibiruChain/nibiru/x/inflation/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _PARAMS.fields_by_name['exponential_calculation']._options = None + _PARAMS.fields_by_name['exponential_calculation']._serialized_options = b'\310\336\037\000' + _PARAMS.fields_by_name['inflation_distribution']._options = None + _PARAMS.fields_by_name['inflation_distribution']._serialized_options = b'\310\336\037\000' + _GENESISSTATE._serialized_start=118 + _GENESISSTATE._serialized_end=254 + _PARAMS._serialized_start=257 + _PARAMS._serialized_end=567 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/inflation/v1/genesis_pb2.pyi b/nibiru_proto/nibiru/inflation/v1/genesis_pb2.pyi new file mode 100644 index 00000000..ecadb62b --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/genesis_pb2.pyi @@ -0,0 +1,85 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import nibiru.inflation.v1.inflation_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the inflation module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + SKIPPED_EPOCHS_FIELD_NUMBER: builtins.int + @property + def params(self) -> global___Params: + """params defines all the parameters of the module.""" + period: builtins.int + """period is the amount of past periods, based on the epochs per period param""" + skipped_epochs: builtins.int + """skipped_epochs is the number of epochs that have passed while inflation is + disabled + """ + def __init__( + self, + *, + params: global___Params | None = ..., + period: builtins.int = ..., + skipped_epochs: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params", "period", b"period", "skipped_epochs", b"skipped_epochs"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class Params(google.protobuf.message.Message): + """Params holds parameters for the inflation module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFLATION_ENABLED_FIELD_NUMBER: builtins.int + EXPONENTIAL_CALCULATION_FIELD_NUMBER: builtins.int + INFLATION_DISTRIBUTION_FIELD_NUMBER: builtins.int + EPOCHS_PER_PERIOD_FIELD_NUMBER: builtins.int + inflation_enabled: builtins.bool + """inflation_enabled is the parameter that enables inflation and halts + increasing the skipped_epochs + """ + @property + def exponential_calculation(self) -> nibiru.inflation.v1.inflation_pb2.ExponentialCalculation: + """exponential_calculation takes in the variables to calculate exponential + inflation + """ + @property + def inflation_distribution(self) -> nibiru.inflation.v1.inflation_pb2.InflationDistribution: + """inflation_distribution of the minted denom""" + epochs_per_period: builtins.int + """epochs_per_period is the number of epochs that must pass before a new + period is created + """ + def __init__( + self, + *, + inflation_enabled: builtins.bool = ..., + exponential_calculation: nibiru.inflation.v1.inflation_pb2.ExponentialCalculation | None = ..., + inflation_distribution: nibiru.inflation.v1.inflation_pb2.InflationDistribution | None = ..., + epochs_per_period: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["exponential_calculation", b"exponential_calculation", "inflation_distribution", b"inflation_distribution"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["epochs_per_period", b"epochs_per_period", "exponential_calculation", b"exponential_calculation", "inflation_distribution", b"inflation_distribution", "inflation_enabled", b"inflation_enabled"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/nibiru/inflation/v1/genesis_pb2_grpc.py b/nibiru_proto/nibiru/inflation/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/inflation/v1/inflation_pb2.py b/nibiru_proto/nibiru/inflation/v1/inflation_pb2.py new file mode 100644 index 00000000..3fd52207 --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/inflation_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/inflation/v1/inflation.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#nibiru/inflation/v1/inflation.proto\x12\x13nibiru.inflation.v1\x1a\x14gogoproto/gogo.proto\"\xa6\x02\n\x15InflationDistribution\x12W\n\x0fstaking_rewards\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0estakingRewards\x12U\n\x0e\x63ommunity_pool\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rcommunityPool\x12]\n\x12strategic_reserves\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x11strategicReserves\"\xd2\x01\n\x16\x45xponentialCalculation\x12<\n\x01\x61\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x01\x61\x12<\n\x01r\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x01r\x12<\n\x01\x63\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x01\x63\x42\x31Z/github.com/NibiruChain/nibiru/x/inflation/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.inflation.v1.inflation_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z/github.com/NibiruChain/nibiru/x/inflation/types' + _INFLATIONDISTRIBUTION.fields_by_name['staking_rewards']._options = None + _INFLATIONDISTRIBUTION.fields_by_name['staking_rewards']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _INFLATIONDISTRIBUTION.fields_by_name['community_pool']._options = None + _INFLATIONDISTRIBUTION.fields_by_name['community_pool']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _INFLATIONDISTRIBUTION.fields_by_name['strategic_reserves']._options = None + _INFLATIONDISTRIBUTION.fields_by_name['strategic_reserves']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EXPONENTIALCALCULATION.fields_by_name['a']._options = None + _EXPONENTIALCALCULATION.fields_by_name['a']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EXPONENTIALCALCULATION.fields_by_name['r']._options = None + _EXPONENTIALCALCULATION.fields_by_name['r']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EXPONENTIALCALCULATION.fields_by_name['c']._options = None + _EXPONENTIALCALCULATION.fields_by_name['c']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _INFLATIONDISTRIBUTION._serialized_start=83 + _INFLATIONDISTRIBUTION._serialized_end=377 + _EXPONENTIALCALCULATION._serialized_start=380 + _EXPONENTIALCALCULATION._serialized_end=590 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/inflation/v1/inflation_pb2.pyi b/nibiru_proto/nibiru/inflation/v1/inflation_pb2.pyi new file mode 100644 index 00000000..036e95d6 --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/inflation_pb2.pyi @@ -0,0 +1,80 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 InflationDistribution(google.protobuf.message.Message): + """InflationDistribution defines the distribution in which inflation is + allocated through minting on each epoch (staking, community, strategic). It + excludes the team vesting distribution. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STAKING_REWARDS_FIELD_NUMBER: builtins.int + COMMUNITY_POOL_FIELD_NUMBER: builtins.int + STRATEGIC_RESERVES_FIELD_NUMBER: builtins.int + staking_rewards: builtins.str + """staking_rewards defines the proportion of the minted_denom that is + to be allocated as staking rewards + """ + community_pool: builtins.str + """community_pool defines the proportion of the minted_denom that is to + be allocated to the community pool + """ + strategic_reserves: builtins.str + """strategic_reserves defines the proportion of the minted_denom that + is to be allocated to the strategic reserves module address + """ + def __init__( + self, + *, + staking_rewards: builtins.str = ..., + community_pool: builtins.str = ..., + strategic_reserves: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["community_pool", b"community_pool", "staking_rewards", b"staking_rewards", "strategic_reserves", b"strategic_reserves"]) -> None: ... + +global___InflationDistribution = InflationDistribution + +@typing_extensions.final +class ExponentialCalculation(google.protobuf.message.Message): + """ExponentialCalculation holds factors to calculate exponential inflation on + each period. Calculation reference: + periodProvision = exponentialDecay + f(x) = a * (1 - r) ^ x + c + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + A_FIELD_NUMBER: builtins.int + R_FIELD_NUMBER: builtins.int + C_FIELD_NUMBER: builtins.int + a: builtins.str + """a defines the initial value""" + r: builtins.str + """r defines the reduction factor""" + c: builtins.str + """c defines the parameter for long term inflation""" + def __init__( + self, + *, + a: builtins.str = ..., + r: builtins.str = ..., + c: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["a", b"a", "c", b"c", "r", b"r"]) -> None: ... + +global___ExponentialCalculation = ExponentialCalculation diff --git a/nibiru_proto/nibiru/inflation/v1/inflation_pb2_grpc.py b/nibiru_proto/nibiru/inflation/v1/inflation_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/inflation_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/inflation/v1/query_pb2.py b/nibiru_proto/nibiru/inflation/v1/query_pb2.py new file mode 100644 index 00000000..966d02fb --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/query_pb2.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/inflation/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from nibiru_proto.nibiru.inflation.v1 import genesis_pb2 as nibiru_dot_inflation_dot_v1_dot_genesis__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnibiru/inflation/v1/query.proto\x12\x13nibiru.inflation.v1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a!nibiru/inflation/v1/genesis.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"\x14\n\x12QueryPeriodRequest\"-\n\x13QueryPeriodResponse\x12\x16\n\x06period\x18\x01 \x01(\x04R\x06period\" \n\x1eQueryEpochMintProvisionRequest\"\xa7\x01\n\x1fQueryEpochMintProvisionResponse\x12\x83\x01\n\x14\x65poch_mint_provision\x18\x01 \x01(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB3\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoinsR\x12\x65pochMintProvision\"\x1b\n\x19QuerySkippedEpochsRequest\"C\n\x1aQuerySkippedEpochsResponse\x12%\n\x0eskipped_epochs\x18\x01 \x01(\x04R\rskippedEpochs\"\x1f\n\x1dQueryCirculatingSupplyRequest\"\xa3\x01\n\x1eQueryCirculatingSupplyResponse\x12\x80\x01\n\x12\x63irculating_supply\x18\x01 \x01(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB3\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoinsR\x11\x63irculatingSupply\"\x1b\n\x19QueryInflationRateRequest\"s\n\x1aQueryInflationRateResponse\x12U\n\x0einflation_rate\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rinflationRate\"\x14\n\x12QueryParamsRequest\"P\n\x13QueryParamsResponse\x12\x39\n\x06params\x18\x01 \x01(\x0b\x32\x1b.nibiru.inflation.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params2\xb2\x07\n\x05Query\x12\x80\x01\n\x06Period\x12\'.nibiru.inflation.v1.QueryPeriodRequest\x1a(.nibiru.inflation.v1.QueryPeriodResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/nibiru/inflation/v1/period\x12\xb2\x01\n\x12\x45pochMintProvision\x12\x33.nibiru.inflation.v1.QueryEpochMintProvisionRequest\x1a\x34.nibiru.inflation.v1.QueryEpochMintProvisionResponse\"1\x82\xd3\xe4\x93\x02+\x12)/nibiru/inflation/v1/epoch_mint_provision\x12\x9d\x01\n\rSkippedEpochs\x12..nibiru.inflation.v1.QuerySkippedEpochsRequest\x1a/.nibiru.inflation.v1.QuerySkippedEpochsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/nibiru/inflation/v1/skipped_epochs\x12\xad\x01\n\x11\x43irculatingSupply\x12\x32.nibiru.inflation.v1.QueryCirculatingSupplyRequest\x1a\x33.nibiru.inflation.v1.QueryCirculatingSupplyResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/nibiru/inflation/v1/circulating_supply\x12\x9d\x01\n\rInflationRate\x12..nibiru.inflation.v1.QueryInflationRateRequest\x1a/.nibiru.inflation.v1.QueryInflationRateResponse\"+\x82\xd3\xe4\x93\x02%\x12#/nibiru/inflation/v1/inflation_rate\x12\x80\x01\n\x06Params\x12\'.nibiru.inflation.v1.QueryParamsRequest\x1a(.nibiru.inflation.v1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/nibiru/inflation/v1/paramsB1Z/github.com/NibiruChain/nibiru/x/inflation/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.inflation.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z/github.com/NibiruChain/nibiru/x/inflation/types' + _QUERYEPOCHMINTPROVISIONRESPONSE.fields_by_name['epoch_mint_provision']._options = None + _QUERYEPOCHMINTPROVISIONRESPONSE.fields_by_name['epoch_mint_provision']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins' + _QUERYCIRCULATINGSUPPLYRESPONSE.fields_by_name['circulating_supply']._options = None + _QUERYCIRCULATINGSUPPLYRESPONSE.fields_by_name['circulating_supply']._serialized_options = b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins' + _QUERYINFLATIONRATERESPONSE.fields_by_name['inflation_rate']._options = None + _QUERYINFLATIONRATERESPONSE.fields_by_name['inflation_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['Period']._options = None + _QUERY.methods_by_name['Period']._serialized_options = b'\202\323\344\223\002\035\022\033/nibiru/inflation/v1/period' + _QUERY.methods_by_name['EpochMintProvision']._options = None + _QUERY.methods_by_name['EpochMintProvision']._serialized_options = b'\202\323\344\223\002+\022)/nibiru/inflation/v1/epoch_mint_provision' + _QUERY.methods_by_name['SkippedEpochs']._options = None + _QUERY.methods_by_name['SkippedEpochs']._serialized_options = b'\202\323\344\223\002%\022#/nibiru/inflation/v1/skipped_epochs' + _QUERY.methods_by_name['CirculatingSupply']._options = None + _QUERY.methods_by_name['CirculatingSupply']._serialized_options = b'\202\323\344\223\002)\022\'/nibiru/inflation/v1/circulating_supply' + _QUERY.methods_by_name['InflationRate']._options = None + _QUERY.methods_by_name['InflationRate']._serialized_options = b'\202\323\344\223\002%\022#/nibiru/inflation/v1/inflation_rate' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\035\022\033/nibiru/inflation/v1/params' + _QUERYPERIODREQUEST._serialized_start=175 + _QUERYPERIODREQUEST._serialized_end=195 + _QUERYPERIODRESPONSE._serialized_start=197 + _QUERYPERIODRESPONSE._serialized_end=242 + _QUERYEPOCHMINTPROVISIONREQUEST._serialized_start=244 + _QUERYEPOCHMINTPROVISIONREQUEST._serialized_end=276 + _QUERYEPOCHMINTPROVISIONRESPONSE._serialized_start=279 + _QUERYEPOCHMINTPROVISIONRESPONSE._serialized_end=446 + _QUERYSKIPPEDEPOCHSREQUEST._serialized_start=448 + _QUERYSKIPPEDEPOCHSREQUEST._serialized_end=475 + _QUERYSKIPPEDEPOCHSRESPONSE._serialized_start=477 + _QUERYSKIPPEDEPOCHSRESPONSE._serialized_end=544 + _QUERYCIRCULATINGSUPPLYREQUEST._serialized_start=546 + _QUERYCIRCULATINGSUPPLYREQUEST._serialized_end=577 + _QUERYCIRCULATINGSUPPLYRESPONSE._serialized_start=580 + _QUERYCIRCULATINGSUPPLYRESPONSE._serialized_end=743 + _QUERYINFLATIONRATEREQUEST._serialized_start=745 + _QUERYINFLATIONRATEREQUEST._serialized_end=772 + _QUERYINFLATIONRATERESPONSE._serialized_start=774 + _QUERYINFLATIONRATERESPONSE._serialized_end=889 + _QUERYPARAMSREQUEST._serialized_start=891 + _QUERYPARAMSREQUEST._serialized_end=911 + _QUERYPARAMSRESPONSE._serialized_start=913 + _QUERYPARAMSRESPONSE._serialized_end=993 + _QUERY._serialized_start=996 + _QUERY._serialized_end=1942 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/inflation/v1/query_pb2.pyi b/nibiru_proto/nibiru/inflation/v1/query_pb2.pyi new file mode 100644 index 00000000..d06e4bef --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/query_pb2.pyi @@ -0,0 +1,221 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import nibiru.inflation.v1.genesis_pb2 +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 QueryPeriodRequest(google.protobuf.message.Message): + """QueryPeriodRequest is the request type for the Query/Period RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryPeriodRequest = QueryPeriodRequest + +@typing_extensions.final +class QueryPeriodResponse(google.protobuf.message.Message): + """QueryPeriodResponse is the response type for the Query/Period RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PERIOD_FIELD_NUMBER: builtins.int + period: builtins.int + """period is the current minting per epoch provision value.""" + def __init__( + self, + *, + period: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["period", b"period"]) -> None: ... + +global___QueryPeriodResponse = QueryPeriodResponse + +@typing_extensions.final +class QueryEpochMintProvisionRequest(google.protobuf.message.Message): + """QueryEpochMintProvisionRequest is the request type for the + Query/EpochMintProvision RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryEpochMintProvisionRequest = QueryEpochMintProvisionRequest + +@typing_extensions.final +class QueryEpochMintProvisionResponse(google.protobuf.message.Message): + """QueryEpochMintProvisionResponse is the response type for the + Query/EpochMintProvision RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EPOCH_MINT_PROVISION_FIELD_NUMBER: builtins.int + @property + def epoch_mint_provision(self) -> cosmos.base.v1beta1.coin_pb2.DecCoin: + """epoch_mint_provision is the current minting per epoch provision value.""" + def __init__( + self, + *, + epoch_mint_provision: cosmos.base.v1beta1.coin_pb2.DecCoin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["epoch_mint_provision", b"epoch_mint_provision"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["epoch_mint_provision", b"epoch_mint_provision"]) -> None: ... + +global___QueryEpochMintProvisionResponse = QueryEpochMintProvisionResponse + +@typing_extensions.final +class QuerySkippedEpochsRequest(google.protobuf.message.Message): + """QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QuerySkippedEpochsRequest = QuerySkippedEpochsRequest + +@typing_extensions.final +class QuerySkippedEpochsResponse(google.protobuf.message.Message): + """QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SKIPPED_EPOCHS_FIELD_NUMBER: builtins.int + skipped_epochs: builtins.int + """skipped_epochs is the number of epochs that the inflation module has been + disabled. + """ + def __init__( + self, + *, + skipped_epochs: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["skipped_epochs", b"skipped_epochs"]) -> None: ... + +global___QuerySkippedEpochsResponse = QuerySkippedEpochsResponse + +@typing_extensions.final +class QueryCirculatingSupplyRequest(google.protobuf.message.Message): + """QueryCirculatingSupplyRequest is the request type for the + Query/CirculatingSupply RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryCirculatingSupplyRequest = QueryCirculatingSupplyRequest + +@typing_extensions.final +class QueryCirculatingSupplyResponse(google.protobuf.message.Message): + """QueryCirculatingSupplyResponse is the response type for the + Query/CirculatingSupply RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CIRCULATING_SUPPLY_FIELD_NUMBER: builtins.int + @property + def circulating_supply(self) -> cosmos.base.v1beta1.coin_pb2.DecCoin: + """circulating_supply is the total amount of coins in circulation""" + def __init__( + self, + *, + circulating_supply: cosmos.base.v1beta1.coin_pb2.DecCoin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["circulating_supply", b"circulating_supply"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["circulating_supply", b"circulating_supply"]) -> None: ... + +global___QueryCirculatingSupplyResponse = QueryCirculatingSupplyResponse + +@typing_extensions.final +class QueryInflationRateRequest(google.protobuf.message.Message): + """QueryInflationRateRequest is the request type for the Query/InflationRate RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryInflationRateRequest = QueryInflationRateRequest + +@typing_extensions.final +class QueryInflationRateResponse(google.protobuf.message.Message): + """QueryInflationRateResponse is the response type for the Query/InflationRate + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFLATION_RATE_FIELD_NUMBER: builtins.int + inflation_rate: builtins.str + """inflation_rate by which the total supply increases within one period""" + def __init__( + self, + *, + inflation_rate: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["inflation_rate", b"inflation_rate"]) -> None: ... + +global___QueryInflationRateResponse = QueryInflationRateResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.inflation.v1.genesis_pb2.Params: + """params defines the parameters of the module.""" + def __init__( + self, + *, + params: nibiru.inflation.v1.genesis_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse diff --git a/nibiru_proto/nibiru/inflation/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/inflation/v1/query_pb2_grpc.py new file mode 100644 index 00000000..0607d45a --- /dev/null +++ b/nibiru_proto/nibiru/inflation/v1/query_pb2_grpc.py @@ -0,0 +1,241 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.inflation.v1 import query_pb2 as nibiru_dot_inflation_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query provides defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Period = channel.unary_unary( + '/nibiru.inflation.v1.Query/Period', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodResponse.FromString, + ) + self.EpochMintProvision = channel.unary_unary( + '/nibiru.inflation.v1.Query/EpochMintProvision', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionResponse.FromString, + ) + self.SkippedEpochs = channel.unary_unary( + '/nibiru.inflation.v1.Query/SkippedEpochs', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsResponse.FromString, + ) + self.CirculatingSupply = channel.unary_unary( + '/nibiru.inflation.v1.Query/CirculatingSupply', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyResponse.FromString, + ) + self.InflationRate = channel.unary_unary( + '/nibiru.inflation.v1.Query/InflationRate', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateResponse.FromString, + ) + self.Params = channel.unary_unary( + '/nibiru.inflation.v1.Query/Params', + request_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + + +class QueryServicer(object): + """Query provides defines the gRPC querier service. + """ + + def Period(self, request, context): + """Period retrieves current period. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EpochMintProvision(self, request, context): + """EpochMintProvision retrieves current minting epoch provision value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SkippedEpochs(self, request, context): + """SkippedEpochs retrieves the total number of skipped epochs. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CirculatingSupply(self, request, context): + """CirculatingSupply retrieves the total number of tokens that are in + circulation (i.e. excluding unvested tokens). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InflationRate(self, request, context): + """InflationRate retrieves the inflation rate of the current period. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params retrieves the total set of minting parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Period': grpc.unary_unary_rpc_method_handler( + servicer.Period, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodResponse.SerializeToString, + ), + 'EpochMintProvision': grpc.unary_unary_rpc_method_handler( + servicer.EpochMintProvision, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionResponse.SerializeToString, + ), + 'SkippedEpochs': grpc.unary_unary_rpc_method_handler( + servicer.SkippedEpochs, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsResponse.SerializeToString, + ), + 'CirculatingSupply': grpc.unary_unary_rpc_method_handler( + servicer.CirculatingSupply, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyResponse.SerializeToString, + ), + 'InflationRate': grpc.unary_unary_rpc_method_handler( + servicer.InflationRate, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.inflation.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query provides defines the gRPC querier service. + """ + + @staticmethod + def Period(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/Period', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryPeriodResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EpochMintProvision(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/EpochMintProvision', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryEpochMintProvisionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SkippedEpochs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/SkippedEpochs', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QuerySkippedEpochsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CirculatingSupply(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/CirculatingSupply', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryCirculatingSupplyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InflationRate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/InflationRate', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryInflationRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.inflation.v1.Query/Params', + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + nibiru_dot_inflation_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/oracle/__init__.py b/nibiru_proto/nibiru/oracle/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/oracle/v1/__init__.py b/nibiru_proto/nibiru/oracle/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/oracle/v1/event_pb2.py b/nibiru_proto/nibiru/oracle/v1/event_pb2.py new file mode 100644 index 00000000..3d959779 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/event_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from nibiru_proto.nibiru.oracle.v1 import oracle_pb2 as nibiru_dot_oracle_dot_v1_dot_oracle__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/oracle/v1/event.proto\x12\x10nibiru.oracle.v1\x1a\x1dnibiru/oracle/v1/oracle.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"\x8f\x01\n\x10\x45ventPriceUpdate\x12\x12\n\x04pair\x18\x01 \x01(\tR\x04pair\x12\x44\n\x05price\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x05price\x12!\n\x0ctimestamp_ms\x18\x03 \x01(\x03R\x0btimestampMs\"R\n\x1a\x45ventDelegateFeederConsent\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\x12\x16\n\x06\x66\x65\x65\x64\x65r\x18\x02 \x01(\tR\x06\x66\x65\x65\x64\x65r\"\xa3\x01\n\x12\x45ventAggregateVote\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\x12\x16\n\x06\x66\x65\x65\x64\x65r\x18\x02 \x01(\tR\x06\x66\x65\x65\x64\x65r\x12W\n\x06prices\x18\x03 \x03(\x0b\x32#.nibiru.oracle.v1.ExchangeRateTupleB\x1a\xc8\xde\x1f\x00\xaa\xdf\x1f\x12\x45xchangeRateTuplesR\x06prices\"M\n\x15\x45ventAggregatePrevote\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\x12\x16\n\x06\x66\x65\x65\x64\x65r\x18\x02 \x01(\tR\x06\x66\x65\x65\x64\x65rB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _EVENTPRICEUPDATE.fields_by_name['price']._options = None + _EVENTPRICEUPDATE.fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EVENTAGGREGATEVOTE.fields_by_name['prices']._options = None + _EVENTAGGREGATEVOTE.fields_by_name['prices']._serialized_options = b'\310\336\037\000\252\337\037\022ExchangeRateTuples' + _EVENTPRICEUPDATE._serialized_start=134 + _EVENTPRICEUPDATE._serialized_end=277 + _EVENTDELEGATEFEEDERCONSENT._serialized_start=279 + _EVENTDELEGATEFEEDERCONSENT._serialized_end=361 + _EVENTAGGREGATEVOTE._serialized_start=364 + _EVENTAGGREGATEVOTE._serialized_end=527 + _EVENTAGGREGATEPREVOTE._serialized_start=529 + _EVENTAGGREGATEPREVOTE._serialized_end=606 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/event_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/event_pb2.pyi new file mode 100644 index 00000000..fd61d2a4 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/event_pb2.pyi @@ -0,0 +1,119 @@ +""" +@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 nibiru.oracle.v1.oracle_pb2 +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 EventPriceUpdate(google.protobuf.message.Message): + """Emitted when a price is posted""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + PRICE_FIELD_NUMBER: builtins.int + TIMESTAMP_MS_FIELD_NUMBER: builtins.int + pair: builtins.str + price: builtins.str + timestamp_ms: builtins.int + def __init__( + self, + *, + pair: builtins.str = ..., + price: builtins.str = ..., + timestamp_ms: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "price", b"price", "timestamp_ms", b"timestamp_ms"]) -> None: ... + +global___EventPriceUpdate = EventPriceUpdate + +@typing_extensions.final +class EventDelegateFeederConsent(google.protobuf.message.Message): + """Emitted when a valoper delegates oracle voting rights to a feeder address.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + FEEDER_FIELD_NUMBER: builtins.int + validator: builtins.str + """Validator is the Bech32 address that is delegating voting rights.""" + feeder: builtins.str + """Feeder is the delegate or representative that will be able to send + vote and prevote transaction messages. + """ + def __init__( + self, + *, + validator: builtins.str = ..., + feeder: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder", b"feeder", "validator", b"validator"]) -> None: ... + +global___EventDelegateFeederConsent = EventDelegateFeederConsent + +@typing_extensions.final +class EventAggregateVote(google.protobuf.message.Message): + """Emitted by MsgAggregateExchangeVote when an aggregate vote is added to state""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + FEEDER_FIELD_NUMBER: builtins.int + PRICES_FIELD_NUMBER: builtins.int + validator: builtins.str + """Validator is the Bech32 address to which the vote will be credited.""" + feeder: builtins.str + """Feeder is the delegate or representative that will send vote and prevote + transaction messages on behalf of the voting validator. + """ + @property + def prices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple]: ... + def __init__( + self, + *, + validator: builtins.str = ..., + feeder: builtins.str = ..., + prices: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder", b"feeder", "prices", b"prices", "validator", b"validator"]) -> None: ... + +global___EventAggregateVote = EventAggregateVote + +@typing_extensions.final +class EventAggregatePrevote(google.protobuf.message.Message): + """Emitted by MsgAggregateExchangePrevote when an aggregate prevote is added + to state + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + FEEDER_FIELD_NUMBER: builtins.int + validator: builtins.str + """Validator is the Bech32 address to which the vote will be credited.""" + feeder: builtins.str + """Feeder is the delegate or representative that will send vote and prevote + transaction messages on behalf of the voting validator. + """ + def __init__( + self, + *, + validator: builtins.str = ..., + feeder: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder", b"feeder", "validator", b"validator"]) -> None: ... + +global___EventAggregatePrevote = EventAggregatePrevote diff --git a/nibiru_proto/nibiru/oracle/v1/event_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/oracle/v1/genesis_pb2.py b/nibiru_proto/nibiru/oracle/v1/genesis_pb2.py new file mode 100644 index 00000000..8fe69a8d --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/genesis_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from nibiru_proto.nibiru.oracle.v1 import oracle_pb2 as nibiru_dot_oracle_dot_v1_dot_oracle__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1enibiru/oracle/v1/genesis.proto\x12\x10nibiru.oracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dnibiru/oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xd2\x05\n\x0cGenesisState\x12\x36\n\x06params\x18\x01 \x01(\x0b\x32\x18.nibiru.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12W\n\x12\x66\x65\x65\x64\x65r_delegations\x18\x02 \x03(\x0b\x32\".nibiru.oracle.v1.FeederDelegationB\x04\xc8\xde\x1f\x00R\x11\x66\x65\x65\x64\x65rDelegations\x12\x66\n\x0e\x65xchange_rates\x18\x03 \x03(\x0b\x32#.nibiru.oracle.v1.ExchangeRateTupleB\x1a\xc8\xde\x1f\x00\xaa\xdf\x1f\x12\x45xchangeRateTuplesR\rexchangeRates\x12H\n\rmiss_counters\x18\x04 \x03(\x0b\x32\x1d.nibiru.oracle.v1.MissCounterB\x04\xc8\xde\x1f\x00R\x0cmissCounters\x12}\n aggregate_exchange_rate_prevotes\x18\x05 \x03(\x0b\x32..nibiru.oracle.v1.AggregateExchangeRatePrevoteB\x04\xc8\xde\x1f\x00R\x1d\x61ggregateExchangeRatePrevotes\x12t\n\x1d\x61ggregate_exchange_rate_votes\x18\x06 \x03(\x0b\x32+.nibiru.oracle.v1.AggregateExchangeRateVoteB\x04\xc8\xde\x1f\x00R\x1a\x61ggregateExchangeRateVotes\x12O\n\x05pairs\x18\x07 \x03(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x05pairs\x12\x39\n\x07rewards\x18\x08 \x03(\x0b\x32\x19.nibiru.oracle.v1.RewardsB\x04\xc8\xde\x1f\x00R\x07rewards\"f\n\x10\x46\x65\x65\x64\x65rDelegation\x12%\n\x0e\x66\x65\x65\x64\x65r_address\x18\x01 \x01(\tR\rfeederAddress\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\"]\n\x0bMissCounter\x12+\n\x11validator_address\x18\x01 \x01(\tR\x10validatorAddress\x12!\n\x0cmiss_counter\x18\x02 \x01(\x04R\x0bmissCounterB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['feeder_delegations']._options = None + _GENESISSTATE.fields_by_name['feeder_delegations']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['exchange_rates']._options = None + _GENESISSTATE.fields_by_name['exchange_rates']._serialized_options = b'\310\336\037\000\252\337\037\022ExchangeRateTuples' + _GENESISSTATE.fields_by_name['miss_counters']._options = None + _GENESISSTATE.fields_by_name['miss_counters']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['aggregate_exchange_rate_prevotes']._options = None + _GENESISSTATE.fields_by_name['aggregate_exchange_rate_prevotes']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['aggregate_exchange_rate_votes']._options = None + _GENESISSTATE.fields_by_name['aggregate_exchange_rate_votes']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['pairs']._options = None + _GENESISSTATE.fields_by_name['pairs']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _GENESISSTATE.fields_by_name['rewards']._options = None + _GENESISSTATE.fields_by_name['rewards']._serialized_options = b'\310\336\037\000' + _GENESISSTATE._serialized_start=138 + _GENESISSTATE._serialized_end=860 + _FEEDERDELEGATION._serialized_start=862 + _FEEDERDELEGATION._serialized_end=964 + _MISSCOUNTER._serialized_start=966 + _MISSCOUNTER._serialized_end=1059 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/genesis_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/genesis_pb2.pyi new file mode 100644 index 00000000..270e1bc5 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/genesis_pb2.pyi @@ -0,0 +1,110 @@ +""" +@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 nibiru.oracle.v1.oracle_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the oracle module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + FEEDER_DELEGATIONS_FIELD_NUMBER: builtins.int + EXCHANGE_RATES_FIELD_NUMBER: builtins.int + MISS_COUNTERS_FIELD_NUMBER: builtins.int + AGGREGATE_EXCHANGE_RATE_PREVOTES_FIELD_NUMBER: builtins.int + AGGREGATE_EXCHANGE_RATE_VOTES_FIELD_NUMBER: builtins.int + PAIRS_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.oracle.v1.oracle_pb2.Params: ... + @property + def feeder_delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeederDelegation]: ... + @property + def exchange_rates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple]: ... + @property + def miss_counters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MissCounter]: ... + @property + def aggregate_exchange_rate_prevotes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote]: ... + @property + def aggregate_exchange_rate_votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote]: ... + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.Rewards]: ... + def __init__( + self, + *, + params: nibiru.oracle.v1.oracle_pb2.Params | None = ..., + feeder_delegations: collections.abc.Iterable[global___FeederDelegation] | None = ..., + exchange_rates: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple] | None = ..., + miss_counters: collections.abc.Iterable[global___MissCounter] | None = ..., + aggregate_exchange_rate_prevotes: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote] | None = ..., + aggregate_exchange_rate_votes: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote] | None = ..., + pairs: collections.abc.Iterable[builtins.str] | None = ..., + rewards: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.Rewards] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aggregate_exchange_rate_prevotes", b"aggregate_exchange_rate_prevotes", "aggregate_exchange_rate_votes", b"aggregate_exchange_rate_votes", "exchange_rates", b"exchange_rates", "feeder_delegations", b"feeder_delegations", "miss_counters", b"miss_counters", "pairs", b"pairs", "params", b"params", "rewards", b"rewards"]) -> None: ... + +global___GenesisState = GenesisState + +@typing_extensions.final +class FeederDelegation(google.protobuf.message.Message): + """FeederDelegation is the address for where oracle feeder authority are + delegated to. By default this struct is only used at genesis to feed in + default feeder addresses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FEEDER_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + feeder_address: builtins.str + validator_address: builtins.str + def __init__( + self, + *, + feeder_address: builtins.str = ..., + validator_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder_address", b"feeder_address", "validator_address", b"validator_address"]) -> None: ... + +global___FeederDelegation = FeederDelegation + +@typing_extensions.final +class MissCounter(google.protobuf.message.Message): + """MissCounter defines an miss counter and validator address pair used in + oracle module's genesis state + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + MISS_COUNTER_FIELD_NUMBER: builtins.int + validator_address: builtins.str + miss_counter: builtins.int + def __init__( + self, + *, + validator_address: builtins.str = ..., + miss_counter: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["miss_counter", b"miss_counter", "validator_address", b"validator_address"]) -> None: ... + +global___MissCounter = MissCounter diff --git a/nibiru_proto/nibiru/oracle/v1/genesis_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/oracle/v1/oracle_pb2.py b/nibiru_proto/nibiru/oracle/v1/oracle_pb2.py new file mode 100644 index 00000000..adc23afe --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/oracle_pb2.py @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/oracle.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnibiru/oracle/v1/oracle.proto\x12\x10nibiru.oracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xcf\x08\n\x06Params\x12\x37\n\x0bvote_period\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"vote_period\"R\nvotePeriod\x12n\n\x0evote_threshold\x18\x02 \x01(\tBG\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x15yaml:\"vote_threshold\"R\rvoteThreshold\x12\x65\n\x0breward_band\x18\x03 \x01(\tBD\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x12yaml:\"reward_band\"R\nrewardBand\x12g\n\twhitelist\x18\x04 \x03(\tBI\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.Pair\xf2\xde\x1f\x10yaml:\"whitelist\"R\twhitelist\x12n\n\x0eslash_fraction\x18\x05 \x01(\tBG\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x15yaml:\"slash_fraction\"R\rslashFraction\x12:\n\x0cslash_window\x18\x06 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"slash_window\"R\x0bslashWindow\x12~\n\x14min_valid_per_window\x18\x07 \x01(\tBM\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x1byaml:\"min_valid_per_window\"R\x11minValidPerWindow\x12\x96\x01\n\x14twap_lookback_window\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationBI\xc8\xde\x1f\x00\xea\xde\x1f\x1etwap_lookback_window,omitempty\xf2\xde\x1f\x1byaml:\"twap_lookback_window\"\x98\xdf\x1f\x01R\x12twapLookbackWindow\x12\x34\n\nmin_voters\x18\t \x01(\x04\x42\x15\xf2\xde\x1f\x11yaml:\"min_voters\"R\tminVoters\x12|\n\x13validator_fee_ratio\x18\n \x01(\tBL\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x1ayaml:\"validator_fee_ratio\"R\x11validatorFeeRatio\x12I\n\x11\x65xpiration_blocks\x18\x0b \x01(\x04\x42\x1c\xf2\xde\x1f\x18yaml:\"expiration_blocks\"R\x10\x65xpirationBlocks:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"\xb5\x01\n\x1c\x41ggregateExchangeRatePrevote\x12#\n\x04hash\x18\x01 \x01(\tB\x0f\xf2\xde\x1f\x0byaml:\"hash\"R\x04hash\x12&\n\x05voter\x18\x02 \x01(\tB\x10\xf2\xde\x1f\x0cyaml:\"voter\"R\x05voter\x12:\n\x0csubmit_block\x18\x03 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"submit_block\"R\x0bsubmitBlock:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xe4\x01\n\x19\x41ggregateExchangeRateVote\x12\x90\x01\n\x14\x65xchange_rate_tuples\x18\x01 \x03(\x0b\x32#.nibiru.oracle.v1.ExchangeRateTupleB9\xc8\xde\x1f\x00\xf2\xde\x1f\x1byaml:\"exchange_rate_tuples\"\xaa\xdf\x1f\x12\x45xchangeRateTuplesR\x12\x65xchangeRateTuples\x12&\n\x05voter\x18\x02 \x01(\tB\x10\xf2\xde\x1f\x0cyaml:\"voter\"R\x05voter:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xec\x01\n\x11\x45xchangeRateTuple\x12\\\n\x04pair\x18\x01 \x01(\tBH\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.Pair\xf2\xde\x1f\x0byaml:\"pair\"R\x04pair\x12k\n\rexchange_rate\x18\x02 \x01(\tBF\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x14yaml:\"exchange_rate\"R\x0c\x65xchangeRate:\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xb8\x01\n\nDatedPrice\x12k\n\rexchange_rate\x18\x01 \x01(\tBF\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x14yaml:\"exchange_rate\"R\x0c\x65xchangeRate\x12=\n\rcreated_block\x18\x02 \x01(\x04\x42\x18\xf2\xde\x1f\x14yaml:\"created_block\"R\x0c\x63reatedBlock\"s\n\x07Rewards\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12!\n\x0cvote_periods\x18\x02 \x01(\x04R\x0bvotePeriods\x12\x35\n\x05\x63oins\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x05\x63oinsB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.oracle_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _PARAMS.fields_by_name['vote_period']._options = None + _PARAMS.fields_by_name['vote_period']._serialized_options = b'\362\336\037\022yaml:\"vote_period\"' + _PARAMS.fields_by_name['vote_threshold']._options = None + _PARAMS.fields_by_name['vote_threshold']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\025yaml:\"vote_threshold\"' + _PARAMS.fields_by_name['reward_band']._options = None + _PARAMS.fields_by_name['reward_band']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\022yaml:\"reward_band\"' + _PARAMS.fields_by_name['whitelist']._options = None + _PARAMS.fields_by_name['whitelist']._serialized_options = b'\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair\362\336\037\020yaml:\"whitelist\"' + _PARAMS.fields_by_name['slash_fraction']._options = None + _PARAMS.fields_by_name['slash_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\025yaml:\"slash_fraction\"' + _PARAMS.fields_by_name['slash_window']._options = None + _PARAMS.fields_by_name['slash_window']._serialized_options = b'\362\336\037\023yaml:\"slash_window\"' + _PARAMS.fields_by_name['min_valid_per_window']._options = None + _PARAMS.fields_by_name['min_valid_per_window']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\033yaml:\"min_valid_per_window\"' + _PARAMS.fields_by_name['twap_lookback_window']._options = None + _PARAMS.fields_by_name['twap_lookback_window']._serialized_options = b'\310\336\037\000\352\336\037\036twap_lookback_window,omitempty\362\336\037\033yaml:\"twap_lookback_window\"\230\337\037\001' + _PARAMS.fields_by_name['min_voters']._options = None + _PARAMS.fields_by_name['min_voters']._serialized_options = b'\362\336\037\021yaml:\"min_voters\"' + _PARAMS.fields_by_name['validator_fee_ratio']._options = None + _PARAMS.fields_by_name['validator_fee_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\032yaml:\"validator_fee_ratio\"' + _PARAMS.fields_by_name['expiration_blocks']._options = None + _PARAMS.fields_by_name['expiration_blocks']._serialized_options = b'\362\336\037\030yaml:\"expiration_blocks\"' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000\350\240\037\001' + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['hash']._options = None + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['hash']._serialized_options = b'\362\336\037\013yaml:\"hash\"' + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['voter']._options = None + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['voter']._serialized_options = b'\362\336\037\014yaml:\"voter\"' + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['submit_block']._options = None + _AGGREGATEEXCHANGERATEPREVOTE.fields_by_name['submit_block']._serialized_options = b'\362\336\037\023yaml:\"submit_block\"' + _AGGREGATEEXCHANGERATEPREVOTE._options = None + _AGGREGATEEXCHANGERATEPREVOTE._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _AGGREGATEEXCHANGERATEVOTE.fields_by_name['exchange_rate_tuples']._options = None + _AGGREGATEEXCHANGERATEVOTE.fields_by_name['exchange_rate_tuples']._serialized_options = b'\310\336\037\000\362\336\037\033yaml:\"exchange_rate_tuples\"\252\337\037\022ExchangeRateTuples' + _AGGREGATEEXCHANGERATEVOTE.fields_by_name['voter']._options = None + _AGGREGATEEXCHANGERATEVOTE.fields_by_name['voter']._serialized_options = b'\362\336\037\014yaml:\"voter\"' + _AGGREGATEEXCHANGERATEVOTE._options = None + _AGGREGATEEXCHANGERATEVOTE._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _EXCHANGERATETUPLE.fields_by_name['pair']._options = None + _EXCHANGERATETUPLE.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair\362\336\037\013yaml:\"pair\"' + _EXCHANGERATETUPLE.fields_by_name['exchange_rate']._options = None + _EXCHANGERATETUPLE.fields_by_name['exchange_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\024yaml:\"exchange_rate\"' + _EXCHANGERATETUPLE._options = None + _EXCHANGERATETUPLE._serialized_options = b'\210\240\037\000\230\240\037\000\350\240\037\000' + _DATEDPRICE.fields_by_name['exchange_rate']._options = None + _DATEDPRICE.fields_by_name['exchange_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\024yaml:\"exchange_rate\"' + _DATEDPRICE.fields_by_name['created_block']._options = None + _DATEDPRICE.fields_by_name['created_block']._serialized_options = b'\362\336\037\024yaml:\"created_block\"' + _REWARDS.fields_by_name['coins']._options = None + _REWARDS.fields_by_name['coins']._serialized_options = b'\310\336\037\000' + _PARAMS._serialized_start=138 + _PARAMS._serialized_end=1241 + _AGGREGATEEXCHANGERATEPREVOTE._serialized_start=1244 + _AGGREGATEEXCHANGERATEPREVOTE._serialized_end=1425 + _AGGREGATEEXCHANGERATEVOTE._serialized_start=1428 + _AGGREGATEEXCHANGERATEVOTE._serialized_end=1656 + _EXCHANGERATETUPLE._serialized_start=1659 + _EXCHANGERATETUPLE._serialized_end=1895 + _DATEDPRICE._serialized_start=1898 + _DATEDPRICE._serialized_end=2082 + _REWARDS._serialized_start=2084 + _REWARDS._serialized_end=2199 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/oracle_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/oracle_pb2.pyi new file mode 100644 index 00000000..821688ae --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/oracle_pb2.pyi @@ -0,0 +1,218 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +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 Params(google.protobuf.message.Message): + """Params defines the module parameters for the x/oracle module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_PERIOD_FIELD_NUMBER: builtins.int + VOTE_THRESHOLD_FIELD_NUMBER: builtins.int + REWARD_BAND_FIELD_NUMBER: builtins.int + WHITELIST_FIELD_NUMBER: builtins.int + SLASH_FRACTION_FIELD_NUMBER: builtins.int + SLASH_WINDOW_FIELD_NUMBER: builtins.int + MIN_VALID_PER_WINDOW_FIELD_NUMBER: builtins.int + TWAP_LOOKBACK_WINDOW_FIELD_NUMBER: builtins.int + MIN_VOTERS_FIELD_NUMBER: builtins.int + VALIDATOR_FEE_RATIO_FIELD_NUMBER: builtins.int + EXPIRATION_BLOCKS_FIELD_NUMBER: builtins.int + vote_period: builtins.int + """VotePeriod defines the number of blocks during which voting takes place.""" + vote_threshold: builtins.str + """VoteThreshold specifies the minimum proportion of votes that must be + received for a ballot to pass. + """ + reward_band: builtins.str + """RewardBand defines a maxium divergence that a price vote can have from the + weighted median in the ballot. If a vote lies within the valid range + defined by: + μ := weightedMedian, + validRange := μ ± (μ * rewardBand / 2), + then rewards are added to the validator performance. + Note that if the reward band is smaller than 1 standard + deviation, the band is taken to be 1 standard deviation.a price + """ + @property + def whitelist(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """The set of whitelisted markets, or asset pairs, for the module. + Ex. '["unibi:uusd","ubtc:uusd"]' + """ + slash_fraction: builtins.str + """SlashFraction returns the proportion of an oracle's stake that gets + slashed in the event of slashing. `SlashFraction` specifies the exact + penalty for failing a voting period. + """ + slash_window: builtins.int + """SlashWindow returns the number of voting periods that specify a + "slash window". After each slash window, all oracles that have missed more + than the penalty threshold are slashed. Missing the penalty threshold is + synonymous with submitting fewer valid votes than `MinValidPerWindow`. + """ + min_valid_per_window: builtins.str + @property + def twap_lookback_window(self) -> google.protobuf.duration_pb2.Duration: + """Amount of time to look back for TWAP calculations""" + min_voters: builtins.int + """The minimum number of voters (i.e. oracle validators) per pair for it to be + considered a passing ballot. Recommended at least 4. + """ + validator_fee_ratio: builtins.str + """The validator fee ratio that is given to validators every epoch.""" + expiration_blocks: builtins.int + def __init__( + self, + *, + vote_period: builtins.int = ..., + vote_threshold: builtins.str = ..., + reward_band: builtins.str = ..., + whitelist: collections.abc.Iterable[builtins.str] | None = ..., + slash_fraction: builtins.str = ..., + slash_window: builtins.int = ..., + min_valid_per_window: builtins.str = ..., + twap_lookback_window: google.protobuf.duration_pb2.Duration | None = ..., + min_voters: builtins.int = ..., + validator_fee_ratio: builtins.str = ..., + expiration_blocks: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["twap_lookback_window", b"twap_lookback_window"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["expiration_blocks", b"expiration_blocks", "min_valid_per_window", b"min_valid_per_window", "min_voters", b"min_voters", "reward_band", b"reward_band", "slash_fraction", b"slash_fraction", "slash_window", b"slash_window", "twap_lookback_window", b"twap_lookback_window", "validator_fee_ratio", b"validator_fee_ratio", "vote_period", b"vote_period", "vote_threshold", b"vote_threshold", "whitelist", b"whitelist"]) -> None: ... + +global___Params = Params + +@typing_extensions.final +class AggregateExchangeRatePrevote(google.protobuf.message.Message): + """Struct for aggregate prevoting on the ExchangeRateVote. + The purpose of aggregate prevote is to hide vote exchange rates with hash + which is formatted as hex string in + SHA256("{salt}:({pair},{exchange_rate})|...|({pair},{exchange_rate}):{voter}") + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + SUBMIT_BLOCK_FIELD_NUMBER: builtins.int + hash: builtins.str + voter: builtins.str + submit_block: builtins.int + def __init__( + self, + *, + hash: builtins.str = ..., + voter: builtins.str = ..., + submit_block: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash", "submit_block", b"submit_block", "voter", b"voter"]) -> None: ... + +global___AggregateExchangeRatePrevote = AggregateExchangeRatePrevote + +@typing_extensions.final +class AggregateExchangeRateVote(google.protobuf.message.Message): + """MsgAggregateExchangeRateVote - struct for voting on + the exchange rates different assets. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGE_RATE_TUPLES_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + @property + def exchange_rate_tuples(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExchangeRateTuple]: ... + voter: builtins.str + def __init__( + self, + *, + exchange_rate_tuples: collections.abc.Iterable[global___ExchangeRateTuple] | None = ..., + voter: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchange_rate_tuples", b"exchange_rate_tuples", "voter", b"voter"]) -> None: ... + +global___AggregateExchangeRateVote = AggregateExchangeRateVote + +@typing_extensions.final +class ExchangeRateTuple(google.protobuf.message.Message): + """ExchangeRateTuple - struct to store interpreted exchange rates data to store""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + EXCHANGE_RATE_FIELD_NUMBER: builtins.int + pair: builtins.str + exchange_rate: builtins.str + def __init__( + self, + *, + pair: builtins.str = ..., + exchange_rate: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchange_rate", b"exchange_rate", "pair", b"pair"]) -> None: ... + +global___ExchangeRateTuple = ExchangeRateTuple + +@typing_extensions.final +class DatedPrice(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGE_RATE_FIELD_NUMBER: builtins.int + CREATED_BLOCK_FIELD_NUMBER: builtins.int + exchange_rate: builtins.str + created_block: builtins.int + def __init__( + self, + *, + exchange_rate: builtins.str = ..., + created_block: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["created_block", b"created_block", "exchange_rate", b"exchange_rate"]) -> None: ... + +global___DatedPrice = DatedPrice + +@typing_extensions.final +class Rewards(google.protobuf.message.Message): + """Rewards defines a credit object towards validators + which provide prices faithfully for different pairs. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VOTE_PERIODS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + id: builtins.int + """id uniquely identifies the rewards instance of the pair""" + vote_periods: builtins.int + """vote_periods defines the vote periods left in which rewards will be + distributed. + """ + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Coins defines the amount of coins to distribute in a single vote period.""" + def __init__( + self, + *, + id: builtins.int = ..., + vote_periods: builtins.int = ..., + coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["coins", b"coins", "id", b"id", "vote_periods", b"vote_periods"]) -> None: ... + +global___Rewards = Rewards diff --git a/nibiru_proto/nibiru/oracle/v1/oracle_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/oracle_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/oracle_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/oracle/v1/query_pb2.py b/nibiru_proto/nibiru/oracle/v1/query_pb2.py new file mode 100644 index 00000000..977a3c70 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/query_pb2.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from nibiru_proto.nibiru.oracle.v1 import oracle_pb2 as nibiru_dot_oracle_dot_v1_dot_oracle__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/oracle/v1/query.proto\x12\x10nibiru.oracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dnibiru/oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"s\n\x18QueryExchangeRateRequest\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"p\n\x19QueryExchangeRateResponse\x12S\n\rexchange_rate\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0c\x65xchangeRate\"\x1b\n\x19QueryExchangeRatesRequest\"\x84\x01\n\x1aQueryExchangeRatesResponse\x12\x66\n\x0e\x65xchange_rates\x18\x01 \x03(\x0b\x32#.nibiru.oracle.v1.ExchangeRateTupleB\x1a\xc8\xde\x1f\x00\xaa\xdf\x1f\x12\x45xchangeRateTuplesR\rexchangeRates\"\x15\n\x13QueryActivesRequest\"k\n\x14QueryActivesResponse\x12S\n\x07\x61\x63tives\x18\x01 \x03(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x07\x61\x63tives\"\x19\n\x17QueryVoteTargetsRequest\"x\n\x18QueryVoteTargetsResponse\x12\\\n\x0cvote_targets\x18\x01 \x03(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x0bvoteTargets\"O\n\x1cQueryFeederDelegationRequest\x12%\n\x0evalidator_addr\x18\x01 \x01(\tR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"@\n\x1dQueryFeederDelegationResponse\x12\x1f\n\x0b\x66\x65\x65\x64\x65r_addr\x18\x01 \x01(\tR\nfeederAddr\"J\n\x17QueryMissCounterRequest\x12%\n\x0evalidator_addr\x18\x01 \x01(\tR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"=\n\x18QueryMissCounterResponse\x12!\n\x0cmiss_counter\x18\x01 \x01(\x04R\x0bmissCounter\"O\n\x1cQueryAggregatePrevoteRequest\x12%\n\x0evalidator_addr\x18\x01 \x01(\tR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x82\x01\n\x1dQueryAggregatePrevoteResponse\x12\x61\n\x11\x61ggregate_prevote\x18\x01 \x01(\x0b\x32..nibiru.oracle.v1.AggregateExchangeRatePrevoteB\x04\xc8\xde\x1f\x00R\x10\x61ggregatePrevote\"\x1f\n\x1dQueryAggregatePrevotesRequest\"\x85\x01\n\x1eQueryAggregatePrevotesResponse\x12\x63\n\x12\x61ggregate_prevotes\x18\x01 \x03(\x0b\x32..nibiru.oracle.v1.AggregateExchangeRatePrevoteB\x04\xc8\xde\x1f\x00R\x11\x61ggregatePrevotes\"L\n\x19QueryAggregateVoteRequest\x12%\n\x0evalidator_addr\x18\x01 \x01(\tR\rvalidatorAddr:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"v\n\x1aQueryAggregateVoteResponse\x12X\n\x0e\x61ggregate_vote\x18\x01 \x01(\x0b\x32+.nibiru.oracle.v1.AggregateExchangeRateVoteB\x04\xc8\xde\x1f\x00R\raggregateVote\"\x1c\n\x1aQueryAggregateVotesRequest\"y\n\x1bQueryAggregateVotesResponse\x12Z\n\x0f\x61ggregate_votes\x18\x01 \x03(\x0b\x32+.nibiru.oracle.v1.AggregateExchangeRateVoteB\x04\xc8\xde\x1f\x00R\x0e\x61ggregateVotes\"\x14\n\x12QueryParamsRequest\"M\n\x13QueryParamsResponse\x12\x36\n\x06params\x18\x01 \x01(\x0b\x32\x18.nibiru.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params2\xc2\x0f\n\x05Query\x12\x95\x01\n\x0c\x45xchangeRate\x12*.nibiru.oracle.v1.QueryExchangeRateRequest\x1a+.nibiru.oracle.v1.QueryExchangeRateResponse\",\x82\xd3\xe4\x93\x02&\x12$/nibiru/oracle/v1beta1/exchange_rate\x12\x9e\x01\n\x10\x45xchangeRateTwap\x12*.nibiru.oracle.v1.QueryExchangeRateRequest\x1a+.nibiru.oracle.v1.QueryExchangeRateResponse\"1\x82\xd3\xe4\x93\x02+\x12)/nibiru/oracle/v1beta1/exchange_rate_twap\x12\x9f\x01\n\rExchangeRates\x12+.nibiru.oracle.v1.QueryExchangeRatesRequest\x1a,.nibiru.oracle.v1.QueryExchangeRatesResponse\"3\x82\xd3\xe4\x93\x02-\x12+/nibiru/oracle/v1beta1/pairs/exchange_rates\x12\x86\x01\n\x07\x41\x63tives\x12%.nibiru.oracle.v1.QueryActivesRequest\x1a&.nibiru.oracle.v1.QueryActivesResponse\",\x82\xd3\xe4\x93\x02&\x12$/nibiru/oracle/v1beta1/pairs/actives\x12\x97\x01\n\x0bVoteTargets\x12).nibiru.oracle.v1.QueryVoteTargetsRequest\x1a*.nibiru.oracle.v1.QueryVoteTargetsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/nibiru/oracle/v1beta1/pairs/vote_targets\x12\xb6\x01\n\x10\x46\x65\x65\x64\x65rDelegation\x12..nibiru.oracle.v1.QueryFeederDelegationRequest\x1a/.nibiru.oracle.v1.QueryFeederDelegationResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/nibiru/oracle/v1beta1/validators/{validator_addr}/feeder\x12\xa5\x01\n\x0bMissCounter\x12).nibiru.oracle.v1.QueryMissCounterRequest\x1a*.nibiru.oracle.v1.QueryMissCounterResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/nibiru/oracle/v1beta1/validators/{validator_addr}/miss\x12\xc1\x01\n\x10\x41ggregatePrevote\x12..nibiru.oracle.v1.QueryAggregatePrevoteRequest\x1a/.nibiru.oracle.v1.QueryAggregatePrevoteResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/nibiru/oracle/v1beta1/validators/{validator_addr}/aggregate_prevote\x12\xb4\x01\n\x11\x41ggregatePrevotes\x12/.nibiru.oracle.v1.QueryAggregatePrevotesRequest\x1a\x30.nibiru.oracle.v1.QueryAggregatePrevotesResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/nibiru/oracle/v1beta1/validators/aggregate_prevotes\x12\xb5\x01\n\rAggregateVote\x12+.nibiru.oracle.v1.QueryAggregateVoteRequest\x1a,.nibiru.oracle.v1.QueryAggregateVoteResponse\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/nibiru/oracle/v1beta1/valdiators/{validator_addr}/aggregate_vote\x12\xa8\x01\n\x0e\x41ggregateVotes\x12,.nibiru.oracle.v1.QueryAggregateVotesRequest\x1a-.nibiru.oracle.v1.QueryAggregateVotesResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/nibiru/oracle/v1beta1/validators/aggregate_votes\x12|\n\x06Params\x12$.nibiru.oracle.v1.QueryParamsRequest\x1a%.nibiru.oracle.v1.QueryParamsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/nibiru/oracle/v1beta1/paramsB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _QUERYEXCHANGERATEREQUEST.fields_by_name['pair']._options = None + _QUERYEXCHANGERATEREQUEST.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _QUERYEXCHANGERATEREQUEST._options = None + _QUERYEXCHANGERATEREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYEXCHANGERATERESPONSE.fields_by_name['exchange_rate']._options = None + _QUERYEXCHANGERATERESPONSE.fields_by_name['exchange_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYEXCHANGERATESRESPONSE.fields_by_name['exchange_rates']._options = None + _QUERYEXCHANGERATESRESPONSE.fields_by_name['exchange_rates']._serialized_options = b'\310\336\037\000\252\337\037\022ExchangeRateTuples' + _QUERYACTIVESRESPONSE.fields_by_name['actives']._options = None + _QUERYACTIVESRESPONSE.fields_by_name['actives']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _QUERYVOTETARGETSRESPONSE.fields_by_name['vote_targets']._options = None + _QUERYVOTETARGETSRESPONSE.fields_by_name['vote_targets']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _QUERYFEEDERDELEGATIONREQUEST._options = None + _QUERYFEEDERDELEGATIONREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYMISSCOUNTERREQUEST._options = None + _QUERYMISSCOUNTERREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYAGGREGATEPREVOTEREQUEST._options = None + _QUERYAGGREGATEPREVOTEREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYAGGREGATEPREVOTERESPONSE.fields_by_name['aggregate_prevote']._options = None + _QUERYAGGREGATEPREVOTERESPONSE.fields_by_name['aggregate_prevote']._serialized_options = b'\310\336\037\000' + _QUERYAGGREGATEPREVOTESRESPONSE.fields_by_name['aggregate_prevotes']._options = None + _QUERYAGGREGATEPREVOTESRESPONSE.fields_by_name['aggregate_prevotes']._serialized_options = b'\310\336\037\000' + _QUERYAGGREGATEVOTEREQUEST._options = None + _QUERYAGGREGATEVOTEREQUEST._serialized_options = b'\210\240\037\000\350\240\037\000' + _QUERYAGGREGATEVOTERESPONSE.fields_by_name['aggregate_vote']._options = None + _QUERYAGGREGATEVOTERESPONSE.fields_by_name['aggregate_vote']._serialized_options = b'\310\336\037\000' + _QUERYAGGREGATEVOTESRESPONSE.fields_by_name['aggregate_votes']._options = None + _QUERYAGGREGATEVOTESRESPONSE.fields_by_name['aggregate_votes']._serialized_options = b'\310\336\037\000' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['ExchangeRate']._options = None + _QUERY.methods_by_name['ExchangeRate']._serialized_options = b'\202\323\344\223\002&\022$/nibiru/oracle/v1beta1/exchange_rate' + _QUERY.methods_by_name['ExchangeRateTwap']._options = None + _QUERY.methods_by_name['ExchangeRateTwap']._serialized_options = b'\202\323\344\223\002+\022)/nibiru/oracle/v1beta1/exchange_rate_twap' + _QUERY.methods_by_name['ExchangeRates']._options = None + _QUERY.methods_by_name['ExchangeRates']._serialized_options = b'\202\323\344\223\002-\022+/nibiru/oracle/v1beta1/pairs/exchange_rates' + _QUERY.methods_by_name['Actives']._options = None + _QUERY.methods_by_name['Actives']._serialized_options = b'\202\323\344\223\002&\022$/nibiru/oracle/v1beta1/pairs/actives' + _QUERY.methods_by_name['VoteTargets']._options = None + _QUERY.methods_by_name['VoteTargets']._serialized_options = b'\202\323\344\223\002+\022)/nibiru/oracle/v1beta1/pairs/vote_targets' + _QUERY.methods_by_name['FeederDelegation']._options = None + _QUERY.methods_by_name['FeederDelegation']._serialized_options = b'\202\323\344\223\002;\0229/nibiru/oracle/v1beta1/validators/{validator_addr}/feeder' + _QUERY.methods_by_name['MissCounter']._options = None + _QUERY.methods_by_name['MissCounter']._serialized_options = b'\202\323\344\223\0029\0227/nibiru/oracle/v1beta1/validators/{validator_addr}/miss' + _QUERY.methods_by_name['AggregatePrevote']._options = None + _QUERY.methods_by_name['AggregatePrevote']._serialized_options = b'\202\323\344\223\002F\022D/nibiru/oracle/v1beta1/validators/{validator_addr}/aggregate_prevote' + _QUERY.methods_by_name['AggregatePrevotes']._options = None + _QUERY.methods_by_name['AggregatePrevotes']._serialized_options = b'\202\323\344\223\0026\0224/nibiru/oracle/v1beta1/validators/aggregate_prevotes' + _QUERY.methods_by_name['AggregateVote']._options = None + _QUERY.methods_by_name['AggregateVote']._serialized_options = b'\202\323\344\223\002C\022A/nibiru/oracle/v1beta1/valdiators/{validator_addr}/aggregate_vote' + _QUERY.methods_by_name['AggregateVotes']._options = None + _QUERY.methods_by_name['AggregateVotes']._serialized_options = b'\202\323\344\223\0023\0221/nibiru/oracle/v1beta1/validators/aggregate_votes' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\037\022\035/nibiru/oracle/v1beta1/params' + _QUERYEXCHANGERATEREQUEST._serialized_start=165 + _QUERYEXCHANGERATEREQUEST._serialized_end=280 + _QUERYEXCHANGERATERESPONSE._serialized_start=282 + _QUERYEXCHANGERATERESPONSE._serialized_end=394 + _QUERYEXCHANGERATESREQUEST._serialized_start=396 + _QUERYEXCHANGERATESREQUEST._serialized_end=423 + _QUERYEXCHANGERATESRESPONSE._serialized_start=426 + _QUERYEXCHANGERATESRESPONSE._serialized_end=558 + _QUERYACTIVESREQUEST._serialized_start=560 + _QUERYACTIVESREQUEST._serialized_end=581 + _QUERYACTIVESRESPONSE._serialized_start=583 + _QUERYACTIVESRESPONSE._serialized_end=690 + _QUERYVOTETARGETSREQUEST._serialized_start=692 + _QUERYVOTETARGETSREQUEST._serialized_end=717 + _QUERYVOTETARGETSRESPONSE._serialized_start=719 + _QUERYVOTETARGETSRESPONSE._serialized_end=839 + _QUERYFEEDERDELEGATIONREQUEST._serialized_start=841 + _QUERYFEEDERDELEGATIONREQUEST._serialized_end=920 + _QUERYFEEDERDELEGATIONRESPONSE._serialized_start=922 + _QUERYFEEDERDELEGATIONRESPONSE._serialized_end=986 + _QUERYMISSCOUNTERREQUEST._serialized_start=988 + _QUERYMISSCOUNTERREQUEST._serialized_end=1062 + _QUERYMISSCOUNTERRESPONSE._serialized_start=1064 + _QUERYMISSCOUNTERRESPONSE._serialized_end=1125 + _QUERYAGGREGATEPREVOTEREQUEST._serialized_start=1127 + _QUERYAGGREGATEPREVOTEREQUEST._serialized_end=1206 + _QUERYAGGREGATEPREVOTERESPONSE._serialized_start=1209 + _QUERYAGGREGATEPREVOTERESPONSE._serialized_end=1339 + _QUERYAGGREGATEPREVOTESREQUEST._serialized_start=1341 + _QUERYAGGREGATEPREVOTESREQUEST._serialized_end=1372 + _QUERYAGGREGATEPREVOTESRESPONSE._serialized_start=1375 + _QUERYAGGREGATEPREVOTESRESPONSE._serialized_end=1508 + _QUERYAGGREGATEVOTEREQUEST._serialized_start=1510 + _QUERYAGGREGATEVOTEREQUEST._serialized_end=1586 + _QUERYAGGREGATEVOTERESPONSE._serialized_start=1588 + _QUERYAGGREGATEVOTERESPONSE._serialized_end=1706 + _QUERYAGGREGATEVOTESREQUEST._serialized_start=1708 + _QUERYAGGREGATEVOTESREQUEST._serialized_end=1736 + _QUERYAGGREGATEVOTESRESPONSE._serialized_start=1738 + _QUERYAGGREGATEVOTESRESPONSE._serialized_end=1859 + _QUERYPARAMSREQUEST._serialized_start=1861 + _QUERYPARAMSREQUEST._serialized_end=1881 + _QUERYPARAMSRESPONSE._serialized_start=1883 + _QUERYPARAMSRESPONSE._serialized_end=1960 + _QUERY._serialized_start=1963 + _QUERY._serialized_end=3949 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/query_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/query_pb2.pyi new file mode 100644 index 00000000..bab36bf9 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/query_pb2.pyi @@ -0,0 +1,439 @@ +""" +@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 nibiru.oracle.v1.oracle_pb2 +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 QueryExchangeRateRequest(google.protobuf.message.Message): + """QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + pair: builtins.str + """pair defines the pair to query for.""" + def __init__( + self, + *, + pair: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair"]) -> None: ... + +global___QueryExchangeRateRequest = QueryExchangeRateRequest + +@typing_extensions.final +class QueryExchangeRateResponse(google.protobuf.message.Message): + """QueryExchangeRateResponse is response type for the + Query/ExchangeRate RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGE_RATE_FIELD_NUMBER: builtins.int + exchange_rate: builtins.str + """exchange_rate defines the exchange rate of assets voted by validators""" + def __init__( + self, + *, + exchange_rate: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchange_rate", b"exchange_rate"]) -> None: ... + +global___QueryExchangeRateResponse = QueryExchangeRateResponse + +@typing_extensions.final +class QueryExchangeRatesRequest(google.protobuf.message.Message): + """QueryExchangeRatesRequest is the request type for the Query/ExchangeRates RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryExchangeRatesRequest = QueryExchangeRatesRequest + +@typing_extensions.final +class QueryExchangeRatesResponse(google.protobuf.message.Message): + """QueryExchangeRatesResponse is response type for the + Query/ExchangeRates RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGE_RATES_FIELD_NUMBER: builtins.int + @property + def exchange_rates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple]: + """exchange_rates defines a list of the exchange rate for all whitelisted + pairs. + """ + def __init__( + self, + *, + exchange_rates: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.ExchangeRateTuple] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchange_rates", b"exchange_rates"]) -> None: ... + +global___QueryExchangeRatesResponse = QueryExchangeRatesResponse + +@typing_extensions.final +class QueryActivesRequest(google.protobuf.message.Message): + """QueryActivesRequest is the request type for the Query/Actives RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryActivesRequest = QueryActivesRequest + +@typing_extensions.final +class QueryActivesResponse(google.protobuf.message.Message): + """QueryActivesResponse is response type for the + Query/Actives RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTIVES_FIELD_NUMBER: builtins.int + @property + def actives(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """actives defines a list of the pair which oracle prices agreed upon.""" + def __init__( + self, + *, + actives: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["actives", b"actives"]) -> None: ... + +global___QueryActivesResponse = QueryActivesResponse + +@typing_extensions.final +class QueryVoteTargetsRequest(google.protobuf.message.Message): + """QueryVoteTargetsRequest is the request type for the Query/VoteTargets RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryVoteTargetsRequest = QueryVoteTargetsRequest + +@typing_extensions.final +class QueryVoteTargetsResponse(google.protobuf.message.Message): + """QueryVoteTargetsResponse is response type for the + Query/VoteTargets RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_TARGETS_FIELD_NUMBER: builtins.int + @property + def vote_targets(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """vote_targets defines a list of the pairs in which everyone + should vote in the current vote period. + """ + def __init__( + self, + *, + vote_targets: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["vote_targets", b"vote_targets"]) -> None: ... + +global___QueryVoteTargetsResponse = QueryVoteTargetsResponse + +@typing_extensions.final +class QueryFeederDelegationRequest(google.protobuf.message.Message): + """QueryFeederDelegationRequest is the request type for the + Query/FeederDelegation RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator defines the validator address to query for.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___QueryFeederDelegationRequest = QueryFeederDelegationRequest + +@typing_extensions.final +class QueryFeederDelegationResponse(google.protobuf.message.Message): + """QueryFeederDelegationResponse is response type for the + Query/FeederDelegation RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FEEDER_ADDR_FIELD_NUMBER: builtins.int + feeder_addr: builtins.str + """feeder_addr defines the feeder delegation of a validator""" + def __init__( + self, + *, + feeder_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder_addr", b"feeder_addr"]) -> None: ... + +global___QueryFeederDelegationResponse = QueryFeederDelegationResponse + +@typing_extensions.final +class QueryMissCounterRequest(google.protobuf.message.Message): + """QueryMissCounterRequest is the request type for the Query/MissCounter RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator defines the validator address to query for.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___QueryMissCounterRequest = QueryMissCounterRequest + +@typing_extensions.final +class QueryMissCounterResponse(google.protobuf.message.Message): + """QueryMissCounterResponse is response type for the + Query/MissCounter RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MISS_COUNTER_FIELD_NUMBER: builtins.int + miss_counter: builtins.int + """miss_counter defines the oracle miss counter of a validator""" + def __init__( + self, + *, + miss_counter: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["miss_counter", b"miss_counter"]) -> None: ... + +global___QueryMissCounterResponse = QueryMissCounterResponse + +@typing_extensions.final +class QueryAggregatePrevoteRequest(google.protobuf.message.Message): + """QueryAggregatePrevoteRequest is the request type for the + Query/AggregatePrevote RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator defines the validator address to query for.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___QueryAggregatePrevoteRequest = QueryAggregatePrevoteRequest + +@typing_extensions.final +class QueryAggregatePrevoteResponse(google.protobuf.message.Message): + """QueryAggregatePrevoteResponse is response type for the + Query/AggregatePrevote RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AGGREGATE_PREVOTE_FIELD_NUMBER: builtins.int + @property + def aggregate_prevote(self) -> nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote: + """aggregate_prevote defines oracle aggregate prevote submitted by a validator + in the current vote period + """ + def __init__( + self, + *, + aggregate_prevote: nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aggregate_prevote", b"aggregate_prevote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aggregate_prevote", b"aggregate_prevote"]) -> None: ... + +global___QueryAggregatePrevoteResponse = QueryAggregatePrevoteResponse + +@typing_extensions.final +class QueryAggregatePrevotesRequest(google.protobuf.message.Message): + """QueryAggregatePrevotesRequest is the request type for the + Query/AggregatePrevotes RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryAggregatePrevotesRequest = QueryAggregatePrevotesRequest + +@typing_extensions.final +class QueryAggregatePrevotesResponse(google.protobuf.message.Message): + """QueryAggregatePrevotesResponse is response type for the + Query/AggregatePrevotes RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AGGREGATE_PREVOTES_FIELD_NUMBER: builtins.int + @property + def aggregate_prevotes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote]: + """aggregate_prevotes defines all oracle aggregate prevotes submitted in the + current vote period + """ + def __init__( + self, + *, + aggregate_prevotes: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRatePrevote] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["aggregate_prevotes", b"aggregate_prevotes"]) -> None: ... + +global___QueryAggregatePrevotesResponse = QueryAggregatePrevotesResponse + +@typing_extensions.final +class QueryAggregateVoteRequest(google.protobuf.message.Message): + """QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC + method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: builtins.str + """validator defines the validator address to query for.""" + def __init__( + self, + *, + validator_addr: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["validator_addr", b"validator_addr"]) -> None: ... + +global___QueryAggregateVoteRequest = QueryAggregateVoteRequest + +@typing_extensions.final +class QueryAggregateVoteResponse(google.protobuf.message.Message): + """QueryAggregateVoteResponse is response type for the + Query/AggregateVote RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AGGREGATE_VOTE_FIELD_NUMBER: builtins.int + @property + def aggregate_vote(self) -> nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote: + """aggregate_vote defines oracle aggregate vote submitted by a validator in + the current vote period + """ + def __init__( + self, + *, + aggregate_vote: nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aggregate_vote", b"aggregate_vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aggregate_vote", b"aggregate_vote"]) -> None: ... + +global___QueryAggregateVoteResponse = QueryAggregateVoteResponse + +@typing_extensions.final +class QueryAggregateVotesRequest(google.protobuf.message.Message): + """QueryAggregateVotesRequest is the request type for the Query/AggregateVotes + RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryAggregateVotesRequest = QueryAggregateVotesRequest + +@typing_extensions.final +class QueryAggregateVotesResponse(google.protobuf.message.Message): + """QueryAggregateVotesResponse is response type for the + Query/AggregateVotes RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AGGREGATE_VOTES_FIELD_NUMBER: builtins.int + @property + def aggregate_votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote]: + """aggregate_votes defines all oracle aggregate votes submitted in the current + vote period + """ + def __init__( + self, + *, + aggregate_votes: collections.abc.Iterable[nibiru.oracle.v1.oracle_pb2.AggregateExchangeRateVote] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["aggregate_votes", b"aggregate_votes"]) -> None: ... + +global___QueryAggregateVotesResponse = QueryAggregateVotesResponse + +@typing_extensions.final +class QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is the request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is the response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.oracle.v1.oracle_pb2.Params: + """params defines the parameters of the module.""" + def __init__( + self, + *, + params: nibiru.oracle.v1.oracle_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse diff --git a/nibiru_proto/nibiru/oracle/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/query_pb2_grpc.py new file mode 100644 index 00000000..99e6008d --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/query_pb2_grpc.py @@ -0,0 +1,444 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.oracle.v1 import query_pb2 as nibiru_dot_oracle_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ExchangeRate = channel.unary_unary( + '/nibiru.oracle.v1.Query/ExchangeRate', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.FromString, + ) + self.ExchangeRateTwap = channel.unary_unary( + '/nibiru.oracle.v1.Query/ExchangeRateTwap', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.FromString, + ) + self.ExchangeRates = channel.unary_unary( + '/nibiru.oracle.v1.Query/ExchangeRates', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesResponse.FromString, + ) + self.Actives = channel.unary_unary( + '/nibiru.oracle.v1.Query/Actives', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesResponse.FromString, + ) + self.VoteTargets = channel.unary_unary( + '/nibiru.oracle.v1.Query/VoteTargets', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsResponse.FromString, + ) + self.FeederDelegation = channel.unary_unary( + '/nibiru.oracle.v1.Query/FeederDelegation', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationResponse.FromString, + ) + self.MissCounter = channel.unary_unary( + '/nibiru.oracle.v1.Query/MissCounter', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterResponse.FromString, + ) + self.AggregatePrevote = channel.unary_unary( + '/nibiru.oracle.v1.Query/AggregatePrevote', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteResponse.FromString, + ) + self.AggregatePrevotes = channel.unary_unary( + '/nibiru.oracle.v1.Query/AggregatePrevotes', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesResponse.FromString, + ) + self.AggregateVote = channel.unary_unary( + '/nibiru.oracle.v1.Query/AggregateVote', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteResponse.FromString, + ) + self.AggregateVotes = channel.unary_unary( + '/nibiru.oracle.v1.Query/AggregateVotes', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesResponse.FromString, + ) + self.Params = channel.unary_unary( + '/nibiru.oracle.v1.Query/Params', + request_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def ExchangeRate(self, request, context): + """ExchangeRate returns exchange rate of a pair + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExchangeRateTwap(self, request, context): + """ExchangeRateTwap returns twap exchange rate of a pair + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExchangeRates(self, request, context): + """ExchangeRates returns exchange rates of all pairs + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Actives(self, request, context): + """Actives returns all active pairs + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def VoteTargets(self, request, context): + """VoteTargets returns all vote target for pairs + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FeederDelegation(self, request, context): + """FeederDelegation returns feeder delegation of a validator + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MissCounter(self, request, context): + """MissCounter returns oracle miss counter of a validator + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AggregatePrevote(self, request, context): + """AggregatePrevote returns an aggregate prevote of a validator + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AggregatePrevotes(self, request, context): + """AggregatePrevotes returns aggregate prevotes of all validators + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AggregateVote(self, request, context): + """AggregateVote returns an aggregate vote of a validator + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AggregateVotes(self, request, context): + """AggregateVotes returns aggregate votes of all validators + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Params(self, request, context): + """Params queries all parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ExchangeRate': grpc.unary_unary_rpc_method_handler( + servicer.ExchangeRate, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.SerializeToString, + ), + 'ExchangeRateTwap': grpc.unary_unary_rpc_method_handler( + servicer.ExchangeRateTwap, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.SerializeToString, + ), + 'ExchangeRates': grpc.unary_unary_rpc_method_handler( + servicer.ExchangeRates, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesResponse.SerializeToString, + ), + 'Actives': grpc.unary_unary_rpc_method_handler( + servicer.Actives, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesResponse.SerializeToString, + ), + 'VoteTargets': grpc.unary_unary_rpc_method_handler( + servicer.VoteTargets, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsResponse.SerializeToString, + ), + 'FeederDelegation': grpc.unary_unary_rpc_method_handler( + servicer.FeederDelegation, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationResponse.SerializeToString, + ), + 'MissCounter': grpc.unary_unary_rpc_method_handler( + servicer.MissCounter, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterResponse.SerializeToString, + ), + 'AggregatePrevote': grpc.unary_unary_rpc_method_handler( + servicer.AggregatePrevote, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteResponse.SerializeToString, + ), + 'AggregatePrevotes': grpc.unary_unary_rpc_method_handler( + servicer.AggregatePrevotes, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesResponse.SerializeToString, + ), + 'AggregateVote': grpc.unary_unary_rpc_method_handler( + servicer.AggregateVote, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteResponse.SerializeToString, + ), + 'AggregateVotes': grpc.unary_unary_rpc_method_handler( + servicer.AggregateVotes, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesResponse.SerializeToString, + ), + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.oracle.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def ExchangeRate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/ExchangeRate', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExchangeRateTwap(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/ExchangeRateTwap', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExchangeRates(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/ExchangeRates', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryExchangeRatesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Actives(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/Actives', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryActivesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def VoteTargets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/VoteTargets', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryVoteTargetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FeederDelegation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/FeederDelegation', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryFeederDelegationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MissCounter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/MissCounter', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryMissCounterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AggregatePrevote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/AggregatePrevote', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AggregatePrevotes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/AggregatePrevotes', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregatePrevotesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AggregateVote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/AggregateVote', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AggregateVotes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/AggregateVotes', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryAggregateVotesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Query/Params', + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/oracle/v1/state_pb2.py b/nibiru_proto/nibiru/oracle/v1/state_pb2.py new file mode 100644 index 00000000..7d26fcd9 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/state_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/state.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from nibiru_proto.nibiru.oracle.v1 import oracle_pb2 as nibiru_dot_oracle_dot_v1_dot_oracle__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/oracle/v1/state.proto\x12\x10nibiru.oracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dnibiru/oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xd6\x01\n\rPriceSnapshot\x12\\\n\x04pair\x18\x01 \x01(\tBH\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.Pair\xf2\xde\x1f\x0byaml:\"pair\"R\x04pair\x12\x44\n\x05price\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x05price\x12!\n\x0ctimestamp_ms\x18\x03 \x01(\x03R\x0btimestampMsB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.state_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _PRICESNAPSHOT.fields_by_name['pair']._options = None + _PRICESNAPSHOT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair\362\336\037\013yaml:\"pair\"' + _PRICESNAPSHOT.fields_by_name['price']._options = None + _PRICESNAPSHOT.fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _PRICESNAPSHOT._serialized_start=166 + _PRICESNAPSHOT._serialized_end=380 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/state_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/state_pb2.pyi new file mode 100644 index 00000000..9721fcf9 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/state_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 PriceSnapshot(google.protobuf.message.Message): + """a snapshot of the prices at a given point in time""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + PRICE_FIELD_NUMBER: builtins.int + TIMESTAMP_MS_FIELD_NUMBER: builtins.int + pair: builtins.str + price: builtins.str + timestamp_ms: builtins.int + """milliseconds since unix epoch""" + def __init__( + self, + *, + pair: builtins.str = ..., + price: builtins.str = ..., + timestamp_ms: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "price", b"price", "timestamp_ms", b"timestamp_ms"]) -> None: ... + +global___PriceSnapshot = PriceSnapshot diff --git a/nibiru_proto/nibiru/oracle/v1/state_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/state_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/state_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/oracle/v1/tx_pb2.py b/nibiru_proto/nibiru/oracle/v1/tx_pb2.py new file mode 100644 index 00000000..e7337fd3 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/tx_pb2.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/oracle/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19nibiru/oracle/v1/tx.proto\x12\x10nibiru.oracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"\xaf\x01\n\x1fMsgAggregateExchangeRatePrevote\x12#\n\x04hash\x18\x01 \x01(\tB\x0f\xf2\xde\x1f\x0byaml:\"hash\"R\x04hash\x12)\n\x06\x66\x65\x65\x64\x65r\x18\x02 \x01(\tB\x11\xf2\xde\x1f\ryaml:\"feeder\"R\x06\x66\x65\x65\x64\x65r\x12\x32\n\tvalidator\x18\x03 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"validator\"R\tvalidator:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\")\n\'MsgAggregateExchangeRatePrevoteResponse\"\xee\x01\n\x1cMsgAggregateExchangeRateVote\x12#\n\x04salt\x18\x01 \x01(\tB\x0f\xf2\xde\x1f\x0byaml:\"salt\"R\x04salt\x12@\n\x0e\x65xchange_rates\x18\x02 \x01(\tB\x19\xf2\xde\x1f\x15yaml:\"exchange_rates\"R\rexchangeRates\x12)\n\x06\x66\x65\x65\x64\x65r\x18\x03 \x01(\tB\x11\xf2\xde\x1f\ryaml:\"feeder\"R\x06\x66\x65\x65\x64\x65r\x12\x32\n\tvalidator\x18\x04 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"validator\"R\tvalidator:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"&\n$MsgAggregateExchangeRateVoteResponse\"\x84\x01\n\x16MsgDelegateFeedConsent\x12/\n\x08operator\x18\x01 \x01(\tB\x13\xf2\xde\x1f\x0fyaml:\"operator\"R\x08operator\x12/\n\x08\x64\x65legate\x18\x02 \x01(\tB\x13\xf2\xde\x1f\x0fyaml:\"delegate\"R\x08\x64\x65legate:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\" \n\x1eMsgDelegateFeedConsentResponse2\xf3\x03\n\x03Msg\x12\xac\x01\n\x1c\x41ggregateExchangeRatePrevote\x12\x31.nibiru.oracle.v1.MsgAggregateExchangeRatePrevote\x1a\x39.nibiru.oracle.v1.MsgAggregateExchangeRatePrevoteResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x16/nibiru/oracle/prevote\x12\xa0\x01\n\x19\x41ggregateExchangeRateVote\x12..nibiru.oracle.v1.MsgAggregateExchangeRateVote\x1a\x36.nibiru.oracle.v1.MsgAggregateExchangeRateVoteResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x13/nibiru/oracle/vote\x12\x99\x01\n\x13\x44\x65legateFeedConsent\x12(.nibiru.oracle.v1.MsgDelegateFeedConsent\x1a\x30.nibiru.oracle.v1.MsgDelegateFeedConsentResponse\"&\x82\xd3\xe4\x93\x02 \"\x1e/nibiru/oracle/feeder-delegateB.Z,github.com/NibiruChain/nibiru/x/oracle/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.oracle.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/NibiruChain/nibiru/x/oracle/types' + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['hash']._options = None + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['hash']._serialized_options = b'\362\336\037\013yaml:\"hash\"' + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['feeder']._options = None + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['feeder']._serialized_options = b'\362\336\037\ryaml:\"feeder\"' + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['validator']._options = None + _MSGAGGREGATEEXCHANGERATEPREVOTE.fields_by_name['validator']._serialized_options = b'\362\336\037\020yaml:\"validator\"' + _MSGAGGREGATEEXCHANGERATEPREVOTE._options = None + _MSGAGGREGATEEXCHANGERATEPREVOTE._serialized_options = b'\210\240\037\000\350\240\037\000' + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['salt']._options = None + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['salt']._serialized_options = b'\362\336\037\013yaml:\"salt\"' + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['exchange_rates']._options = None + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['exchange_rates']._serialized_options = b'\362\336\037\025yaml:\"exchange_rates\"' + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['feeder']._options = None + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['feeder']._serialized_options = b'\362\336\037\ryaml:\"feeder\"' + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['validator']._options = None + _MSGAGGREGATEEXCHANGERATEVOTE.fields_by_name['validator']._serialized_options = b'\362\336\037\020yaml:\"validator\"' + _MSGAGGREGATEEXCHANGERATEVOTE._options = None + _MSGAGGREGATEEXCHANGERATEVOTE._serialized_options = b'\210\240\037\000\350\240\037\000' + _MSGDELEGATEFEEDCONSENT.fields_by_name['operator']._options = None + _MSGDELEGATEFEEDCONSENT.fields_by_name['operator']._serialized_options = b'\362\336\037\017yaml:\"operator\"' + _MSGDELEGATEFEEDCONSENT.fields_by_name['delegate']._options = None + _MSGDELEGATEFEEDCONSENT.fields_by_name['delegate']._serialized_options = b'\362\336\037\017yaml:\"delegate\"' + _MSGDELEGATEFEEDCONSENT._options = None + _MSGDELEGATEFEEDCONSENT._serialized_options = b'\210\240\037\000\350\240\037\000' + _MSG.methods_by_name['AggregateExchangeRatePrevote']._options = None + _MSG.methods_by_name['AggregateExchangeRatePrevote']._serialized_options = b'\202\323\344\223\002\030\"\026/nibiru/oracle/prevote' + _MSG.methods_by_name['AggregateExchangeRateVote']._options = None + _MSG.methods_by_name['AggregateExchangeRateVote']._serialized_options = b'\202\323\344\223\002\025\"\023/nibiru/oracle/vote' + _MSG.methods_by_name['DelegateFeedConsent']._options = None + _MSG.methods_by_name['DelegateFeedConsent']._serialized_options = b'\202\323\344\223\002 \"\036/nibiru/oracle/feeder-delegate' + _MSGAGGREGATEEXCHANGERATEPREVOTE._serialized_start=100 + _MSGAGGREGATEEXCHANGERATEPREVOTE._serialized_end=275 + _MSGAGGREGATEEXCHANGERATEPREVOTERESPONSE._serialized_start=277 + _MSGAGGREGATEEXCHANGERATEPREVOTERESPONSE._serialized_end=318 + _MSGAGGREGATEEXCHANGERATEVOTE._serialized_start=321 + _MSGAGGREGATEEXCHANGERATEVOTE._serialized_end=559 + _MSGAGGREGATEEXCHANGERATEVOTERESPONSE._serialized_start=561 + _MSGAGGREGATEEXCHANGERATEVOTERESPONSE._serialized_end=599 + _MSGDELEGATEFEEDCONSENT._serialized_start=602 + _MSGDELEGATEFEEDCONSENT._serialized_end=734 + _MSGDELEGATEFEEDCONSENTRESPONSE._serialized_start=736 + _MSGDELEGATEFEEDCONSENTRESPONSE._serialized_end=768 + _MSG._serialized_start=771 + _MSG._serialized_end=1270 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/oracle/v1/tx_pb2.pyi b/nibiru_proto/nibiru/oracle/v1/tx_pb2.pyi new file mode 100644 index 00000000..5bc3f22c --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/tx_pb2.pyi @@ -0,0 +1,142 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 MsgAggregateExchangeRatePrevote(google.protobuf.message.Message): + """MsgAggregateExchangeRatePrevote represents a message to submit + aggregate exchange rate prevote. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + FEEDER_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + hash: builtins.str + feeder: builtins.str + """Feeder is the Bech32 address of the price feeder. A validator may + specify multiple price feeders by delegating them consent. The validator + address is also a valid feeder by default. + """ + validator: builtins.str + """Validator is the Bech32 address to which the prevote will be credited.""" + def __init__( + self, + *, + hash: builtins.str = ..., + feeder: builtins.str = ..., + validator: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["feeder", b"feeder", "hash", b"hash", "validator", b"validator"]) -> None: ... + +global___MsgAggregateExchangeRatePrevote = MsgAggregateExchangeRatePrevote + +@typing_extensions.final +class MsgAggregateExchangeRatePrevoteResponse(google.protobuf.message.Message): + """MsgAggregateExchangeRatePrevoteResponse defines the + Msg/AggregateExchangeRatePrevote response type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgAggregateExchangeRatePrevoteResponse = MsgAggregateExchangeRatePrevoteResponse + +@typing_extensions.final +class MsgAggregateExchangeRateVote(google.protobuf.message.Message): + """MsgAggregateExchangeRateVote represents a message to submit + aggregate exchange rate vote. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SALT_FIELD_NUMBER: builtins.int + EXCHANGE_RATES_FIELD_NUMBER: builtins.int + FEEDER_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + salt: builtins.str + exchange_rates: builtins.str + feeder: builtins.str + """Feeder is the Bech32 address of the price feeder. A validator may + specify multiple price feeders by delegating them consent. The validator + address is also a valid feeder by default. + """ + validator: builtins.str + """Validator is the Bech32 address to which the vote will be credited.""" + def __init__( + self, + *, + salt: builtins.str = ..., + exchange_rates: builtins.str = ..., + feeder: builtins.str = ..., + validator: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchange_rates", b"exchange_rates", "feeder", b"feeder", "salt", b"salt", "validator", b"validator"]) -> None: ... + +global___MsgAggregateExchangeRateVote = MsgAggregateExchangeRateVote + +@typing_extensions.final +class MsgAggregateExchangeRateVoteResponse(google.protobuf.message.Message): + """MsgAggregateExchangeRateVoteResponse defines the + Msg/AggregateExchangeRateVote response type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgAggregateExchangeRateVoteResponse = MsgAggregateExchangeRateVoteResponse + +@typing_extensions.final +class MsgDelegateFeedConsent(google.protobuf.message.Message): + """MsgDelegateFeedConsent represents a message to delegate oracle voting rights + to another address. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATOR_FIELD_NUMBER: builtins.int + DELEGATE_FIELD_NUMBER: builtins.int + operator: builtins.str + delegate: builtins.str + def __init__( + self, + *, + operator: builtins.str = ..., + delegate: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["delegate", b"delegate", "operator", b"operator"]) -> None: ... + +global___MsgDelegateFeedConsent = MsgDelegateFeedConsent + +@typing_extensions.final +class MsgDelegateFeedConsentResponse(google.protobuf.message.Message): + """MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response + type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgDelegateFeedConsentResponse = MsgDelegateFeedConsentResponse diff --git a/nibiru_proto/nibiru/oracle/v1/tx_pb2_grpc.py b/nibiru_proto/nibiru/oracle/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..7d32bb39 --- /dev/null +++ b/nibiru_proto/nibiru/oracle/v1/tx_pb2_grpc.py @@ -0,0 +1,142 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.oracle.v1 import tx_pb2 as nibiru_dot_oracle_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the oracle Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.AggregateExchangeRatePrevote = channel.unary_unary( + '/nibiru.oracle.v1.Msg/AggregateExchangeRatePrevote', + request_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevote.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevoteResponse.FromString, + ) + self.AggregateExchangeRateVote = channel.unary_unary( + '/nibiru.oracle.v1.Msg/AggregateExchangeRateVote', + request_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVote.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVoteResponse.FromString, + ) + self.DelegateFeedConsent = channel.unary_unary( + '/nibiru.oracle.v1.Msg/DelegateFeedConsent', + request_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsent.SerializeToString, + response_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsentResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the oracle Msg service. + """ + + def AggregateExchangeRatePrevote(self, request, context): + """AggregateExchangeRatePrevote defines a method for submitting + aggregate exchange rate prevote + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AggregateExchangeRateVote(self, request, context): + """AggregateExchangeRateVote defines a method for submitting + aggregate exchange rate vote + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DelegateFeedConsent(self, request, context): + """DelegateFeedConsent defines a method for delegating oracle voting rights + to another address known as a price feeder. + See https://github.com/NibiruChain/pricefeeder. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'AggregateExchangeRatePrevote': grpc.unary_unary_rpc_method_handler( + servicer.AggregateExchangeRatePrevote, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevote.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevoteResponse.SerializeToString, + ), + 'AggregateExchangeRateVote': grpc.unary_unary_rpc_method_handler( + servicer.AggregateExchangeRateVote, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVote.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVoteResponse.SerializeToString, + ), + 'DelegateFeedConsent': grpc.unary_unary_rpc_method_handler( + servicer.DelegateFeedConsent, + request_deserializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsent.FromString, + response_serializer=nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsentResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.oracle.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the oracle Msg service. + """ + + @staticmethod + def AggregateExchangeRatePrevote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Msg/AggregateExchangeRatePrevote', + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevote.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRatePrevoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AggregateExchangeRateVote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Msg/AggregateExchangeRateVote', + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVote.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgAggregateExchangeRateVoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DelegateFeedConsent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.oracle.v1.Msg/DelegateFeedConsent', + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsent.SerializeToString, + nibiru_dot_oracle_dot_v1_dot_tx__pb2.MsgDelegateFeedConsentResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/perp/__init__.py b/nibiru_proto/nibiru/perp/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/perp/v2/__init__.py b/nibiru_proto/nibiru/perp/v2/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/perp/v2/event_pb2.py b/nibiru_proto/nibiru/perp/v2/event_pb2.py new file mode 100644 index 00000000..f3c4d007 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/event_pb2.py @@ -0,0 +1,95 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/perp/v2/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/perp/v2/event.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1anibiru/perp/v2/state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf0\x06\n\x14PositionChangedEvent\x12\x45\n\x0e\x66inal_position\x18\x01 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionB\x04\xc8\xde\x1f\x00R\rfinalPosition\x12[\n\x11position_notional\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10positionNotional\x12\x62\n\x0ftransaction_fee\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"transaction_fee\"R\x0etransactionFee\x12Q\n\x0crealized_pnl\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0brealizedPnl\x12:\n\x08\x62\x61\x64_debt\x18\x05 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x62\x61\x64\x44\x65\x62t\x12W\n\x0f\x66unding_payment\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12!\n\x0c\x62lock_height\x18\x07 \x01(\x03R\x0b\x62lockHeight\x12T\n\x0emargin_to_user\x18\x08 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x0cmarginToUser\x12\x39\n\rchange_reason\x18\t \x01(\tB\x14\xc8\xde\x1f\x00\xda\xde\x1f\x0c\x43hangeReasonR\x0c\x63hangeReason\x12U\n\x0e\x65xchanged_size\x18\n \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rexchangedSize\x12]\n\x12\x65xchanged_notional\x18\x0b \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x11\x65xchangedNotional\"\x87\x03\n\x17PositionLiquidatedEvent\x12`\n\x16position_changed_event\x18\x01 \x01(\x0b\x32$.nibiru.perp.v2.PositionChangedEventB\x04\xc8\xde\x1f\x00R\x14positionChangedEvent\x12-\n\x12liquidator_address\x18\x02 \x01(\tR\x11liquidatorAddress\x12g\n\x11\x66\x65\x65_to_liquidator\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB \xc8\xde\x1f\x00\xf2\xde\x1f\x18yaml:\"fee_to_liquidator\"R\x0f\x66\x65\x65ToLiquidator\x12r\n\x15\x66\x65\x65_to_ecosystem_fund\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB$\xc8\xde\x1f\x00\xf2\xde\x1f\x1cyaml:\"fee_to_ecosystem_fund\"R\x12\x66\x65\x65ToEcosystemFund\"\x97\x02\n\x14PositionSettledEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12%\n\x0etrader_address\x18\x02 \x01(\tR\rtraderAddress\x12\x88\x01\n\rsettled_coins\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBH\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"settled_coins\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x0csettledCoins\"\xe5\x03\n\x17\x46undingRateChangedEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12V\n\x0fmark_price_twap\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rmarkPriceTwap\x12X\n\x10index_price_twap\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0eindexPriceTwap\x12Y\n\x10premium_fraction\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0fpremiumFraction\x12n\n\x1b\x63umulative_premium_fraction\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x19\x63umulativePremiumFraction\"\xe9\x02\n\x16LiquidationFailedEvent\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x16\n\x06trader\x18\x02 \x01(\tR\x06trader\x12\x1e\n\nliquidator\x18\x03 \x01(\tR\nliquidator\x12V\n\x06reason\x18\x04 \x01(\x0e\x32>.nibiru.perp.v2.LiquidationFailedEvent.LiquidationFailedReasonR\x06reason\"p\n\x17LiquidationFailedReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x14\n\x10POSITION_HEALTHY\x10\x01\x12\x14\n\x10NONEXISTENT_PAIR\x10\x02\x12\x18\n\x14NONEXISTENT_POSITION\x10\x03\"\xfb\x01\n\x0f\x41mmUpdatedEvent\x12\x36\n\tfinal_amm\x18\x01 \x01(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x08\x66inalAmm\x12V\n\x0fmark_price_twap\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rmarkPriceTwap\x12X\n\x10index_price_twap\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0eindexPriceTwap\"U\n\x12MarketUpdatedEvent\x12?\n\x0c\x66inal_market\x18\x01 \x01(\x0b\x32\x16.nibiru.perp.v2.MarketB\x04\xc8\xde\x1f\x00R\x0b\x66inalMarketB/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types' + _POSITIONCHANGEDEVENT.fields_by_name['final_position']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['final_position']._serialized_options = b'\310\336\037\000' + _POSITIONCHANGEDEVENT.fields_by_name['position_notional']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['position_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITIONCHANGEDEVENT.fields_by_name['transaction_fee']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['transaction_fee']._serialized_options = b'\310\336\037\000\362\336\037\026yaml:\"transaction_fee\"' + _POSITIONCHANGEDEVENT.fields_by_name['realized_pnl']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['realized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITIONCHANGEDEVENT.fields_by_name['bad_debt']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['bad_debt']._serialized_options = b'\310\336\037\000' + _POSITIONCHANGEDEVENT.fields_by_name['funding_payment']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITIONCHANGEDEVENT.fields_by_name['margin_to_user']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['margin_to_user']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _POSITIONCHANGEDEVENT.fields_by_name['change_reason']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['change_reason']._serialized_options = b'\310\336\037\000\332\336\037\014ChangeReason' + _POSITIONCHANGEDEVENT.fields_by_name['exchanged_size']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['exchanged_size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITIONCHANGEDEVENT.fields_by_name['exchanged_notional']._options = None + _POSITIONCHANGEDEVENT.fields_by_name['exchanged_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITIONLIQUIDATEDEVENT.fields_by_name['position_changed_event']._options = None + _POSITIONLIQUIDATEDEVENT.fields_by_name['position_changed_event']._serialized_options = b'\310\336\037\000' + _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_liquidator']._options = None + _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_liquidator']._serialized_options = b'\310\336\037\000\362\336\037\030yaml:\"fee_to_liquidator\"' + _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_ecosystem_fund']._options = None + _POSITIONLIQUIDATEDEVENT.fields_by_name['fee_to_ecosystem_fund']._serialized_options = b'\310\336\037\000\362\336\037\034yaml:\"fee_to_ecosystem_fund\"' + _POSITIONSETTLEDEVENT.fields_by_name['pair']._options = None + _POSITIONSETTLEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _POSITIONSETTLEDEVENT.fields_by_name['settled_coins']._options = None + _POSITIONSETTLEDEVENT.fields_by_name['settled_coins']._serialized_options = b'\310\336\037\000\362\336\037\024yaml:\"settled_coins\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _FUNDINGRATECHANGEDEVENT.fields_by_name['pair']._options = None + _FUNDINGRATECHANGEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _FUNDINGRATECHANGEDEVENT.fields_by_name['mark_price_twap']._options = None + _FUNDINGRATECHANGEDEVENT.fields_by_name['mark_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _FUNDINGRATECHANGEDEVENT.fields_by_name['index_price_twap']._options = None + _FUNDINGRATECHANGEDEVENT.fields_by_name['index_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _FUNDINGRATECHANGEDEVENT.fields_by_name['premium_fraction']._options = None + _FUNDINGRATECHANGEDEVENT.fields_by_name['premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _FUNDINGRATECHANGEDEVENT.fields_by_name['cumulative_premium_fraction']._options = None + _FUNDINGRATECHANGEDEVENT.fields_by_name['cumulative_premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _LIQUIDATIONFAILEDEVENT.fields_by_name['pair']._options = None + _LIQUIDATIONFAILEDEVENT.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _AMMUPDATEDEVENT.fields_by_name['final_amm']._options = None + _AMMUPDATEDEVENT.fields_by_name['final_amm']._serialized_options = b'\310\336\037\000' + _AMMUPDATEDEVENT.fields_by_name['mark_price_twap']._options = None + _AMMUPDATEDEVENT.fields_by_name['mark_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMMUPDATEDEVENT.fields_by_name['index_price_twap']._options = None + _AMMUPDATEDEVENT.fields_by_name['index_price_twap']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKETUPDATEDEVENT.fields_by_name['final_market']._options = None + _MARKETUPDATEDEVENT.fields_by_name['final_market']._serialized_options = b'\310\336\037\000' + _POSITIONCHANGEDEVENT._serialized_start=192 + _POSITIONCHANGEDEVENT._serialized_end=1072 + _POSITIONLIQUIDATEDEVENT._serialized_start=1075 + _POSITIONLIQUIDATEDEVENT._serialized_end=1466 + _POSITIONSETTLEDEVENT._serialized_start=1469 + _POSITIONSETTLEDEVENT._serialized_end=1748 + _FUNDINGRATECHANGEDEVENT._serialized_start=1751 + _FUNDINGRATECHANGEDEVENT._serialized_end=2236 + _LIQUIDATIONFAILEDEVENT._serialized_start=2239 + _LIQUIDATIONFAILEDEVENT._serialized_end=2600 + _LIQUIDATIONFAILEDEVENT_LIQUIDATIONFAILEDREASON._serialized_start=2488 + _LIQUIDATIONFAILEDEVENT_LIQUIDATIONFAILEDREASON._serialized_end=2600 + _AMMUPDATEDEVENT._serialized_start=2603 + _AMMUPDATEDEVENT._serialized_end=2854 + _MARKETUPDATEDEVENT._serialized_start=2856 + _MARKETUPDATEDEVENT._serialized_end=2941 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/perp/v2/event_pb2.pyi b/nibiru_proto/nibiru/perp/v2/event_pb2.pyi new file mode 100644 index 00000000..fe1d23a6 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/event_pb2.pyi @@ -0,0 +1,325 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import nibiru.perp.v2.state_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class PositionChangedEvent(google.protobuf.message.Message): + """Emitted when a position changes.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FINAL_POSITION_FIELD_NUMBER: builtins.int + POSITION_NOTIONAL_FIELD_NUMBER: builtins.int + TRANSACTION_FEE_FIELD_NUMBER: builtins.int + REALIZED_PNL_FIELD_NUMBER: builtins.int + BAD_DEBT_FIELD_NUMBER: builtins.int + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + MARGIN_TO_USER_FIELD_NUMBER: builtins.int + CHANGE_REASON_FIELD_NUMBER: builtins.int + EXCHANGED_SIZE_FIELD_NUMBER: builtins.int + EXCHANGED_NOTIONAL_FIELD_NUMBER: builtins.int + @property + def final_position(self) -> nibiru.perp.v2.state_pb2.Position: ... + position_notional: builtins.str + """Position notional (in quote units) after the change. In general, + 'notional = baseAmount * priceQuotePerBase', where size is the baseAmount. + """ + @property + def transaction_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Transaction fee paid. A "taker" fee.""" + realized_pnl: builtins.str + """realize profits and losses after the change""" + @property + def bad_debt(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Amount of bad debt cleared by the PerpEF during the change. + Bad debt is negative net margin past the liquidation point of a position. + """ + funding_payment: builtins.str + """A funding payment made or received by the trader on the current position. + 'fundingPayment' is positive if 'owner' is the sender and negative if 'owner' + is the receiver of the payment. Its magnitude is abs(size * fundingRate). + Funding payments act to converge the mark price and index price + (average price on major exchanges). + """ + block_height: builtins.int + """The block number at which this position was changed.""" + margin_to_user: builtins.str + """margin_to_user is the amount of collateral received by the trader during + the position change. A positve value indicates that the trader received + funds, while a negative value indicates that the trader spent funds. + """ + change_reason: builtins.str + """change_reason describes the reason for why the position resulted in a + change. Change type can take the following values: + + - CHANGE_REASON_UNSPECIFIED: Unspecified change reason. + - CHANGE_REASON_ADD_MARGIN: Margin was added to the position. + - CHANGE_REASON_REMOVE_MARGIN: Margin was removed from the position. + - CHANGE_REASON_OPEN_POSITION: A new position was opened. + - CHANGE_REASON_CLOSE_POSITION: An existing position was closed. + """ + exchanged_size: builtins.str + """exchanged_size represent the change in size for an existing position + after the change. A positive value indicates that the position size + increased, while a negative value indicates that the position size + decreased. + """ + exchanged_notional: builtins.str + """exchanged_notional represent the change in notional for an existing + position after the change. A positive value indicates that the position + notional increased, while a negative value indicates that the position + notional decreased. + """ + def __init__( + self, + *, + final_position: nibiru.perp.v2.state_pb2.Position | None = ..., + position_notional: builtins.str = ..., + transaction_fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + realized_pnl: builtins.str = ..., + bad_debt: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + funding_payment: builtins.str = ..., + block_height: builtins.int = ..., + margin_to_user: builtins.str = ..., + change_reason: builtins.str = ..., + exchanged_size: builtins.str = ..., + exchanged_notional: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["bad_debt", b"bad_debt", "final_position", b"final_position", "transaction_fee", b"transaction_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bad_debt", b"bad_debt", "block_height", b"block_height", "change_reason", b"change_reason", "exchanged_notional", b"exchanged_notional", "exchanged_size", b"exchanged_size", "final_position", b"final_position", "funding_payment", b"funding_payment", "margin_to_user", b"margin_to_user", "position_notional", b"position_notional", "realized_pnl", b"realized_pnl", "transaction_fee", b"transaction_fee"]) -> None: ... + +global___PositionChangedEvent = PositionChangedEvent + +@typing_extensions.final +class PositionLiquidatedEvent(google.protobuf.message.Message): + """Emitted when a position is liquidated. Wraps a PositionChanged event since a + liquidation causes position changes. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITION_CHANGED_EVENT_FIELD_NUMBER: builtins.int + LIQUIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + FEE_TO_LIQUIDATOR_FIELD_NUMBER: builtins.int + FEE_TO_ECOSYSTEM_FUND_FIELD_NUMBER: builtins.int + @property + def position_changed_event(self) -> global___PositionChangedEvent: ... + liquidator_address: builtins.str + """Address of the account that executed the tx.""" + @property + def fee_to_liquidator(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Commission (in margin units) received by 'liquidator'.""" + @property + def fee_to_ecosystem_fund(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Commission (in margin units) given to the ecosystem fund.""" + def __init__( + self, + *, + position_changed_event: global___PositionChangedEvent | None = ..., + liquidator_address: builtins.str = ..., + fee_to_liquidator: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + fee_to_ecosystem_fund: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["fee_to_ecosystem_fund", b"fee_to_ecosystem_fund", "fee_to_liquidator", b"fee_to_liquidator", "position_changed_event", b"position_changed_event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["fee_to_ecosystem_fund", b"fee_to_ecosystem_fund", "fee_to_liquidator", b"fee_to_liquidator", "liquidator_address", b"liquidator_address", "position_changed_event", b"position_changed_event"]) -> None: ... + +global___PositionLiquidatedEvent = PositionLiquidatedEvent + +@typing_extensions.final +class PositionSettledEvent(google.protobuf.message.Message): + """Emitted when a position is settled.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + TRADER_ADDRESS_FIELD_NUMBER: builtins.int + SETTLED_COINS_FIELD_NUMBER: builtins.int + pair: builtins.str + """Identifier for the virtual pool of the position.""" + trader_address: builtins.str + """Owner of the position.""" + @property + def settled_coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """Settled coin as dictated by the settlement price of the perp.amm.""" + def __init__( + self, + *, + pair: builtins.str = ..., + trader_address: builtins.str = ..., + settled_coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "settled_coins", b"settled_coins", "trader_address", b"trader_address"]) -> None: ... + +global___PositionSettledEvent = PositionSettledEvent + +@typing_extensions.final +class FundingRateChangedEvent(google.protobuf.message.Message): + """Emitted when the funding rate changes for a market.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + MARK_PRICE_TWAP_FIELD_NUMBER: builtins.int + INDEX_PRICE_TWAP_FIELD_NUMBER: builtins.int + PREMIUM_FRACTION_FIELD_NUMBER: builtins.int + CUMULATIVE_PREMIUM_FRACTION_FIELD_NUMBER: builtins.int + pair: builtins.str + """The pair for which the funding rate was calculated.""" + mark_price_twap: builtins.str + """The mark price of the pair.""" + index_price_twap: builtins.str + """The oracle index price of the pair.""" + premium_fraction: builtins.str + """The latest premium fraction just calculated.""" + cumulative_premium_fraction: builtins.str + """The market's latest cumulative premium fraction. + The funding payment a position will pay is the difference between this + value and the latest cumulative premium fraction on the position, + multiplied by the position size. + """ + def __init__( + self, + *, + pair: builtins.str = ..., + mark_price_twap: builtins.str = ..., + index_price_twap: builtins.str = ..., + premium_fraction: builtins.str = ..., + cumulative_premium_fraction: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["cumulative_premium_fraction", b"cumulative_premium_fraction", "index_price_twap", b"index_price_twap", "mark_price_twap", b"mark_price_twap", "pair", b"pair", "premium_fraction", b"premium_fraction"]) -> None: ... + +global___FundingRateChangedEvent = FundingRateChangedEvent + +@typing_extensions.final +class LiquidationFailedEvent(google.protobuf.message.Message): + """Emitted when liquidation fails.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _LiquidationFailedReason: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _LiquidationFailedReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LiquidationFailedEvent._LiquidationFailedReason.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNSPECIFIED: LiquidationFailedEvent._LiquidationFailedReason.ValueType # 0 + POSITION_HEALTHY: LiquidationFailedEvent._LiquidationFailedReason.ValueType # 1 + """the position is healthy and does not need to be liquidated.""" + NONEXISTENT_PAIR: LiquidationFailedEvent._LiquidationFailedReason.ValueType # 2 + """the pair does not exist.""" + NONEXISTENT_POSITION: LiquidationFailedEvent._LiquidationFailedReason.ValueType # 3 + """the position does not exist.""" + + class LiquidationFailedReason(_LiquidationFailedReason, metaclass=_LiquidationFailedReasonEnumTypeWrapper): ... + UNSPECIFIED: LiquidationFailedEvent.LiquidationFailedReason.ValueType # 0 + POSITION_HEALTHY: LiquidationFailedEvent.LiquidationFailedReason.ValueType # 1 + """the position is healthy and does not need to be liquidated.""" + NONEXISTENT_PAIR: LiquidationFailedEvent.LiquidationFailedReason.ValueType # 2 + """the pair does not exist.""" + NONEXISTENT_POSITION: LiquidationFailedEvent.LiquidationFailedReason.ValueType # 3 + """the position does not exist.""" + + PAIR_FIELD_NUMBER: builtins.int + TRADER_FIELD_NUMBER: builtins.int + LIQUIDATOR_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + pair: builtins.str + """The pair for which we are trying to liquidate.""" + trader: builtins.str + """owner of the position.""" + liquidator: builtins.str + """Address of the account that executed the tx.""" + reason: global___LiquidationFailedEvent.LiquidationFailedReason.ValueType + """Reason for the liquidation failure.""" + def __init__( + self, + *, + pair: builtins.str = ..., + trader: builtins.str = ..., + liquidator: builtins.str = ..., + reason: global___LiquidationFailedEvent.LiquidationFailedReason.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidator", b"liquidator", "pair", b"pair", "reason", b"reason", "trader", b"trader"]) -> None: ... + +global___LiquidationFailedEvent = LiquidationFailedEvent + +@typing_extensions.final +class AmmUpdatedEvent(google.protobuf.message.Message): + """This event is emitted when the amm is updated, which can be triggered by + the following events: + + - swap + - edit price multiplier + - edit depth + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FINAL_AMM_FIELD_NUMBER: builtins.int + MARK_PRICE_TWAP_FIELD_NUMBER: builtins.int + INDEX_PRICE_TWAP_FIELD_NUMBER: builtins.int + @property + def final_amm(self) -> nibiru.perp.v2.state_pb2.AMM: + """the final state of the AMM""" + mark_price_twap: builtins.str + """The mark price of the pair.""" + index_price_twap: builtins.str + """The oracle index price of the pair.""" + def __init__( + self, + *, + final_amm: nibiru.perp.v2.state_pb2.AMM | None = ..., + mark_price_twap: builtins.str = ..., + index_price_twap: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_amm", b"final_amm"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["final_amm", b"final_amm", "index_price_twap", b"index_price_twap", "mark_price_twap", b"mark_price_twap"]) -> None: ... + +global___AmmUpdatedEvent = AmmUpdatedEvent + +@typing_extensions.final +class MarketUpdatedEvent(google.protobuf.message.Message): + """This event is emitted at the end of every block for persisting market changes + off-chain + + Market changes are triggered by the following actions: + + - disabling market + - changing market fees + - bad debt is prepaid by the ecosystem fund + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FINAL_MARKET_FIELD_NUMBER: builtins.int + @property + def final_market(self) -> nibiru.perp.v2.state_pb2.Market: + """the final state of the market""" + def __init__( + self, + *, + final_market: nibiru.perp.v2.state_pb2.Market | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_market", b"final_market"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["final_market", b"final_market"]) -> None: ... + +global___MarketUpdatedEvent = MarketUpdatedEvent diff --git a/nibiru_proto/nibiru/perp/v2/event_pb2_grpc.py b/nibiru_proto/nibiru/perp/v2/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/perp/v2/genesis_pb2.py b/nibiru_proto/nibiru/perp/v2/genesis_pb2.py new file mode 100644 index 00000000..c0a55e7b --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/genesis_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/perp/v2/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/perp/v2/genesis.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1anibiru/perp/v2/state.proto\"\x87\x02\n\x0cGenesisState\x12\x36\n\x07markets\x18\x02 \x03(\x0b\x32\x16.nibiru.perp.v2.MarketB\x04\xc8\xde\x1f\x00R\x07markets\x12-\n\x04\x61mms\x18\x03 \x03(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x04\x61mms\x12<\n\tpositions\x18\x04 \x03(\x0b\x32\x18.nibiru.perp.v2.PositionB\x04\xc8\xde\x1f\x00R\tpositions\x12R\n\x11reserve_snapshots\x18\x05 \x03(\x0b\x32\x1f.nibiru.perp.v2.ReserveSnapshotB\x04\xc8\xde\x1f\x00R\x10reserveSnapshotsB/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types' + _GENESISSTATE.fields_by_name['markets']._options = None + _GENESISSTATE.fields_by_name['markets']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['amms']._options = None + _GENESISSTATE.fields_by_name['amms']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['positions']._options = None + _GENESISSTATE.fields_by_name['positions']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['reserve_snapshots']._options = None + _GENESISSTATE.fields_by_name['reserve_snapshots']._serialized_options = b'\310\336\037\000' + _GENESISSTATE._serialized_start=161 + _GENESISSTATE._serialized_end=424 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/perp/v2/genesis_pb2.pyi b/nibiru_proto/nibiru/perp/v2/genesis_pb2.pyi new file mode 100644 index 00000000..3c1363bd --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/genesis_pb2.pyi @@ -0,0 +1,48 @@ +""" +@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 nibiru.perp.v2.state_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the perp module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MARKETS_FIELD_NUMBER: builtins.int + AMMS_FIELD_NUMBER: builtins.int + POSITIONS_FIELD_NUMBER: builtins.int + RESERVE_SNAPSHOTS_FIELD_NUMBER: builtins.int + @property + def markets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.perp.v2.state_pb2.Market]: ... + @property + def amms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.perp.v2.state_pb2.AMM]: ... + @property + def positions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.perp.v2.state_pb2.Position]: ... + @property + def reserve_snapshots(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.perp.v2.state_pb2.ReserveSnapshot]: ... + def __init__( + self, + *, + markets: collections.abc.Iterable[nibiru.perp.v2.state_pb2.Market] | None = ..., + amms: collections.abc.Iterable[nibiru.perp.v2.state_pb2.AMM] | None = ..., + positions: collections.abc.Iterable[nibiru.perp.v2.state_pb2.Position] | None = ..., + reserve_snapshots: collections.abc.Iterable[nibiru.perp.v2.state_pb2.ReserveSnapshot] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amms", b"amms", "markets", b"markets", "positions", b"positions", "reserve_snapshots", b"reserve_snapshots"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/perp/v2/genesis_pb2_grpc.py b/nibiru_proto/nibiru/perp/v2/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/perp/v2/query_pb2.py b/nibiru_proto/nibiru/perp/v2/query_pb2.py new file mode 100644 index 00000000..2811f653 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/query_pb2.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/perp/v2/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/perp/v2/query.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1anibiru/perp/v2/state.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"/\n\x15QueryPositionsRequest\x12\x16\n\x06trader\x18\x01 \x01(\tR\x06trader\"c\n\x16QueryPositionsResponse\x12I\n\tpositions\x18\x01 \x03(\x0b\x32%.nibiru.perp.v2.QueryPositionResponseB\x04\xc8\xde\x1f\x00R\tpositions\"}\n\x14QueryPositionRequest\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x16\n\x06trader\x18\x02 \x01(\tR\x06trader\"\xda\x02\n\x15QueryPositionResponse\x12:\n\x08position\x18\x01 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionB\x04\xc8\xde\x1f\x00R\x08position\x12[\n\x11position_notional\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10positionNotional\x12U\n\x0eunrealized_pnl\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\runrealizedPnl\x12Q\n\x0cmargin_ratio\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0bmarginRatio\"\x1c\n\x1aQueryModuleAccountsRequest\"c\n\x1bQueryModuleAccountsResponse\x12\x44\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\".nibiru.perp.v2.AccountWithBalanceB\x04\xc8\xde\x1f\x00R\x08\x61\x63\x63ounts\"\xa9\x01\n\x12\x41\x63\x63ountWithBalance\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x65\n\x07\x62\x61lance\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07\x62\x61lance\"n\n\tAmmMarket\x12\x34\n\x06market\x18\x01 \x01(\x0b\x32\x16.nibiru.perp.v2.MarketB\x04\xc8\xde\x1f\x00R\x06market\x12+\n\x03\x61mm\x18\x02 \x01(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x03\x61mm\"\x15\n\x13QueryMarketsRequest\"X\n\x14QueryMarketsResponse\x12@\n\x0b\x61mm_markets\x18\x01 \x03(\x0b\x32\x19.nibiru.perp.v2.AmmMarketB\x04\xc8\xde\x1f\x00R\nammMarkets2\x9d\x04\n\x05Query\x12~\n\rQueryPosition\x12$.nibiru.perp.v2.QueryPositionRequest\x1a%.nibiru.perp.v2.QueryPositionResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/nibiru/perp/v2/position\x12\x82\x01\n\x0eQueryPositions\x12%.nibiru.perp.v2.QueryPositionsRequest\x1a&.nibiru.perp.v2.QueryPositionsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/nibiru/perp/v2/positions\x12\x92\x01\n\x0eModuleAccounts\x12*.nibiru.perp.v2.QueryModuleAccountsRequest\x1a+.nibiru.perp.v2.QueryModuleAccountsResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/nibiru/perp/v2/module_accounts\x12z\n\x0cQueryMarkets\x12#.nibiru.perp.v2.QueryMarketsRequest\x1a$.nibiru.perp.v2.QueryMarketsResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/nibiru/perp/v2/marketsB/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types' + _QUERYPOSITIONSRESPONSE.fields_by_name['positions']._options = None + _QUERYPOSITIONSRESPONSE.fields_by_name['positions']._serialized_options = b'\310\336\037\000' + _QUERYPOSITIONREQUEST.fields_by_name['pair']._options = None + _QUERYPOSITIONREQUEST.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _QUERYPOSITIONRESPONSE.fields_by_name['position']._options = None + _QUERYPOSITIONRESPONSE.fields_by_name['position']._serialized_options = b'\310\336\037\000' + _QUERYPOSITIONRESPONSE.fields_by_name['position_notional']._options = None + _QUERYPOSITIONRESPONSE.fields_by_name['position_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYPOSITIONRESPONSE.fields_by_name['unrealized_pnl']._options = None + _QUERYPOSITIONRESPONSE.fields_by_name['unrealized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYPOSITIONRESPONSE.fields_by_name['margin_ratio']._options = None + _QUERYPOSITIONRESPONSE.fields_by_name['margin_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._options = None + _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._serialized_options = b'\310\336\037\000' + _ACCOUNTWITHBALANCE.fields_by_name['balance']._options = None + _ACCOUNTWITHBALANCE.fields_by_name['balance']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _AMMMARKET.fields_by_name['market']._options = None + _AMMMARKET.fields_by_name['market']._serialized_options = b'\310\336\037\000' + _AMMMARKET.fields_by_name['amm']._options = None + _AMMMARKET.fields_by_name['amm']._serialized_options = b'\310\336\037\000' + _QUERYMARKETSRESPONSE.fields_by_name['amm_markets']._options = None + _QUERYMARKETSRESPONSE.fields_by_name['amm_markets']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['QueryPosition']._options = None + _QUERY.methods_by_name['QueryPosition']._serialized_options = b'\202\323\344\223\002\032\022\030/nibiru/perp/v2/position' + _QUERY.methods_by_name['QueryPositions']._options = None + _QUERY.methods_by_name['QueryPositions']._serialized_options = b'\202\323\344\223\002\033\022\031/nibiru/perp/v2/positions' + _QUERY.methods_by_name['ModuleAccounts']._options = None + _QUERY.methods_by_name['ModuleAccounts']._serialized_options = b'\202\323\344\223\002!\022\037/nibiru/perp/v2/module_accounts' + _QUERY.methods_by_name['QueryMarkets']._options = None + _QUERY.methods_by_name['QueryMarkets']._serialized_options = b'\202\323\344\223\002\031\022\027/nibiru/perp/v2/markets' + _QUERYPOSITIONSREQUEST._serialized_start=158 + _QUERYPOSITIONSREQUEST._serialized_end=205 + _QUERYPOSITIONSRESPONSE._serialized_start=207 + _QUERYPOSITIONSRESPONSE._serialized_end=306 + _QUERYPOSITIONREQUEST._serialized_start=308 + _QUERYPOSITIONREQUEST._serialized_end=433 + _QUERYPOSITIONRESPONSE._serialized_start=436 + _QUERYPOSITIONRESPONSE._serialized_end=782 + _QUERYMODULEACCOUNTSREQUEST._serialized_start=784 + _QUERYMODULEACCOUNTSREQUEST._serialized_end=812 + _QUERYMODULEACCOUNTSRESPONSE._serialized_start=814 + _QUERYMODULEACCOUNTSRESPONSE._serialized_end=913 + _ACCOUNTWITHBALANCE._serialized_start=916 + _ACCOUNTWITHBALANCE._serialized_end=1085 + _AMMMARKET._serialized_start=1087 + _AMMMARKET._serialized_end=1197 + _QUERYMARKETSREQUEST._serialized_start=1199 + _QUERYMARKETSREQUEST._serialized_end=1220 + _QUERYMARKETSRESPONSE._serialized_start=1222 + _QUERYMARKETSRESPONSE._serialized_end=1310 + _QUERY._serialized_start=1313 + _QUERY._serialized_end=1854 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/perp/v2/query_pb2.pyi b/nibiru_proto/nibiru/perp/v2/query_pb2.pyi new file mode 100644 index 00000000..aea8f237 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/query_pb2.pyi @@ -0,0 +1,205 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.perp.v2.state_pb2 +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 QueryPositionsRequest(google.protobuf.message.Message): + """---------------------------------------- Positions""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRADER_FIELD_NUMBER: builtins.int + trader: builtins.str + def __init__( + self, + *, + trader: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["trader", b"trader"]) -> None: ... + +global___QueryPositionsRequest = QueryPositionsRequest + +@typing_extensions.final +class QueryPositionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITIONS_FIELD_NUMBER: builtins.int + @property + def positions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryPositionResponse]: ... + def __init__( + self, + *, + positions: collections.abc.Iterable[global___QueryPositionResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["positions", b"positions"]) -> None: ... + +global___QueryPositionsResponse = QueryPositionsResponse + +@typing_extensions.final +class QueryPositionRequest(google.protobuf.message.Message): + """---------------------------------------- Position + + QueryPositionRequest is the request type for the position of the x/perp + module account. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + TRADER_FIELD_NUMBER: builtins.int + pair: builtins.str + trader: builtins.str + def __init__( + self, + *, + pair: builtins.str = ..., + trader: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "trader", b"trader"]) -> None: ... + +global___QueryPositionRequest = QueryPositionRequest + +@typing_extensions.final +class QueryPositionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITION_FIELD_NUMBER: builtins.int + POSITION_NOTIONAL_FIELD_NUMBER: builtins.int + UNREALIZED_PNL_FIELD_NUMBER: builtins.int + MARGIN_RATIO_FIELD_NUMBER: builtins.int + @property + def position(self) -> nibiru.perp.v2.state_pb2.Position: + """The position as it exists in the blockchain state""" + position_notional: builtins.str + """The position's current notional value, if it were to be entirely closed (in + margin units). + """ + unrealized_pnl: builtins.str + """The position's unrealized PnL.""" + margin_ratio: builtins.str + """margin ratio of the position based on the spot price""" + def __init__( + self, + *, + position: nibiru.perp.v2.state_pb2.Position | None = ..., + position_notional: builtins.str = ..., + unrealized_pnl: builtins.str = ..., + margin_ratio: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["position", b"position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["margin_ratio", b"margin_ratio", "position", b"position", "position_notional", b"position_notional", "unrealized_pnl", b"unrealized_pnl"]) -> None: ... + +global___QueryPositionResponse = QueryPositionResponse + +@typing_extensions.final +class QueryModuleAccountsRequest(google.protobuf.message.Message): + """---------------------------------------- QueryModuleAccounts""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryModuleAccountsRequest = QueryModuleAccountsRequest + +@typing_extensions.final +class QueryModuleAccountsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNTS_FIELD_NUMBER: builtins.int + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AccountWithBalance]: ... + def __init__( + self, + *, + accounts: collections.abc.Iterable[global___AccountWithBalance] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts"]) -> None: ... + +global___QueryModuleAccountsResponse = QueryModuleAccountsResponse + +@typing_extensions.final +class AccountWithBalance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + name: builtins.str + address: builtins.str + @property + def balance(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + name: builtins.str = ..., + address: builtins.str = ..., + balance: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "balance", b"balance", "name", b"name"]) -> None: ... + +global___AccountWithBalance = AccountWithBalance + +@typing_extensions.final +class AmmMarket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MARKET_FIELD_NUMBER: builtins.int + AMM_FIELD_NUMBER: builtins.int + @property + def market(self) -> nibiru.perp.v2.state_pb2.Market: ... + @property + def amm(self) -> nibiru.perp.v2.state_pb2.AMM: ... + def __init__( + self, + *, + market: nibiru.perp.v2.state_pb2.Market | None = ..., + amm: nibiru.perp.v2.state_pb2.AMM | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amm", b"amm", "market", b"market"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amm", b"amm", "market", b"market"]) -> None: ... + +global___AmmMarket = AmmMarket + +@typing_extensions.final +class QueryMarketsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryMarketsRequest = QueryMarketsRequest + +@typing_extensions.final +class QueryMarketsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMM_MARKETS_FIELD_NUMBER: builtins.int + @property + def amm_markets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AmmMarket]: ... + def __init__( + self, + *, + amm_markets: collections.abc.Iterable[global___AmmMarket] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amm_markets", b"amm_markets"]) -> None: ... + +global___QueryMarketsResponse = QueryMarketsResponse diff --git a/nibiru_proto/nibiru/perp/v2/query_pb2_grpc.py b/nibiru_proto/nibiru/perp/v2/query_pb2_grpc.py new file mode 100644 index 00000000..bb173953 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/query_pb2_grpc.py @@ -0,0 +1,169 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.perp.v2 import query_pb2 as nibiru_dot_perp_dot_v2_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.QueryPosition = channel.unary_unary( + '/nibiru.perp.v2.Query/QueryPosition', + request_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionRequest.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionResponse.FromString, + ) + self.QueryPositions = channel.unary_unary( + '/nibiru.perp.v2.Query/QueryPositions', + request_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsRequest.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsResponse.FromString, + ) + self.ModuleAccounts = channel.unary_unary( + '/nibiru.perp.v2.Query/ModuleAccounts', + request_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsRequest.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsResponse.FromString, + ) + self.QueryMarkets = channel.unary_unary( + '/nibiru.perp.v2.Query/QueryMarkets', + request_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsRequest.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def QueryPosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryPositions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModuleAccounts(self, request, context): + """Queries the reserve assets in a given pool, identified by a token pair. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryMarkets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'QueryPosition': grpc.unary_unary_rpc_method_handler( + servicer.QueryPosition, + request_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionRequest.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionResponse.SerializeToString, + ), + 'QueryPositions': grpc.unary_unary_rpc_method_handler( + servicer.QueryPositions, + request_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsRequest.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsResponse.SerializeToString, + ), + 'ModuleAccounts': grpc.unary_unary_rpc_method_handler( + servicer.ModuleAccounts, + request_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsRequest.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsResponse.SerializeToString, + ), + 'QueryMarkets': grpc.unary_unary_rpc_method_handler( + servicer.QueryMarkets, + request_deserializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsRequest.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.perp.v2.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def QueryPosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Query/QueryPosition', + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionRequest.SerializeToString, + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryPositions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Query/QueryPositions', + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsRequest.SerializeToString, + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryPositionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleAccounts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Query/ModuleAccounts', + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsRequest.SerializeToString, + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryModuleAccountsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryMarkets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Query/QueryMarkets', + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsRequest.SerializeToString, + nibiru_dot_perp_dot_v2_dot_query__pb2.QueryMarketsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/perp/v2/state_pb2.py b/nibiru_proto/nibiru/perp/v2/state_pb2.py new file mode 100644 index 00000000..e4bfe69c --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/state_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/perp/v2/state.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/perp/v2/state.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1egoogle/protobuf/duration.proto\"\xf5\x08\n\x06Market\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x18\n\x07\x65nabled\x18\x02 \x01(\x08R\x07\x65nabled\x12h\n\x18maintenance_margin_ratio\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x16maintenanceMarginRatio\x12Q\n\x0cmax_leverage\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0bmaxLeverage\x12{\n\"latest_cumulative_premium_fraction\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x1flatestCumulativePremiumFraction\x12\\\n\x12\x65xchange_fee_ratio\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10\x65xchangeFeeRatio\x12g\n\x18\x65\x63osystem_fund_fee_ratio\x18\x07 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x15\x65\x63osystemFundFeeRatio\x12\x62\n\x15liquidation_fee_ratio\x18\x08 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x13liquidationFeeRatio\x12j\n\x19partial_liquidation_ratio\x18\t \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x17partialLiquidationRatio\x12\x31\n\x15\x66unding_rate_epoch_id\x18\n \x01(\tR\x12\x66undingRateEpochId\x12U\n\x14twap_lookback_window\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01R\x12twapLookbackWindow\x12I\n\x10prepaid_bad_debt\x18\x0c \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x0eprepaidBadDebt\x12\\\n\x10max_funding_rate\x18\r \x01(\tB2\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\x98\xdf\x1f\x01R\x0emaxFundingRate\"\xc6\x04\n\x03\x41MM\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12Q\n\x0c\x62\x61se_reserve\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0b\x62\x61seReserve\x12S\n\rquote_reserve\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0cquoteReserve\x12M\n\nsqrt_depth\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\tsqrtDepth\x12Y\n\x10price_multiplier\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0fpriceMultiplier\x12M\n\ntotal_long\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\ttotalLong\x12O\n\x0btotal_short\x18\x07 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\ntotalShort\"\x99\x04\n\x08Position\x12%\n\x0etrader_address\x18\x01 \x01(\tR\rtraderAddress\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x42\n\x04size\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x04size\x12\x46\n\x06margin\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x06margin\x12S\n\ropen_notional\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0copenNotional\x12{\n\"latest_cumulative_premium_fraction\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x1flatestCumulativePremiumFraction\x12\x39\n\x19last_updated_block_number\x18\x07 \x01(\x03R\x16lastUpdatedBlockNumber\"a\n\x0fReserveSnapshot\x12+\n\x03\x61mm\x18\x01 \x01(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x03\x61mm\x12!\n\x0ctimestamp_ms\x18\x02 \x01(\x03R\x0btimestampMs*;\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\x08\n\x04LONG\x10\x01\x12\t\n\x05SHORT\x10\x02*g\n\x0eTwapCalcOption\x12 \n\x1cTWAP_CALC_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04SPOT\x10\x01\x12\x14\n\x10QUOTE_ASSET_SWAP\x10\x02\x12\x13\n\x0f\x42\x41SE_ASSET_SWAP\x10\x03\x42/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.state_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types' + _MARKET.fields_by_name['pair']._options = None + _MARKET.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MARKET.fields_by_name['maintenance_margin_ratio']._options = None + _MARKET.fields_by_name['maintenance_margin_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['max_leverage']._options = None + _MARKET.fields_by_name['max_leverage']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['latest_cumulative_premium_fraction']._options = None + _MARKET.fields_by_name['latest_cumulative_premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['exchange_fee_ratio']._options = None + _MARKET.fields_by_name['exchange_fee_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['ecosystem_fund_fee_ratio']._options = None + _MARKET.fields_by_name['ecosystem_fund_fee_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['liquidation_fee_ratio']._options = None + _MARKET.fields_by_name['liquidation_fee_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['partial_liquidation_ratio']._options = None + _MARKET.fields_by_name['partial_liquidation_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MARKET.fields_by_name['twap_lookback_window']._options = None + _MARKET.fields_by_name['twap_lookback_window']._serialized_options = b'\310\336\037\000\230\337\037\001' + _MARKET.fields_by_name['prepaid_bad_debt']._options = None + _MARKET.fields_by_name['prepaid_bad_debt']._serialized_options = b'\310\336\037\000' + _MARKET.fields_by_name['max_funding_rate']._options = None + _MARKET.fields_by_name['max_funding_rate']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\230\337\037\001' + _AMM.fields_by_name['pair']._options = None + _AMM.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _AMM.fields_by_name['base_reserve']._options = None + _AMM.fields_by_name['base_reserve']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMM.fields_by_name['quote_reserve']._options = None + _AMM.fields_by_name['quote_reserve']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMM.fields_by_name['sqrt_depth']._options = None + _AMM.fields_by_name['sqrt_depth']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMM.fields_by_name['price_multiplier']._options = None + _AMM.fields_by_name['price_multiplier']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMM.fields_by_name['total_long']._options = None + _AMM.fields_by_name['total_long']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _AMM.fields_by_name['total_short']._options = None + _AMM.fields_by_name['total_short']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITION.fields_by_name['pair']._options = None + _POSITION.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _POSITION.fields_by_name['size']._options = None + _POSITION.fields_by_name['size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITION.fields_by_name['margin']._options = None + _POSITION.fields_by_name['margin']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITION.fields_by_name['open_notional']._options = None + _POSITION.fields_by_name['open_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _POSITION.fields_by_name['latest_cumulative_premium_fraction']._options = None + _POSITION.fields_by_name['latest_cumulative_premium_fraction']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _RESERVESNAPSHOT.fields_by_name['amm']._options = None + _RESERVESNAPSHOT.fields_by_name['amm']._serialized_options = b'\310\336\037\000' + _DIRECTION._serialized_start=2527 + _DIRECTION._serialized_end=2586 + _TWAPCALCOPTION._serialized_start=2588 + _TWAPCALCOPTION._serialized_end=2691 + _MARKET._serialized_start=160 + _MARKET._serialized_end=1301 + _AMM._serialized_start=1304 + _AMM._serialized_end=1886 + _POSITION._serialized_start=1889 + _POSITION._serialized_end=2426 + _RESERVESNAPSHOT._serialized_start=2428 + _RESERVESNAPSHOT._serialized_end=2525 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/perp/v2/state_pb2.pyi b/nibiru_proto/nibiru/perp/v2/state_pb2.pyi new file mode 100644 index 00000000..cb794bc7 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/state_pb2.pyi @@ -0,0 +1,254 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _Direction: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Direction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DIRECTION_UNSPECIFIED: _Direction.ValueType # 0 + LONG: _Direction.ValueType # 1 + SHORT: _Direction.ValueType # 2 + +class Direction(_Direction, metaclass=_DirectionEnumTypeWrapper): + """The direction that the user is trading in + LONG means the user is going long the base asset (e.g. buy BTC) + SHORT means the user is shorting the base asset (e.g. sell BTC) + """ + +DIRECTION_UNSPECIFIED: Direction.ValueType # 0 +LONG: Direction.ValueType # 1 +SHORT: Direction.ValueType # 2 +global___Direction = Direction + +class _TwapCalcOption: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _TwapCalcOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TwapCalcOption.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + TWAP_CALC_OPTION_UNSPECIFIED: _TwapCalcOption.ValueType # 0 + SPOT: _TwapCalcOption.ValueType # 1 + """Spot price from quote asset reserve / base asset reserve""" + QUOTE_ASSET_SWAP: _TwapCalcOption.ValueType # 2 + """Swapping with quote assets, output denominated in base assets""" + BASE_ASSET_SWAP: _TwapCalcOption.ValueType # 3 + """Swapping with base assets, output denominated in quote assets""" + +class TwapCalcOption(_TwapCalcOption, metaclass=_TwapCalcOptionEnumTypeWrapper): + """Enumerates different options of calculating twap.""" + +TWAP_CALC_OPTION_UNSPECIFIED: TwapCalcOption.ValueType # 0 +SPOT: TwapCalcOption.ValueType # 1 +"""Spot price from quote asset reserve / base asset reserve""" +QUOTE_ASSET_SWAP: TwapCalcOption.ValueType # 2 +"""Swapping with quote assets, output denominated in base assets""" +BASE_ASSET_SWAP: TwapCalcOption.ValueType # 3 +"""Swapping with base assets, output denominated in quote assets""" +global___TwapCalcOption = TwapCalcOption + +@typing_extensions.final +class Market(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + MAINTENANCE_MARGIN_RATIO_FIELD_NUMBER: builtins.int + MAX_LEVERAGE_FIELD_NUMBER: builtins.int + LATEST_CUMULATIVE_PREMIUM_FRACTION_FIELD_NUMBER: builtins.int + EXCHANGE_FEE_RATIO_FIELD_NUMBER: builtins.int + ECOSYSTEM_FUND_FEE_RATIO_FIELD_NUMBER: builtins.int + LIQUIDATION_FEE_RATIO_FIELD_NUMBER: builtins.int + PARTIAL_LIQUIDATION_RATIO_FIELD_NUMBER: builtins.int + FUNDING_RATE_EPOCH_ID_FIELD_NUMBER: builtins.int + TWAP_LOOKBACK_WINDOW_FIELD_NUMBER: builtins.int + PREPAID_BAD_DEBT_FIELD_NUMBER: builtins.int + MAX_FUNDING_RATE_FIELD_NUMBER: builtins.int + pair: builtins.str + """the trading pair represented by this market + always BASE:QUOTE, e.g. BTC:NUSD or ETH:NUSD + """ + enabled: builtins.bool + """whether or not the market is enabled""" + maintenance_margin_ratio: builtins.str + """the minimum margin ratio which a user must maintain on this market""" + max_leverage: builtins.str + """the maximum leverage a user is able to be taken on this market""" + latest_cumulative_premium_fraction: builtins.str + """Latest cumulative premium fraction for a given pair. + Calculated once per funding rate interval. + A premium fraction is the difference between mark and index, divided by the + number of payments per day. (mark - index) / # payments in a day + """ + exchange_fee_ratio: builtins.str + """the percentage of the notional given to the exchange when trading""" + ecosystem_fund_fee_ratio: builtins.str + """the percentage of the notional transferred to the ecosystem fund when + trading + """ + liquidation_fee_ratio: builtins.str + """the percentage of liquidated position that will be + given to out as a reward. Half of the liquidation fee is given to the + liquidator, and the other half is given to the ecosystem fund. + """ + partial_liquidation_ratio: builtins.str + """the portion of the position size we try to liquidate if the available + margin is higher than liquidation fee + """ + funding_rate_epoch_id: builtins.str + """specifies the interval on which the funding rate is updated""" + @property + def twap_lookback_window(self) -> google.protobuf.duration_pb2.Duration: + """amount of time to look back for TWAP calculations""" + @property + def prepaid_bad_debt(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of collateral already credited from the ecosystem fund""" + max_funding_rate: builtins.str + """the maximum funding rate payment per epoch, this represents the maximum + amount of funding that can be paid out per epoch as a percentage of the + position size + """ + def __init__( + self, + *, + pair: builtins.str = ..., + enabled: builtins.bool = ..., + maintenance_margin_ratio: builtins.str = ..., + max_leverage: builtins.str = ..., + latest_cumulative_premium_fraction: builtins.str = ..., + exchange_fee_ratio: builtins.str = ..., + ecosystem_fund_fee_ratio: builtins.str = ..., + liquidation_fee_ratio: builtins.str = ..., + partial_liquidation_ratio: builtins.str = ..., + funding_rate_epoch_id: builtins.str = ..., + twap_lookback_window: google.protobuf.duration_pb2.Duration | None = ..., + prepaid_bad_debt: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + max_funding_rate: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["prepaid_bad_debt", b"prepaid_bad_debt", "twap_lookback_window", b"twap_lookback_window"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["ecosystem_fund_fee_ratio", b"ecosystem_fund_fee_ratio", "enabled", b"enabled", "exchange_fee_ratio", b"exchange_fee_ratio", "funding_rate_epoch_id", b"funding_rate_epoch_id", "latest_cumulative_premium_fraction", b"latest_cumulative_premium_fraction", "liquidation_fee_ratio", b"liquidation_fee_ratio", "maintenance_margin_ratio", b"maintenance_margin_ratio", "max_funding_rate", b"max_funding_rate", "max_leverage", b"max_leverage", "pair", b"pair", "partial_liquidation_ratio", b"partial_liquidation_ratio", "prepaid_bad_debt", b"prepaid_bad_debt", "twap_lookback_window", b"twap_lookback_window"]) -> None: ... + +global___Market = Market + +@typing_extensions.final +class AMM(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + BASE_RESERVE_FIELD_NUMBER: builtins.int + QUOTE_RESERVE_FIELD_NUMBER: builtins.int + SQRT_DEPTH_FIELD_NUMBER: builtins.int + PRICE_MULTIPLIER_FIELD_NUMBER: builtins.int + TOTAL_LONG_FIELD_NUMBER: builtins.int + TOTAL_SHORT_FIELD_NUMBER: builtins.int + pair: builtins.str + """identifies the market this AMM belongs to""" + base_reserve: builtins.str + """the amount of base reserves this AMM has""" + quote_reserve: builtins.str + """the amount of quote reserves this AMM has""" + sqrt_depth: builtins.str + """sqrt(k)""" + price_multiplier: builtins.str + """the price multiplier of the dynamic AMM""" + total_long: builtins.str + """Total long refers to the sum of long open notional in base.""" + total_short: builtins.str + """Total short refers to the sum of short open notional in base.""" + def __init__( + self, + *, + pair: builtins.str = ..., + base_reserve: builtins.str = ..., + quote_reserve: builtins.str = ..., + sqrt_depth: builtins.str = ..., + price_multiplier: builtins.str = ..., + total_long: builtins.str = ..., + total_short: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["base_reserve", b"base_reserve", "pair", b"pair", "price_multiplier", b"price_multiplier", "quote_reserve", b"quote_reserve", "sqrt_depth", b"sqrt_depth", "total_long", b"total_long", "total_short", b"total_short"]) -> None: ... + +global___AMM = AMM + +@typing_extensions.final +class Position(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRADER_ADDRESS_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + MARGIN_FIELD_NUMBER: builtins.int + OPEN_NOTIONAL_FIELD_NUMBER: builtins.int + LATEST_CUMULATIVE_PREMIUM_FRACTION_FIELD_NUMBER: builtins.int + LAST_UPDATED_BLOCK_NUMBER_FIELD_NUMBER: builtins.int + trader_address: builtins.str + """address identifies the address owner of this position""" + pair: builtins.str + """pair identifies the pair associated with this position""" + size: builtins.str + """the position size""" + margin: builtins.str + """amount of margin remaining in the position""" + open_notional: builtins.str + """value of position in quote assets when opened""" + latest_cumulative_premium_fraction: builtins.str + """The most recent cumulative premium fraction this position has. + Used to calculate the next funding payment. + """ + last_updated_block_number: builtins.int + """last block number this position was updated""" + def __init__( + self, + *, + trader_address: builtins.str = ..., + pair: builtins.str = ..., + size: builtins.str = ..., + margin: builtins.str = ..., + open_notional: builtins.str = ..., + latest_cumulative_premium_fraction: builtins.str = ..., + last_updated_block_number: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["last_updated_block_number", b"last_updated_block_number", "latest_cumulative_premium_fraction", b"latest_cumulative_premium_fraction", "margin", b"margin", "open_notional", b"open_notional", "pair", b"pair", "size", b"size", "trader_address", b"trader_address"]) -> None: ... + +global___Position = Position + +@typing_extensions.final +class ReserveSnapshot(google.protobuf.message.Message): + """a snapshot of the perp.amm's reserves at a given point in time""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMM_FIELD_NUMBER: builtins.int + TIMESTAMP_MS_FIELD_NUMBER: builtins.int + @property + def amm(self) -> global___AMM: ... + timestamp_ms: builtins.int + """milliseconds since unix epoch""" + def __init__( + self, + *, + amm: global___AMM | None = ..., + timestamp_ms: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["amm", b"amm"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["amm", b"amm", "timestamp_ms", b"timestamp_ms"]) -> None: ... + +global___ReserveSnapshot = ReserveSnapshot diff --git a/nibiru_proto/nibiru/perp/v2/state_pb2_grpc.py b/nibiru_proto/nibiru/perp/v2/state_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/state_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/perp/v2/tx_pb2.py b/nibiru_proto/nibiru/perp/v2/tx_pb2.py new file mode 100644 index 00000000..3678cadc --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/tx_pb2.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/perp/v2/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17nibiru/perp/v2/tx.proto\x12\x0enibiru.perp.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x1anibiru/perp/v2/state.proto\"\xb1\x01\n\x0fMsgRemoveMargin\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x37\n\x06margin\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06margin\"\xe8\x01\n\x17MsgRemoveMarginResponse\x12>\n\nmargin_out\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\tmarginOut\x12W\n\x0f\x66unding_payment\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12\x34\n\x08position\x18\x03 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionR\x08position\"\xae\x01\n\x0cMsgAddMargin\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x37\n\x06margin\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06margin\"\xa5\x01\n\x14MsgAddMarginResponse\x12W\n\x0f\x66unding_payment\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12\x34\n\x08position\x18\x02 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionR\x08position\"\xf4\x01\n\x11MsgMultiLiquidate\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12Q\n\x0cliquidations\x18\x02 \x03(\x0b\x32-.nibiru.perp.v2.MsgMultiLiquidate.LiquidationR\x0cliquidations\x1at\n\x0bLiquidation\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x16\n\x06trader\x18\x02 \x01(\tR\x06trader\"\xb6\x03\n\x19MsgMultiLiquidateResponse\x12\x61\n\x0cliquidations\x18\x01 \x03(\x0b\x32=.nibiru.perp.v2.MsgMultiLiquidateResponse.LiquidationResponseR\x0cliquidations\x1a\xb5\x02\n\x13LiquidationResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x14\n\x05\x65rror\x18\x02 \x01(\tR\x05\x65rror\x12\x46\n\x0eliquidator_fee\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x01R\rliquidatorFee\x12?\n\x0bperp_ef_fee\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x01R\tperpEfFee\x12\x16\n\x06trader\x18\x05 \x01(\tR\x06trader\x12M\n\x04pair\x18\x06 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\"\xb7\x03\n\x0eMsgMarketOrder\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12-\n\x04side\x18\x03 \x01(\x0e\x32\x19.nibiru.perp.v2.DirectionR\x04side\x12\\\n\x12quote_asset_amount\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x10quoteAssetAmount\x12J\n\x08leverage\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x08leverage\x12\x65\n\x17\x62\x61se_asset_amount_limit\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x14\x62\x61seAssetAmountLimit\"\xe3\x05\n\x16MsgMarketOrderResponse\x12\x34\n\x08position\x18\x01 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionR\x08position\x12h\n\x18\x65xchanged_notional_value\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x16\x65xchangedNotionalValue\x12\x66\n\x17\x65xchanged_position_size\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x15\x65xchangedPositionSize\x12W\n\x0f\x66unding_payment\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12Q\n\x0crealized_pnl\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0brealizedPnl\x12`\n\x14unrealized_pnl_after\x18\x06 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x12unrealizedPnlAfter\x12V\n\x0fmargin_to_vault\x18\x07 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\rmarginToVault\x12[\n\x11position_notional\x18\x08 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10positionNotional\"y\n\x10MsgClosePosition\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\"\xf2\x03\n\x18MsgClosePositionResponse\x12h\n\x18\x65xchanged_notional_value\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x16\x65xchangedNotionalValue\x12\x66\n\x17\x65xchanged_position_size\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x15\x65xchangedPositionSize\x12W\n\x0f\x66unding_payment\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12Q\n\x0crealized_pnl\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0brealizedPnl\x12X\n\x10margin_to_trader\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0emarginToTrader\"\xbc\x01\n\x0fMsgPartialClose\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12M\n\x04pair\x18\x02 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x42\n\x04size\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x04size\"\xf1\x03\n\x17MsgPartialCloseResponse\x12h\n\x18\x65xchanged_notional_value\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x16\x65xchangedNotionalValue\x12\x66\n\x17\x65xchanged_position_size\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x15\x65xchangedPositionSize\x12W\n\x0f\x66unding_payment\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0e\x66undingPayment\x12Q\n\x0crealized_pnl\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0brealizedPnl\x12X\n\x10margin_to_trader\x18\x05 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0emarginToTrader\"\x82\x01\n\x18MsgDonateToEcosystemFund\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12N\n\x08\x64onation\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x17\xc8\xde\x1f\x00\xf2\xde\x1f\x0fyaml:\"donation\"R\x08\x64onation\"\"\n MsgDonateToEcosystemFundResponse2\xa1\x05\n\x03Msg\x12Z\n\x0cRemoveMargin\x12\x1f.nibiru.perp.v2.MsgRemoveMargin\x1a\'.nibiru.perp.v2.MsgRemoveMarginResponse\"\x00\x12Q\n\tAddMargin\x12\x1c.nibiru.perp.v2.MsgAddMargin\x1a$.nibiru.perp.v2.MsgAddMarginResponse\"\x00\x12`\n\x0eMultiLiquidate\x12!.nibiru.perp.v2.MsgMultiLiquidate\x1a).nibiru.perp.v2.MsgMultiLiquidateResponse\"\x00\x12W\n\x0bMarketOrder\x12\x1e.nibiru.perp.v2.MsgMarketOrder\x1a&.nibiru.perp.v2.MsgMarketOrderResponse\"\x00\x12]\n\rClosePosition\x12 .nibiru.perp.v2.MsgClosePosition\x1a(.nibiru.perp.v2.MsgClosePositionResponse\"\x00\x12Z\n\x0cPartialClose\x12\x1f.nibiru.perp.v2.MsgPartialClose\x1a\'.nibiru.perp.v2.MsgPartialCloseResponse\"\x00\x12u\n\x15\x44onateToEcosystemFund\x12(.nibiru.perp.v2.MsgDonateToEcosystemFund\x1a\x30.nibiru.perp.v2.MsgDonateToEcosystemFundResponse\"\x00\x42/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types' + _MSGREMOVEMARGIN.fields_by_name['pair']._options = None + _MSGREMOVEMARGIN.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGREMOVEMARGIN.fields_by_name['margin']._options = None + _MSGREMOVEMARGIN.fields_by_name['margin']._serialized_options = b'\310\336\037\000' + _MSGREMOVEMARGINRESPONSE.fields_by_name['margin_out']._options = None + _MSGREMOVEMARGINRESPONSE.fields_by_name['margin_out']._serialized_options = b'\310\336\037\000' + _MSGREMOVEMARGINRESPONSE.fields_by_name['funding_payment']._options = None + _MSGREMOVEMARGINRESPONSE.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGADDMARGIN.fields_by_name['pair']._options = None + _MSGADDMARGIN.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGADDMARGIN.fields_by_name['margin']._options = None + _MSGADDMARGIN.fields_by_name['margin']._serialized_options = b'\310\336\037\000' + _MSGADDMARGINRESPONSE.fields_by_name['funding_payment']._options = None + _MSGADDMARGINRESPONSE.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMULTILIQUIDATE_LIQUIDATION.fields_by_name['pair']._options = None + _MSGMULTILIQUIDATE_LIQUIDATION.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['liquidator_fee']._options = None + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['liquidator_fee']._serialized_options = b'\310\336\037\001' + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['perp_ef_fee']._options = None + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['perp_ef_fee']._serialized_options = b'\310\336\037\001' + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['pair']._options = None + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGMARKETORDER.fields_by_name['pair']._options = None + _MSGMARKETORDER.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGMARKETORDER.fields_by_name['quote_asset_amount']._options = None + _MSGMARKETORDER.fields_by_name['quote_asset_amount']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _MSGMARKETORDER.fields_by_name['leverage']._options = None + _MSGMARKETORDER.fields_by_name['leverage']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDER.fields_by_name['base_asset_amount_limit']._options = None + _MSGMARKETORDER.fields_by_name['base_asset_amount_limit']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _MSGMARKETORDERRESPONSE.fields_by_name['exchanged_notional_value']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['exchanged_notional_value']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['exchanged_position_size']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['exchanged_position_size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['funding_payment']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['realized_pnl']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['realized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['unrealized_pnl_after']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['unrealized_pnl_after']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['margin_to_vault']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['margin_to_vault']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGMARKETORDERRESPONSE.fields_by_name['position_notional']._options = None + _MSGMARKETORDERRESPONSE.fields_by_name['position_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGCLOSEPOSITION.fields_by_name['pair']._options = None + _MSGCLOSEPOSITION.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['exchanged_notional_value']._options = None + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['exchanged_notional_value']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['exchanged_position_size']._options = None + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['exchanged_position_size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['funding_payment']._options = None + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['realized_pnl']._options = None + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['realized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['margin_to_trader']._options = None + _MSGCLOSEPOSITIONRESPONSE.fields_by_name['margin_to_trader']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSE.fields_by_name['pair']._options = None + _MSGPARTIALCLOSE.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair' + _MSGPARTIALCLOSE.fields_by_name['size']._options = None + _MSGPARTIALCLOSE.fields_by_name['size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSERESPONSE.fields_by_name['exchanged_notional_value']._options = None + _MSGPARTIALCLOSERESPONSE.fields_by_name['exchanged_notional_value']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSERESPONSE.fields_by_name['exchanged_position_size']._options = None + _MSGPARTIALCLOSERESPONSE.fields_by_name['exchanged_position_size']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSERESPONSE.fields_by_name['funding_payment']._options = None + _MSGPARTIALCLOSERESPONSE.fields_by_name['funding_payment']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSERESPONSE.fields_by_name['realized_pnl']._options = None + _MSGPARTIALCLOSERESPONSE.fields_by_name['realized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGPARTIALCLOSERESPONSE.fields_by_name['margin_to_trader']._options = None + _MSGPARTIALCLOSERESPONSE.fields_by_name['margin_to_trader']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _MSGDONATETOECOSYSTEMFUND.fields_by_name['donation']._options = None + _MSGDONATETOECOSYSTEMFUND.fields_by_name['donation']._serialized_options = b'\310\336\037\000\362\336\037\017yaml:\"donation\"' + _MSGREMOVEMARGIN._serialized_start=156 + _MSGREMOVEMARGIN._serialized_end=333 + _MSGREMOVEMARGINRESPONSE._serialized_start=336 + _MSGREMOVEMARGINRESPONSE._serialized_end=568 + _MSGADDMARGIN._serialized_start=571 + _MSGADDMARGIN._serialized_end=745 + _MSGADDMARGINRESPONSE._serialized_start=748 + _MSGADDMARGINRESPONSE._serialized_end=913 + _MSGMULTILIQUIDATE._serialized_start=916 + _MSGMULTILIQUIDATE._serialized_end=1160 + _MSGMULTILIQUIDATE_LIQUIDATION._serialized_start=1044 + _MSGMULTILIQUIDATE_LIQUIDATION._serialized_end=1160 + _MSGMULTILIQUIDATERESPONSE._serialized_start=1163 + _MSGMULTILIQUIDATERESPONSE._serialized_end=1601 + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE._serialized_start=1292 + _MSGMULTILIQUIDATERESPONSE_LIQUIDATIONRESPONSE._serialized_end=1601 + _MSGMARKETORDER._serialized_start=1604 + _MSGMARKETORDER._serialized_end=2043 + _MSGMARKETORDERRESPONSE._serialized_start=2046 + _MSGMARKETORDERRESPONSE._serialized_end=2785 + _MSGCLOSEPOSITION._serialized_start=2787 + _MSGCLOSEPOSITION._serialized_end=2908 + _MSGCLOSEPOSITIONRESPONSE._serialized_start=2911 + _MSGCLOSEPOSITIONRESPONSE._serialized_end=3409 + _MSGPARTIALCLOSE._serialized_start=3412 + _MSGPARTIALCLOSE._serialized_end=3600 + _MSGPARTIALCLOSERESPONSE._serialized_start=3603 + _MSGPARTIALCLOSERESPONSE._serialized_end=4100 + _MSGDONATETOECOSYSTEMFUND._serialized_start=4103 + _MSGDONATETOECOSYSTEMFUND._serialized_end=4233 + _MSGDONATETOECOSYSTEMFUNDRESPONSE._serialized_start=4235 + _MSGDONATETOECOSYSTEMFUNDRESPONSE._serialized_end=4269 + _MSG._serialized_start=4272 + _MSG._serialized_end=4945 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/perp/v2/tx_pb2.pyi b/nibiru_proto/nibiru/perp/v2/tx_pb2.pyi new file mode 100644 index 00000000..8b0fb9c8 --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/tx_pb2.pyi @@ -0,0 +1,446 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.perp.v2.state_pb2 +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 MsgRemoveMargin(google.protobuf.message.Message): + """-------------------------- RemoveMargin -------------------------- + + MsgRemoveMargin: Msg to remove margin. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + MARGIN_FIELD_NUMBER: builtins.int + sender: builtins.str + pair: builtins.str + @property + def margin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + sender: builtins.str = ..., + pair: builtins.str = ..., + margin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["margin", b"margin"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["margin", b"margin", "pair", b"pair", "sender", b"sender"]) -> None: ... + +global___MsgRemoveMargin = MsgRemoveMargin + +@typing_extensions.final +class MsgRemoveMarginResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MARGIN_OUT_FIELD_NUMBER: builtins.int + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + POSITION_FIELD_NUMBER: builtins.int + @property + def margin_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """tokens transferred back to the trader""" + funding_payment: builtins.str + """the funding payment applied on this position interaction""" + @property + def position(self) -> nibiru.perp.v2.state_pb2.Position: + """The resulting position""" + def __init__( + self, + *, + margin_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + funding_payment: builtins.str = ..., + position: nibiru.perp.v2.state_pb2.Position | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["margin_out", b"margin_out", "position", b"position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["funding_payment", b"funding_payment", "margin_out", b"margin_out", "position", b"position"]) -> None: ... + +global___MsgRemoveMarginResponse = MsgRemoveMarginResponse + +@typing_extensions.final +class MsgAddMargin(google.protobuf.message.Message): + """-------------------------- AddMargin -------------------------- + + MsgAddMargin: Msg to remove margin. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + MARGIN_FIELD_NUMBER: builtins.int + sender: builtins.str + pair: builtins.str + @property + def margin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + sender: builtins.str = ..., + pair: builtins.str = ..., + margin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["margin", b"margin"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["margin", b"margin", "pair", b"pair", "sender", b"sender"]) -> None: ... + +global___MsgAddMargin = MsgAddMargin + +@typing_extensions.final +class MsgAddMarginResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + POSITION_FIELD_NUMBER: builtins.int + funding_payment: builtins.str + @property + def position(self) -> nibiru.perp.v2.state_pb2.Position: ... + def __init__( + self, + *, + funding_payment: builtins.str = ..., + position: nibiru.perp.v2.state_pb2.Position | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["position", b"position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["funding_payment", b"funding_payment", "position", b"position"]) -> None: ... + +global___MsgAddMarginResponse = MsgAddMarginResponse + +@typing_extensions.final +class MsgMultiLiquidate(google.protobuf.message.Message): + """-------------------------- Liquidation --------------------------""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class Liquidation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIR_FIELD_NUMBER: builtins.int + TRADER_FIELD_NUMBER: builtins.int + pair: builtins.str + trader: builtins.str + def __init__( + self, + *, + pair: builtins.str = ..., + trader: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "trader", b"trader"]) -> None: ... + + SENDER_FIELD_NUMBER: builtins.int + LIQUIDATIONS_FIELD_NUMBER: builtins.int + sender: builtins.str + @property + def liquidations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgMultiLiquidate.Liquidation]: ... + def __init__( + self, + *, + sender: builtins.str = ..., + liquidations: collections.abc.Iterable[global___MsgMultiLiquidate.Liquidation] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidations", b"liquidations", "sender", b"sender"]) -> None: ... + +global___MsgMultiLiquidate = MsgMultiLiquidate + +@typing_extensions.final +class MsgMultiLiquidateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class LiquidationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUCCESS_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + LIQUIDATOR_FEE_FIELD_NUMBER: builtins.int + PERP_EF_FEE_FIELD_NUMBER: builtins.int + TRADER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + success: builtins.bool + error: builtins.str + @property + def liquidator_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """nullable since no fee is taken on failed liquidation""" + @property + def perp_ef_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """perp ecosystem fund""" + trader: builtins.str + """nullable since no fee is taken on failed liquidation""" + pair: builtins.str + def __init__( + self, + *, + success: builtins.bool = ..., + error: builtins.str = ..., + liquidator_fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + perp_ef_fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + trader: builtins.str = ..., + pair: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["liquidator_fee", b"liquidator_fee", "perp_ef_fee", b"perp_ef_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["error", b"error", "liquidator_fee", b"liquidator_fee", "pair", b"pair", "perp_ef_fee", b"perp_ef_fee", "success", b"success", "trader", b"trader"]) -> None: ... + + LIQUIDATIONS_FIELD_NUMBER: builtins.int + @property + def liquidations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgMultiLiquidateResponse.LiquidationResponse]: ... + def __init__( + self, + *, + liquidations: collections.abc.Iterable[global___MsgMultiLiquidateResponse.LiquidationResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidations", b"liquidations"]) -> None: ... + +global___MsgMultiLiquidateResponse = MsgMultiLiquidateResponse + +@typing_extensions.final +class MsgMarketOrder(google.protobuf.message.Message): + """-------------------------- MarketOrder --------------------------""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + SIDE_FIELD_NUMBER: builtins.int + QUOTE_ASSET_AMOUNT_FIELD_NUMBER: builtins.int + LEVERAGE_FIELD_NUMBER: builtins.int + BASE_ASSET_AMOUNT_LIMIT_FIELD_NUMBER: builtins.int + sender: builtins.str + pair: builtins.str + side: nibiru.perp.v2.state_pb2.Direction.ValueType + quote_asset_amount: builtins.str + leverage: builtins.str + base_asset_amount_limit: builtins.str + def __init__( + self, + *, + sender: builtins.str = ..., + pair: builtins.str = ..., + side: nibiru.perp.v2.state_pb2.Direction.ValueType = ..., + quote_asset_amount: builtins.str = ..., + leverage: builtins.str = ..., + base_asset_amount_limit: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["base_asset_amount_limit", b"base_asset_amount_limit", "leverage", b"leverage", "pair", b"pair", "quote_asset_amount", b"quote_asset_amount", "sender", b"sender", "side", b"side"]) -> None: ... + +global___MsgMarketOrder = MsgMarketOrder + +@typing_extensions.final +class MsgMarketOrderResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITION_FIELD_NUMBER: builtins.int + EXCHANGED_NOTIONAL_VALUE_FIELD_NUMBER: builtins.int + EXCHANGED_POSITION_SIZE_FIELD_NUMBER: builtins.int + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + REALIZED_PNL_FIELD_NUMBER: builtins.int + UNREALIZED_PNL_AFTER_FIELD_NUMBER: builtins.int + MARGIN_TO_VAULT_FIELD_NUMBER: builtins.int + POSITION_NOTIONAL_FIELD_NUMBER: builtins.int + @property + def position(self) -> nibiru.perp.v2.state_pb2.Position: ... + exchanged_notional_value: builtins.str + """The amount of quote assets exchanged.""" + exchanged_position_size: builtins.str + """The amount of base assets exchanged.""" + funding_payment: builtins.str + """The funding payment applied on this position change, measured in quote + units. + """ + realized_pnl: builtins.str + """The amount of PnL realized on this position changed, measured in quote + units. + """ + unrealized_pnl_after: builtins.str + """The unrealized PnL in the position after the position change, measured in + quote units. + """ + margin_to_vault: builtins.str + """The amount of margin the trader has to give to the vault. + A negative value means the vault pays the trader. + """ + position_notional: builtins.str + """The position's notional value after the position change, measured in quote + units. + """ + def __init__( + self, + *, + position: nibiru.perp.v2.state_pb2.Position | None = ..., + exchanged_notional_value: builtins.str = ..., + exchanged_position_size: builtins.str = ..., + funding_payment: builtins.str = ..., + realized_pnl: builtins.str = ..., + unrealized_pnl_after: builtins.str = ..., + margin_to_vault: builtins.str = ..., + position_notional: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["position", b"position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["exchanged_notional_value", b"exchanged_notional_value", "exchanged_position_size", b"exchanged_position_size", "funding_payment", b"funding_payment", "margin_to_vault", b"margin_to_vault", "position", b"position", "position_notional", b"position_notional", "realized_pnl", b"realized_pnl", "unrealized_pnl_after", b"unrealized_pnl_after"]) -> None: ... + +global___MsgMarketOrderResponse = MsgMarketOrderResponse + +@typing_extensions.final +class MsgClosePosition(google.protobuf.message.Message): + """-------------------------- ClosePosition --------------------------""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + sender: builtins.str + pair: builtins.str + def __init__( + self, + *, + sender: builtins.str = ..., + pair: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "sender", b"sender"]) -> None: ... + +global___MsgClosePosition = MsgClosePosition + +@typing_extensions.final +class MsgClosePositionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGED_NOTIONAL_VALUE_FIELD_NUMBER: builtins.int + EXCHANGED_POSITION_SIZE_FIELD_NUMBER: builtins.int + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + REALIZED_PNL_FIELD_NUMBER: builtins.int + MARGIN_TO_TRADER_FIELD_NUMBER: builtins.int + exchanged_notional_value: builtins.str + """The amount of quote assets exchanged.""" + exchanged_position_size: builtins.str + """The amount of base assets exchanged.""" + funding_payment: builtins.str + """The funding payment applied on this position change, measured in quote + units. + """ + realized_pnl: builtins.str + """The amount of PnL realized on this position changed, measured in quote + units. + """ + margin_to_trader: builtins.str + """The amount of margin the trader receives after closing the position, from + the vault. Should never be negative. + """ + def __init__( + self, + *, + exchanged_notional_value: builtins.str = ..., + exchanged_position_size: builtins.str = ..., + funding_payment: builtins.str = ..., + realized_pnl: builtins.str = ..., + margin_to_trader: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchanged_notional_value", b"exchanged_notional_value", "exchanged_position_size", b"exchanged_position_size", "funding_payment", b"funding_payment", "margin_to_trader", b"margin_to_trader", "realized_pnl", b"realized_pnl"]) -> None: ... + +global___MsgClosePositionResponse = MsgClosePositionResponse + +@typing_extensions.final +class MsgPartialClose(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + PAIR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + sender: builtins.str + pair: builtins.str + size: builtins.str + def __init__( + self, + *, + sender: builtins.str = ..., + pair: builtins.str = ..., + size: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pair", b"pair", "sender", b"sender", "size", b"size"]) -> None: ... + +global___MsgPartialClose = MsgPartialClose + +@typing_extensions.final +class MsgPartialCloseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCHANGED_NOTIONAL_VALUE_FIELD_NUMBER: builtins.int + EXCHANGED_POSITION_SIZE_FIELD_NUMBER: builtins.int + FUNDING_PAYMENT_FIELD_NUMBER: builtins.int + REALIZED_PNL_FIELD_NUMBER: builtins.int + MARGIN_TO_TRADER_FIELD_NUMBER: builtins.int + exchanged_notional_value: builtins.str + """The amount of quote assets exchanged.""" + exchanged_position_size: builtins.str + """The amount of base assets exchanged.""" + funding_payment: builtins.str + """The funding payment applied on this position change, measured in quote + units. + """ + realized_pnl: builtins.str + """The amount of PnL realized on this position changed, measured in quote + units. + """ + margin_to_trader: builtins.str + """The amount of margin the trader receives after closing the position, from + the vault. Should never be negative. + """ + def __init__( + self, + *, + exchanged_notional_value: builtins.str = ..., + exchanged_position_size: builtins.str = ..., + funding_payment: builtins.str = ..., + realized_pnl: builtins.str = ..., + margin_to_trader: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["exchanged_notional_value", b"exchanged_notional_value", "exchanged_position_size", b"exchanged_position_size", "funding_payment", b"funding_payment", "margin_to_trader", b"margin_to_trader", "realized_pnl", b"realized_pnl"]) -> None: ... + +global___MsgPartialCloseResponse = MsgPartialCloseResponse + +@typing_extensions.final +class MsgDonateToEcosystemFund(google.protobuf.message.Message): + """-------------------------- DonateToEcosystemFund --------------------------""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + DONATION_FIELD_NUMBER: builtins.int + sender: builtins.str + @property + def donation(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """donation to the EF""" + def __init__( + self, + *, + sender: builtins.str = ..., + donation: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["donation", b"donation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["donation", b"donation", "sender", b"sender"]) -> None: ... + +global___MsgDonateToEcosystemFund = MsgDonateToEcosystemFund + +@typing_extensions.final +class MsgDonateToEcosystemFundResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgDonateToEcosystemFundResponse = MsgDonateToEcosystemFundResponse diff --git a/nibiru_proto/nibiru/perp/v2/tx_pb2_grpc.py b/nibiru_proto/nibiru/perp/v2/tx_pb2_grpc.py new file mode 100644 index 00000000..3a25193c --- /dev/null +++ b/nibiru_proto/nibiru/perp/v2/tx_pb2_grpc.py @@ -0,0 +1,267 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.perp.v2 import tx_pb2 as nibiru_dot_perp_dot_v2_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the x/perp Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.RemoveMargin = channel.unary_unary( + '/nibiru.perp.v2.Msg/RemoveMargin', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMargin.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMarginResponse.FromString, + ) + self.AddMargin = channel.unary_unary( + '/nibiru.perp.v2.Msg/AddMargin', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMargin.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMarginResponse.FromString, + ) + self.MultiLiquidate = channel.unary_unary( + '/nibiru.perp.v2.Msg/MultiLiquidate', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidate.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidateResponse.FromString, + ) + self.MarketOrder = channel.unary_unary( + '/nibiru.perp.v2.Msg/MarketOrder', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrder.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrderResponse.FromString, + ) + self.ClosePosition = channel.unary_unary( + '/nibiru.perp.v2.Msg/ClosePosition', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePosition.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePositionResponse.FromString, + ) + self.PartialClose = channel.unary_unary( + '/nibiru.perp.v2.Msg/PartialClose', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialClose.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialCloseResponse.FromString, + ) + self.DonateToEcosystemFund = channel.unary_unary( + '/nibiru.perp.v2.Msg/DonateToEcosystemFund', + request_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFund.SerializeToString, + response_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFundResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the x/perp Msg service. + """ + + def RemoveMargin(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddMargin(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiLiquidate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MarketOrder(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClosePosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PartialClose(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DonateToEcosystemFund(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'RemoveMargin': grpc.unary_unary_rpc_method_handler( + servicer.RemoveMargin, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMargin.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMarginResponse.SerializeToString, + ), + 'AddMargin': grpc.unary_unary_rpc_method_handler( + servicer.AddMargin, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMargin.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMarginResponse.SerializeToString, + ), + 'MultiLiquidate': grpc.unary_unary_rpc_method_handler( + servicer.MultiLiquidate, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidate.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidateResponse.SerializeToString, + ), + 'MarketOrder': grpc.unary_unary_rpc_method_handler( + servicer.MarketOrder, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrder.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrderResponse.SerializeToString, + ), + 'ClosePosition': grpc.unary_unary_rpc_method_handler( + servicer.ClosePosition, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePosition.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePositionResponse.SerializeToString, + ), + 'PartialClose': grpc.unary_unary_rpc_method_handler( + servicer.PartialClose, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialClose.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialCloseResponse.SerializeToString, + ), + 'DonateToEcosystemFund': grpc.unary_unary_rpc_method_handler( + servicer.DonateToEcosystemFund, + request_deserializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFund.FromString, + response_serializer=nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFundResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.perp.v2.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the x/perp Msg service. + """ + + @staticmethod + def RemoveMargin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/RemoveMargin', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMargin.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgRemoveMarginResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddMargin(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/AddMargin', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMargin.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgAddMarginResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiLiquidate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/MultiLiquidate', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidate.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMultiLiquidateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MarketOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/MarketOrder', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrder.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgMarketOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClosePosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/ClosePosition', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePosition.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgClosePositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PartialClose(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/PartialClose', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialClose.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgPartialCloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DonateToEcosystemFund(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.perp.v2.Msg/DonateToEcosystemFund', + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFund.SerializeToString, + nibiru_dot_perp_dot_v2_dot_tx__pb2.MsgDonateToEcosystemFundResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/spot/__init__.py b/nibiru_proto/nibiru/spot/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/spot/v1/__init__.py b/nibiru_proto/nibiru/spot/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/spot/v1/event_pb2.py b/nibiru_proto/nibiru/spot/v1/event_pb2.py new file mode 100644 index 00000000..971c73f3 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/event_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from nibiru_proto.nibiru.spot.v1 import pool_pb2 as nibiru_dot_spot_dot_v1_dot_pool__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/spot/v1/event.proto\x12\x0enibiru.spot.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19nibiru/spot/v1/pool.proto\"\xf2\x01\n\x10\x45ventPoolCreated\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x33\n\x04\x66\x65\x65s\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04\x66\x65\x65s\x12\x39\n\nfinal_pool\x18\x04 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolB\x04\xc8\xde\x1f\x00R\tfinalPool\x12T\n\x16\x66inal_user_pool_shares\x18\x05 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x13\x66inalUserPoolShares\"\x81\x03\n\x0f\x45ventPoolJoined\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12<\n\ttokens_in\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x08tokensIn\x12G\n\x0fpool_shares_out\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\rpoolSharesOut\x12<\n\trem_coins\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x08remCoins\x12\x39\n\nfinal_pool\x18\x05 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolB\x04\xc8\xde\x1f\x00R\tfinalPool\x12T\n\x16\x66inal_user_pool_shares\x18\x06 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x13\x66inalUserPoolShares\"\xf8\x02\n\x0f\x45ventPoolExited\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x45\n\x0epool_shares_in\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x0cpoolSharesIn\x12>\n\ntokens_out\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\ttokensOut\x12\x33\n\x04\x66\x65\x65s\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04\x66\x65\x65s\x12\x39\n\nfinal_pool\x18\x05 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolB\x04\xc8\xde\x1f\x00R\tfinalPool\x12T\n\x16\x66inal_user_pool_shares\x18\x06 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x13\x66inalUserPoolShares\"\x96\x02\n\x12\x45ventAssetsSwapped\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12:\n\x08token_in\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07tokenIn\x12<\n\ttoken_out\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x08tokenOut\x12\x31\n\x03\x66\x65\x65\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x03\x66\x65\x65\x12\x39\n\nfinal_pool\x18\x05 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolB\x04\xc8\xde\x1f\x00R\tfinalPoolB,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _EVENTPOOLCREATED.fields_by_name['fees']._options = None + _EVENTPOOLCREATED.fields_by_name['fees']._serialized_options = b'\310\336\037\000' + _EVENTPOOLCREATED.fields_by_name['final_pool']._options = None + _EVENTPOOLCREATED.fields_by_name['final_pool']._serialized_options = b'\310\336\037\000' + _EVENTPOOLCREATED.fields_by_name['final_user_pool_shares']._options = None + _EVENTPOOLCREATED.fields_by_name['final_user_pool_shares']._serialized_options = b'\310\336\037\000' + _EVENTPOOLJOINED.fields_by_name['tokens_in']._options = None + _EVENTPOOLJOINED.fields_by_name['tokens_in']._serialized_options = b'\310\336\037\000' + _EVENTPOOLJOINED.fields_by_name['pool_shares_out']._options = None + _EVENTPOOLJOINED.fields_by_name['pool_shares_out']._serialized_options = b'\310\336\037\000' + _EVENTPOOLJOINED.fields_by_name['rem_coins']._options = None + _EVENTPOOLJOINED.fields_by_name['rem_coins']._serialized_options = b'\310\336\037\000' + _EVENTPOOLJOINED.fields_by_name['final_pool']._options = None + _EVENTPOOLJOINED.fields_by_name['final_pool']._serialized_options = b'\310\336\037\000' + _EVENTPOOLJOINED.fields_by_name['final_user_pool_shares']._options = None + _EVENTPOOLJOINED.fields_by_name['final_user_pool_shares']._serialized_options = b'\310\336\037\000' + _EVENTPOOLEXITED.fields_by_name['pool_shares_in']._options = None + _EVENTPOOLEXITED.fields_by_name['pool_shares_in']._serialized_options = b'\310\336\037\000' + _EVENTPOOLEXITED.fields_by_name['tokens_out']._options = None + _EVENTPOOLEXITED.fields_by_name['tokens_out']._serialized_options = b'\310\336\037\000' + _EVENTPOOLEXITED.fields_by_name['fees']._options = None + _EVENTPOOLEXITED.fields_by_name['fees']._serialized_options = b'\310\336\037\000' + _EVENTPOOLEXITED.fields_by_name['final_pool']._options = None + _EVENTPOOLEXITED.fields_by_name['final_pool']._serialized_options = b'\310\336\037\000' + _EVENTPOOLEXITED.fields_by_name['final_user_pool_shares']._options = None + _EVENTPOOLEXITED.fields_by_name['final_user_pool_shares']._serialized_options = b'\310\336\037\000' + _EVENTASSETSSWAPPED.fields_by_name['token_in']._options = None + _EVENTASSETSSWAPPED.fields_by_name['token_in']._serialized_options = b'\310\336\037\000' + _EVENTASSETSSWAPPED.fields_by_name['token_out']._options = None + _EVENTASSETSSWAPPED.fields_by_name['token_out']._serialized_options = b'\310\336\037\000' + _EVENTASSETSSWAPPED.fields_by_name['fee']._options = None + _EVENTASSETSSWAPPED.fields_by_name['fee']._serialized_options = b'\310\336\037\000' + _EVENTASSETSSWAPPED.fields_by_name['final_pool']._options = None + _EVENTASSETSSWAPPED.fields_by_name['final_pool']._serialized_options = b'\310\336\037\000' + _EVENTPOOLCREATED._serialized_start=128 + _EVENTPOOLCREATED._serialized_end=370 + _EVENTPOOLJOINED._serialized_start=373 + _EVENTPOOLJOINED._serialized_end=758 + _EVENTPOOLEXITED._serialized_start=761 + _EVENTPOOLEXITED._serialized_end=1137 + _EVENTASSETSSWAPPED._serialized_start=1140 + _EVENTASSETSSWAPPED._serialized_end=1418 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/event_pb2.pyi b/nibiru_proto/nibiru/spot/v1/event_pb2.pyi new file mode 100644 index 00000000..281f3da8 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/event_pb2.pyi @@ -0,0 +1,172 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.spot.v1.pool_pb2 +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 EventPoolCreated(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + FEES_FIELD_NUMBER: builtins.int + FINAL_POOL_FIELD_NUMBER: builtins.int + FINAL_USER_POOL_SHARES_FIELD_NUMBER: builtins.int + creator: builtins.str + """the address of the user who created the pool""" + @property + def fees(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """the create pool fee""" + @property + def final_pool(self) -> nibiru.spot.v1.pool_pb2.Pool: + """the final state of the pool""" + @property + def final_user_pool_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of pool shares that the user received""" + def __init__( + self, + *, + creator: builtins.str = ..., + fees: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + final_pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + final_user_pool_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["creator", b"creator", "fees", b"fees", "final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares"]) -> None: ... + +global___EventPoolCreated = EventPoolCreated + +@typing_extensions.final +class EventPoolJoined(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + TOKENS_IN_FIELD_NUMBER: builtins.int + POOL_SHARES_OUT_FIELD_NUMBER: builtins.int + REM_COINS_FIELD_NUMBER: builtins.int + FINAL_POOL_FIELD_NUMBER: builtins.int + FINAL_USER_POOL_SHARES_FIELD_NUMBER: builtins.int + address: builtins.str + """the address of the user who joined the pool""" + @property + def tokens_in(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """the amount of tokens that the user deposited""" + @property + def pool_shares_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of pool shares that the user received""" + @property + def rem_coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """the amount of tokens remaining for the user""" + @property + def final_pool(self) -> nibiru.spot.v1.pool_pb2.Pool: + """the final state of the pool""" + @property + def final_user_pool_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the final amount of user pool shares""" + def __init__( + self, + *, + address: builtins.str = ..., + tokens_in: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + pool_shares_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + rem_coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + final_pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + final_user_pool_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares", "pool_shares_out", b"pool_shares_out"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares", "pool_shares_out", b"pool_shares_out", "rem_coins", b"rem_coins", "tokens_in", b"tokens_in"]) -> None: ... + +global___EventPoolJoined = EventPoolJoined + +@typing_extensions.final +class EventPoolExited(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + POOL_SHARES_IN_FIELD_NUMBER: builtins.int + TOKENS_OUT_FIELD_NUMBER: builtins.int + FEES_FIELD_NUMBER: builtins.int + FINAL_POOL_FIELD_NUMBER: builtins.int + FINAL_USER_POOL_SHARES_FIELD_NUMBER: builtins.int + address: builtins.str + """the address of the user who exited the pool""" + @property + def pool_shares_in(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of pool shares that the user exited with""" + @property + def tokens_out(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """the amount of tokens returned to the user""" + @property + def fees(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """the amount of fees collected by the pool""" + @property + def final_pool(self) -> nibiru.spot.v1.pool_pb2.Pool: + """the final state of the pool""" + @property + def final_user_pool_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the final amount of user pool shares""" + def __init__( + self, + *, + address: builtins.str = ..., + pool_shares_in: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + tokens_out: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + fees: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + final_pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + final_user_pool_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares", "pool_shares_in", b"pool_shares_in"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "fees", b"fees", "final_pool", b"final_pool", "final_user_pool_shares", b"final_user_pool_shares", "pool_shares_in", b"pool_shares_in", "tokens_out", b"tokens_out"]) -> None: ... + +global___EventPoolExited = EventPoolExited + +@typing_extensions.final +class EventAssetsSwapped(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + TOKEN_IN_FIELD_NUMBER: builtins.int + TOKEN_OUT_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + FINAL_POOL_FIELD_NUMBER: builtins.int + address: builtins.str + """the address of the user who swapped tokens""" + @property + def token_in(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of tokens that the user deposited""" + @property + def token_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of tokens that the user received""" + @property + def fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """the amount of fees collected by the pool""" + @property + def final_pool(self) -> nibiru.spot.v1.pool_pb2.Pool: + """the final state of the pool""" + def __init__( + self, + *, + address: builtins.str = ..., + token_in: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + token_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + final_pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["fee", b"fee", "final_pool", b"final_pool", "token_in", b"token_in", "token_out", b"token_out"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "fee", b"fee", "final_pool", b"final_pool", "token_in", b"token_in", "token_out", b"token_out"]) -> None: ... + +global___EventAssetsSwapped = EventAssetsSwapped diff --git a/nibiru_proto/nibiru/spot/v1/event_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/spot/v1/genesis_pb2.py b/nibiru_proto/nibiru/spot/v1/genesis_pb2.py new file mode 100644 index 00000000..8c1d2c18 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/genesis_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from nibiru_proto.nibiru.spot.v1 import params_pb2 as nibiru_dot_spot_dot_v1_dot_params__pb2 +from nibiru_proto.nibiru.spot.v1 import pool_pb2 as nibiru_dot_spot_dot_v1_dot_pool__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnibiru/spot/v1/genesis.proto\x12\x0enibiru.spot.v1\x1a\x1bnibiru/spot/v1/params.proto\x1a\x19nibiru/spot/v1/pool.proto\x1a\x14gogoproto/gogo.proto\"v\n\x0cGenesisState\x12\x34\n\x06params\x18\x01 \x01(\x0b\x32\x16.nibiru.spot.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\x30\n\x05pools\x18\x02 \x03(\x0b\x32\x14.nibiru.spot.v1.PoolB\x04\xc8\xde\x1f\x00R\x05poolsB,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['pools']._options = None + _GENESISSTATE.fields_by_name['pools']._serialized_options = b'\310\336\037\000' + _GENESISSTATE._serialized_start=126 + _GENESISSTATE._serialized_end=244 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/genesis_pb2.pyi b/nibiru_proto/nibiru/spot/v1/genesis_pb2.pyi new file mode 100644 index 00000000..bf601d26 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/genesis_pb2.pyi @@ -0,0 +1,44 @@ +""" +@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 nibiru.spot.v1.params_pb2 +import nibiru.spot.v1.pool_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the spot module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + POOLS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.spot.v1.params_pb2.Params: + """params defines all the parameters of the module.""" + @property + def pools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.spot.v1.pool_pb2.Pool]: + """pools defines all the pools of the module.""" + def __init__( + self, + *, + params: nibiru.spot.v1.params_pb2.Params | None = ..., + pools: collections.abc.Iterable[nibiru.spot.v1.pool_pb2.Pool] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params", "pools", b"pools"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/spot/v1/genesis_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/spot/v1/params_pb2.py b/nibiru_proto/nibiru/spot/v1/params_pb2.py new file mode 100644 index 00000000..e99db3fd --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/params_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/params.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnibiru/spot/v1/params.proto\x12\x0enibiru.spot.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\x83\x02\n\x06Params\x12\x30\n\x14starting_pool_number\x18\x01 \x01(\x04R\x12startingPoolNumber\x12\x93\x01\n\x11pool_creation_fee\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBL\xc8\xde\x1f\x00\xf2\xde\x1f\x18yaml:\"pool_creation_fee\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x0fpoolCreationFee\x12+\n\x11whitelisted_asset\x18\x03 \x03(\tR\x10whitelistedAsset:\x04\x98\xa0\x1f\x00\x42,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.params_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _PARAMS.fields_by_name['pool_creation_fee']._options = None + _PARAMS.fields_by_name['pool_creation_fee']._serialized_options = b'\310\336\037\000\362\336\037\030yaml:\"pool_creation_fee\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _PARAMS._options = None + _PARAMS._serialized_options = b'\230\240\037\000' + _PARAMS._serialized_start=129 + _PARAMS._serialized_end=388 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/params_pb2.pyi b/nibiru_proto/nibiru/spot/v1/params_pb2.pyi new file mode 100644 index 00000000..03854fe9 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/params_pb2.pyi @@ -0,0 +1,46 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_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 Params(google.protobuf.message.Message): + """Params defines the parameters for the module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STARTING_POOL_NUMBER_FIELD_NUMBER: builtins.int + POOL_CREATION_FEE_FIELD_NUMBER: builtins.int + WHITELISTED_ASSET_FIELD_NUMBER: builtins.int + starting_pool_number: builtins.int + """The start pool number, i.e. the first pool number that isn't taken yet.""" + @property + def pool_creation_fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """The cost of creating a pool, taken from the pool creator's account.""" + @property + def whitelisted_asset(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """The assets that can be used to create liquidity pools""" + def __init__( + self, + *, + starting_pool_number: builtins.int = ..., + pool_creation_fee: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + whitelisted_asset: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_creation_fee", b"pool_creation_fee", "starting_pool_number", b"starting_pool_number", "whitelisted_asset", b"whitelisted_asset"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/nibiru/spot/v1/params_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/params_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/params_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/spot/v1/pool_pb2.py b/nibiru_proto/nibiru/spot/v1/pool_pb2.py new file mode 100644 index 00000000..c074be5c --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/pool_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/pool.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19nibiru/spot/v1/pool.proto\x12\x0enibiru.spot.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xeb\x02\n\nPoolParams\x12\\\n\x08swap_fee\x18\x01 \x01(\tBA\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x0fyaml:\"swap_fee\"R\x07swapFee\x12\\\n\x08\x65xit_fee\x18\x02 \x01(\tBA\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xf2\xde\x1f\x0fyaml:\"exit_fee\"R\x07\x65xitFee\x12T\n\x01\x41\x18\x03 \x01(\tBF\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xf2\xde\x1f\x14yaml:\"amplification\"R\x01\x41\x12K\n\tpool_type\x18\x04 \x01(\x0e\x32\x18.nibiru.spot.v1.PoolTypeB\x14\xf2\xde\x1f\x10yaml:\"pool_type\"R\x08poolType\"\xab\x01\n\tPoolAsset\x12\x45\n\x05token\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x14\xc8\xde\x1f\x00\xf2\xde\x1f\x0cyaml:\"token\"R\x05token\x12W\n\x06weight\x18\x02 \x01(\tB?\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xf2\xde\x1f\ryaml:\"weight\"R\x06weight\"\xc0\x03\n\x04Pool\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12,\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"address\"R\x07\x61\x64\x64ress\x12W\n\x0bpool_params\x18\x03 \x01(\x0b\x32\x1a.nibiru.spot.v1.PoolParamsB\x1a\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"pool_params\"R\npoolParams\x12V\n\x0bpool_assets\x18\x04 \x03(\x0b\x32\x19.nibiru.spot.v1.PoolAssetB\x1a\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"pool_assets\"R\npoolAssets\x12h\n\x0ctotal_weight\x18\x05 \x01(\tBE\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xf2\xde\x1f\x13yaml:\"total_weight\"R\x0btotalWeight\x12Y\n\x0ctotal_shares\x18\x06 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1b\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"total_shares\"R\x0btotalShares:\x04\x88\xa0\x1f\x00*(\n\x08PoolType\x12\x0c\n\x08\x42\x41LANCER\x10\x00\x12\x0e\n\nSTABLESWAP\x10\x01\x42,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.pool_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _POOLPARAMS.fields_by_name['swap_fee']._options = None + _POOLPARAMS.fields_by_name['swap_fee']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\017yaml:\"swap_fee\"' + _POOLPARAMS.fields_by_name['exit_fee']._options = None + _POOLPARAMS.fields_by_name['exit_fee']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\362\336\037\017yaml:\"exit_fee\"' + _POOLPARAMS.fields_by_name['A']._options = None + _POOLPARAMS.fields_by_name['A']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\362\336\037\024yaml:\"amplification\"' + _POOLPARAMS.fields_by_name['pool_type']._options = None + _POOLPARAMS.fields_by_name['pool_type']._serialized_options = b'\362\336\037\020yaml:\"pool_type\"' + _POOLASSET.fields_by_name['token']._options = None + _POOLASSET.fields_by_name['token']._serialized_options = b'\310\336\037\000\362\336\037\014yaml:\"token\"' + _POOLASSET.fields_by_name['weight']._options = None + _POOLASSET.fields_by_name['weight']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\362\336\037\ryaml:\"weight\"' + _POOL.fields_by_name['address']._options = None + _POOL.fields_by_name['address']._serialized_options = b'\362\336\037\016yaml:\"address\"' + _POOL.fields_by_name['pool_params']._options = None + _POOL.fields_by_name['pool_params']._serialized_options = b'\310\336\037\000\362\336\037\022yaml:\"pool_params\"' + _POOL.fields_by_name['pool_assets']._options = None + _POOL.fields_by_name['pool_assets']._serialized_options = b'\310\336\037\000\362\336\037\022yaml:\"pool_assets\"' + _POOL.fields_by_name['total_weight']._options = None + _POOL.fields_by_name['total_weight']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\362\336\037\023yaml:\"total_weight\"' + _POOL.fields_by_name['total_shares']._options = None + _POOL.fields_by_name['total_shares']._serialized_options = b'\310\336\037\000\362\336\037\023yaml:\"total_shares\"' + _POOL._options = None + _POOL._serialized_options = b'\210\240\037\000' + _POOLTYPE._serialized_start=1117 + _POOLTYPE._serialized_end=1157 + _POOLPARAMS._serialized_start=127 + _POOLPARAMS._serialized_end=490 + _POOLASSET._serialized_start=493 + _POOLASSET._serialized_end=664 + _POOL._serialized_start=667 + _POOL._serialized_end=1115 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/pool_pb2.pyi b/nibiru_proto/nibiru/spot/v1/pool_pb2.pyi new file mode 100644 index 00000000..40f0c979 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/pool_pb2.pyi @@ -0,0 +1,140 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _PoolType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _PoolTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PoolType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + BALANCER: _PoolType.ValueType # 0 + STABLESWAP: _PoolType.ValueType # 1 + +class PoolType(_PoolType, metaclass=_PoolTypeEnumTypeWrapper): + """- `balancer`: Balancer are pools defined by the equation xy=k, extended by + the weighs introduced by Balancer. + - `stableswap`: Stableswap pools are defined by a combination of + constant-product and constant-sum pool + """ + +BALANCER: PoolType.ValueType # 0 +STABLESWAP: PoolType.ValueType # 1 +global___PoolType = PoolType + +@typing_extensions.final +class PoolParams(google.protobuf.message.Message): + """Configuration parameters for the pool.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SWAP_FEE_FIELD_NUMBER: builtins.int + EXIT_FEE_FIELD_NUMBER: builtins.int + A_FIELD_NUMBER: builtins.int + POOL_TYPE_FIELD_NUMBER: builtins.int + swap_fee: builtins.str + exit_fee: builtins.str + A: builtins.str + """Amplification Parameter (A): Larger value of A make the curve better + resemble a straight line in the center (when pool is near balance). Highly + volatile assets should use a lower value, while assets that are closer + together may be best with a higher value. This is only used if the + pool_type is set to 1 (stableswap) + """ + pool_type: global___PoolType.ValueType + def __init__( + self, + *, + swap_fee: builtins.str = ..., + exit_fee: builtins.str = ..., + A: builtins.str = ..., + pool_type: global___PoolType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["A", b"A", "exit_fee", b"exit_fee", "pool_type", b"pool_type", "swap_fee", b"swap_fee"]) -> None: ... + +global___PoolParams = PoolParams + +@typing_extensions.final +class PoolAsset(google.protobuf.message.Message): + """Which assets the pool contains.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKEN_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + @property + def token(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Coins we are talking about, + the denomination must be unique amongst all PoolAssets for this pool. + """ + weight: builtins.str + """Weight that is not normalized. This weight must be less than 2^50""" + def __init__( + self, + *, + token: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + weight: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token", b"token"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "weight", b"weight"]) -> None: ... + +global___PoolAsset = PoolAsset + +@typing_extensions.final +class Pool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + POOL_PARAMS_FIELD_NUMBER: builtins.int + POOL_ASSETS_FIELD_NUMBER: builtins.int + TOTAL_WEIGHT_FIELD_NUMBER: builtins.int + TOTAL_SHARES_FIELD_NUMBER: builtins.int + id: builtins.int + """The pool id.""" + address: builtins.str + """The pool account address.""" + @property + def pool_params(self) -> global___PoolParams: + """Fees and other pool-specific parameters.""" + @property + def pool_assets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PoolAsset]: + """These are assumed to be sorted by denomiation. + They contain the pool asset and the information about the weight + """ + total_weight: builtins.str + """sum of all non-normalized pool weights""" + @property + def total_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """sum of all LP tokens sent out""" + def __init__( + self, + *, + id: builtins.int = ..., + address: builtins.str = ..., + pool_params: global___PoolParams | None = ..., + pool_assets: collections.abc.Iterable[global___PoolAsset] | None = ..., + total_weight: builtins.str = ..., + total_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool_params", b"pool_params", "total_shares", b"total_shares"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "id", b"id", "pool_assets", b"pool_assets", "pool_params", b"pool_params", "total_shares", b"total_shares", "total_weight", b"total_weight"]) -> None: ... + +global___Pool = Pool diff --git a/nibiru_proto/nibiru/spot/v1/pool_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/pool_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/pool_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/spot/v1/query_pb2.py b/nibiru_proto/nibiru/spot/v1/query_pb2.py new file mode 100644 index 00000000..ea01fe71 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/query_pb2.py @@ -0,0 +1,158 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from nibiru_proto.nibiru.spot.v1 import params_pb2 as nibiru_dot_spot_dot_v1_dot_params__pb2 +from nibiru_proto.nibiru.spot.v1 import pool_pb2 as nibiru_dot_spot_dot_v1_dot_pool__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/spot/v1/query.proto\x12\x0enibiru.spot.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1bnibiru/spot/v1/params.proto\x1a\x19nibiru/spot/v1/pool.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x14\n\x12QueryParamsRequest\"K\n\x13QueryParamsResponse\x12\x34\n\x06params\x18\x01 \x01(\x0b\x32\x16.nibiru.spot.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\x18\n\x16QueryPoolNumberRequest\"2\n\x17QueryPoolNumberResponse\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"+\n\x10QueryPoolRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"=\n\x11QueryPoolResponse\x12(\n\x04pool\x18\x01 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolR\x04pool\"[\n\x11QueryPoolsRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\x89\x01\n\x12QueryPoolsResponse\x12*\n\x05pools\x18\x01 \x03(\x0b\x32\x14.nibiru.spot.v1.PoolR\x05pools\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"1\n\x16QueryPoolParamsRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"V\n\x17QueryPoolParamsResponse\x12;\n\x0bpool_params\x18\x01 \x01(\x0b\x32\x1a.nibiru.spot.v1.PoolParamsR\npoolParams\"\x16\n\x14QueryNumPoolsRequest\"4\n\x15QueryNumPoolsResponse\x12\x1b\n\tnum_pools\x18\x01 \x01(\x04R\x08numPools\"\x1c\n\x1aQueryTotalLiquidityRequest\"\x9c\x01\n\x1bQueryTotalLiquidityResponse\x12}\n\tliquidity\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"liquidity\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tliquidity\"9\n\x1eQueryTotalPoolLiquidityRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"\xa0\x01\n\x1fQueryTotalPoolLiquidityResponse\x12}\n\tliquidity\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"liquidity\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tliquidity\"2\n\x17QueryTotalSharesRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"u\n\x18QueryTotalSharesResponse\x12Y\n\x0ctotal_shares\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1b\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"total_shares\"R\x0btotalShares\"~\n\x15QuerySpotPriceRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\x12$\n\x0etoken_in_denom\x18\x02 \x01(\tR\x0ctokenInDenom\x12&\n\x0ftoken_out_denom\x18\x03 \x01(\tR\rtokenOutDenom\"7\n\x16QuerySpotPriceResponse\x12\x1d\n\nspot_price\x18\x01 \x01(\tR\tspotPrice\"\xaf\x01\n\x1dQuerySwapExactAmountInRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\x12M\n\x08token_in\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x17\xc8\xde\x1f\x00\xf2\xde\x1f\x0fyaml:\"token_in\"R\x07tokenIn\x12&\n\x0ftoken_out_denom\x18\x03 \x01(\tR\rtokenOutDenom\"\xb3\x01\n\x1eQuerySwapExactAmountInResponse\x12P\n\ttoken_out\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x18\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"token_out\"R\x08tokenOut\x12?\n\x03\x66\x65\x65\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x12\xc8\xde\x1f\x00\xf2\xde\x1f\nyaml:\"fee\"R\x03\x66\x65\x65\"\xb1\x01\n\x1eQuerySwapExactAmountOutRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\x12P\n\ttoken_out\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x18\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"token_out\"R\x08tokenOut\x12$\n\x0etoken_in_denom\x18\x03 \x01(\tR\x0ctokenInDenom\"p\n\x1fQuerySwapExactAmountOutResponse\x12M\n\x08token_in\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x17\xc8\xde\x1f\x00\xf2\xde\x1f\x0fyaml:\"token_in\"R\x07tokenIn\"\xb6\x01\n\x1dQueryJoinExactAmountInRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\x12|\n\ttokens_in\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"tokens_in\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x08tokensIn\"\x90\x02\n\x1eQueryJoinExactAmountInResponse\x12p\n\x0fpool_shares_out\x18\x01 \x01(\tBH\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xf2\xde\x1f\x16yaml:\"pool_shares_out\"R\rpoolSharesOut\x12|\n\trem_coins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"rem_coins\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x08remCoins\"9\n\x1eQueryJoinExactAmountOutRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"!\n\x1fQueryJoinExactAmountOutResponse\"\xa7\x01\n\x1dQueryExitExactAmountInRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\x12m\n\x0epool_shares_in\x18\x02 \x01(\tBG\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xf2\xde\x1f\x15yaml:\"pool_shares_in\"R\x0cpoolSharesIn\"\x91\x02\n\x1eQueryExitExactAmountInResponse\x12\x7f\n\ntokens_out\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBE\xc8\xde\x1f\x00\xf2\xde\x1f\x11yaml:\"tokens_out\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\ttokensOut\x12n\n\x04\x66\x65\x65s\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB?\xc8\xde\x1f\x00\xf2\xde\x1f\x0byaml:\"fees\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x04\x66\x65\x65s\"9\n\x1eQueryExitExactAmountOutRequest\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"!\n\x1fQueryExitExactAmountOutResponse2\xa5\x13\n\x05Query\x12n\n\x06Params\x12\".nibiru.spot.v1.QueryParamsRequest\x1a#.nibiru.spot.v1.QueryParamsResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/nibiru/spot/params\x12\x7f\n\nPoolNumber\x12&.nibiru.spot.v1.QueryPoolNumberRequest\x1a\'.nibiru.spot.v1.QueryPoolNumberResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/nibiru/spot/pool_number\x12\x66\n\x04Pool\x12 .nibiru.spot.v1.QueryPoolRequest\x1a!.nibiru.spot.v1.QueryPoolResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/nibiru/spot/pool\x12j\n\x05Pools\x12!.nibiru.spot.v1.QueryPoolsRequest\x1a\".nibiru.spot.v1.QueryPoolsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/nibiru/spot/pools\x12\x8a\x01\n\nPoolParams\x12&.nibiru.spot.v1.QueryPoolParamsRequest\x1a\'.nibiru.spot.v1.QueryPoolParamsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/nibiru/spot/pools/{pool_id}/params\x12w\n\x08NumPools\x12$.nibiru.spot.v1.QueryNumPoolsRequest\x1a%.nibiru.spot.v1.QueryNumPoolsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/nibiru/spot/num_pools\x12\x8f\x01\n\x0eTotalLiquidity\x12*.nibiru.spot.v1.QueryTotalLiquidityRequest\x1a+.nibiru.spot.v1.QueryTotalLiquidityResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/nibiru/spot/total_liquidity\x12\xb0\x01\n\x12TotalPoolLiquidity\x12..nibiru.spot.v1.QueryTotalPoolLiquidityRequest\x1a/.nibiru.spot.v1.QueryTotalPoolLiquidityResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/nibiru/spot/pools/{pool_id}/total_pool_liquidity\x12\x93\x01\n\x0bTotalShares\x12\'.nibiru.spot.v1.QueryTotalSharesRequest\x1a(.nibiru.spot.v1.QueryTotalSharesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/nibiru/spot/pools/{pool_id}/total_shares\x12\x87\x01\n\tSpotPrice\x12%.nibiru.spot.v1.QuerySpotPriceRequest\x1a&.nibiru.spot.v1.QuerySpotPriceResponse\"+\x82\xd3\xe4\x93\x02%\x12#/nibiru/spot/pools/{pool_id}/prices\x12\xb8\x01\n\x19\x45stimateSwapExactAmountIn\x12-.nibiru.spot.v1.QuerySwapExactAmountInRequest\x1a..nibiru.spot.v1.QuerySwapExactAmountInResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/nibiru/spot/{pool_id}/estimate/swap_exact_amount_in\x12\xbc\x01\n\x1a\x45stimateSwapExactAmountOut\x12..nibiru.spot.v1.QuerySwapExactAmountOutRequest\x1a/.nibiru.spot.v1.QuerySwapExactAmountOutResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/nibiru/spot/{pool_id}/estimate/swap_exact_amount_out\x12\xb8\x01\n\x19\x45stimateJoinExactAmountIn\x12-.nibiru.spot.v1.QueryJoinExactAmountInRequest\x1a..nibiru.spot.v1.QueryJoinExactAmountInResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/nibiru/spot/{pool_id}/estimate/join_exact_amount_in\x12\xbc\x01\n\x1a\x45stimateJoinExactAmountOut\x12..nibiru.spot.v1.QueryJoinExactAmountOutRequest\x1a/.nibiru.spot.v1.QueryJoinExactAmountOutResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/nibiru/spot/{pool_id}/estimate/join_exact_amount_out\x12\xb8\x01\n\x19\x45stimateExitExactAmountIn\x12-.nibiru.spot.v1.QueryExitExactAmountInRequest\x1a..nibiru.spot.v1.QueryExitExactAmountInResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/nibiru/spot/{pool_id}/estimate/exit_exact_amount_in\x12\xbc\x01\n\x1a\x45stimateExitExactAmountOut\x12..nibiru.spot.v1.QueryExitExactAmountOutRequest\x1a/.nibiru.spot.v1.QueryExitExactAmountOutResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/nibiru/spot/{pool_id}/estimate/exit_exact_amount_outB,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _QUERYTOTALLIQUIDITYRESPONSE.fields_by_name['liquidity']._options = None + _QUERYTOTALLIQUIDITYRESPONSE.fields_by_name['liquidity']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"liquidity\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYTOTALPOOLLIQUIDITYRESPONSE.fields_by_name['liquidity']._options = None + _QUERYTOTALPOOLLIQUIDITYRESPONSE.fields_by_name['liquidity']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"liquidity\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYTOTALSHARESRESPONSE.fields_by_name['total_shares']._options = None + _QUERYTOTALSHARESRESPONSE.fields_by_name['total_shares']._serialized_options = b'\310\336\037\000\362\336\037\023yaml:\"total_shares\"' + _QUERYSWAPEXACTAMOUNTINREQUEST.fields_by_name['token_in']._options = None + _QUERYSWAPEXACTAMOUNTINREQUEST.fields_by_name['token_in']._serialized_options = b'\310\336\037\000\362\336\037\017yaml:\"token_in\"' + _QUERYSWAPEXACTAMOUNTINRESPONSE.fields_by_name['token_out']._options = None + _QUERYSWAPEXACTAMOUNTINRESPONSE.fields_by_name['token_out']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"token_out\"' + _QUERYSWAPEXACTAMOUNTINRESPONSE.fields_by_name['fee']._options = None + _QUERYSWAPEXACTAMOUNTINRESPONSE.fields_by_name['fee']._serialized_options = b'\310\336\037\000\362\336\037\nyaml:\"fee\"' + _QUERYSWAPEXACTAMOUNTOUTREQUEST.fields_by_name['token_out']._options = None + _QUERYSWAPEXACTAMOUNTOUTREQUEST.fields_by_name['token_out']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"token_out\"' + _QUERYSWAPEXACTAMOUNTOUTRESPONSE.fields_by_name['token_in']._options = None + _QUERYSWAPEXACTAMOUNTOUTRESPONSE.fields_by_name['token_in']._serialized_options = b'\310\336\037\000\362\336\037\017yaml:\"token_in\"' + _QUERYJOINEXACTAMOUNTINREQUEST.fields_by_name['tokens_in']._options = None + _QUERYJOINEXACTAMOUNTINREQUEST.fields_by_name['tokens_in']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"tokens_in\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYJOINEXACTAMOUNTINRESPONSE.fields_by_name['pool_shares_out']._options = None + _QUERYJOINEXACTAMOUNTINRESPONSE.fields_by_name['pool_shares_out']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\362\336\037\026yaml:\"pool_shares_out\"' + _QUERYJOINEXACTAMOUNTINRESPONSE.fields_by_name['rem_coins']._options = None + _QUERYJOINEXACTAMOUNTINRESPONSE.fields_by_name['rem_coins']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"rem_coins\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYEXITEXACTAMOUNTINREQUEST.fields_by_name['pool_shares_in']._options = None + _QUERYEXITEXACTAMOUNTINREQUEST.fields_by_name['pool_shares_in']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int\362\336\037\025yaml:\"pool_shares_in\"' + _QUERYEXITEXACTAMOUNTINRESPONSE.fields_by_name['tokens_out']._options = None + _QUERYEXITEXACTAMOUNTINRESPONSE.fields_by_name['tokens_out']._serialized_options = b'\310\336\037\000\362\336\037\021yaml:\"tokens_out\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYEXITEXACTAMOUNTINRESPONSE.fields_by_name['fees']._options = None + _QUERYEXITEXACTAMOUNTINRESPONSE.fields_by_name['fees']._serialized_options = b'\310\336\037\000\362\336\037\013yaml:\"fees\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\025\022\023/nibiru/spot/params' + _QUERY.methods_by_name['PoolNumber']._options = None + _QUERY.methods_by_name['PoolNumber']._serialized_options = b'\202\323\344\223\002\032\022\030/nibiru/spot/pool_number' + _QUERY.methods_by_name['Pool']._options = None + _QUERY.methods_by_name['Pool']._serialized_options = b'\202\323\344\223\002\023\022\021/nibiru/spot/pool' + _QUERY.methods_by_name['Pools']._options = None + _QUERY.methods_by_name['Pools']._serialized_options = b'\202\323\344\223\002\024\022\022/nibiru/spot/pools' + _QUERY.methods_by_name['PoolParams']._options = None + _QUERY.methods_by_name['PoolParams']._serialized_options = b'\202\323\344\223\002%\022#/nibiru/spot/pools/{pool_id}/params' + _QUERY.methods_by_name['NumPools']._options = None + _QUERY.methods_by_name['NumPools']._serialized_options = b'\202\323\344\223\002\030\022\026/nibiru/spot/num_pools' + _QUERY.methods_by_name['TotalLiquidity']._options = None + _QUERY.methods_by_name['TotalLiquidity']._serialized_options = b'\202\323\344\223\002\036\022\034/nibiru/spot/total_liquidity' + _QUERY.methods_by_name['TotalPoolLiquidity']._options = None + _QUERY.methods_by_name['TotalPoolLiquidity']._serialized_options = b'\202\323\344\223\0023\0221/nibiru/spot/pools/{pool_id}/total_pool_liquidity' + _QUERY.methods_by_name['TotalShares']._options = None + _QUERY.methods_by_name['TotalShares']._serialized_options = b'\202\323\344\223\002+\022)/nibiru/spot/pools/{pool_id}/total_shares' + _QUERY.methods_by_name['SpotPrice']._options = None + _QUERY.methods_by_name['SpotPrice']._serialized_options = b'\202\323\344\223\002%\022#/nibiru/spot/pools/{pool_id}/prices' + _QUERY.methods_by_name['EstimateSwapExactAmountIn']._options = None + _QUERY.methods_by_name['EstimateSwapExactAmountIn']._serialized_options = b'\202\323\344\223\0026\0224/nibiru/spot/{pool_id}/estimate/swap_exact_amount_in' + _QUERY.methods_by_name['EstimateSwapExactAmountOut']._options = None + _QUERY.methods_by_name['EstimateSwapExactAmountOut']._serialized_options = b'\202\323\344\223\0027\0225/nibiru/spot/{pool_id}/estimate/swap_exact_amount_out' + _QUERY.methods_by_name['EstimateJoinExactAmountIn']._options = None + _QUERY.methods_by_name['EstimateJoinExactAmountIn']._serialized_options = b'\202\323\344\223\0026\0224/nibiru/spot/{pool_id}/estimate/join_exact_amount_in' + _QUERY.methods_by_name['EstimateJoinExactAmountOut']._options = None + _QUERY.methods_by_name['EstimateJoinExactAmountOut']._serialized_options = b'\202\323\344\223\0027\0225/nibiru/spot/{pool_id}/estimate/join_exact_amount_out' + _QUERY.methods_by_name['EstimateExitExactAmountIn']._options = None + _QUERY.methods_by_name['EstimateExitExactAmountIn']._serialized_options = b'\202\323\344\223\0026\0224/nibiru/spot/{pool_id}/estimate/exit_exact_amount_in' + _QUERY.methods_by_name['EstimateExitExactAmountOut']._options = None + _QUERY.methods_by_name['EstimateExitExactAmountOut']._serialized_options = b'\202\323\344\223\0027\0225/nibiru/spot/{pool_id}/estimate/exit_exact_amount_out' + _QUERYPARAMSREQUEST._serialized_start=230 + _QUERYPARAMSREQUEST._serialized_end=250 + _QUERYPARAMSRESPONSE._serialized_start=252 + _QUERYPARAMSRESPONSE._serialized_end=327 + _QUERYPOOLNUMBERREQUEST._serialized_start=329 + _QUERYPOOLNUMBERREQUEST._serialized_end=353 + _QUERYPOOLNUMBERRESPONSE._serialized_start=355 + _QUERYPOOLNUMBERRESPONSE._serialized_end=405 + _QUERYPOOLREQUEST._serialized_start=407 + _QUERYPOOLREQUEST._serialized_end=450 + _QUERYPOOLRESPONSE._serialized_start=452 + _QUERYPOOLRESPONSE._serialized_end=513 + _QUERYPOOLSREQUEST._serialized_start=515 + _QUERYPOOLSREQUEST._serialized_end=606 + _QUERYPOOLSRESPONSE._serialized_start=609 + _QUERYPOOLSRESPONSE._serialized_end=746 + _QUERYPOOLPARAMSREQUEST._serialized_start=748 + _QUERYPOOLPARAMSREQUEST._serialized_end=797 + _QUERYPOOLPARAMSRESPONSE._serialized_start=799 + _QUERYPOOLPARAMSRESPONSE._serialized_end=885 + _QUERYNUMPOOLSREQUEST._serialized_start=887 + _QUERYNUMPOOLSREQUEST._serialized_end=909 + _QUERYNUMPOOLSRESPONSE._serialized_start=911 + _QUERYNUMPOOLSRESPONSE._serialized_end=963 + _QUERYTOTALLIQUIDITYREQUEST._serialized_start=965 + _QUERYTOTALLIQUIDITYREQUEST._serialized_end=993 + _QUERYTOTALLIQUIDITYRESPONSE._serialized_start=996 + _QUERYTOTALLIQUIDITYRESPONSE._serialized_end=1152 + _QUERYTOTALPOOLLIQUIDITYREQUEST._serialized_start=1154 + _QUERYTOTALPOOLLIQUIDITYREQUEST._serialized_end=1211 + _QUERYTOTALPOOLLIQUIDITYRESPONSE._serialized_start=1214 + _QUERYTOTALPOOLLIQUIDITYRESPONSE._serialized_end=1374 + _QUERYTOTALSHARESREQUEST._serialized_start=1376 + _QUERYTOTALSHARESREQUEST._serialized_end=1426 + _QUERYTOTALSHARESRESPONSE._serialized_start=1428 + _QUERYTOTALSHARESRESPONSE._serialized_end=1545 + _QUERYSPOTPRICEREQUEST._serialized_start=1547 + _QUERYSPOTPRICEREQUEST._serialized_end=1673 + _QUERYSPOTPRICERESPONSE._serialized_start=1675 + _QUERYSPOTPRICERESPONSE._serialized_end=1730 + _QUERYSWAPEXACTAMOUNTINREQUEST._serialized_start=1733 + _QUERYSWAPEXACTAMOUNTINREQUEST._serialized_end=1908 + _QUERYSWAPEXACTAMOUNTINRESPONSE._serialized_start=1911 + _QUERYSWAPEXACTAMOUNTINRESPONSE._serialized_end=2090 + _QUERYSWAPEXACTAMOUNTOUTREQUEST._serialized_start=2093 + _QUERYSWAPEXACTAMOUNTOUTREQUEST._serialized_end=2270 + _QUERYSWAPEXACTAMOUNTOUTRESPONSE._serialized_start=2272 + _QUERYSWAPEXACTAMOUNTOUTRESPONSE._serialized_end=2384 + _QUERYJOINEXACTAMOUNTINREQUEST._serialized_start=2387 + _QUERYJOINEXACTAMOUNTINREQUEST._serialized_end=2569 + _QUERYJOINEXACTAMOUNTINRESPONSE._serialized_start=2572 + _QUERYJOINEXACTAMOUNTINRESPONSE._serialized_end=2844 + _QUERYJOINEXACTAMOUNTOUTREQUEST._serialized_start=2846 + _QUERYJOINEXACTAMOUNTOUTREQUEST._serialized_end=2903 + _QUERYJOINEXACTAMOUNTOUTRESPONSE._serialized_start=2905 + _QUERYJOINEXACTAMOUNTOUTRESPONSE._serialized_end=2938 + _QUERYEXITEXACTAMOUNTINREQUEST._serialized_start=2941 + _QUERYEXITEXACTAMOUNTINREQUEST._serialized_end=3108 + _QUERYEXITEXACTAMOUNTINRESPONSE._serialized_start=3111 + _QUERYEXITEXACTAMOUNTINRESPONSE._serialized_end=3384 + _QUERYEXITEXACTAMOUNTOUTREQUEST._serialized_start=3386 + _QUERYEXITEXACTAMOUNTOUTREQUEST._serialized_end=3443 + _QUERYEXITEXACTAMOUNTOUTRESPONSE._serialized_start=3445 + _QUERYEXITEXACTAMOUNTOUTRESPONSE._serialized_end=3478 + _QUERY._serialized_start=3481 + _QUERY._serialized_end=5950 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/query_pb2.pyi b/nibiru_proto/nibiru/spot/v1/query_pb2.pyi new file mode 100644 index 00000000..059c03e1 --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/query_pb2.pyi @@ -0,0 +1,570 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.spot.v1.params_pb2 +import nibiru.spot.v1.pool_pb2 +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 QueryParamsRequest(google.protobuf.message.Message): + """QueryParamsRequest is request type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.spot.v1.params_pb2.Params: + """params holds all the parameters of this module.""" + def __init__( + self, + *, + params: nibiru.spot.v1.params_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryPoolNumberRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryPoolNumberRequest = QueryPoolNumberRequest + +@typing_extensions.final +class QueryPoolNumberResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryPoolNumberResponse = QueryPoolNumberResponse + +@typing_extensions.final +class QueryPoolRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryPoolRequest = QueryPoolRequest + +@typing_extensions.final +class QueryPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_FIELD_NUMBER: builtins.int + @property + def pool(self) -> nibiru.spot.v1.pool_pb2.Pool: ... + def __init__( + self, + *, + pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool", b"pool"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool", b"pool"]) -> None: ... + +global___QueryPoolResponse = QueryPoolResponse + +@typing_extensions.final +class QueryPoolsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: + """pagination defines an optional pagination for the request.""" + def __init__( + self, + *, + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> None: ... + +global___QueryPoolsRequest = QueryPoolsRequest + +@typing_extensions.final +class QueryPoolsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOLS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.spot.v1.pool_pb2.Pool]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: + """pagination defines the pagination in the response.""" + def __init__( + self, + *, + pools: collections.abc.Iterable[nibiru.spot.v1.pool_pb2.Pool] | None = ..., + pagination: cosmos.base.query.v1beta1.pagination_pb2.PageResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "pools", b"pools"]) -> None: ... + +global___QueryPoolsResponse = QueryPoolsResponse + +@typing_extensions.final +class QueryPoolParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryPoolParamsRequest = QueryPoolParamsRequest + +@typing_extensions.final +class QueryPoolParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_PARAMS_FIELD_NUMBER: builtins.int + @property + def pool_params(self) -> nibiru.spot.v1.pool_pb2.PoolParams: ... + def __init__( + self, + *, + pool_params: nibiru.spot.v1.pool_pb2.PoolParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool_params", b"pool_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_params", b"pool_params"]) -> None: ... + +global___QueryPoolParamsResponse = QueryPoolParamsResponse + +@typing_extensions.final +class QueryNumPoolsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryNumPoolsRequest = QueryNumPoolsRequest + +@typing_extensions.final +class QueryNumPoolsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NUM_POOLS_FIELD_NUMBER: builtins.int + num_pools: builtins.int + def __init__( + self, + *, + num_pools: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["num_pools", b"num_pools"]) -> None: ... + +global___QueryNumPoolsResponse = QueryNumPoolsResponse + +@typing_extensions.final +class QueryTotalLiquidityRequest(google.protobuf.message.Message): + """-------------------------------------------- + Query total liquidity the protocol + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryTotalLiquidityRequest = QueryTotalLiquidityRequest + +@typing_extensions.final +class QueryTotalLiquidityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LIQUIDITY_FIELD_NUMBER: builtins.int + @property + def liquidity(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + liquidity: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidity", b"liquidity"]) -> None: ... + +global___QueryTotalLiquidityResponse = QueryTotalLiquidityResponse + +@typing_extensions.final +class QueryTotalPoolLiquidityRequest(google.protobuf.message.Message): + """-------------------------------------------- + Query total liquidity for a pool + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryTotalPoolLiquidityRequest = QueryTotalPoolLiquidityRequest + +@typing_extensions.final +class QueryTotalPoolLiquidityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LIQUIDITY_FIELD_NUMBER: builtins.int + @property + def liquidity(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + liquidity: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidity", b"liquidity"]) -> None: ... + +global___QueryTotalPoolLiquidityResponse = QueryTotalPoolLiquidityResponse + +@typing_extensions.final +class QueryTotalSharesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryTotalSharesRequest = QueryTotalSharesRequest + +@typing_extensions.final +class QueryTotalSharesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_SHARES_FIELD_NUMBER: builtins.int + @property + def total_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """sum of all LP tokens sent out""" + def __init__( + self, + *, + total_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["total_shares", b"total_shares"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["total_shares", b"total_shares"]) -> None: ... + +global___QueryTotalSharesResponse = QueryTotalSharesResponse + +@typing_extensions.final +class QuerySpotPriceRequest(google.protobuf.message.Message): + """Returns the amount of tokenInDenom to produce 1 tokenOutDenom + For example, if the price of NIBI = 9.123 NUSD, then setting + tokenInDenom=NUSD and tokenOutDenom=NIBI would give "9.123". + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + TOKEN_IN_DENOM_FIELD_NUMBER: builtins.int + TOKEN_OUT_DENOM_FIELD_NUMBER: builtins.int + pool_id: builtins.int + token_in_denom: builtins.str + """the denomination of the token you are giving into the pool""" + token_out_denom: builtins.str + """the denomination of the token you are taking out of the pool""" + def __init__( + self, + *, + pool_id: builtins.int = ..., + token_in_denom: builtins.str = ..., + token_out_denom: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "token_in_denom", b"token_in_denom", "token_out_denom", b"token_out_denom"]) -> None: ... + +global___QuerySpotPriceRequest = QuerySpotPriceRequest + +@typing_extensions.final +class QuerySpotPriceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPOT_PRICE_FIELD_NUMBER: builtins.int + spot_price: builtins.str + def __init__( + self, + *, + spot_price: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["spot_price", b"spot_price"]) -> None: ... + +global___QuerySpotPriceResponse = QuerySpotPriceResponse + +@typing_extensions.final +class QuerySwapExactAmountInRequest(google.protobuf.message.Message): + """Given an exact amount of tokens in and a target tokenOutDenom, calculates + the expected amount of tokens out received from a swap. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + TOKEN_IN_FIELD_NUMBER: builtins.int + TOKEN_OUT_DENOM_FIELD_NUMBER: builtins.int + pool_id: builtins.int + @property + def token_in(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + token_out_denom: builtins.str + def __init__( + self, + *, + pool_id: builtins.int = ..., + token_in: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + token_out_denom: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token_in", b"token_in"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "token_in", b"token_in", "token_out_denom", b"token_out_denom"]) -> None: ... + +global___QuerySwapExactAmountInRequest = QuerySwapExactAmountInRequest + +@typing_extensions.final +class QuerySwapExactAmountInResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKEN_OUT_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + @property + def token_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + token_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + fee: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["fee", b"fee", "token_out", b"token_out"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["fee", b"fee", "token_out", b"token_out"]) -> None: ... + +global___QuerySwapExactAmountInResponse = QuerySwapExactAmountInResponse + +@typing_extensions.final +class QuerySwapExactAmountOutRequest(google.protobuf.message.Message): + """Given an exact amount of tokens out and a target tokenInDenom, calculates + the expected amount of tokens in required to do the swap. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + TOKEN_OUT_FIELD_NUMBER: builtins.int + TOKEN_IN_DENOM_FIELD_NUMBER: builtins.int + pool_id: builtins.int + @property + def token_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + token_in_denom: builtins.str + def __init__( + self, + *, + pool_id: builtins.int = ..., + token_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + token_in_denom: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token_out", b"token_out"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "token_in_denom", b"token_in_denom", "token_out", b"token_out"]) -> None: ... + +global___QuerySwapExactAmountOutRequest = QuerySwapExactAmountOutRequest + +@typing_extensions.final +class QuerySwapExactAmountOutResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKEN_IN_FIELD_NUMBER: builtins.int + @property + def token_in(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + token_in: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token_in", b"token_in"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["token_in", b"token_in"]) -> None: ... + +global___QuerySwapExactAmountOutResponse = QuerySwapExactAmountOutResponse + +@typing_extensions.final +class QueryJoinExactAmountInRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + TOKENS_IN_FIELD_NUMBER: builtins.int + pool_id: builtins.int + @property + def tokens_in(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + pool_id: builtins.int = ..., + tokens_in: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "tokens_in", b"tokens_in"]) -> None: ... + +global___QueryJoinExactAmountInRequest = QueryJoinExactAmountInRequest + +@typing_extensions.final +class QueryJoinExactAmountInResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_SHARES_OUT_FIELD_NUMBER: builtins.int + REM_COINS_FIELD_NUMBER: builtins.int + pool_shares_out: builtins.str + """amount of pool shares returned to user after join""" + @property + def rem_coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """coins remaining after pool join""" + def __init__( + self, + *, + pool_shares_out: builtins.str = ..., + rem_coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_shares_out", b"pool_shares_out", "rem_coins", b"rem_coins"]) -> None: ... + +global___QueryJoinExactAmountInResponse = QueryJoinExactAmountInResponse + +@typing_extensions.final +class QueryJoinExactAmountOutRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryJoinExactAmountOutRequest = QueryJoinExactAmountOutRequest + +@typing_extensions.final +class QueryJoinExactAmountOutResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryJoinExactAmountOutResponse = QueryJoinExactAmountOutResponse + +@typing_extensions.final +class QueryExitExactAmountInRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + POOL_SHARES_IN_FIELD_NUMBER: builtins.int + pool_id: builtins.int + pool_shares_in: builtins.str + """amount of pool shares to return to pool""" + def __init__( + self, + *, + pool_id: builtins.int = ..., + pool_shares_in: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "pool_shares_in", b"pool_shares_in"]) -> None: ... + +global___QueryExitExactAmountInRequest = QueryExitExactAmountInRequest + +@typing_extensions.final +class QueryExitExactAmountInResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKENS_OUT_FIELD_NUMBER: builtins.int + FEES_FIELD_NUMBER: builtins.int + @property + def tokens_out(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """coins obtained after exiting""" + @property + def fees(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + tokens_out: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + fees: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fees", b"fees", "tokens_out", b"tokens_out"]) -> None: ... + +global___QueryExitExactAmountInResponse = QueryExitExactAmountInResponse + +@typing_extensions.final +class QueryExitExactAmountOutRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___QueryExitExactAmountOutRequest = QueryExitExactAmountOutRequest + +@typing_extensions.final +class QueryExitExactAmountOutResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryExitExactAmountOutResponse = QueryExitExactAmountOutResponse diff --git a/nibiru_proto/nibiru/spot/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/query_pb2_grpc.py new file mode 100644 index 00000000..4a42ca8d --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/query_pb2_grpc.py @@ -0,0 +1,586 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.spot.v1 import query_pb2 as nibiru_dot_spot_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/nibiru.spot.v1.Query/Params', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.PoolNumber = channel.unary_unary( + '/nibiru.spot.v1.Query/PoolNumber', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberResponse.FromString, + ) + self.Pool = channel.unary_unary( + '/nibiru.spot.v1.Query/Pool', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolResponse.FromString, + ) + self.Pools = channel.unary_unary( + '/nibiru.spot.v1.Query/Pools', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsResponse.FromString, + ) + self.PoolParams = channel.unary_unary( + '/nibiru.spot.v1.Query/PoolParams', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsResponse.FromString, + ) + self.NumPools = channel.unary_unary( + '/nibiru.spot.v1.Query/NumPools', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsResponse.FromString, + ) + self.TotalLiquidity = channel.unary_unary( + '/nibiru.spot.v1.Query/TotalLiquidity', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityResponse.FromString, + ) + self.TotalPoolLiquidity = channel.unary_unary( + '/nibiru.spot.v1.Query/TotalPoolLiquidity', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityResponse.FromString, + ) + self.TotalShares = channel.unary_unary( + '/nibiru.spot.v1.Query/TotalShares', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesResponse.FromString, + ) + self.SpotPrice = channel.unary_unary( + '/nibiru.spot.v1.Query/SpotPrice', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceResponse.FromString, + ) + self.EstimateSwapExactAmountIn = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateSwapExactAmountIn', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInResponse.FromString, + ) + self.EstimateSwapExactAmountOut = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateSwapExactAmountOut', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutResponse.FromString, + ) + self.EstimateJoinExactAmountIn = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateJoinExactAmountIn', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInResponse.FromString, + ) + self.EstimateJoinExactAmountOut = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateJoinExactAmountOut', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutResponse.FromString, + ) + self.EstimateExitExactAmountIn = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateExitExactAmountIn', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInResponse.FromString, + ) + self.EstimateExitExactAmountOut = channel.unary_unary( + '/nibiru.spot.v1.Query/EstimateExitExactAmountOut', + request_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutRequest.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Params(self, request, context): + """Parameters of the spot module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PoolNumber(self, request, context): + """Next available pool id number. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Pool(self, request, context): + """Fetch a pool by id. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Pools(self, request, context): + """Returns all pools. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PoolParams(self, request, context): + """Parameters of a single pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def NumPools(self, request, context): + """Number of pools. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TotalLiquidity(self, request, context): + """Total liquidity across all pools. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TotalPoolLiquidity(self, request, context): + """Total liquidity in a single pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TotalShares(self, request, context): + """Total shares in a single pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SpotPrice(self, request, context): + """Instantaneous price of an asset in a pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateSwapExactAmountIn(self, request, context): + """Estimates the amount of assets returned given an exact amount of tokens to + swap. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateSwapExactAmountOut(self, request, context): + """Estimates the amount of tokens required to return the exact amount of + assets requested. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateJoinExactAmountIn(self, request, context): + """Estimates the amount of pool shares returned given an amount of tokens to + join. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateJoinExactAmountOut(self, request, context): + """Estimates the amount of tokens required to obtain an exact amount of pool + shares. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateExitExactAmountIn(self, request, context): + """Estimates the amount of tokens returned to the user given an exact amount + of pool shares. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EstimateExitExactAmountOut(self, request, context): + """Estimates the amount of pool shares required to extract an exact amount of + tokens from the pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'PoolNumber': grpc.unary_unary_rpc_method_handler( + servicer.PoolNumber, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberResponse.SerializeToString, + ), + 'Pool': grpc.unary_unary_rpc_method_handler( + servicer.Pool, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolResponse.SerializeToString, + ), + 'Pools': grpc.unary_unary_rpc_method_handler( + servicer.Pools, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsResponse.SerializeToString, + ), + 'PoolParams': grpc.unary_unary_rpc_method_handler( + servicer.PoolParams, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsResponse.SerializeToString, + ), + 'NumPools': grpc.unary_unary_rpc_method_handler( + servicer.NumPools, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsResponse.SerializeToString, + ), + 'TotalLiquidity': grpc.unary_unary_rpc_method_handler( + servicer.TotalLiquidity, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityResponse.SerializeToString, + ), + 'TotalPoolLiquidity': grpc.unary_unary_rpc_method_handler( + servicer.TotalPoolLiquidity, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityResponse.SerializeToString, + ), + 'TotalShares': grpc.unary_unary_rpc_method_handler( + servicer.TotalShares, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesResponse.SerializeToString, + ), + 'SpotPrice': grpc.unary_unary_rpc_method_handler( + servicer.SpotPrice, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceResponse.SerializeToString, + ), + 'EstimateSwapExactAmountIn': grpc.unary_unary_rpc_method_handler( + servicer.EstimateSwapExactAmountIn, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInResponse.SerializeToString, + ), + 'EstimateSwapExactAmountOut': grpc.unary_unary_rpc_method_handler( + servicer.EstimateSwapExactAmountOut, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutResponse.SerializeToString, + ), + 'EstimateJoinExactAmountIn': grpc.unary_unary_rpc_method_handler( + servicer.EstimateJoinExactAmountIn, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInResponse.SerializeToString, + ), + 'EstimateJoinExactAmountOut': grpc.unary_unary_rpc_method_handler( + servicer.EstimateJoinExactAmountOut, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutResponse.SerializeToString, + ), + 'EstimateExitExactAmountIn': grpc.unary_unary_rpc_method_handler( + servicer.EstimateExitExactAmountIn, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInResponse.SerializeToString, + ), + 'EstimateExitExactAmountOut': grpc.unary_unary_rpc_method_handler( + servicer.EstimateExitExactAmountOut, + request_deserializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutRequest.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.spot.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/Params', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PoolNumber(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/PoolNumber', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolNumberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Pool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/Pool', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Pools(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/Pools', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PoolParams(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/PoolParams', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryPoolParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def NumPools(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/NumPools', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryNumPoolsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TotalLiquidity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/TotalLiquidity', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalLiquidityResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TotalPoolLiquidity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/TotalPoolLiquidity', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalPoolLiquidityResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TotalShares(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/TotalShares', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryTotalSharesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SpotPrice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/SpotPrice', + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySpotPriceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateSwapExactAmountIn(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateSwapExactAmountIn', + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountInResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateSwapExactAmountOut(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateSwapExactAmountOut', + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QuerySwapExactAmountOutResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateJoinExactAmountIn(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateJoinExactAmountIn', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountInResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateJoinExactAmountOut(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateJoinExactAmountOut', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryJoinExactAmountOutResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateExitExactAmountIn(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateExitExactAmountIn', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountInResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EstimateExitExactAmountOut(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Query/EstimateExitExactAmountOut', + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutRequest.SerializeToString, + nibiru_dot_spot_dot_v1_dot_query__pb2.QueryExitExactAmountOutResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/spot/v1/tx_pb2.py b/nibiru_proto/nibiru/spot/v1/tx_pb2.py new file mode 100644 index 00000000..a85fc79a --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/tx_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/spot/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from nibiru_proto.nibiru.spot.v1 import pool_pb2 as nibiru_dot_spot_dot_v1_dot_pool__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17nibiru/spot/v1/tx.proto\x12\x0enibiru.spot.v1\x1a\x19nibiru/spot/v1/pool.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1cgoogle/api/annotations.proto\"\xc0\x01\n\rMsgCreatePool\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12S\n\x0bpool_params\x18\x02 \x01(\x0b\x32\x1a.nibiru.spot.v1.PoolParamsB\x16\xf2\xde\x1f\x12yaml:\"pool_params\"R\npoolParams\x12@\n\x0bpool_assets\x18\x03 \x03(\x0b\x32\x19.nibiru.spot.v1.PoolAssetB\x04\xc8\xde\x1f\x00R\npoolAssets\"0\n\x15MsgCreatePoolResponse\x12\x17\n\x07pool_id\x18\x01 \x01(\x04R\x06poolId\"\xf5\x01\n\x0bMsgJoinPool\x12)\n\x06sender\x18\x01 \x01(\tB\x11\xf2\xde\x1f\ryaml:\"sender\"R\x06sender\x12+\n\x07pool_id\x18\x02 \x01(\x04\x42\x12\xf2\xde\x1f\x0eyaml:\"pool_id\"R\x06poolId\x12P\n\ttokens_in\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x18\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"tokens_in\"R\x08tokensIn\x12<\n\ruse_all_coins\x18\x04 \x01(\x08\x42\x18\xf2\xde\x1f\x14yaml:\"use_all_coins\"R\x0buseAllCoins\"\x8b\x02\n\x13MsgJoinPoolResponse\x12(\n\x04pool\x18\x01 \x01(\x0b\x32\x14.nibiru.spot.v1.PoolR\x04pool\x12l\n\x13num_pool_shares_out\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\"\xc8\xde\x1f\x00\xf2\xde\x1f\x1ayaml:\"num_pool_shares_out\"R\x10numPoolSharesOut\x12\\\n\x0fremaining_coins\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x18\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"tokens_in\"R\x0eremainingCoins\"\xbd\x01\n\x0bMsgExitPool\x12)\n\x06sender\x18\x01 \x01(\tB\x11\xf2\xde\x1f\ryaml:\"sender\"R\x06sender\x12+\n\x07pool_id\x18\x02 \x01(\x04\x42\x12\xf2\xde\x1f\x0eyaml:\"pool_id\"R\x06poolId\x12V\n\x0bpool_shares\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x1a\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"pool_shares\"R\npoolShares\"j\n\x13MsgExitPoolResponse\x12S\n\ntokens_out\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x19\xc8\xde\x1f\x00\xf2\xde\x1f\x11yaml:\"tokens_out\"R\ttokensOut\"\xfa\x01\n\rMsgSwapAssets\x12)\n\x06sender\x18\x01 \x01(\tB\x11\xf2\xde\x1f\ryaml:\"sender\"R\x06sender\x12+\n\x07pool_id\x18\x02 \x01(\x04\x42\x12\xf2\xde\x1f\x0eyaml:\"pool_id\"R\x06poolId\x12M\n\x08token_in\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x17\xc8\xde\x1f\x00\xf2\xde\x1f\x0fyaml:\"token_in\"R\x07tokenIn\x12\x42\n\x0ftoken_out_denom\x18\x04 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"token_out_denom\"R\rtokenOutDenom\"i\n\x15MsgSwapAssetsResponse\x12P\n\ttoken_out\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x18\xc8\xde\x1f\x00\xf2\xde\x1f\x10yaml:\"token_out\"R\x08tokenOut2\xd3\x03\n\x03Msg\x12m\n\nCreatePool\x12\x1d.nibiru.spot.v1.MsgCreatePool\x1a%.nibiru.spot.v1.MsgCreatePoolResponse\"\x19\x82\xd3\xe4\x93\x02\x13\"\x11/nibiru/spot/pool\x12q\n\x08JoinPool\x12\x1b.nibiru.spot.v1.MsgJoinPool\x1a#.nibiru.spot.v1.MsgJoinPoolResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x1b/nibiru/spot/{pool_id}/join\x12q\n\x08\x45xitPool\x12\x1b.nibiru.spot.v1.MsgExitPool\x1a#.nibiru.spot.v1.MsgExitPoolResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x1b/nibiru/spot/{pool_id}/exit\x12w\n\nSwapAssets\x12\x1d.nibiru.spot.v1.MsgSwapAssets\x1a%.nibiru.spot.v1.MsgSwapAssetsResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x1b/nibiru/spot/{pool_id}/swapB,Z*github.com/NibiruChain/nibiru/x/spot/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.spot.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/spot/types' + _MSGCREATEPOOL.fields_by_name['pool_params']._options = None + _MSGCREATEPOOL.fields_by_name['pool_params']._serialized_options = b'\362\336\037\022yaml:\"pool_params\"' + _MSGCREATEPOOL.fields_by_name['pool_assets']._options = None + _MSGCREATEPOOL.fields_by_name['pool_assets']._serialized_options = b'\310\336\037\000' + _MSGJOINPOOL.fields_by_name['sender']._options = None + _MSGJOINPOOL.fields_by_name['sender']._serialized_options = b'\362\336\037\ryaml:\"sender\"' + _MSGJOINPOOL.fields_by_name['pool_id']._options = None + _MSGJOINPOOL.fields_by_name['pool_id']._serialized_options = b'\362\336\037\016yaml:\"pool_id\"' + _MSGJOINPOOL.fields_by_name['tokens_in']._options = None + _MSGJOINPOOL.fields_by_name['tokens_in']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"tokens_in\"' + _MSGJOINPOOL.fields_by_name['use_all_coins']._options = None + _MSGJOINPOOL.fields_by_name['use_all_coins']._serialized_options = b'\362\336\037\024yaml:\"use_all_coins\"' + _MSGJOINPOOLRESPONSE.fields_by_name['num_pool_shares_out']._options = None + _MSGJOINPOOLRESPONSE.fields_by_name['num_pool_shares_out']._serialized_options = b'\310\336\037\000\362\336\037\032yaml:\"num_pool_shares_out\"' + _MSGJOINPOOLRESPONSE.fields_by_name['remaining_coins']._options = None + _MSGJOINPOOLRESPONSE.fields_by_name['remaining_coins']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"tokens_in\"' + _MSGEXITPOOL.fields_by_name['sender']._options = None + _MSGEXITPOOL.fields_by_name['sender']._serialized_options = b'\362\336\037\ryaml:\"sender\"' + _MSGEXITPOOL.fields_by_name['pool_id']._options = None + _MSGEXITPOOL.fields_by_name['pool_id']._serialized_options = b'\362\336\037\016yaml:\"pool_id\"' + _MSGEXITPOOL.fields_by_name['pool_shares']._options = None + _MSGEXITPOOL.fields_by_name['pool_shares']._serialized_options = b'\310\336\037\000\362\336\037\022yaml:\"pool_shares\"' + _MSGEXITPOOLRESPONSE.fields_by_name['tokens_out']._options = None + _MSGEXITPOOLRESPONSE.fields_by_name['tokens_out']._serialized_options = b'\310\336\037\000\362\336\037\021yaml:\"tokens_out\"' + _MSGSWAPASSETS.fields_by_name['sender']._options = None + _MSGSWAPASSETS.fields_by_name['sender']._serialized_options = b'\362\336\037\ryaml:\"sender\"' + _MSGSWAPASSETS.fields_by_name['pool_id']._options = None + _MSGSWAPASSETS.fields_by_name['pool_id']._serialized_options = b'\362\336\037\016yaml:\"pool_id\"' + _MSGSWAPASSETS.fields_by_name['token_in']._options = None + _MSGSWAPASSETS.fields_by_name['token_in']._serialized_options = b'\310\336\037\000\362\336\037\017yaml:\"token_in\"' + _MSGSWAPASSETS.fields_by_name['token_out_denom']._options = None + _MSGSWAPASSETS.fields_by_name['token_out_denom']._serialized_options = b'\362\336\037\026yaml:\"token_out_denom\"' + _MSGSWAPASSETSRESPONSE.fields_by_name['token_out']._options = None + _MSGSWAPASSETSRESPONSE.fields_by_name['token_out']._serialized_options = b'\310\336\037\000\362\336\037\020yaml:\"token_out\"' + _MSG.methods_by_name['CreatePool']._options = None + _MSG.methods_by_name['CreatePool']._serialized_options = b'\202\323\344\223\002\023\"\021/nibiru/spot/pool' + _MSG.methods_by_name['JoinPool']._options = None + _MSG.methods_by_name['JoinPool']._serialized_options = b'\202\323\344\223\002\035\"\033/nibiru/spot/{pool_id}/join' + _MSG.methods_by_name['ExitPool']._options = None + _MSG.methods_by_name['ExitPool']._serialized_options = b'\202\323\344\223\002\035\"\033/nibiru/spot/{pool_id}/exit' + _MSG.methods_by_name['SwapAssets']._options = None + _MSG.methods_by_name['SwapAssets']._serialized_options = b'\202\323\344\223\002\035\"\033/nibiru/spot/{pool_id}/swap' + _MSGCREATEPOOL._serialized_start=155 + _MSGCREATEPOOL._serialized_end=347 + _MSGCREATEPOOLRESPONSE._serialized_start=349 + _MSGCREATEPOOLRESPONSE._serialized_end=397 + _MSGJOINPOOL._serialized_start=400 + _MSGJOINPOOL._serialized_end=645 + _MSGJOINPOOLRESPONSE._serialized_start=648 + _MSGJOINPOOLRESPONSE._serialized_end=915 + _MSGEXITPOOL._serialized_start=918 + _MSGEXITPOOL._serialized_end=1107 + _MSGEXITPOOLRESPONSE._serialized_start=1109 + _MSGEXITPOOLRESPONSE._serialized_end=1215 + _MSGSWAPASSETS._serialized_start=1218 + _MSGSWAPASSETS._serialized_end=1468 + _MSGSWAPASSETSRESPONSE._serialized_start=1470 + _MSGSWAPASSETSRESPONSE._serialized_end=1575 + _MSG._serialized_start=1578 + _MSG._serialized_end=2045 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/spot/v1/tx_pb2.pyi b/nibiru_proto/nibiru/spot/v1/tx_pb2.pyi new file mode 100644 index 00000000..ea0b720e --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/tx_pb2.pyi @@ -0,0 +1,201 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.spot.v1.pool_pb2 +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 MsgCreatePool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + POOL_PARAMS_FIELD_NUMBER: builtins.int + POOL_ASSETS_FIELD_NUMBER: builtins.int + creator: builtins.str + @property + def pool_params(self) -> nibiru.spot.v1.pool_pb2.PoolParams: ... + @property + def pool_assets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nibiru.spot.v1.pool_pb2.PoolAsset]: ... + def __init__( + self, + *, + creator: builtins.str = ..., + pool_params: nibiru.spot.v1.pool_pb2.PoolParams | None = ..., + pool_assets: collections.abc.Iterable[nibiru.spot.v1.pool_pb2.PoolAsset] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool_params", b"pool_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["creator", b"creator", "pool_assets", b"pool_assets", "pool_params", b"pool_params"]) -> None: ... + +global___MsgCreatePool = MsgCreatePool + +@typing_extensions.final +class MsgCreatePoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_ID_FIELD_NUMBER: builtins.int + pool_id: builtins.int + def __init__( + self, + *, + pool_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id"]) -> None: ... + +global___MsgCreatePoolResponse = MsgCreatePoolResponse + +@typing_extensions.final +class MsgJoinPool(google.protobuf.message.Message): + """ + Message to join a pool (identified by poolId) with a set of tokens to deposit. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + POOL_ID_FIELD_NUMBER: builtins.int + TOKENS_IN_FIELD_NUMBER: builtins.int + USE_ALL_COINS_FIELD_NUMBER: builtins.int + sender: builtins.str + pool_id: builtins.int + @property + def tokens_in(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + use_all_coins: builtins.bool + def __init__( + self, + *, + sender: builtins.str = ..., + pool_id: builtins.int = ..., + tokens_in: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + use_all_coins: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "sender", b"sender", "tokens_in", b"tokens_in", "use_all_coins", b"use_all_coins"]) -> None: ... + +global___MsgJoinPool = MsgJoinPool + +@typing_extensions.final +class MsgJoinPoolResponse(google.protobuf.message.Message): + """ + Response when a user joins a pool. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POOL_FIELD_NUMBER: builtins.int + NUM_POOL_SHARES_OUT_FIELD_NUMBER: builtins.int + REMAINING_COINS_FIELD_NUMBER: builtins.int + @property + def pool(self) -> nibiru.spot.v1.pool_pb2.Pool: + """the final state of the pool after a join""" + @property + def num_pool_shares_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """sum of LP tokens minted from the join""" + @property + def remaining_coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """remaining tokens from attempting to join the pool""" + def __init__( + self, + *, + pool: nibiru.spot.v1.pool_pb2.Pool | None = ..., + num_pool_shares_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + remaining_coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["num_pool_shares_out", b"num_pool_shares_out", "pool", b"pool"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["num_pool_shares_out", b"num_pool_shares_out", "pool", b"pool", "remaining_coins", b"remaining_coins"]) -> None: ... + +global___MsgJoinPoolResponse = MsgJoinPoolResponse + +@typing_extensions.final +class MsgExitPool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + POOL_ID_FIELD_NUMBER: builtins.int + POOL_SHARES_FIELD_NUMBER: builtins.int + sender: builtins.str + pool_id: builtins.int + @property + def pool_shares(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + sender: builtins.str = ..., + pool_id: builtins.int = ..., + pool_shares: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pool_shares", b"pool_shares"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "pool_shares", b"pool_shares", "sender", b"sender"]) -> None: ... + +global___MsgExitPool = MsgExitPool + +@typing_extensions.final +class MsgExitPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKENS_OUT_FIELD_NUMBER: builtins.int + @property + def tokens_out(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + tokens_out: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["tokens_out", b"tokens_out"]) -> None: ... + +global___MsgExitPoolResponse = MsgExitPoolResponse + +@typing_extensions.final +class MsgSwapAssets(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + POOL_ID_FIELD_NUMBER: builtins.int + TOKEN_IN_FIELD_NUMBER: builtins.int + TOKEN_OUT_DENOM_FIELD_NUMBER: builtins.int + sender: builtins.str + pool_id: builtins.int + @property + def token_in(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + token_out_denom: builtins.str + def __init__( + self, + *, + sender: builtins.str = ..., + pool_id: builtins.int = ..., + token_in: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + token_out_denom: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token_in", b"token_in"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pool_id", b"pool_id", "sender", b"sender", "token_in", b"token_in", "token_out_denom", b"token_out_denom"]) -> None: ... + +global___MsgSwapAssets = MsgSwapAssets + +@typing_extensions.final +class MsgSwapAssetsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKEN_OUT_FIELD_NUMBER: builtins.int + @property + def token_out(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + token_out: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["token_out", b"token_out"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["token_out", b"token_out"]) -> None: ... + +global___MsgSwapAssetsResponse = MsgSwapAssetsResponse diff --git a/nibiru_proto/nibiru/spot/v1/tx_pb2_grpc.py b/nibiru_proto/nibiru/spot/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..a75c955b --- /dev/null +++ b/nibiru_proto/nibiru/spot/v1/tx_pb2_grpc.py @@ -0,0 +1,172 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.spot.v1 import tx_pb2 as nibiru_dot_spot_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreatePool = channel.unary_unary( + '/nibiru.spot.v1.Msg/CreatePool', + request_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePool.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePoolResponse.FromString, + ) + self.JoinPool = channel.unary_unary( + '/nibiru.spot.v1.Msg/JoinPool', + request_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPool.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPoolResponse.FromString, + ) + self.ExitPool = channel.unary_unary( + '/nibiru.spot.v1.Msg/ExitPool', + request_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPool.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPoolResponse.FromString, + ) + self.SwapAssets = channel.unary_unary( + '/nibiru.spot.v1.Msg/SwapAssets', + request_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssets.SerializeToString, + response_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssetsResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the Msg service. + """ + + def CreatePool(self, request, context): + """Used to create a pool. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def JoinPool(self, request, context): + """Join a pool as a liquidity provider. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExitPool(self, request, context): + """Exit a pool position by returning LP shares + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SwapAssets(self, request, context): + """Swap assets in a pool + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreatePool': grpc.unary_unary_rpc_method_handler( + servicer.CreatePool, + request_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePool.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePoolResponse.SerializeToString, + ), + 'JoinPool': grpc.unary_unary_rpc_method_handler( + servicer.JoinPool, + request_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPool.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPoolResponse.SerializeToString, + ), + 'ExitPool': grpc.unary_unary_rpc_method_handler( + servicer.ExitPool, + request_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPool.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPoolResponse.SerializeToString, + ), + 'SwapAssets': grpc.unary_unary_rpc_method_handler( + servicer.SwapAssets, + request_deserializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssets.FromString, + response_serializer=nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.spot.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the Msg service. + """ + + @staticmethod + def CreatePool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Msg/CreatePool', + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePool.SerializeToString, + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgCreatePoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def JoinPool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Msg/JoinPool', + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPool.SerializeToString, + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgJoinPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExitPool(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Msg/ExitPool', + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPool.SerializeToString, + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgExitPoolResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SwapAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.spot.v1.Msg/SwapAssets', + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssets.SerializeToString, + nibiru_dot_spot_dot_v1_dot_tx__pb2.MsgSwapAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/stablecoin/__init__.py b/nibiru_proto/nibiru/stablecoin/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/stablecoin/v1/__init__.py b/nibiru_proto/nibiru/stablecoin/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/stablecoin/v1/events_pb2.py b/nibiru_proto/nibiru/stablecoin/v1/events_pb2.py new file mode 100644 index 00000000..e6503f6a --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/events_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/stablecoin/v1/events.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!nibiru/stablecoin/v1/events.proto\x12\x14nibiru.stablecoin.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"h\n\rEventTransfer\x12\x33\n\x04\x63oin\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04\x63oin\x12\x12\n\x04\x66rom\x18\x02 \x01(\tR\x04\x66rom\x12\x0e\n\x02to\x18\x03 \x01(\tR\x02to\"Y\n\x0f\x45ventMintStable\x12\x46\n\x06\x61mount\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x06\x61mount\"Y\n\x0f\x45ventBurnStable\x12\x46\n\x06\x61mount\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x06\x61mount\"W\n\rEventMintNIBI\x12\x46\n\x06\x61mount\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x06\x61mount\"W\n\rEventBurnNIBI\x12\x46\n\x06\x61mount\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.IntR\x06\x61mount\"\xf3\x01\n\x14\x45ventRecollateralize\x12\x16\n\x06\x63\x61ller\x18\x01 \x01(\tR\x06\x63\x61ller\x12\x38\n\x07in_coin\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06inCoin\x12:\n\x08out_coin\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07outCoin\x12M\n\ncoll_ratio\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\tcollRatio\"\xeb\x01\n\x0c\x45ventBuyback\x12\x16\n\x06\x63\x61ller\x18\x01 \x01(\tR\x06\x63\x61ller\x12\x38\n\x07in_coin\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06inCoin\x12:\n\x08out_coin\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07outCoin\x12M\n\ncoll_ratio\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\tcollRatioB2Z0github.com/NibiruChain/nibiru/x/stablecoin/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.stablecoin.v1.events_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/NibiruChain/nibiru/x/stablecoin/types' + _EVENTTRANSFER.fields_by_name['coin']._options = None + _EVENTTRANSFER.fields_by_name['coin']._serialized_options = b'\310\336\037\000' + _EVENTMINTSTABLE.fields_by_name['amount']._options = None + _EVENTMINTSTABLE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _EVENTBURNSTABLE.fields_by_name['amount']._options = None + _EVENTBURNSTABLE.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _EVENTMINTNIBI.fields_by_name['amount']._options = None + _EVENTMINTNIBI.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _EVENTBURNNIBI.fields_by_name['amount']._options = None + _EVENTBURNNIBI.fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Int' + _EVENTRECOLLATERALIZE.fields_by_name['in_coin']._options = None + _EVENTRECOLLATERALIZE.fields_by_name['in_coin']._serialized_options = b'\310\336\037\000' + _EVENTRECOLLATERALIZE.fields_by_name['out_coin']._options = None + _EVENTRECOLLATERALIZE.fields_by_name['out_coin']._serialized_options = b'\310\336\037\000' + _EVENTRECOLLATERALIZE.fields_by_name['coll_ratio']._options = None + _EVENTRECOLLATERALIZE.fields_by_name['coll_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EVENTBUYBACK.fields_by_name['in_coin']._options = None + _EVENTBUYBACK.fields_by_name['in_coin']._serialized_options = b'\310\336\037\000' + _EVENTBUYBACK.fields_by_name['out_coin']._options = None + _EVENTBUYBACK.fields_by_name['out_coin']._serialized_options = b'\310\336\037\000' + _EVENTBUYBACK.fields_by_name['coll_ratio']._options = None + _EVENTBUYBACK.fields_by_name['coll_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _EVENTTRANSFER._serialized_start=113 + _EVENTTRANSFER._serialized_end=217 + _EVENTMINTSTABLE._serialized_start=219 + _EVENTMINTSTABLE._serialized_end=308 + _EVENTBURNSTABLE._serialized_start=310 + _EVENTBURNSTABLE._serialized_end=399 + _EVENTMINTNIBI._serialized_start=401 + _EVENTMINTNIBI._serialized_end=488 + _EVENTBURNNIBI._serialized_start=490 + _EVENTBURNNIBI._serialized_end=577 + _EVENTRECOLLATERALIZE._serialized_start=580 + _EVENTRECOLLATERALIZE._serialized_end=823 + _EVENTBUYBACK._serialized_start=826 + _EVENTBUYBACK._serialized_end=1061 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/stablecoin/v1/events_pb2.pyi b/nibiru_proto/nibiru/stablecoin/v1/events_pb2.pyi new file mode 100644 index 00000000..af2ef499 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/events_pb2.pyi @@ -0,0 +1,151 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +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 EventTransfer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COIN_FIELD_NUMBER: builtins.int + FROM_FIELD_NUMBER: builtins.int + TO_FIELD_NUMBER: builtins.int + @property + def coin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + to: builtins.str + def __init__( + self, + *, + coin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + to: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["coin", b"coin"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["coin", b"coin", "from", b"from", "to", b"to"]) -> None: ... + +global___EventTransfer = EventTransfer + +@typing_extensions.final +class EventMintStable(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.str + def __init__( + self, + *, + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___EventMintStable = EventMintStable + +@typing_extensions.final +class EventBurnStable(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.str + def __init__( + self, + *, + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___EventBurnStable = EventBurnStable + +@typing_extensions.final +class EventMintNIBI(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.str + def __init__( + self, + *, + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___EventMintNIBI = EventMintNIBI + +@typing_extensions.final +class EventBurnNIBI(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AMOUNT_FIELD_NUMBER: builtins.int + amount: builtins.str + def __init__( + self, + *, + amount: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount"]) -> None: ... + +global___EventBurnNIBI = EventBurnNIBI + +@typing_extensions.final +class EventRecollateralize(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CALLER_FIELD_NUMBER: builtins.int + IN_COIN_FIELD_NUMBER: builtins.int + OUT_COIN_FIELD_NUMBER: builtins.int + COLL_RATIO_FIELD_NUMBER: builtins.int + caller: builtins.str + @property + def in_coin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def out_coin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + coll_ratio: builtins.str + def __init__( + self, + *, + caller: builtins.str = ..., + in_coin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + out_coin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + coll_ratio: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["in_coin", b"in_coin", "out_coin", b"out_coin"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["caller", b"caller", "coll_ratio", b"coll_ratio", "in_coin", b"in_coin", "out_coin", b"out_coin"]) -> None: ... + +global___EventRecollateralize = EventRecollateralize + +@typing_extensions.final +class EventBuyback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CALLER_FIELD_NUMBER: builtins.int + IN_COIN_FIELD_NUMBER: builtins.int + OUT_COIN_FIELD_NUMBER: builtins.int + COLL_RATIO_FIELD_NUMBER: builtins.int + caller: builtins.str + @property + def in_coin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def out_coin(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + coll_ratio: builtins.str + def __init__( + self, + *, + caller: builtins.str = ..., + in_coin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + out_coin: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + coll_ratio: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["in_coin", b"in_coin", "out_coin", b"out_coin"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["caller", b"caller", "coll_ratio", b"coll_ratio", "in_coin", b"in_coin", "out_coin", b"out_coin"]) -> None: ... + +global___EventBuyback = EventBuyback diff --git a/nibiru_proto/nibiru/stablecoin/v1/events_pb2_grpc.py b/nibiru_proto/nibiru/stablecoin/v1/events_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/events_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.py b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.py new file mode 100644 index 00000000..f96a14c0 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/stablecoin/v1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from nibiru_proto.nibiru.stablecoin.v1 import params_pb2 as nibiru_dot_stablecoin_dot_v1_dot_params__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"nibiru/stablecoin/v1/genesis.proto\x12\x14nibiru.stablecoin.v1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a!nibiru/stablecoin/v1/params.proto\"\xc2\x01\n\x0cGenesisState\x12:\n\x06params\x18\x01 \x01(\x0b\x32\x1c.nibiru.stablecoin.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12v\n\x16module_account_balance\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB%\xc8\xde\x1f\x00\xf2\xde\x1f\x1dyaml:\"module_account_balance\"R\x14moduleAccountBalanceB2Z0github.com/NibiruChain/nibiru/x/stablecoin/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.stablecoin.v1.genesis_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/NibiruChain/nibiru/x/stablecoin/types' + _GENESISSTATE.fields_by_name['params']._options = None + _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _GENESISSTATE.fields_by_name['module_account_balance']._options = None + _GENESISSTATE.fields_by_name['module_account_balance']._serialized_options = b'\310\336\037\000\362\336\037\035yaml:\"module_account_balance\"' + _GENESISSTATE._serialized_start=150 + _GENESISSTATE._serialized_end=344 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.pyi b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.pyi new file mode 100644 index 00000000..9b1053a0 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import nibiru.stablecoin.v1.params_pb2 +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 GenesisState(google.protobuf.message.Message): + """GenesisState defines the stablecoin module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + MODULE_ACCOUNT_BALANCE_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.stablecoin.v1.params_pb2.Params: ... + @property + def module_account_balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + params: nibiru.stablecoin.v1.params_pb2.Params | None = ..., + module_account_balance: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["module_account_balance", b"module_account_balance", "params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["module_account_balance", b"module_account_balance", "params", b"params"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2_grpc.py b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/stablecoin/v1/params_pb2.py b/nibiru_proto/nibiru/stablecoin/v1/params_pb2.py new file mode 100644 index 00000000..401561c2 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/params_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/stablecoin/v1/params.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!nibiru/stablecoin/v1/params.proto\x12\x14nibiru.stablecoin.v1\x1a\x14gogoproto/gogo.proto\"\xa7\x03\n\x06Params\x12\x1d\n\ncoll_ratio\x18\x01 \x01(\x03R\tcollRatio\x12\x1b\n\tfee_ratio\x18\x02 \x01(\x03R\x08\x66\x65\x65Ratio\x12 \n\x0c\x65\x66_fee_ratio\x18\x03 \x01(\x03R\nefFeeRatio\x12*\n\x11\x62onus_rate_recoll\x18\x04 \x01(\x03R\x0f\x62onusRateRecoll\x12W\n\x16\x64istr_epoch_identifier\x18\x05 \x01(\tB!\xf2\xde\x1f\x1dyaml:\"distr_epoch_identifier\"R\x14\x64istrEpochIdentifier\x12\'\n\x0f\x61\x64justment_step\x18\x06 \x01(\x03R\x0e\x61\x64justmentStep\x12*\n\x11price_lower_bound\x18\x07 \x01(\x03R\x0fpriceLowerBound\x12*\n\x11price_upper_bound\x18\x08 \x01(\x03R\x0fpriceUpperBound\x12\x39\n\x19is_collateral_ratio_valid\x18\t \x01(\x08R\x16isCollateralRatioValidB2Z0github.com/NibiruChain/nibiru/x/stablecoin/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.stablecoin.v1.params_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/NibiruChain/nibiru/x/stablecoin/types' + _PARAMS.fields_by_name['distr_epoch_identifier']._options = None + _PARAMS.fields_by_name['distr_epoch_identifier']._serialized_options = b'\362\336\037\035yaml:\"distr_epoch_identifier\"' + _PARAMS._serialized_start=82 + _PARAMS._serialized_end=505 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/stablecoin/v1/params_pb2.pyi b/nibiru_proto/nibiru/stablecoin/v1/params_pb2.pyi new file mode 100644 index 00000000..abb9ac7b --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/params_pb2.pyi @@ -0,0 +1,75 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 Params(google.protobuf.message.Message): + """Params defines the parameters for the module.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLL_RATIO_FIELD_NUMBER: builtins.int + FEE_RATIO_FIELD_NUMBER: builtins.int + EF_FEE_RATIO_FIELD_NUMBER: builtins.int + BONUS_RATE_RECOLL_FIELD_NUMBER: builtins.int + DISTR_EPOCH_IDENTIFIER_FIELD_NUMBER: builtins.int + ADJUSTMENT_STEP_FIELD_NUMBER: builtins.int + PRICE_LOWER_BOUND_FIELD_NUMBER: builtins.int + PRICE_UPPER_BOUND_FIELD_NUMBER: builtins.int + IS_COLLATERAL_RATIO_VALID_FIELD_NUMBER: builtins.int + coll_ratio: builtins.int + """collRatio is the ratio needed as collateral to exchange for stables""" + fee_ratio: builtins.int + """feeRatio is the ratio taken as fees when minting or burning stables""" + ef_fee_ratio: builtins.int + """efFeeRatio is the ratio taken from the fees that goes to Ecosystem Fund""" + bonus_rate_recoll: builtins.int + """BonusRateRecoll is the percentage of extra stablecoin value given to the + caller of 'Recollateralize' in units of governance tokens. + """ + distr_epoch_identifier: builtins.str + """distr_epoch_identifier defines the frequnecy of update for the collateral + ratio + """ + adjustment_step: builtins.int + """adjustmentStep is the size of the step taken when updating the collateral + ratio + """ + price_lower_bound: builtins.int + """priceLowerBound is the lower bound for the stable coin to trigger a + collateral ratio update + """ + price_upper_bound: builtins.int + """priceUpperBound is the upper bound for the stable coin to trigger a + collateral ratio update + """ + is_collateral_ratio_valid: builtins.bool + """isCollateralRatioValid checks if the collateral ratio is correctly updated""" + def __init__( + self, + *, + coll_ratio: builtins.int = ..., + fee_ratio: builtins.int = ..., + ef_fee_ratio: builtins.int = ..., + bonus_rate_recoll: builtins.int = ..., + distr_epoch_identifier: builtins.str = ..., + adjustment_step: builtins.int = ..., + price_lower_bound: builtins.int = ..., + price_upper_bound: builtins.int = ..., + is_collateral_ratio_valid: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["adjustment_step", b"adjustment_step", "bonus_rate_recoll", b"bonus_rate_recoll", "coll_ratio", b"coll_ratio", "distr_epoch_identifier", b"distr_epoch_identifier", "ef_fee_ratio", b"ef_fee_ratio", "fee_ratio", b"fee_ratio", "is_collateral_ratio_valid", b"is_collateral_ratio_valid", "price_lower_bound", b"price_lower_bound", "price_upper_bound", b"price_upper_bound"]) -> None: ... + +global___Params = Params diff --git a/nibiru_proto/nibiru/stablecoin/v1/params_pb2_grpc.py b/nibiru_proto/nibiru/stablecoin/v1/params_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/params_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/stablecoin/v1/query_pb2.py b/nibiru_proto/nibiru/stablecoin/v1/query_pb2.py new file mode 100644 index 00000000..38e274b0 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/query_pb2.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/stablecoin/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from nibiru_proto.nibiru.stablecoin.v1 import params_pb2 as nibiru_dot_stablecoin_dot_v1_dot_params__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nibiru/stablecoin/v1/query.proto\x12\x14nibiru.stablecoin.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a!nibiru/stablecoin/v1/params.proto\"\x14\n\x12QueryParamsRequest\"Q\n\x13QueryParamsResponse\x12:\n\x06params\x18\x01 \x01(\x0b\x32\x1c.nibiru.stablecoin.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\x1c\n\x1aQueryModuleAccountBalances\"\xba\x01\n\"QueryModuleAccountBalancesResponse\x12\x93\x01\n\x17module_account_balances\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB@\xc8\xde\x1f\x00\xf2\xde\x1f\x0cyaml:\"coins\"\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x15moduleAccountBalances\"\x1a\n\x18QueryCirculatingSupplies\"\x8c\x01\n QueryCirculatingSuppliesResponse\x12\x33\n\x04nibi\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04nibi\x12\x33\n\x04nusd\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04nusd\"W\n\x14QueryGovToMintStable\x12?\n\ncollateral\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\ncollateral\"Q\n\x1cQueryGovToMintStableResponse\x12\x31\n\x03gov\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x03gov\"\x8b\x02\n\x12LiquidityRatioInfo\x12W\n\x0fliquidity_ratio\x18\x01 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0eliquidityRatio\x12M\n\nupper_band\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\tupperBand\x12M\n\nlower_band\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\tlowerBand\" \n\x1eQueryLiquidityRatioInfoRequest\"e\n\x1fQueryLiquidityRatioInfoResponse\x12\x42\n\x04info\x18\x01 \x01(\x0b\x32(.nibiru.stablecoin.v1.LiquidityRatioInfoB\x04\xc8\xde\x1f\x00R\x04info2\xac\x05\n\x05Query\x12\x83\x01\n\x06Params\x12(.nibiru.stablecoin.v1.QueryParamsRequest\x1a).nibiru.stablecoin.v1.QueryParamsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/nibiru/stablecoin/v1/params\x12\xb6\x01\n\x15ModuleAccountBalances\x12\x30.nibiru.stablecoin.v1.QueryModuleAccountBalances\x1a\x38.nibiru.stablecoin.v1.QueryModuleAccountBalancesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/nibiru/stablecoin/module_account_balance\x12\xae\x01\n\x13\x43irculatingSupplies\x12..nibiru.stablecoin.v1.QueryCirculatingSupplies\x1a\x36.nibiru.stablecoin.v1.QueryCirculatingSuppliesResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/nibiru/stablecoin/circulating_supplies\x12\xb2\x01\n\x12LiquidityRatioInfo\x12\x34.nibiru.stablecoin.v1.QueryLiquidityRatioInfoRequest\x1a\x35.nibiru.stablecoin.v1.QueryLiquidityRatioInfoResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/nibiru/stablecoin/liquidity_ratio_infoB2Z0github.com/NibiruChain/nibiru/x/stablecoin/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.stablecoin.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/NibiruChain/nibiru/x/stablecoin/types' + _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None + _QUERYPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' + _QUERYMODULEACCOUNTBALANCESRESPONSE.fields_by_name['module_account_balances']._options = None + _QUERYMODULEACCOUNTBALANCESRESPONSE.fields_by_name['module_account_balances']._serialized_options = b'\310\336\037\000\362\336\037\014yaml:\"coins\"\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _QUERYCIRCULATINGSUPPLIESRESPONSE.fields_by_name['nibi']._options = None + _QUERYCIRCULATINGSUPPLIESRESPONSE.fields_by_name['nibi']._serialized_options = b'\310\336\037\000' + _QUERYCIRCULATINGSUPPLIESRESPONSE.fields_by_name['nusd']._options = None + _QUERYCIRCULATINGSUPPLIESRESPONSE.fields_by_name['nusd']._serialized_options = b'\310\336\037\000' + _QUERYGOVTOMINTSTABLE.fields_by_name['collateral']._options = None + _QUERYGOVTOMINTSTABLE.fields_by_name['collateral']._serialized_options = b'\310\336\037\000' + _QUERYGOVTOMINTSTABLERESPONSE.fields_by_name['gov']._options = None + _QUERYGOVTOMINTSTABLERESPONSE.fields_by_name['gov']._serialized_options = b'\310\336\037\000' + _LIQUIDITYRATIOINFO.fields_by_name['liquidity_ratio']._options = None + _LIQUIDITYRATIOINFO.fields_by_name['liquidity_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _LIQUIDITYRATIOINFO.fields_by_name['upper_band']._options = None + _LIQUIDITYRATIOINFO.fields_by_name['upper_band']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _LIQUIDITYRATIOINFO.fields_by_name['lower_band']._options = None + _LIQUIDITYRATIOINFO.fields_by_name['lower_band']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec' + _QUERYLIQUIDITYRATIOINFORESPONSE.fields_by_name['info']._options = None + _QUERYLIQUIDITYRATIOINFORESPONSE.fields_by_name['info']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['Params']._options = None + _QUERY.methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\036\022\034/nibiru/stablecoin/v1/params' + _QUERY.methods_by_name['ModuleAccountBalances']._options = None + _QUERY.methods_by_name['ModuleAccountBalances']._serialized_options = b'\202\323\344\223\002+\022)/nibiru/stablecoin/module_account_balance' + _QUERY.methods_by_name['CirculatingSupplies']._options = None + _QUERY.methods_by_name['CirculatingSupplies']._serialized_options = b'\202\323\344\223\002)\022\'/nibiru/stablecoin/circulating_supplies' + _QUERY.methods_by_name['LiquidityRatioInfo']._options = None + _QUERY.methods_by_name['LiquidityRatioInfo']._serialized_options = b'\202\323\344\223\002)\022\'/nibiru/stablecoin/liquidity_ratio_info' + _QUERYPARAMSREQUEST._serialized_start=221 + _QUERYPARAMSREQUEST._serialized_end=241 + _QUERYPARAMSRESPONSE._serialized_start=243 + _QUERYPARAMSRESPONSE._serialized_end=324 + _QUERYMODULEACCOUNTBALANCES._serialized_start=326 + _QUERYMODULEACCOUNTBALANCES._serialized_end=354 + _QUERYMODULEACCOUNTBALANCESRESPONSE._serialized_start=357 + _QUERYMODULEACCOUNTBALANCESRESPONSE._serialized_end=543 + _QUERYCIRCULATINGSUPPLIES._serialized_start=545 + _QUERYCIRCULATINGSUPPLIES._serialized_end=571 + _QUERYCIRCULATINGSUPPLIESRESPONSE._serialized_start=574 + _QUERYCIRCULATINGSUPPLIESRESPONSE._serialized_end=714 + _QUERYGOVTOMINTSTABLE._serialized_start=716 + _QUERYGOVTOMINTSTABLE._serialized_end=803 + _QUERYGOVTOMINTSTABLERESPONSE._serialized_start=805 + _QUERYGOVTOMINTSTABLERESPONSE._serialized_end=886 + _LIQUIDITYRATIOINFO._serialized_start=889 + _LIQUIDITYRATIOINFO._serialized_end=1156 + _QUERYLIQUIDITYRATIOINFOREQUEST._serialized_start=1158 + _QUERYLIQUIDITYRATIOINFOREQUEST._serialized_end=1190 + _QUERYLIQUIDITYRATIOINFORESPONSE._serialized_start=1192 + _QUERYLIQUIDITYRATIOINFORESPONSE._serialized_end=1293 + _QUERY._serialized_start=1296 + _QUERY._serialized_end=1980 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/stablecoin/v1/query_pb2.pyi b/nibiru_proto/nibiru/stablecoin/v1/query_pb2.pyi new file mode 100644 index 00000000..8b0ecf86 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/query_pb2.pyi @@ -0,0 +1,218 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import nibiru.stablecoin.v1.params_pb2 +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 QueryParamsRequest(google.protobuf.message.Message): + """---------------------------------------- Params + + QueryParamsRequest is request type for the Query/Params RPC method. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryParamsRequest = QueryParamsRequest + +@typing_extensions.final +class QueryParamsResponse(google.protobuf.message.Message): + """QueryParamsResponse is response type for the Query/Params RPC method.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> nibiru.stablecoin.v1.params_pb2.Params: + """params holds all the parameters of this module.""" + def __init__( + self, + *, + params: nibiru.stablecoin.v1.params_pb2.Params | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ... + +global___QueryParamsResponse = QueryParamsResponse + +@typing_extensions.final +class QueryModuleAccountBalances(google.protobuf.message.Message): + """---------------------------------------- ModuleAccountBalances + + QueryModuleAccountBalances is the request type for the balance of the + x/stablecoin module account. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryModuleAccountBalances = QueryModuleAccountBalances + +@typing_extensions.final +class QueryModuleAccountBalancesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MODULE_ACCOUNT_BALANCES_FIELD_NUMBER: builtins.int + @property + def module_account_balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: + """ModuleAccountBalances is the balance of all coins in the x/stablecoin + module. + """ + def __init__( + self, + *, + module_account_balances: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["module_account_balances", b"module_account_balances"]) -> None: ... + +global___QueryModuleAccountBalancesResponse = QueryModuleAccountBalancesResponse + +@typing_extensions.final +class QueryCirculatingSupplies(google.protobuf.message.Message): + """---------------------------------------- CirculatingSupplies + + QueryCirculatingSupplies is the request type for the circulating supply of + both NIBI and NUSD. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryCirculatingSupplies = QueryCirculatingSupplies + +@typing_extensions.final +class QueryCirculatingSuppliesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NIBI_FIELD_NUMBER: builtins.int + NUSD_FIELD_NUMBER: builtins.int + @property + def nibi(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def nusd(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + nibi: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + nusd: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["nibi", b"nibi", "nusd", b"nusd"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["nibi", b"nibi", "nusd", b"nusd"]) -> None: ... + +global___QueryCirculatingSuppliesResponse = QueryCirculatingSuppliesResponse + +@typing_extensions.final +class QueryGovToMintStable(google.protobuf.message.Message): + """---------------------------------------- GovToMintStable + + QueryGovToMintStable is the request type for the Query/GovToMintStable RPC + method + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLATERAL_FIELD_NUMBER: builtins.int + @property + def collateral(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + collateral: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["collateral", b"collateral"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["collateral", b"collateral"]) -> None: ... + +global___QueryGovToMintStable = QueryGovToMintStable + +@typing_extensions.final +class QueryGovToMintStableResponse(google.protobuf.message.Message): + """QueryGovToMintStableResponse is the response type for 'QueryGovToMintStable'""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GOV_FIELD_NUMBER: builtins.int + @property + def gov(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + gov: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["gov", b"gov"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["gov", b"gov"]) -> None: ... + +global___QueryGovToMintStableResponse = QueryGovToMintStableResponse + +@typing_extensions.final +class LiquidityRatioInfo(google.protobuf.message.Message): + """---------------------------------------- Liquidity Ratio Info""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LIQUIDITY_RATIO_FIELD_NUMBER: builtins.int + UPPER_BAND_FIELD_NUMBER: builtins.int + LOWER_BAND_FIELD_NUMBER: builtins.int + liquidity_ratio: builtins.str + upper_band: builtins.str + lower_band: builtins.str + def __init__( + self, + *, + liquidity_ratio: builtins.str = ..., + upper_band: builtins.str = ..., + lower_band: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["liquidity_ratio", b"liquidity_ratio", "lower_band", b"lower_band", "upper_band", b"upper_band"]) -> None: ... + +global___LiquidityRatioInfo = LiquidityRatioInfo + +@typing_extensions.final +class QueryLiquidityRatioInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QueryLiquidityRatioInfoRequest = QueryLiquidityRatioInfoRequest + +@typing_extensions.final +class QueryLiquidityRatioInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> global___LiquidityRatioInfo: ... + def __init__( + self, + *, + info: global___LiquidityRatioInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... + +global___QueryLiquidityRatioInfoResponse = QueryLiquidityRatioInfoResponse diff --git a/nibiru_proto/nibiru/stablecoin/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/stablecoin/v1/query_pb2_grpc.py new file mode 100644 index 00000000..21f35535 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/query_pb2_grpc.py @@ -0,0 +1,170 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.stablecoin.v1 import query_pb2 as nibiru_dot_stablecoin_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Params = channel.unary_unary( + '/nibiru.stablecoin.v1.Query/Params', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + ) + self.ModuleAccountBalances = channel.unary_unary( + '/nibiru.stablecoin.v1.Query/ModuleAccountBalances', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalances.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalancesResponse.FromString, + ) + self.CirculatingSupplies = channel.unary_unary( + '/nibiru.stablecoin.v1.Query/CirculatingSupplies', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSupplies.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSuppliesResponse.FromString, + ) + self.LiquidityRatioInfo = channel.unary_unary( + '/nibiru.stablecoin.v1.Query/LiquidityRatioInfo', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoRequest.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Params(self, request, context): + """Parameters queries the parameters of the x/stablecoin module. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModuleAccountBalances(self, request, context): + """ModuleAccountBalances queries the account balance of x/stablecoin. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CirculatingSupplies(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LiquidityRatioInfo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Params': grpc.unary_unary_rpc_method_handler( + servicer.Params, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsRequest.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsResponse.SerializeToString, + ), + 'ModuleAccountBalances': grpc.unary_unary_rpc_method_handler( + servicer.ModuleAccountBalances, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalances.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalancesResponse.SerializeToString, + ), + 'CirculatingSupplies': grpc.unary_unary_rpc_method_handler( + servicer.CirculatingSupplies, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSupplies.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSuppliesResponse.SerializeToString, + ), + 'LiquidityRatioInfo': grpc.unary_unary_rpc_method_handler( + servicer.LiquidityRatioInfo, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoRequest.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.stablecoin.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Params(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Query/Params', + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryParamsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleAccountBalances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Query/ModuleAccountBalances', + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalances.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryModuleAccountBalancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CirculatingSupplies(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Query/CirculatingSupplies', + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSupplies.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryCirculatingSuppliesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LiquidityRatioInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Query/LiquidityRatioInfo', + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoRequest.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_query__pb2.QueryLiquidityRatioInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.py b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.py new file mode 100644 index 00000000..0a8bc8ee --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/stablecoin/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnibiru/stablecoin/v1/tx.proto\x12\x14nibiru.stablecoin.v1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"b\n\rMsgMintStable\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x37\n\x06stable\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06stable\"\xa8\x02\n\x15MsgMintStableResponse\x12\x37\n\x06stable\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06stable\x12j\n\nused_coins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tusedCoins\x12j\n\nfees_payed\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tfeesPayed\"b\n\rMsgBurnStable\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x37\n\x06stable\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06stable\"\xf7\x01\n\x15MsgBurnStableResponse\x12?\n\ncollateral\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\ncollateral\x12\x31\n\x03gov\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x03gov\x12j\n\nfees_payed\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tfeesPayed\"c\n\x12MsgRecollateralize\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x33\n\x04\x63oll\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04\x63oll\"O\n\x1aMsgRecollateralizeResponse\x12\x31\n\x03gov\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x03gov\"Y\n\nMsgBuyback\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x31\n\x03gov\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x03gov\"I\n\x12MsgBuybackResponse\x12\x33\n\x04\x63oll\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x04\x63oll2\x9d\x04\n\x03Msg\x12\x82\x01\n\nMintStable\x12#.nibiru.stablecoin.v1.MsgMintStable\x1a+.nibiru.stablecoin.v1.MsgMintStableResponse\"\"\x82\xd3\xe4\x93\x02\x1c\"\x1a/nibiru/stablecoin/mint-sc\x12\x82\x01\n\nBurnStable\x12#.nibiru.stablecoin.v1.MsgBurnStable\x1a+.nibiru.stablecoin.v1.MsgBurnStableResponse\"\"\x82\xd3\xe4\x93\x02\x1c\"\x1a/nibiru/stablecoin/burn-sc\x12\x90\x01\n\x0fRecollateralize\x12(.nibiru.stablecoin.v1.MsgRecollateralize\x1a\x30.nibiru.stablecoin.v1.MsgRecollateralizeResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x19/nibiru/stablecoin/recoll\x12y\n\x07\x42uyback\x12 .nibiru.stablecoin.v1.MsgBuyback\x1a(.nibiru.stablecoin.v1.MsgBuybackResponse\"\"\x82\xd3\xe4\x93\x02\x1c\"\x1a/nibiru/stablecoin/buybackB2Z0github.com/NibiruChain/nibiru/x/stablecoin/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.stablecoin.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z0github.com/NibiruChain/nibiru/x/stablecoin/types' + _MSGMINTSTABLE.fields_by_name['stable']._options = None + _MSGMINTSTABLE.fields_by_name['stable']._serialized_options = b'\310\336\037\000' + _MSGMINTSTABLERESPONSE.fields_by_name['stable']._options = None + _MSGMINTSTABLERESPONSE.fields_by_name['stable']._serialized_options = b'\310\336\037\000' + _MSGMINTSTABLERESPONSE.fields_by_name['used_coins']._options = None + _MSGMINTSTABLERESPONSE.fields_by_name['used_coins']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _MSGMINTSTABLERESPONSE.fields_by_name['fees_payed']._options = None + _MSGMINTSTABLERESPONSE.fields_by_name['fees_payed']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _MSGBURNSTABLE.fields_by_name['stable']._options = None + _MSGBURNSTABLE.fields_by_name['stable']._serialized_options = b'\310\336\037\000' + _MSGBURNSTABLERESPONSE.fields_by_name['collateral']._options = None + _MSGBURNSTABLERESPONSE.fields_by_name['collateral']._serialized_options = b'\310\336\037\000' + _MSGBURNSTABLERESPONSE.fields_by_name['gov']._options = None + _MSGBURNSTABLERESPONSE.fields_by_name['gov']._serialized_options = b'\310\336\037\000' + _MSGBURNSTABLERESPONSE.fields_by_name['fees_payed']._options = None + _MSGBURNSTABLERESPONSE.fields_by_name['fees_payed']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' + _MSGRECOLLATERALIZE.fields_by_name['coll']._options = None + _MSGRECOLLATERALIZE.fields_by_name['coll']._serialized_options = b'\310\336\037\000' + _MSGRECOLLATERALIZERESPONSE.fields_by_name['gov']._options = None + _MSGRECOLLATERALIZERESPONSE.fields_by_name['gov']._serialized_options = b'\310\336\037\000' + _MSGBUYBACK.fields_by_name['gov']._options = None + _MSGBUYBACK.fields_by_name['gov']._serialized_options = b'\310\336\037\000' + _MSGBUYBACKRESPONSE.fields_by_name['coll']._options = None + _MSGBUYBACKRESPONSE.fields_by_name['coll']._serialized_options = b'\310\336\037\000' + _MSG.methods_by_name['MintStable']._options = None + _MSG.methods_by_name['MintStable']._serialized_options = b'\202\323\344\223\002\034\"\032/nibiru/stablecoin/mint-sc' + _MSG.methods_by_name['BurnStable']._options = None + _MSG.methods_by_name['BurnStable']._serialized_options = b'\202\323\344\223\002\034\"\032/nibiru/stablecoin/burn-sc' + _MSG.methods_by_name['Recollateralize']._options = None + _MSG.methods_by_name['Recollateralize']._serialized_options = b'\202\323\344\223\002\033\"\031/nibiru/stablecoin/recoll' + _MSG.methods_by_name['Buyback']._options = None + _MSG.methods_by_name['Buyback']._serialized_options = b'\202\323\344\223\002\034\"\032/nibiru/stablecoin/buyback' + _MSGMINTSTABLE._serialized_start=139 + _MSGMINTSTABLE._serialized_end=237 + _MSGMINTSTABLERESPONSE._serialized_start=240 + _MSGMINTSTABLERESPONSE._serialized_end=536 + _MSGBURNSTABLE._serialized_start=538 + _MSGBURNSTABLE._serialized_end=636 + _MSGBURNSTABLERESPONSE._serialized_start=639 + _MSGBURNSTABLERESPONSE._serialized_end=886 + _MSGRECOLLATERALIZE._serialized_start=888 + _MSGRECOLLATERALIZE._serialized_end=987 + _MSGRECOLLATERALIZERESPONSE._serialized_start=989 + _MSGRECOLLATERALIZERESPONSE._serialized_end=1068 + _MSGBUYBACK._serialized_start=1070 + _MSGBUYBACK._serialized_end=1159 + _MSGBUYBACKRESPONSE._serialized_start=1161 + _MSGBUYBACKRESPONSE._serialized_end=1234 + _MSG._serialized_start=1237 + _MSG._serialized_end=1778 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.pyi b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.pyi new file mode 100644 index 00000000..a890aa69 --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2.pyi @@ -0,0 +1,217 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import cosmos.base.v1beta1.coin_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 MsgMintStable(google.protobuf.message.Message): + """ + MsgMintStable: Msg to mint NUSD. A user deposits NIBI and collateral and gets + NUSD in return. The amount of NUSD received depends on the current price set + by the oracle library and the current collateral ratio for the protocol. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + STABLE_FIELD_NUMBER: builtins.int + creator: builtins.str + @property + def stable(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + creator: builtins.str = ..., + stable: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["stable", b"stable"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["creator", b"creator", "stable", b"stable"]) -> None: ... + +global___MsgMintStable = MsgMintStable + +@typing_extensions.final +class MsgMintStableResponse(google.protobuf.message.Message): + """MsgMintStableResponse specifies the amount of NUSD token the user will + receive after their mint transaction + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STABLE_FIELD_NUMBER: builtins.int + USED_COINS_FIELD_NUMBER: builtins.int + FEES_PAYED_FIELD_NUMBER: builtins.int + @property + def stable(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def used_coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def fees_payed(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + stable: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + used_coins: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + fees_payed: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["stable", b"stable"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["fees_payed", b"fees_payed", "stable", b"stable", "used_coins", b"used_coins"]) -> None: ... + +global___MsgMintStableResponse = MsgMintStableResponse + +@typing_extensions.final +class MsgBurnStable(google.protobuf.message.Message): + """ + MsgBurnStable allows users to burn NUSD in exchange for NIBI and collateral. + The amount of NIBI and Collateral received depends on the current price set by + the x/oracle library and the current collateral ratio. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + STABLE_FIELD_NUMBER: builtins.int + creator: builtins.str + @property + def stable(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + creator: builtins.str = ..., + stable: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["stable", b"stable"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["creator", b"creator", "stable", b"stable"]) -> None: ... + +global___MsgBurnStable = MsgBurnStable + +@typing_extensions.final +class MsgBurnStableResponse(google.protobuf.message.Message): + """MsgBurnStableResponse specifies the amount of collateral and governance + token the user will receive after their burn transaction. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLATERAL_FIELD_NUMBER: builtins.int + GOV_FIELD_NUMBER: builtins.int + FEES_PAYED_FIELD_NUMBER: builtins.int + @property + def collateral(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def gov(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + @property + def fees_payed(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__( + self, + *, + collateral: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + gov: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + fees_payed: collections.abc.Iterable[cosmos.base.v1beta1.coin_pb2.Coin] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["collateral", b"collateral", "gov", b"gov"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["collateral", b"collateral", "fees_payed", b"fees_payed", "gov", b"gov"]) -> None: ... + +global___MsgBurnStableResponse = MsgBurnStableResponse + +@typing_extensions.final +class MsgRecollateralize(google.protobuf.message.Message): + """MsgRecollateralize""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + COLL_FIELD_NUMBER: builtins.int + creator: builtins.str + @property + def coll(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__( + self, + *, + creator: builtins.str = ..., + coll: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["coll", b"coll"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["coll", b"coll", "creator", b"creator"]) -> None: ... + +global___MsgRecollateralize = MsgRecollateralize + +@typing_extensions.final +class MsgRecollateralizeResponse(google.protobuf.message.Message): + """MsgRecollateralizeResponse is the output of a successful 'Recollateralize'""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GOV_FIELD_NUMBER: builtins.int + @property + def gov(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Gov (sdk.Coin): Tokens rewarded to the caller in exchange for her + collateral. + """ + def __init__( + self, + *, + gov: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["gov", b"gov"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["gov", b"gov"]) -> None: ... + +global___MsgRecollateralizeResponse = MsgRecollateralizeResponse + +@typing_extensions.final +class MsgBuyback(google.protobuf.message.Message): + """MsgBuyback""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATOR_FIELD_NUMBER: builtins.int + GOV_FIELD_NUMBER: builtins.int + creator: builtins.str + @property + def gov(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Gov (sdk.Coin): Tokens the caller wants to sell to the protocol in exchange + for collateral. + """ + def __init__( + self, + *, + creator: builtins.str = ..., + gov: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["gov", b"gov"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["creator", b"creator", "gov", b"gov"]) -> None: ... + +global___MsgBuyback = MsgBuyback + +@typing_extensions.final +class MsgBuybackResponse(google.protobuf.message.Message): + """MsgBuybackResponse is the output of a successful 'Buyback'""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLL_FIELD_NUMBER: builtins.int + @property + def coll(self) -> cosmos.base.v1beta1.coin_pb2.Coin: + """Coll (sdk.Coin): Tokens sold to the caller in exchange for her collateral.""" + def __init__( + self, + *, + coll: cosmos.base.v1beta1.coin_pb2.Coin | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["coll", b"coll"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["coll", b"coll"]) -> None: ... + +global___MsgBuybackResponse = MsgBuybackResponse diff --git a/nibiru_proto/nibiru/stablecoin/v1/tx_pb2_grpc.py b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..ef6bacaf --- /dev/null +++ b/nibiru_proto/nibiru/stablecoin/v1/tx_pb2_grpc.py @@ -0,0 +1,179 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.stablecoin.v1 import tx_pb2 as nibiru_dot_stablecoin_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the x/stablecoin Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.MintStable = channel.unary_unary( + '/nibiru.stablecoin.v1.Msg/MintStable', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStable.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStableResponse.FromString, + ) + self.BurnStable = channel.unary_unary( + '/nibiru.stablecoin.v1.Msg/BurnStable', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStable.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStableResponse.FromString, + ) + self.Recollateralize = channel.unary_unary( + '/nibiru.stablecoin.v1.Msg/Recollateralize', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralize.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralizeResponse.FromString, + ) + self.Buyback = channel.unary_unary( + '/nibiru.stablecoin.v1.Msg/Buyback', + request_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuyback.SerializeToString, + response_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuybackResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the x/stablecoin Msg service. + """ + + def MintStable(self, request, context): + """MintStable defines a method for trading a mixture of GOV and COLL to mint + an equivalent value of stablecoins. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BurnStable(self, request, context): + """BurnStable defines a method for redeeming/burning stablecoins to receive an + equivalent value as a mixture of governance and collateral tokens. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Recollateralize(self, request, context): + """Recollateralize defines a method for manually adding collateral to the + protocol in exchange for an equivalent stablecoin value in governance tokens + plus a small bonus. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Buyback(self, request, context): + """Buyback defines a method for manually adding NIBI to the protocol + in exchange for an equivalent stablecoin value in collateral, effectively + executing a share buyback for Nibiru Chain. The NIBI purchased by the protocol + is then burned, distributing value to all NIBI hodlers. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'MintStable': grpc.unary_unary_rpc_method_handler( + servicer.MintStable, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStable.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStableResponse.SerializeToString, + ), + 'BurnStable': grpc.unary_unary_rpc_method_handler( + servicer.BurnStable, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStable.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStableResponse.SerializeToString, + ), + 'Recollateralize': grpc.unary_unary_rpc_method_handler( + servicer.Recollateralize, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralize.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralizeResponse.SerializeToString, + ), + 'Buyback': grpc.unary_unary_rpc_method_handler( + servicer.Buyback, + request_deserializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuyback.FromString, + response_serializer=nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuybackResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.stablecoin.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the x/stablecoin Msg service. + """ + + @staticmethod + def MintStable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Msg/MintStable', + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStable.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgMintStableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BurnStable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Msg/BurnStable', + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStable.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBurnStableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Recollateralize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Msg/Recollateralize', + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralize.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgRecollateralizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Buyback(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.stablecoin.v1.Msg/Buyback', + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuyback.SerializeToString, + nibiru_dot_stablecoin_dot_v1_dot_tx__pb2.MsgBuybackResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/sudo/__init__.py b/nibiru_proto/nibiru/sudo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/sudo/v1/__init__.py b/nibiru_proto/nibiru/sudo/v1/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/nibiru/sudo/v1/event_pb2.py b/nibiru_proto/nibiru/sudo/v1/event_pb2.py new file mode 100644 index 00000000..0efc6bfe --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/event_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/sudo/v1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from nibiru_proto.nibiru.sudo.v1 import state_pb2 as nibiru_dot_sudo_dot_v1_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/sudo/v1/event.proto\x12\x0enibiru.sudo.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1anibiru/sudo/v1/state.proto\"e\n\x12\x45ventUpdateSudoers\x12\x37\n\x07sudoers\x18\x01 \x01(\x0b\x32\x17.nibiru.sudo.v1.SudoersB\x04\xc8\xde\x1f\x00R\x07sudoers\x12\x16\n\x06\x61\x63tion\x18\x02 \x01(\tR\x06\x61\x63tionB,Z*github.com/NibiruChain/nibiru/x/sudo/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.sudo.v1.event_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/sudo/types' + _EVENTUPDATESUDOERS.fields_by_name['sudoers']._options = None + _EVENTUPDATESUDOERS.fields_by_name['sudoers']._serialized_options = b'\310\336\037\000' + _EVENTUPDATESUDOERS._serialized_start=126 + _EVENTUPDATESUDOERS._serialized_end=227 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/sudo/v1/event_pb2.pyi b/nibiru_proto/nibiru/sudo/v1/event_pb2.pyi new file mode 100644 index 00000000..d095ff3b --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/event_pb2.pyi @@ -0,0 +1,37 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import nibiru.sudo.v1.state_pb2 +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 EventUpdateSudoers(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUDOERS_FIELD_NUMBER: builtins.int + ACTION_FIELD_NUMBER: builtins.int + @property + def sudoers(self) -> nibiru.sudo.v1.state_pb2.Sudoers: ... + action: builtins.str + """Action is the type of update that occured to the "sudoers" """ + def __init__( + self, + *, + sudoers: nibiru.sudo.v1.state_pb2.Sudoers | None = ..., + action: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["sudoers", b"sudoers"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["action", b"action", "sudoers", b"sudoers"]) -> None: ... + +global___EventUpdateSudoers = EventUpdateSudoers diff --git a/nibiru_proto/nibiru/sudo/v1/event_pb2_grpc.py b/nibiru_proto/nibiru/sudo/v1/event_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/sudo/v1/query_pb2.py b/nibiru_proto/nibiru/sudo/v1/query_pb2.py new file mode 100644 index 00000000..b58c6031 --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/query_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/sudo/v1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from nibiru_proto.nibiru.sudo.v1 import state_pb2 as nibiru_dot_sudo_dot_v1_dot_state__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/sudo/v1/query.proto\x12\x0enibiru.sudo.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1anibiru/sudo/v1/state.proto\"\x15\n\x13QuerySudoersRequest\"O\n\x14QuerySudoersResponse\x12\x37\n\x07sudoers\x18\x01 \x01(\x0b\x32\x17.nibiru.sudo.v1.SudoersB\x04\xc8\xde\x1f\x00R\x07sudoers2\x80\x01\n\x05Query\x12w\n\x0cQuerySudoers\x12#.nibiru.sudo.v1.QuerySudoersRequest\x1a$.nibiru.sudo.v1.QuerySudoersResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/nibiru/sudo/sudoersB,Z*github.com/NibiruChain/nibiru/x/sudo/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.sudo.v1.query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/sudo/types' + _QUERYSUDOERSRESPONSE.fields_by_name['sudoers']._options = None + _QUERYSUDOERSRESPONSE.fields_by_name['sudoers']._serialized_options = b'\310\336\037\000' + _QUERY.methods_by_name['QuerySudoers']._options = None + _QUERY.methods_by_name['QuerySudoers']._serialized_options = b'\202\323\344\223\002\026\022\024/nibiru/sudo/sudoers' + _QUERYSUDOERSREQUEST._serialized_start=126 + _QUERYSUDOERSREQUEST._serialized_end=147 + _QUERYSUDOERSRESPONSE._serialized_start=149 + _QUERYSUDOERSRESPONSE._serialized_end=228 + _QUERY._serialized_start=231 + _QUERY._serialized_end=359 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/sudo/v1/query_pb2.pyi b/nibiru_proto/nibiru/sudo/v1/query_pb2.pyi new file mode 100644 index 00000000..151cd783 --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/query_pb2.pyi @@ -0,0 +1,45 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import nibiru.sudo.v1.state_pb2 +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 QuerySudoersRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___QuerySudoersRequest = QuerySudoersRequest + +@typing_extensions.final +class QuerySudoersResponse(google.protobuf.message.Message): + """QuerySudoersResponse indicates the successful execution of MsgEditSudeors.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUDOERS_FIELD_NUMBER: builtins.int + @property + def sudoers(self) -> nibiru.sudo.v1.state_pb2.Sudoers: ... + def __init__( + self, + *, + sudoers: nibiru.sudo.v1.state_pb2.Sudoers | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["sudoers", b"sudoers"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["sudoers", b"sudoers"]) -> None: ... + +global___QuerySudoersResponse = QuerySudoersResponse diff --git a/nibiru_proto/nibiru/sudo/v1/query_pb2_grpc.py b/nibiru_proto/nibiru/sudo/v1/query_pb2_grpc.py new file mode 100644 index 00000000..a208a766 --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/query_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.sudo.v1 import query_pb2 as nibiru_dot_sudo_dot_v1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.QuerySudoers = channel.unary_unary( + '/nibiru.sudo.v1.Query/QuerySudoers', + request_serializer=nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersRequest.SerializeToString, + response_deserializer=nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def QuerySudoers(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'QuerySudoers': grpc.unary_unary_rpc_method_handler( + servicer.QuerySudoers, + request_deserializer=nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersRequest.FromString, + response_serializer=nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.sudo.v1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def QuerySudoers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.sudo.v1.Query/QuerySudoers', + nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersRequest.SerializeToString, + nibiru_dot_sudo_dot_v1_dot_query__pb2.QuerySudoersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/nibiru/sudo/v1/state_pb2.py b/nibiru_proto/nibiru/sudo/v1/state_pb2.py new file mode 100644 index 00000000..75ce7c12 --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/state_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/sudo/v1/state.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/sudo/v1/state.proto\x12\x0enibiru.sudo.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"A\n\x07Sudoers\x12\x12\n\x04root\x18\x01 \x01(\tR\x04root\x12\x1c\n\tcontracts\x18\x02 \x03(\tR\tcontracts:\x04\x98\xa0\x1f\x00\"G\n\x0cGenesisState\x12\x37\n\x07sudoers\x18\x01 \x01(\x0b\x32\x17.nibiru.sudo.v1.SudoersB\x04\xc8\xde\x1f\x00R\x07sudoersB,Z*github.com/NibiruChain/nibiru/x/sudo/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.sudo.v1.state_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/sudo/types' + _SUDOERS._options = None + _SUDOERS._serialized_options = b'\230\240\037\000' + _GENESISSTATE.fields_by_name['sudoers']._options = None + _GENESISSTATE.fields_by_name['sudoers']._serialized_options = b'\310\336\037\000' + _SUDOERS._serialized_start=98 + _SUDOERS._serialized_end=163 + _GENESISSTATE._serialized_start=165 + _GENESISSTATE._serialized_end=236 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/sudo/v1/state_pb2.pyi b/nibiru_proto/nibiru/sudo/v1/state_pb2.pyi new file mode 100644 index 00000000..18a6360c --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/state_pb2.pyi @@ -0,0 +1,57 @@ +""" +@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 Sudoers(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOT_FIELD_NUMBER: builtins.int + CONTRACTS_FIELD_NUMBER: builtins.int + root: builtins.str + """Root: The "root" user.""" + @property + def contracts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Contracts: The set of contracts with elevated permissions.""" + def __init__( + self, + *, + root: builtins.str = ..., + contracts: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["contracts", b"contracts", "root", b"root"]) -> None: ... + +global___Sudoers = Sudoers + +@typing_extensions.final +class GenesisState(google.protobuf.message.Message): + """GenesisState defines the module's genesis state.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUDOERS_FIELD_NUMBER: builtins.int + @property + def sudoers(self) -> global___Sudoers: ... + def __init__( + self, + *, + sudoers: global___Sudoers | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["sudoers", b"sudoers"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["sudoers", b"sudoers"]) -> None: ... + +global___GenesisState = GenesisState diff --git a/nibiru_proto/nibiru/sudo/v1/state_pb2_grpc.py b/nibiru_proto/nibiru/sudo/v1/state_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/state_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/nibiru/sudo/v1/tx_pb2.py b/nibiru_proto/nibiru/sudo/v1/tx_pb2.py new file mode 100644 index 00000000..498e69fd --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/tx_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nibiru/sudo/v1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17nibiru/sudo/v1/tx.proto\x12\x0enibiru.sudo.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"^\n\x0eMsgEditSudoers\x12\x16\n\x06\x61\x63tion\x18\x01 \x01(\tR\x06\x61\x63tion\x12\x1c\n\tcontracts\x18\x02 \x03(\tR\tcontracts\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender\"\x18\n\x16MsgEditSudoersResponse\"B\n\rMsgChangeRoot\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x19\n\x08new_root\x18\x02 \x01(\tR\x07newRoot\"\x17\n\x15MsgChangeRootResponse2\xf5\x01\n\x03Msg\x12x\n\x0b\x45\x64itSudoers\x12\x1e.nibiru.sudo.v1.MsgEditSudoers\x1a&.nibiru.sudo.v1.MsgEditSudoersResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x19/nibiru/sudo/edit_sudoers\x12t\n\nChangeRoot\x12\x1d.nibiru.sudo.v1.MsgChangeRoot\x1a%.nibiru.sudo.v1.MsgChangeRootResponse\" \x82\xd3\xe4\x93\x02\x1a\"\x18/nibiru/sudo/change_rootB,Z*github.com/NibiruChain/nibiru/x/sudo/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.sudo.v1.tx_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z*github.com/NibiruChain/nibiru/x/sudo/types' + _MSG.methods_by_name['EditSudoers']._options = None + _MSG.methods_by_name['EditSudoers']._serialized_options = b'\202\323\344\223\002\033\"\031/nibiru/sudo/edit_sudoers' + _MSG.methods_by_name['ChangeRoot']._options = None + _MSG.methods_by_name['ChangeRoot']._serialized_options = b'\202\323\344\223\002\032\"\030/nibiru/sudo/change_root' + _MSGEDITSUDOERS._serialized_start=95 + _MSGEDITSUDOERS._serialized_end=189 + _MSGEDITSUDOERSRESPONSE._serialized_start=191 + _MSGEDITSUDOERSRESPONSE._serialized_end=215 + _MSGCHANGEROOT._serialized_start=217 + _MSGCHANGEROOT._serialized_end=283 + _MSGCHANGEROOTRESPONSE._serialized_start=285 + _MSGCHANGEROOTRESPONSE._serialized_end=308 + _MSG._serialized_start=311 + _MSG._serialized_end=556 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/nibiru/sudo/v1/tx_pb2.pyi b/nibiru_proto/nibiru/sudo/v1/tx_pb2.pyi new file mode 100644 index 00000000..d6a27740 --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/tx_pb2.pyi @@ -0,0 +1,99 @@ +""" +@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 MsgEditSudoers(google.protobuf.message.Message): + """-------------------------- EditSudoers -------------------------- + + MsgEditSudoers: Msg to update the "Sudoers" state. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTION_FIELD_NUMBER: builtins.int + CONTRACTS_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + action: builtins.str + """Action: identifier for the type of edit that will take place. Using this + action field prevents us from needing to create several similar message + types. + """ + @property + def contracts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Contracts: An input payload.""" + sender: builtins.str + """Sender: Address for the signer of the transaction.""" + def __init__( + self, + *, + action: builtins.str = ..., + contracts: collections.abc.Iterable[builtins.str] | None = ..., + sender: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["action", b"action", "contracts", b"contracts", "sender", b"sender"]) -> None: ... + +global___MsgEditSudoers = MsgEditSudoers + +@typing_extensions.final +class MsgEditSudoersResponse(google.protobuf.message.Message): + """MsgEditSudoersResponse indicates the successful execution of MsgEditSudeors.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgEditSudoersResponse = MsgEditSudoersResponse + +@typing_extensions.final +class MsgChangeRoot(google.protobuf.message.Message): + """-------------------------- ChangeRoot -------------------------- + + MsgChangeRoot: Msg to update the "Sudoers" state. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SENDER_FIELD_NUMBER: builtins.int + NEW_ROOT_FIELD_NUMBER: builtins.int + sender: builtins.str + """Sender: Address for the signer of the transaction.""" + new_root: builtins.str + """NewRoot: New root address.""" + def __init__( + self, + *, + sender: builtins.str = ..., + new_root: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["new_root", b"new_root", "sender", b"sender"]) -> None: ... + +global___MsgChangeRoot = MsgChangeRoot + +@typing_extensions.final +class MsgChangeRootResponse(google.protobuf.message.Message): + """MsgChangeRootResponse indicates the successful execution of MsgChangeRoot.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___MsgChangeRootResponse = MsgChangeRootResponse diff --git a/nibiru_proto/nibiru/sudo/v1/tx_pb2_grpc.py b/nibiru_proto/nibiru/sudo/v1/tx_pb2_grpc.py new file mode 100644 index 00000000..da591a1b --- /dev/null +++ b/nibiru_proto/nibiru/sudo/v1/tx_pb2_grpc.py @@ -0,0 +1,109 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from nibiru_proto.nibiru.sudo.v1 import tx_pb2 as nibiru_dot_sudo_dot_v1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the x/sudo module's Msg service. Protobuf `Msg` services are + called from `BaseApp` instances during `DeliverTx`. The `Msg` service will be + responsible for processing `sdk.Msg` requests. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.EditSudoers = channel.unary_unary( + '/nibiru.sudo.v1.Msg/EditSudoers', + request_serializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoers.SerializeToString, + response_deserializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoersResponse.FromString, + ) + self.ChangeRoot = channel.unary_unary( + '/nibiru.sudo.v1.Msg/ChangeRoot', + request_serializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRoot.SerializeToString, + response_deserializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRootResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the x/sudo module's Msg service. Protobuf `Msg` services are + called from `BaseApp` instances during `DeliverTx`. The `Msg` service will be + responsible for processing `sdk.Msg` requests. + """ + + def EditSudoers(self, request, context): + """EditSudoers updates the "Sudoers" state + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ChangeRoot(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'EditSudoers': grpc.unary_unary_rpc_method_handler( + servicer.EditSudoers, + request_deserializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoers.FromString, + response_serializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoersResponse.SerializeToString, + ), + 'ChangeRoot': grpc.unary_unary_rpc_method_handler( + servicer.ChangeRoot, + request_deserializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRoot.FromString, + response_serializer=nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRootResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nibiru.sudo.v1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the x/sudo module's Msg service. Protobuf `Msg` services are + called from `BaseApp` instances during `DeliverTx`. The `Msg` service will be + responsible for processing `sdk.Msg` requests. + """ + + @staticmethod + def EditSudoers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.sudo.v1.Msg/EditSudoers', + nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoers.SerializeToString, + nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgEditSudoersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ChangeRoot(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nibiru.sudo.v1.Msg/ChangeRoot', + nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRoot.SerializeToString, + nibiru_dot_sudo_dot_v1_dot_tx__pb2.MsgChangeRootResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/py.typed b/nibiru_proto/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/nibiru_proto/tendermint/abci/types_pb2.py b/nibiru_proto/tendermint/abci/types_pb2.py new file mode 100644 index 00000000..3b4582d1 --- /dev/null +++ b/nibiru_proto/tendermint/abci/types_pb2.py @@ -0,0 +1,190 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/abci/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from tendermint.crypto import proof_pb2 as tendermint_dot_crypto_dot_proof__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from tendermint.crypto import keys_pb2 as tendermint_dot_crypto_dot_keys__pb2 +from tendermint.types import params_pb2 as tendermint_dot_types_dot_params__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1btendermint/abci/types.proto\x12\x0ftendermint.abci\x1a\x1dtendermint/crypto/proof.proto\x1a\x1ctendermint/types/types.proto\x1a\x1ctendermint/crypto/keys.proto\x1a\x1dtendermint/types/params.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14gogoproto/gogo.proto\"\xff\x08\n\x07Request\x12\x32\n\x04\x65\x63ho\x18\x01 \x01(\x0b\x32\x1c.tendermint.abci.RequestEchoH\x00R\x04\x65\x63ho\x12\x35\n\x05\x66lush\x18\x02 \x01(\x0b\x32\x1d.tendermint.abci.RequestFlushH\x00R\x05\x66lush\x12\x32\n\x04info\x18\x03 \x01(\x0b\x32\x1c.tendermint.abci.RequestInfoH\x00R\x04info\x12\x42\n\ninit_chain\x18\x05 \x01(\x0b\x32!.tendermint.abci.RequestInitChainH\x00R\tinitChain\x12\x35\n\x05query\x18\x06 \x01(\x0b\x32\x1d.tendermint.abci.RequestQueryH\x00R\x05query\x12\x45\n\x0b\x62\x65gin_block\x18\x07 \x01(\x0b\x32\".tendermint.abci.RequestBeginBlockH\x00R\nbeginBlock\x12<\n\x08\x63heck_tx\x18\x08 \x01(\x0b\x32\x1f.tendermint.abci.RequestCheckTxH\x00R\x07\x63heckTx\x12\x42\n\ndeliver_tx\x18\t \x01(\x0b\x32!.tendermint.abci.RequestDeliverTxH\x00R\tdeliverTx\x12?\n\tend_block\x18\n \x01(\x0b\x32 .tendermint.abci.RequestEndBlockH\x00R\x08\x65ndBlock\x12\x38\n\x06\x63ommit\x18\x0b \x01(\x0b\x32\x1e.tendermint.abci.RequestCommitH\x00R\x06\x63ommit\x12N\n\x0elist_snapshots\x18\x0c \x01(\x0b\x32%.tendermint.abci.RequestListSnapshotsH\x00R\rlistSnapshots\x12N\n\x0eoffer_snapshot\x18\r \x01(\x0b\x32%.tendermint.abci.RequestOfferSnapshotH\x00R\rofferSnapshot\x12[\n\x13load_snapshot_chunk\x18\x0e \x01(\x0b\x32).tendermint.abci.RequestLoadSnapshotChunkH\x00R\x11loadSnapshotChunk\x12^\n\x14\x61pply_snapshot_chunk\x18\x0f \x01(\x0b\x32*.tendermint.abci.RequestApplySnapshotChunkH\x00R\x12\x61pplySnapshotChunk\x12T\n\x10prepare_proposal\x18\x10 \x01(\x0b\x32\'.tendermint.abci.RequestPrepareProposalH\x00R\x0fprepareProposal\x12T\n\x10process_proposal\x18\x11 \x01(\x0b\x32\'.tendermint.abci.RequestProcessProposalH\x00R\x0fprocessProposalB\x07\n\x05valueJ\x04\x08\x04\x10\x05\"\'\n\x0bRequestEcho\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message\"\x0e\n\x0cRequestFlush\"\x90\x01\n\x0bRequestInfo\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12#\n\rblock_version\x18\x02 \x01(\x04R\x0c\x62lockVersion\x12\x1f\n\x0bp2p_version\x18\x03 \x01(\x04R\np2pVersion\x12!\n\x0c\x61\x62\x63i_version\x18\x04 \x01(\tR\x0b\x61\x62\x63iVersion\"\xcc\x02\n\x10RequestInitChain\x12\x38\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x04time\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12L\n\x10\x63onsensus_params\x18\x03 \x01(\x0b\x32!.tendermint.types.ConsensusParamsR\x0f\x63onsensusParams\x12\x46\n\nvalidators\x18\x04 \x03(\x0b\x32 .tendermint.abci.ValidatorUpdateB\x04\xc8\xde\x1f\x00R\nvalidators\x12&\n\x0f\x61pp_state_bytes\x18\x05 \x01(\x0cR\rappStateBytes\x12%\n\x0einitial_height\x18\x06 \x01(\x03R\rinitialHeight\"d\n\x0cRequestQuery\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\x12\x12\n\x04path\x18\x02 \x01(\tR\x04path\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12\x14\n\x05prove\x18\x04 \x01(\x08R\x05prove\"\x83\x02\n\x11RequestBeginBlock\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12\x36\n\x06header\x18\x02 \x01(\x0b\x32\x18.tendermint.types.HeaderB\x04\xc8\xde\x1f\x00R\x06header\x12K\n\x10last_commit_info\x18\x03 \x01(\x0b\x32\x1b.tendermint.abci.CommitInfoB\x04\xc8\xde\x1f\x00R\x0elastCommitInfo\x12U\n\x14\x62yzantine_validators\x18\x04 \x03(\x0b\x32\x1c.tendermint.abci.MisbehaviorB\x04\xc8\xde\x1f\x00R\x13\x62yzantineValidators\"R\n\x0eRequestCheckTx\x12\x0e\n\x02tx\x18\x01 \x01(\x0cR\x02tx\x12\x30\n\x04type\x18\x02 \x01(\x0e\x32\x1c.tendermint.abci.CheckTxTypeR\x04type\"\"\n\x10RequestDeliverTx\x12\x0e\n\x02tx\x18\x01 \x01(\x0cR\x02tx\")\n\x0fRequestEndBlock\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\"\x0f\n\rRequestCommit\"\x16\n\x14RequestListSnapshots\"h\n\x14RequestOfferSnapshot\x12\x35\n\x08snapshot\x18\x01 \x01(\x0b\x32\x19.tendermint.abci.SnapshotR\x08snapshot\x12\x19\n\x08\x61pp_hash\x18\x02 \x01(\x0cR\x07\x61ppHash\"`\n\x18RequestLoadSnapshotChunk\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x16\n\x06\x66ormat\x18\x02 \x01(\rR\x06\x66ormat\x12\x14\n\x05\x63hunk\x18\x03 \x01(\rR\x05\x63hunk\"_\n\x19RequestApplySnapshotChunk\x12\x14\n\x05index\x18\x01 \x01(\rR\x05index\x12\x14\n\x05\x63hunk\x18\x02 \x01(\x0cR\x05\x63hunk\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender\"\x98\x03\n\x16RequestPrepareProposal\x12 \n\x0cmax_tx_bytes\x18\x01 \x01(\x03R\nmaxTxBytes\x12\x10\n\x03txs\x18\x02 \x03(\x0cR\x03txs\x12U\n\x11local_last_commit\x18\x03 \x01(\x0b\x32#.tendermint.abci.ExtendedCommitInfoB\x04\xc8\xde\x1f\x00R\x0flocalLastCommit\x12\x44\n\x0bmisbehavior\x18\x04 \x03(\x0b\x32\x1c.tendermint.abci.MisbehaviorB\x04\xc8\xde\x1f\x00R\x0bmisbehavior\x12\x16\n\x06height\x18\x05 \x01(\x03R\x06height\x12\x38\n\x04time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x04time\x12\x30\n\x14next_validators_hash\x18\x07 \x01(\x0cR\x12nextValidatorsHash\x12)\n\x10proposer_address\x18\x08 \x01(\x0cR\x0fproposerAddress\"\x88\x03\n\x16RequestProcessProposal\x12\x10\n\x03txs\x18\x01 \x03(\x0cR\x03txs\x12S\n\x14proposed_last_commit\x18\x02 \x01(\x0b\x32\x1b.tendermint.abci.CommitInfoB\x04\xc8\xde\x1f\x00R\x12proposedLastCommit\x12\x44\n\x0bmisbehavior\x18\x03 \x03(\x0b\x32\x1c.tendermint.abci.MisbehaviorB\x04\xc8\xde\x1f\x00R\x0bmisbehavior\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\x12\x16\n\x06height\x18\x05 \x01(\x03R\x06height\x12\x38\n\x04time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x04time\x12\x30\n\x14next_validators_hash\x18\x07 \x01(\x0cR\x12nextValidatorsHash\x12)\n\x10proposer_address\x18\x08 \x01(\x0cR\x0fproposerAddress\"\xd4\t\n\x08Response\x12\x42\n\texception\x18\x01 \x01(\x0b\x32\".tendermint.abci.ResponseExceptionH\x00R\texception\x12\x33\n\x04\x65\x63ho\x18\x02 \x01(\x0b\x32\x1d.tendermint.abci.ResponseEchoH\x00R\x04\x65\x63ho\x12\x36\n\x05\x66lush\x18\x03 \x01(\x0b\x32\x1e.tendermint.abci.ResponseFlushH\x00R\x05\x66lush\x12\x33\n\x04info\x18\x04 \x01(\x0b\x32\x1d.tendermint.abci.ResponseInfoH\x00R\x04info\x12\x43\n\ninit_chain\x18\x06 \x01(\x0b\x32\".tendermint.abci.ResponseInitChainH\x00R\tinitChain\x12\x36\n\x05query\x18\x07 \x01(\x0b\x32\x1e.tendermint.abci.ResponseQueryH\x00R\x05query\x12\x46\n\x0b\x62\x65gin_block\x18\x08 \x01(\x0b\x32#.tendermint.abci.ResponseBeginBlockH\x00R\nbeginBlock\x12=\n\x08\x63heck_tx\x18\t \x01(\x0b\x32 .tendermint.abci.ResponseCheckTxH\x00R\x07\x63heckTx\x12\x43\n\ndeliver_tx\x18\n \x01(\x0b\x32\".tendermint.abci.ResponseDeliverTxH\x00R\tdeliverTx\x12@\n\tend_block\x18\x0b \x01(\x0b\x32!.tendermint.abci.ResponseEndBlockH\x00R\x08\x65ndBlock\x12\x39\n\x06\x63ommit\x18\x0c \x01(\x0b\x32\x1f.tendermint.abci.ResponseCommitH\x00R\x06\x63ommit\x12O\n\x0elist_snapshots\x18\r \x01(\x0b\x32&.tendermint.abci.ResponseListSnapshotsH\x00R\rlistSnapshots\x12O\n\x0eoffer_snapshot\x18\x0e \x01(\x0b\x32&.tendermint.abci.ResponseOfferSnapshotH\x00R\rofferSnapshot\x12\\\n\x13load_snapshot_chunk\x18\x0f \x01(\x0b\x32*.tendermint.abci.ResponseLoadSnapshotChunkH\x00R\x11loadSnapshotChunk\x12_\n\x14\x61pply_snapshot_chunk\x18\x10 \x01(\x0b\x32+.tendermint.abci.ResponseApplySnapshotChunkH\x00R\x12\x61pplySnapshotChunk\x12U\n\x10prepare_proposal\x18\x11 \x01(\x0b\x32(.tendermint.abci.ResponsePrepareProposalH\x00R\x0fprepareProposal\x12U\n\x10process_proposal\x18\x12 \x01(\x0b\x32(.tendermint.abci.ResponseProcessProposalH\x00R\x0fprocessProposalB\x07\n\x05valueJ\x04\x08\x05\x10\x06\")\n\x11ResponseException\x12\x14\n\x05\x65rror\x18\x01 \x01(\tR\x05\x65rror\"(\n\x0cResponseEcho\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message\"\x0f\n\rResponseFlush\"\xb8\x01\n\x0cResponseInfo\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\tR\x04\x64\x61ta\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x1f\n\x0b\x61pp_version\x18\x03 \x01(\x04R\nappVersion\x12*\n\x11last_block_height\x18\x04 \x01(\x03R\x0flastBlockHeight\x12-\n\x13last_block_app_hash\x18\x05 \x01(\x0cR\x10lastBlockAppHash\"\xc4\x01\n\x11ResponseInitChain\x12L\n\x10\x63onsensus_params\x18\x01 \x01(\x0b\x32!.tendermint.types.ConsensusParamsR\x0f\x63onsensusParams\x12\x46\n\nvalidators\x18\x02 \x03(\x0b\x32 .tendermint.abci.ValidatorUpdateB\x04\xc8\xde\x1f\x00R\nvalidators\x12\x19\n\x08\x61pp_hash\x18\x03 \x01(\x0cR\x07\x61ppHash\"\xf7\x01\n\rResponseQuery\x12\x12\n\x04\x63ode\x18\x01 \x01(\rR\x04\x63ode\x12\x10\n\x03log\x18\x03 \x01(\tR\x03log\x12\x12\n\x04info\x18\x04 \x01(\tR\x04info\x12\x14\n\x05index\x18\x05 \x01(\x03R\x05index\x12\x10\n\x03key\x18\x06 \x01(\x0cR\x03key\x12\x14\n\x05value\x18\x07 \x01(\x0cR\x05value\x12\x38\n\tproof_ops\x18\x08 \x01(\x0b\x32\x1b.tendermint.crypto.ProofOpsR\x08proofOps\x12\x16\n\x06height\x18\t \x01(\x03R\x06height\x12\x1c\n\tcodespace\x18\n \x01(\tR\tcodespace\"^\n\x12ResponseBeginBlock\x12H\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x16.tendermint.abci.EventB\x18\xc8\xde\x1f\x00\xea\xde\x1f\x10\x65vents,omitemptyR\x06\x65vents\"\xdc\x02\n\x0fResponseCheckTx\x12\x12\n\x04\x63ode\x18\x01 \x01(\rR\x04\x63ode\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta\x12\x10\n\x03log\x18\x03 \x01(\tR\x03log\x12\x12\n\x04info\x18\x04 \x01(\tR\x04info\x12\x1e\n\ngas_wanted\x18\x05 \x01(\x03R\ngas_wanted\x12\x1a\n\x08gas_used\x18\x06 \x01(\x03R\x08gas_used\x12H\n\x06\x65vents\x18\x07 \x03(\x0b\x32\x16.tendermint.abci.EventB\x18\xc8\xde\x1f\x00\xea\xde\x1f\x10\x65vents,omitemptyR\x06\x65vents\x12\x1c\n\tcodespace\x18\x08 \x01(\tR\tcodespace\x12\x16\n\x06sender\x18\t \x01(\tR\x06sender\x12\x1a\n\x08priority\x18\n \x01(\x03R\x08priority\x12#\n\rmempool_error\x18\x0b \x01(\tR\x0cmempoolError\"\x85\x02\n\x11ResponseDeliverTx\x12\x12\n\x04\x63ode\x18\x01 \x01(\rR\x04\x63ode\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta\x12\x10\n\x03log\x18\x03 \x01(\tR\x03log\x12\x12\n\x04info\x18\x04 \x01(\tR\x04info\x12\x1e\n\ngas_wanted\x18\x05 \x01(\x03R\ngas_wanted\x12\x1a\n\x08gas_used\x18\x06 \x01(\x03R\x08gas_used\x12H\n\x06\x65vents\x18\x07 \x03(\x0b\x32\x16.tendermint.abci.EventB\x18\xc8\xde\x1f\x00\xea\xde\x1f\x10\x65vents,omitemptyR\x06\x65vents\x12\x1c\n\tcodespace\x18\x08 \x01(\tR\tcodespace\"\x8c\x02\n\x10ResponseEndBlock\x12S\n\x11validator_updates\x18\x01 \x03(\x0b\x32 .tendermint.abci.ValidatorUpdateB\x04\xc8\xde\x1f\x00R\x10validatorUpdates\x12Y\n\x17\x63onsensus_param_updates\x18\x02 \x01(\x0b\x32!.tendermint.types.ConsensusParamsR\x15\x63onsensusParamUpdates\x12H\n\x06\x65vents\x18\x03 \x03(\x0b\x32\x16.tendermint.abci.EventB\x18\xc8\xde\x1f\x00\xea\xde\x1f\x10\x65vents,omitemptyR\x06\x65vents\"I\n\x0eResponseCommit\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta\x12#\n\rretain_height\x18\x03 \x01(\x03R\x0cretainHeight\"P\n\x15ResponseListSnapshots\x12\x37\n\tsnapshots\x18\x01 \x03(\x0b\x32\x19.tendermint.abci.SnapshotR\tsnapshots\"\xbe\x01\n\x15ResponseOfferSnapshot\x12\x45\n\x06result\x18\x01 \x01(\x0e\x32-.tendermint.abci.ResponseOfferSnapshot.ResultR\x06result\"^\n\x06Result\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x43\x43\x45PT\x10\x01\x12\t\n\x05\x41\x42ORT\x10\x02\x12\n\n\x06REJECT\x10\x03\x12\x11\n\rREJECT_FORMAT\x10\x04\x12\x11\n\rREJECT_SENDER\x10\x05\"1\n\x19ResponseLoadSnapshotChunk\x12\x14\n\x05\x63hunk\x18\x01 \x01(\x0cR\x05\x63hunk\"\x98\x02\n\x1aResponseApplySnapshotChunk\x12J\n\x06result\x18\x01 \x01(\x0e\x32\x32.tendermint.abci.ResponseApplySnapshotChunk.ResultR\x06result\x12%\n\x0erefetch_chunks\x18\x02 \x03(\rR\rrefetchChunks\x12%\n\x0ereject_senders\x18\x03 \x03(\tR\rrejectSenders\"`\n\x06Result\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x43\x43\x45PT\x10\x01\x12\t\n\x05\x41\x42ORT\x10\x02\x12\t\n\x05RETRY\x10\x03\x12\x12\n\x0eRETRY_SNAPSHOT\x10\x04\x12\x13\n\x0fREJECT_SNAPSHOT\x10\x05\"+\n\x17ResponsePrepareProposal\x12\x10\n\x03txs\x18\x01 \x03(\x0cR\x03txs\"\xa1\x01\n\x17ResponseProcessProposal\x12O\n\x06status\x18\x01 \x01(\x0e\x32\x37.tendermint.abci.ResponseProcessProposal.ProposalStatusR\x06status\"5\n\x0eProposalStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x43\x43\x45PT\x10\x01\x12\n\n\x06REJECT\x10\x02\"Y\n\nCommitInfo\x12\x14\n\x05round\x18\x01 \x01(\x05R\x05round\x12\x35\n\x05votes\x18\x02 \x03(\x0b\x32\x19.tendermint.abci.VoteInfoB\x04\xc8\xde\x1f\x00R\x05votes\"i\n\x12\x45xtendedCommitInfo\x12\x14\n\x05round\x18\x01 \x01(\x05R\x05round\x12=\n\x05votes\x18\x02 \x03(\x0b\x32!.tendermint.abci.ExtendedVoteInfoB\x04\xc8\xde\x1f\x00R\x05votes\"z\n\x05\x45vent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12]\n\nattributes\x18\x02 \x03(\x0b\x32\x1f.tendermint.abci.EventAttributeB\x1c\xc8\xde\x1f\x00\xea\xde\x1f\x14\x61ttributes,omitemptyR\nattributes\"N\n\x0e\x45ventAttribute\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x14\n\x05index\x18\x03 \x01(\x08R\x05index\"\x8a\x01\n\x08TxResult\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12\x0e\n\x02tx\x18\x03 \x01(\x0cR\x02tx\x12@\n\x06result\x18\x04 \x01(\x0b\x32\".tendermint.abci.ResponseDeliverTxB\x04\xc8\xde\x1f\x00R\x06result\";\n\tValidator\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0cR\x07\x61\x64\x64ress\x12\x14\n\x05power\x18\x03 \x01(\x03R\x05power\"d\n\x0fValidatorUpdate\x12;\n\x07pub_key\x18\x01 \x01(\x0b\x32\x1c.tendermint.crypto.PublicKeyB\x04\xc8\xde\x1f\x00R\x06pubKey\x12\x14\n\x05power\x18\x02 \x01(\x03R\x05power\"v\n\x08VoteInfo\x12>\n\tvalidator\x18\x01 \x01(\x0b\x32\x1a.tendermint.abci.ValidatorB\x04\xc8\xde\x1f\x00R\tvalidator\x12*\n\x11signed_last_block\x18\x02 \x01(\x08R\x0fsignedLastBlock\"\xa5\x01\n\x10\x45xtendedVoteInfo\x12>\n\tvalidator\x18\x01 \x01(\x0b\x32\x1a.tendermint.abci.ValidatorB\x04\xc8\xde\x1f\x00R\tvalidator\x12*\n\x11signed_last_block\x18\x02 \x01(\x08R\x0fsignedLastBlock\x12%\n\x0evote_extension\x18\x03 \x01(\x0cR\rvoteExtension\"\x83\x02\n\x0bMisbehavior\x12\x34\n\x04type\x18\x01 \x01(\x0e\x32 .tendermint.abci.MisbehaviorTypeR\x04type\x12>\n\tvalidator\x18\x02 \x01(\x0b\x32\x1a.tendermint.abci.ValidatorB\x04\xc8\xde\x1f\x00R\tvalidator\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12\x38\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x04time\x12,\n\x12total_voting_power\x18\x05 \x01(\x03R\x10totalVotingPower\"\x82\x01\n\x08Snapshot\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x16\n\x06\x66ormat\x18\x02 \x01(\rR\x06\x66ormat\x12\x16\n\x06\x63hunks\x18\x03 \x01(\rR\x06\x63hunks\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\x12\x1a\n\x08metadata\x18\x05 \x01(\x0cR\x08metadata*9\n\x0b\x43heckTxType\x12\x10\n\x03NEW\x10\x00\x1a\x07\x8a\x9d \x03New\x12\x18\n\x07RECHECK\x10\x01\x1a\x0b\x8a\x9d \x07Recheck*K\n\x0fMisbehaviorType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x12\n\x0e\x44UPLICATE_VOTE\x10\x01\x12\x17\n\x13LIGHT_CLIENT_ATTACK\x10\x02\x32\xfb\n\n\x0f\x41\x42\x43IApplication\x12\x43\n\x04\x45\x63ho\x12\x1c.tendermint.abci.RequestEcho\x1a\x1d.tendermint.abci.ResponseEcho\x12\x46\n\x05\x46lush\x12\x1d.tendermint.abci.RequestFlush\x1a\x1e.tendermint.abci.ResponseFlush\x12\x43\n\x04Info\x12\x1c.tendermint.abci.RequestInfo\x1a\x1d.tendermint.abci.ResponseInfo\x12R\n\tDeliverTx\x12!.tendermint.abci.RequestDeliverTx\x1a\".tendermint.abci.ResponseDeliverTx\x12L\n\x07\x43heckTx\x12\x1f.tendermint.abci.RequestCheckTx\x1a .tendermint.abci.ResponseCheckTx\x12\x46\n\x05Query\x12\x1d.tendermint.abci.RequestQuery\x1a\x1e.tendermint.abci.ResponseQuery\x12I\n\x06\x43ommit\x12\x1e.tendermint.abci.RequestCommit\x1a\x1f.tendermint.abci.ResponseCommit\x12R\n\tInitChain\x12!.tendermint.abci.RequestInitChain\x1a\".tendermint.abci.ResponseInitChain\x12U\n\nBeginBlock\x12\".tendermint.abci.RequestBeginBlock\x1a#.tendermint.abci.ResponseBeginBlock\x12O\n\x08\x45ndBlock\x12 .tendermint.abci.RequestEndBlock\x1a!.tendermint.abci.ResponseEndBlock\x12^\n\rListSnapshots\x12%.tendermint.abci.RequestListSnapshots\x1a&.tendermint.abci.ResponseListSnapshots\x12^\n\rOfferSnapshot\x12%.tendermint.abci.RequestOfferSnapshot\x1a&.tendermint.abci.ResponseOfferSnapshot\x12j\n\x11LoadSnapshotChunk\x12).tendermint.abci.RequestLoadSnapshotChunk\x1a*.tendermint.abci.ResponseLoadSnapshotChunk\x12m\n\x12\x41pplySnapshotChunk\x12*.tendermint.abci.RequestApplySnapshotChunk\x1a+.tendermint.abci.ResponseApplySnapshotChunk\x12\x64\n\x0fPrepareProposal\x12\'.tendermint.abci.RequestPrepareProposal\x1a(.tendermint.abci.ResponsePrepareProposal\x12\x64\n\x0fProcessProposal\x12\'.tendermint.abci.RequestProcessProposal\x1a(.tendermint.abci.ResponseProcessProposalB)Z\'github.com/cometbft/cometbft/abci/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.abci.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\'github.com/cometbft/cometbft/abci/types' + _CHECKTXTYPE.values_by_name["NEW"]._options = None + _CHECKTXTYPE.values_by_name["NEW"]._serialized_options = b'\212\235 \003New' + _CHECKTXTYPE.values_by_name["RECHECK"]._options = None + _CHECKTXTYPE.values_by_name["RECHECK"]._serialized_options = b'\212\235 \007Recheck' + _REQUESTINITCHAIN.fields_by_name['time']._options = None + _REQUESTINITCHAIN.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _REQUESTINITCHAIN.fields_by_name['validators']._options = None + _REQUESTINITCHAIN.fields_by_name['validators']._serialized_options = b'\310\336\037\000' + _REQUESTBEGINBLOCK.fields_by_name['header']._options = None + _REQUESTBEGINBLOCK.fields_by_name['header']._serialized_options = b'\310\336\037\000' + _REQUESTBEGINBLOCK.fields_by_name['last_commit_info']._options = None + _REQUESTBEGINBLOCK.fields_by_name['last_commit_info']._serialized_options = b'\310\336\037\000' + _REQUESTBEGINBLOCK.fields_by_name['byzantine_validators']._options = None + _REQUESTBEGINBLOCK.fields_by_name['byzantine_validators']._serialized_options = b'\310\336\037\000' + _REQUESTPREPAREPROPOSAL.fields_by_name['local_last_commit']._options = None + _REQUESTPREPAREPROPOSAL.fields_by_name['local_last_commit']._serialized_options = b'\310\336\037\000' + _REQUESTPREPAREPROPOSAL.fields_by_name['misbehavior']._options = None + _REQUESTPREPAREPROPOSAL.fields_by_name['misbehavior']._serialized_options = b'\310\336\037\000' + _REQUESTPREPAREPROPOSAL.fields_by_name['time']._options = None + _REQUESTPREPAREPROPOSAL.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _REQUESTPROCESSPROPOSAL.fields_by_name['proposed_last_commit']._options = None + _REQUESTPROCESSPROPOSAL.fields_by_name['proposed_last_commit']._serialized_options = b'\310\336\037\000' + _REQUESTPROCESSPROPOSAL.fields_by_name['misbehavior']._options = None + _REQUESTPROCESSPROPOSAL.fields_by_name['misbehavior']._serialized_options = b'\310\336\037\000' + _REQUESTPROCESSPROPOSAL.fields_by_name['time']._options = None + _REQUESTPROCESSPROPOSAL.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _RESPONSEINITCHAIN.fields_by_name['validators']._options = None + _RESPONSEINITCHAIN.fields_by_name['validators']._serialized_options = b'\310\336\037\000' + _RESPONSEBEGINBLOCK.fields_by_name['events']._options = None + _RESPONSEBEGINBLOCK.fields_by_name['events']._serialized_options = b'\310\336\037\000\352\336\037\020events,omitempty' + _RESPONSECHECKTX.fields_by_name['events']._options = None + _RESPONSECHECKTX.fields_by_name['events']._serialized_options = b'\310\336\037\000\352\336\037\020events,omitempty' + _RESPONSEDELIVERTX.fields_by_name['events']._options = None + _RESPONSEDELIVERTX.fields_by_name['events']._serialized_options = b'\310\336\037\000\352\336\037\020events,omitempty' + _RESPONSEENDBLOCK.fields_by_name['validator_updates']._options = None + _RESPONSEENDBLOCK.fields_by_name['validator_updates']._serialized_options = b'\310\336\037\000' + _RESPONSEENDBLOCK.fields_by_name['events']._options = None + _RESPONSEENDBLOCK.fields_by_name['events']._serialized_options = b'\310\336\037\000\352\336\037\020events,omitempty' + _COMMITINFO.fields_by_name['votes']._options = None + _COMMITINFO.fields_by_name['votes']._serialized_options = b'\310\336\037\000' + _EXTENDEDCOMMITINFO.fields_by_name['votes']._options = None + _EXTENDEDCOMMITINFO.fields_by_name['votes']._serialized_options = b'\310\336\037\000' + _EVENT.fields_by_name['attributes']._options = None + _EVENT.fields_by_name['attributes']._serialized_options = b'\310\336\037\000\352\336\037\024attributes,omitempty' + _TXRESULT.fields_by_name['result']._options = None + _TXRESULT.fields_by_name['result']._serialized_options = b'\310\336\037\000' + _VALIDATORUPDATE.fields_by_name['pub_key']._options = None + _VALIDATORUPDATE.fields_by_name['pub_key']._serialized_options = b'\310\336\037\000' + _VOTEINFO.fields_by_name['validator']._options = None + _VOTEINFO.fields_by_name['validator']._serialized_options = b'\310\336\037\000' + _EXTENDEDVOTEINFO.fields_by_name['validator']._options = None + _EXTENDEDVOTEINFO.fields_by_name['validator']._serialized_options = b'\310\336\037\000' + _MISBEHAVIOR.fields_by_name['validator']._options = None + _MISBEHAVIOR.fields_by_name['validator']._serialized_options = b'\310\336\037\000' + _MISBEHAVIOR.fields_by_name['time']._options = None + _MISBEHAVIOR.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _CHECKTXTYPE._serialized_start=8834 + _CHECKTXTYPE._serialized_end=8891 + _MISBEHAVIORTYPE._serialized_start=8893 + _MISBEHAVIORTYPE._serialized_end=8968 + _REQUEST._serialized_start=226 + _REQUEST._serialized_end=1377 + _REQUESTECHO._serialized_start=1379 + _REQUESTECHO._serialized_end=1418 + _REQUESTFLUSH._serialized_start=1420 + _REQUESTFLUSH._serialized_end=1434 + _REQUESTINFO._serialized_start=1437 + _REQUESTINFO._serialized_end=1581 + _REQUESTINITCHAIN._serialized_start=1584 + _REQUESTINITCHAIN._serialized_end=1916 + _REQUESTQUERY._serialized_start=1918 + _REQUESTQUERY._serialized_end=2018 + _REQUESTBEGINBLOCK._serialized_start=2021 + _REQUESTBEGINBLOCK._serialized_end=2280 + _REQUESTCHECKTX._serialized_start=2282 + _REQUESTCHECKTX._serialized_end=2364 + _REQUESTDELIVERTX._serialized_start=2366 + _REQUESTDELIVERTX._serialized_end=2400 + _REQUESTENDBLOCK._serialized_start=2402 + _REQUESTENDBLOCK._serialized_end=2443 + _REQUESTCOMMIT._serialized_start=2445 + _REQUESTCOMMIT._serialized_end=2460 + _REQUESTLISTSNAPSHOTS._serialized_start=2462 + _REQUESTLISTSNAPSHOTS._serialized_end=2484 + _REQUESTOFFERSNAPSHOT._serialized_start=2486 + _REQUESTOFFERSNAPSHOT._serialized_end=2590 + _REQUESTLOADSNAPSHOTCHUNK._serialized_start=2592 + _REQUESTLOADSNAPSHOTCHUNK._serialized_end=2688 + _REQUESTAPPLYSNAPSHOTCHUNK._serialized_start=2690 + _REQUESTAPPLYSNAPSHOTCHUNK._serialized_end=2785 + _REQUESTPREPAREPROPOSAL._serialized_start=2788 + _REQUESTPREPAREPROPOSAL._serialized_end=3196 + _REQUESTPROCESSPROPOSAL._serialized_start=3199 + _REQUESTPROCESSPROPOSAL._serialized_end=3591 + _RESPONSE._serialized_start=3594 + _RESPONSE._serialized_end=4830 + _RESPONSEEXCEPTION._serialized_start=4832 + _RESPONSEEXCEPTION._serialized_end=4873 + _RESPONSEECHO._serialized_start=4875 + _RESPONSEECHO._serialized_end=4915 + _RESPONSEFLUSH._serialized_start=4917 + _RESPONSEFLUSH._serialized_end=4932 + _RESPONSEINFO._serialized_start=4935 + _RESPONSEINFO._serialized_end=5119 + _RESPONSEINITCHAIN._serialized_start=5122 + _RESPONSEINITCHAIN._serialized_end=5318 + _RESPONSEQUERY._serialized_start=5321 + _RESPONSEQUERY._serialized_end=5568 + _RESPONSEBEGINBLOCK._serialized_start=5570 + _RESPONSEBEGINBLOCK._serialized_end=5664 + _RESPONSECHECKTX._serialized_start=5667 + _RESPONSECHECKTX._serialized_end=6015 + _RESPONSEDELIVERTX._serialized_start=6018 + _RESPONSEDELIVERTX._serialized_end=6279 + _RESPONSEENDBLOCK._serialized_start=6282 + _RESPONSEENDBLOCK._serialized_end=6550 + _RESPONSECOMMIT._serialized_start=6552 + _RESPONSECOMMIT._serialized_end=6625 + _RESPONSELISTSNAPSHOTS._serialized_start=6627 + _RESPONSELISTSNAPSHOTS._serialized_end=6707 + _RESPONSEOFFERSNAPSHOT._serialized_start=6710 + _RESPONSEOFFERSNAPSHOT._serialized_end=6900 + _RESPONSEOFFERSNAPSHOT_RESULT._serialized_start=6806 + _RESPONSEOFFERSNAPSHOT_RESULT._serialized_end=6900 + _RESPONSELOADSNAPSHOTCHUNK._serialized_start=6902 + _RESPONSELOADSNAPSHOTCHUNK._serialized_end=6951 + _RESPONSEAPPLYSNAPSHOTCHUNK._serialized_start=6954 + _RESPONSEAPPLYSNAPSHOTCHUNK._serialized_end=7234 + _RESPONSEAPPLYSNAPSHOTCHUNK_RESULT._serialized_start=7138 + _RESPONSEAPPLYSNAPSHOTCHUNK_RESULT._serialized_end=7234 + _RESPONSEPREPAREPROPOSAL._serialized_start=7236 + _RESPONSEPREPAREPROPOSAL._serialized_end=7279 + _RESPONSEPROCESSPROPOSAL._serialized_start=7282 + _RESPONSEPROCESSPROPOSAL._serialized_end=7443 + _RESPONSEPROCESSPROPOSAL_PROPOSALSTATUS._serialized_start=7390 + _RESPONSEPROCESSPROPOSAL_PROPOSALSTATUS._serialized_end=7443 + _COMMITINFO._serialized_start=7445 + _COMMITINFO._serialized_end=7534 + _EXTENDEDCOMMITINFO._serialized_start=7536 + _EXTENDEDCOMMITINFO._serialized_end=7641 + _EVENT._serialized_start=7643 + _EVENT._serialized_end=7765 + _EVENTATTRIBUTE._serialized_start=7767 + _EVENTATTRIBUTE._serialized_end=7845 + _TXRESULT._serialized_start=7848 + _TXRESULT._serialized_end=7986 + _VALIDATOR._serialized_start=7988 + _VALIDATOR._serialized_end=8047 + _VALIDATORUPDATE._serialized_start=8049 + _VALIDATORUPDATE._serialized_end=8149 + _VOTEINFO._serialized_start=8151 + _VOTEINFO._serialized_end=8269 + _EXTENDEDVOTEINFO._serialized_start=8272 + _EXTENDEDVOTEINFO._serialized_end=8437 + _MISBEHAVIOR._serialized_start=8440 + _MISBEHAVIOR._serialized_end=8699 + _SNAPSHOT._serialized_start=8702 + _SNAPSHOT._serialized_end=8832 + _ABCIAPPLICATION._serialized_start=8971 + _ABCIAPPLICATION._serialized_end=10374 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/abci/types_pb2.pyi b/nibiru_proto/tendermint/abci/types_pb2.pyi new file mode 100644 index 00000000..8d0b1822 --- /dev/null +++ b/nibiru_proto/tendermint/abci/types_pb2.pyi @@ -0,0 +1,1354 @@ +""" +@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.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import tendermint.crypto.keys_pb2 +import tendermint.crypto.proof_pb2 +import tendermint.types.params_pb2 +import tendermint.types.types_pb2 +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _CheckTxType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _CheckTxTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CheckTxType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NEW: _CheckTxType.ValueType # 0 + RECHECK: _CheckTxType.ValueType # 1 + +class CheckTxType(_CheckTxType, metaclass=_CheckTxTypeEnumTypeWrapper): ... + +NEW: CheckTxType.ValueType # 0 +RECHECK: CheckTxType.ValueType # 1 +global___CheckTxType = CheckTxType + +class _MisbehaviorType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _MisbehaviorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MisbehaviorType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: _MisbehaviorType.ValueType # 0 + DUPLICATE_VOTE: _MisbehaviorType.ValueType # 1 + LIGHT_CLIENT_ATTACK: _MisbehaviorType.ValueType # 2 + +class MisbehaviorType(_MisbehaviorType, metaclass=_MisbehaviorTypeEnumTypeWrapper): ... + +UNKNOWN: MisbehaviorType.ValueType # 0 +DUPLICATE_VOTE: MisbehaviorType.ValueType # 1 +LIGHT_CLIENT_ATTACK: MisbehaviorType.ValueType # 2 +global___MisbehaviorType = MisbehaviorType + +@typing_extensions.final +class Request(google.protobuf.message.Message): + """---------------------------------------- + Request types + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ECHO_FIELD_NUMBER: builtins.int + FLUSH_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + INIT_CHAIN_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + BEGIN_BLOCK_FIELD_NUMBER: builtins.int + CHECK_TX_FIELD_NUMBER: builtins.int + DELIVER_TX_FIELD_NUMBER: builtins.int + END_BLOCK_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int + OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + PREPARE_PROPOSAL_FIELD_NUMBER: builtins.int + PROCESS_PROPOSAL_FIELD_NUMBER: builtins.int + @property + def echo(self) -> global___RequestEcho: ... + @property + def flush(self) -> global___RequestFlush: ... + @property + def info(self) -> global___RequestInfo: ... + @property + def init_chain(self) -> global___RequestInitChain: ... + @property + def query(self) -> global___RequestQuery: ... + @property + def begin_block(self) -> global___RequestBeginBlock: ... + @property + def check_tx(self) -> global___RequestCheckTx: ... + @property + def deliver_tx(self) -> global___RequestDeliverTx: ... + @property + def end_block(self) -> global___RequestEndBlock: ... + @property + def commit(self) -> global___RequestCommit: ... + @property + def list_snapshots(self) -> global___RequestListSnapshots: ... + @property + def offer_snapshot(self) -> global___RequestOfferSnapshot: ... + @property + def load_snapshot_chunk(self) -> global___RequestLoadSnapshotChunk: ... + @property + def apply_snapshot_chunk(self) -> global___RequestApplySnapshotChunk: ... + @property + def prepare_proposal(self) -> global___RequestPrepareProposal: ... + @property + def process_proposal(self) -> global___RequestProcessProposal: ... + def __init__( + self, + *, + echo: global___RequestEcho | None = ..., + flush: global___RequestFlush | None = ..., + info: global___RequestInfo | None = ..., + init_chain: global___RequestInitChain | None = ..., + query: global___RequestQuery | None = ..., + begin_block: global___RequestBeginBlock | None = ..., + check_tx: global___RequestCheckTx | None = ..., + deliver_tx: global___RequestDeliverTx | None = ..., + end_block: global___RequestEndBlock | None = ..., + commit: global___RequestCommit | None = ..., + list_snapshots: global___RequestListSnapshots | None = ..., + offer_snapshot: global___RequestOfferSnapshot | None = ..., + load_snapshot_chunk: global___RequestLoadSnapshotChunk | None = ..., + apply_snapshot_chunk: global___RequestApplySnapshotChunk | None = ..., + prepare_proposal: global___RequestPrepareProposal | None = ..., + process_proposal: global___RequestProcessProposal | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["apply_snapshot_chunk", b"apply_snapshot_chunk", "begin_block", b"begin_block", "check_tx", b"check_tx", "commit", b"commit", "deliver_tx", b"deliver_tx", "echo", b"echo", "end_block", b"end_block", "flush", b"flush", "info", b"info", "init_chain", b"init_chain", "list_snapshots", b"list_snapshots", "load_snapshot_chunk", b"load_snapshot_chunk", "offer_snapshot", b"offer_snapshot", "prepare_proposal", b"prepare_proposal", "process_proposal", b"process_proposal", "query", b"query", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["apply_snapshot_chunk", b"apply_snapshot_chunk", "begin_block", b"begin_block", "check_tx", b"check_tx", "commit", b"commit", "deliver_tx", b"deliver_tx", "echo", b"echo", "end_block", b"end_block", "flush", b"flush", "info", b"info", "init_chain", b"init_chain", "list_snapshots", b"list_snapshots", "load_snapshot_chunk", b"load_snapshot_chunk", "offer_snapshot", b"offer_snapshot", "prepare_proposal", b"prepare_proposal", "process_proposal", b"process_proposal", "query", b"query", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["echo", "flush", "info", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk", "prepare_proposal", "process_proposal"] | None: ... + +global___Request = Request + +@typing_extensions.final +class RequestEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGE_FIELD_NUMBER: builtins.int + message: builtins.str + def __init__( + self, + *, + message: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["message", b"message"]) -> None: ... + +global___RequestEcho = RequestEcho + +@typing_extensions.final +class RequestFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RequestFlush = RequestFlush + +@typing_extensions.final +class RequestInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + BLOCK_VERSION_FIELD_NUMBER: builtins.int + P2P_VERSION_FIELD_NUMBER: builtins.int + ABCI_VERSION_FIELD_NUMBER: builtins.int + version: builtins.str + block_version: builtins.int + p2p_version: builtins.int + abci_version: builtins.str + def __init__( + self, + *, + version: builtins.str = ..., + block_version: builtins.int = ..., + p2p_version: builtins.int = ..., + abci_version: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["abci_version", b"abci_version", "block_version", b"block_version", "p2p_version", b"p2p_version", "version", b"version"]) -> None: ... + +global___RequestInfo = RequestInfo + +@typing_extensions.final +class RequestInitChain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TIME_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + APP_STATE_BYTES_FIELD_NUMBER: builtins.int + INITIAL_HEIGHT_FIELD_NUMBER: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + chain_id: builtins.str + @property + def consensus_params(self) -> tendermint.types.params_pb2.ConsensusParams: ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + app_state_bytes: builtins.bytes + initial_height: builtins.int + def __init__( + self, + *, + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + chain_id: builtins.str = ..., + consensus_params: tendermint.types.params_pb2.ConsensusParams | None = ..., + validators: collections.abc.Iterable[global___ValidatorUpdate] | None = ..., + app_state_bytes: builtins.bytes = ..., + initial_height: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["consensus_params", b"consensus_params", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["app_state_bytes", b"app_state_bytes", "chain_id", b"chain_id", "consensus_params", b"consensus_params", "initial_height", b"initial_height", "time", b"time", "validators", b"validators"]) -> None: ... + +global___RequestInitChain = RequestInitChain + +@typing_extensions.final +class RequestQuery(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + PROVE_FIELD_NUMBER: builtins.int + data: builtins.bytes + path: builtins.str + height: builtins.int + prove: builtins.bool + def __init__( + self, + *, + data: builtins.bytes = ..., + path: builtins.str = ..., + height: builtins.int = ..., + prove: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "height", b"height", "path", b"path", "prove", b"prove"]) -> None: ... + +global___RequestQuery = RequestQuery + +@typing_extensions.final +class RequestBeginBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + LAST_COMMIT_INFO_FIELD_NUMBER: builtins.int + BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int + hash: builtins.bytes + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def last_commit_info(self) -> global___CommitInfo: ... + @property + def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Misbehavior]: ... + def __init__( + self, + *, + hash: builtins.bytes = ..., + header: tendermint.types.types_pb2.Header | None = ..., + last_commit_info: global___CommitInfo | None = ..., + byzantine_validators: collections.abc.Iterable[global___Misbehavior] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["header", b"header", "last_commit_info", b"last_commit_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["byzantine_validators", b"byzantine_validators", "hash", b"hash", "header", b"header", "last_commit_info", b"last_commit_info"]) -> None: ... + +global___RequestBeginBlock = RequestBeginBlock + +@typing_extensions.final +class RequestCheckTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + tx: builtins.bytes + type: global___CheckTxType.ValueType + def __init__( + self, + *, + tx: builtins.bytes = ..., + type: global___CheckTxType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx", "type", b"type"]) -> None: ... + +global___RequestCheckTx = RequestCheckTx + +@typing_extensions.final +class RequestDeliverTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_FIELD_NUMBER: builtins.int + tx: builtins.bytes + def __init__( + self, + *, + tx: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["tx", b"tx"]) -> None: ... + +global___RequestDeliverTx = RequestDeliverTx + +@typing_extensions.final +class RequestEndBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int + def __init__( + self, + *, + height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height"]) -> None: ... + +global___RequestEndBlock = RequestEndBlock + +@typing_extensions.final +class RequestCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RequestCommit = RequestCommit + +@typing_extensions.final +class RequestListSnapshots(google.protobuf.message.Message): + """lists available snapshots""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RequestListSnapshots = RequestListSnapshots + +@typing_extensions.final +class RequestOfferSnapshot(google.protobuf.message.Message): + """offers a snapshot to the application""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SNAPSHOT_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + @property + def snapshot(self) -> global___Snapshot: + """snapshot offered by peers""" + app_hash: builtins.bytes + """light client-verified app hash for snapshot height""" + def __init__( + self, + *, + snapshot: global___Snapshot | None = ..., + app_hash: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["snapshot", b"snapshot"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["app_hash", b"app_hash", "snapshot", b"snapshot"]) -> None: ... + +global___RequestOfferSnapshot = RequestOfferSnapshot + +@typing_extensions.final +class RequestLoadSnapshotChunk(google.protobuf.message.Message): + """loads a snapshot chunk""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + height: builtins.int + format: builtins.int + chunk: builtins.int + def __init__( + self, + *, + height: builtins.int = ..., + format: builtins.int = ..., + chunk: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunk", b"chunk", "format", b"format", "height", b"height"]) -> None: ... + +global___RequestLoadSnapshotChunk = RequestLoadSnapshotChunk + +@typing_extensions.final +class RequestApplySnapshotChunk(google.protobuf.message.Message): + """Applies a snapshot chunk""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + index: builtins.int + chunk: builtins.bytes + sender: builtins.str + def __init__( + self, + *, + index: builtins.int = ..., + chunk: builtins.bytes = ..., + sender: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunk", b"chunk", "index", b"index", "sender", b"sender"]) -> None: ... + +global___RequestApplySnapshotChunk = RequestApplySnapshotChunk + +@typing_extensions.final +class RequestPrepareProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_TX_BYTES_FIELD_NUMBER: builtins.int + TXS_FIELD_NUMBER: builtins.int + LOCAL_LAST_COMMIT_FIELD_NUMBER: builtins.int + MISBEHAVIOR_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int + max_tx_bytes: builtins.int + """the modified transactions cannot exceed this size.""" + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """txs is an array of transactions that will be included in a block, + sent to the app for possible modifications. + """ + @property + def local_last_commit(self) -> global___ExtendedCommitInfo: ... + @property + def misbehavior(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Misbehavior]: ... + height: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + next_validators_hash: builtins.bytes + proposer_address: builtins.bytes + """address of the public key of the validator proposing the block.""" + def __init__( + self, + *, + max_tx_bytes: builtins.int = ..., + txs: collections.abc.Iterable[builtins.bytes] | None = ..., + local_last_commit: global___ExtendedCommitInfo | None = ..., + misbehavior: collections.abc.Iterable[global___Misbehavior] | None = ..., + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + next_validators_hash: builtins.bytes = ..., + proposer_address: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["local_last_commit", b"local_last_commit", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "local_last_commit", b"local_last_commit", "max_tx_bytes", b"max_tx_bytes", "misbehavior", b"misbehavior", "next_validators_hash", b"next_validators_hash", "proposer_address", b"proposer_address", "time", b"time", "txs", b"txs"]) -> None: ... + +global___RequestPrepareProposal = RequestPrepareProposal + +@typing_extensions.final +class RequestProcessProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TXS_FIELD_NUMBER: builtins.int + PROPOSED_LAST_COMMIT_FIELD_NUMBER: builtins.int + MISBEHAVIOR_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + @property + def proposed_last_commit(self) -> global___CommitInfo: ... + @property + def misbehavior(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Misbehavior]: ... + hash: builtins.bytes + """hash is the merkle root hash of the fields of the proposed block.""" + height: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + next_validators_hash: builtins.bytes + proposer_address: builtins.bytes + """address of the public key of the original proposer of the block.""" + def __init__( + self, + *, + txs: collections.abc.Iterable[builtins.bytes] | None = ..., + proposed_last_commit: global___CommitInfo | None = ..., + misbehavior: collections.abc.Iterable[global___Misbehavior] | None = ..., + hash: builtins.bytes = ..., + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + next_validators_hash: builtins.bytes = ..., + proposer_address: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proposed_last_commit", b"proposed_last_commit", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash", "height", b"height", "misbehavior", b"misbehavior", "next_validators_hash", b"next_validators_hash", "proposed_last_commit", b"proposed_last_commit", "proposer_address", b"proposer_address", "time", b"time", "txs", b"txs"]) -> None: ... + +global___RequestProcessProposal = RequestProcessProposal + +@typing_extensions.final +class Response(google.protobuf.message.Message): + """---------------------------------------- + Response types + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXCEPTION_FIELD_NUMBER: builtins.int + ECHO_FIELD_NUMBER: builtins.int + FLUSH_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + INIT_CHAIN_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + BEGIN_BLOCK_FIELD_NUMBER: builtins.int + CHECK_TX_FIELD_NUMBER: builtins.int + DELIVER_TX_FIELD_NUMBER: builtins.int + END_BLOCK_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int + OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + PREPARE_PROPOSAL_FIELD_NUMBER: builtins.int + PROCESS_PROPOSAL_FIELD_NUMBER: builtins.int + @property + def exception(self) -> global___ResponseException: ... + @property + def echo(self) -> global___ResponseEcho: ... + @property + def flush(self) -> global___ResponseFlush: ... + @property + def info(self) -> global___ResponseInfo: ... + @property + def init_chain(self) -> global___ResponseInitChain: ... + @property + def query(self) -> global___ResponseQuery: ... + @property + def begin_block(self) -> global___ResponseBeginBlock: ... + @property + def check_tx(self) -> global___ResponseCheckTx: ... + @property + def deliver_tx(self) -> global___ResponseDeliverTx: ... + @property + def end_block(self) -> global___ResponseEndBlock: ... + @property + def commit(self) -> global___ResponseCommit: ... + @property + def list_snapshots(self) -> global___ResponseListSnapshots: ... + @property + def offer_snapshot(self) -> global___ResponseOfferSnapshot: ... + @property + def load_snapshot_chunk(self) -> global___ResponseLoadSnapshotChunk: ... + @property + def apply_snapshot_chunk(self) -> global___ResponseApplySnapshotChunk: ... + @property + def prepare_proposal(self) -> global___ResponsePrepareProposal: ... + @property + def process_proposal(self) -> global___ResponseProcessProposal: ... + def __init__( + self, + *, + exception: global___ResponseException | None = ..., + echo: global___ResponseEcho | None = ..., + flush: global___ResponseFlush | None = ..., + info: global___ResponseInfo | None = ..., + init_chain: global___ResponseInitChain | None = ..., + query: global___ResponseQuery | None = ..., + begin_block: global___ResponseBeginBlock | None = ..., + check_tx: global___ResponseCheckTx | None = ..., + deliver_tx: global___ResponseDeliverTx | None = ..., + end_block: global___ResponseEndBlock | None = ..., + commit: global___ResponseCommit | None = ..., + list_snapshots: global___ResponseListSnapshots | None = ..., + offer_snapshot: global___ResponseOfferSnapshot | None = ..., + load_snapshot_chunk: global___ResponseLoadSnapshotChunk | None = ..., + apply_snapshot_chunk: global___ResponseApplySnapshotChunk | None = ..., + prepare_proposal: global___ResponsePrepareProposal | None = ..., + process_proposal: global___ResponseProcessProposal | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["apply_snapshot_chunk", b"apply_snapshot_chunk", "begin_block", b"begin_block", "check_tx", b"check_tx", "commit", b"commit", "deliver_tx", b"deliver_tx", "echo", b"echo", "end_block", b"end_block", "exception", b"exception", "flush", b"flush", "info", b"info", "init_chain", b"init_chain", "list_snapshots", b"list_snapshots", "load_snapshot_chunk", b"load_snapshot_chunk", "offer_snapshot", b"offer_snapshot", "prepare_proposal", b"prepare_proposal", "process_proposal", b"process_proposal", "query", b"query", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["apply_snapshot_chunk", b"apply_snapshot_chunk", "begin_block", b"begin_block", "check_tx", b"check_tx", "commit", b"commit", "deliver_tx", b"deliver_tx", "echo", b"echo", "end_block", b"end_block", "exception", b"exception", "flush", b"flush", "info", b"info", "init_chain", b"init_chain", "list_snapshots", b"list_snapshots", "load_snapshot_chunk", b"load_snapshot_chunk", "offer_snapshot", b"offer_snapshot", "prepare_proposal", b"prepare_proposal", "process_proposal", b"process_proposal", "query", b"query", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["exception", "echo", "flush", "info", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk", "prepare_proposal", "process_proposal"] | None: ... + +global___Response = Response + +@typing_extensions.final +class ResponseException(google.protobuf.message.Message): + """nondeterministic""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str + def __init__( + self, + *, + error: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["error", b"error"]) -> None: ... + +global___ResponseException = ResponseException + +@typing_extensions.final +class ResponseEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGE_FIELD_NUMBER: builtins.int + message: builtins.str + def __init__( + self, + *, + message: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["message", b"message"]) -> None: ... + +global___ResponseEcho = ResponseEcho + +@typing_extensions.final +class ResponseFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ResponseFlush = ResponseFlush + +@typing_extensions.final +class ResponseInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + APP_VERSION_FIELD_NUMBER: builtins.int + LAST_BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + LAST_BLOCK_APP_HASH_FIELD_NUMBER: builtins.int + data: builtins.str + version: builtins.str + app_version: builtins.int + last_block_height: builtins.int + last_block_app_hash: builtins.bytes + def __init__( + self, + *, + data: builtins.str = ..., + version: builtins.str = ..., + app_version: builtins.int = ..., + last_block_height: builtins.int = ..., + last_block_app_hash: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["app_version", b"app_version", "data", b"data", "last_block_app_hash", b"last_block_app_hash", "last_block_height", b"last_block_height", "version", b"version"]) -> None: ... + +global___ResponseInfo = ResponseInfo + +@typing_extensions.final +class ResponseInitChain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + @property + def consensus_params(self) -> tendermint.types.params_pb2.ConsensusParams: ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + app_hash: builtins.bytes + def __init__( + self, + *, + consensus_params: tendermint.types.params_pb2.ConsensusParams | None = ..., + validators: collections.abc.Iterable[global___ValidatorUpdate] | None = ..., + app_hash: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["consensus_params", b"consensus_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["app_hash", b"app_hash", "consensus_params", b"consensus_params", "validators", b"validators"]) -> None: ... + +global___ResponseInitChain = ResponseInitChain + +@typing_extensions.final +class ResponseQuery(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + PROOF_OPS_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int + log: builtins.str + """bytes data = 2; // use "value" instead. + nondeterministic + """ + info: builtins.str + """nondeterministic""" + index: builtins.int + key: builtins.bytes + value: builtins.bytes + @property + def proof_ops(self) -> tendermint.crypto.proof_pb2.ProofOps: ... + height: builtins.int + codespace: builtins.str + def __init__( + self, + *, + code: builtins.int = ..., + log: builtins.str = ..., + info: builtins.str = ..., + index: builtins.int = ..., + key: builtins.bytes = ..., + value: builtins.bytes = ..., + proof_ops: tendermint.crypto.proof_pb2.ProofOps | None = ..., + height: builtins.int = ..., + codespace: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proof_ops", b"proof_ops"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "codespace", b"codespace", "height", b"height", "index", b"index", "info", b"info", "key", b"key", "log", b"log", "proof_ops", b"proof_ops", "value", b"value"]) -> None: ... + +global___ResponseQuery = ResponseQuery + +@typing_extensions.final +class ResponseBeginBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVENTS_FIELD_NUMBER: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + def __init__( + self, + *, + events: collections.abc.Iterable[global___Event] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["events", b"events"]) -> None: ... + +global___ResponseBeginBlock = ResponseBeginBlock + +@typing_extensions.final +class ResponseCheckTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int + MEMPOOL_ERROR_FIELD_NUMBER: builtins.int + code: builtins.int + data: builtins.bytes + log: builtins.str + """nondeterministic""" + info: builtins.str + """nondeterministic""" + gas_wanted: builtins.int + gas_used: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + codespace: builtins.str + sender: builtins.str + priority: builtins.int + mempool_error: builtins.str + """mempool_error is set by CometBFT. + ABCI applictions creating a ResponseCheckTX should not set mempool_error. + """ + def __init__( + self, + *, + code: builtins.int = ..., + data: builtins.bytes = ..., + log: builtins.str = ..., + info: builtins.str = ..., + gas_wanted: builtins.int = ..., + gas_used: builtins.int = ..., + events: collections.abc.Iterable[global___Event] | None = ..., + codespace: builtins.str = ..., + sender: builtins.str = ..., + priority: builtins.int = ..., + mempool_error: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "codespace", b"codespace", "data", b"data", "events", b"events", "gas_used", b"gas_used", "gas_wanted", b"gas_wanted", "info", b"info", "log", b"log", "mempool_error", b"mempool_error", "priority", b"priority", "sender", b"sender"]) -> None: ... + +global___ResponseCheckTx = ResponseCheckTx + +@typing_extensions.final +class ResponseDeliverTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int + data: builtins.bytes + log: builtins.str + """nondeterministic""" + info: builtins.str + """nondeterministic""" + gas_wanted: builtins.int + gas_used: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: + """nondeterministic""" + codespace: builtins.str + def __init__( + self, + *, + code: builtins.int = ..., + data: builtins.bytes = ..., + log: builtins.str = ..., + info: builtins.str = ..., + gas_wanted: builtins.int = ..., + gas_used: builtins.int = ..., + events: collections.abc.Iterable[global___Event] | None = ..., + codespace: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "codespace", b"codespace", "data", b"data", "events", b"events", "gas_used", b"gas_used", "gas_wanted", b"gas_wanted", "info", b"info", "log", b"log"]) -> None: ... + +global___ResponseDeliverTx = ResponseDeliverTx + +@typing_extensions.final +class ResponseEndBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_UPDATES_FIELD_NUMBER: builtins.int + CONSENSUS_PARAM_UPDATES_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + @property + def validator_updates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + @property + def consensus_param_updates(self) -> tendermint.types.params_pb2.ConsensusParams: ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + def __init__( + self, + *, + validator_updates: collections.abc.Iterable[global___ValidatorUpdate] | None = ..., + consensus_param_updates: tendermint.types.params_pb2.ConsensusParams | None = ..., + events: collections.abc.Iterable[global___Event] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["consensus_param_updates", b"consensus_param_updates"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["consensus_param_updates", b"consensus_param_updates", "events", b"events", "validator_updates", b"validator_updates"]) -> None: ... + +global___ResponseEndBlock = ResponseEndBlock + +@typing_extensions.final +class ResponseCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + RETAIN_HEIGHT_FIELD_NUMBER: builtins.int + data: builtins.bytes + """reserve 1""" + retain_height: builtins.int + def __init__( + self, + *, + data: builtins.bytes = ..., + retain_height: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "retain_height", b"retain_height"]) -> None: ... + +global___ResponseCommit = ResponseCommit + +@typing_extensions.final +class ResponseListSnapshots(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SNAPSHOTS_FIELD_NUMBER: builtins.int + @property + def snapshots(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Snapshot]: ... + def __init__( + self, + *, + snapshots: collections.abc.Iterable[global___Snapshot] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["snapshots", b"snapshots"]) -> None: ... + +global___ResponseListSnapshots = ResponseListSnapshots + +@typing_extensions.final +class ResponseOfferSnapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Result: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ResponseOfferSnapshot._Result.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: ResponseOfferSnapshot._Result.ValueType # 0 + """Unknown result, abort all snapshot restoration""" + ACCEPT: ResponseOfferSnapshot._Result.ValueType # 1 + """Snapshot accepted, apply chunks""" + ABORT: ResponseOfferSnapshot._Result.ValueType # 2 + """Abort all snapshot restoration""" + REJECT: ResponseOfferSnapshot._Result.ValueType # 3 + """Reject this specific snapshot, try others""" + REJECT_FORMAT: ResponseOfferSnapshot._Result.ValueType # 4 + """Reject all snapshots of this format, try others""" + REJECT_SENDER: ResponseOfferSnapshot._Result.ValueType # 5 + """Reject all snapshots from the sender(s), try others""" + + class Result(_Result, metaclass=_ResultEnumTypeWrapper): ... + UNKNOWN: ResponseOfferSnapshot.Result.ValueType # 0 + """Unknown result, abort all snapshot restoration""" + ACCEPT: ResponseOfferSnapshot.Result.ValueType # 1 + """Snapshot accepted, apply chunks""" + ABORT: ResponseOfferSnapshot.Result.ValueType # 2 + """Abort all snapshot restoration""" + REJECT: ResponseOfferSnapshot.Result.ValueType # 3 + """Reject this specific snapshot, try others""" + REJECT_FORMAT: ResponseOfferSnapshot.Result.ValueType # 4 + """Reject all snapshots of this format, try others""" + REJECT_SENDER: ResponseOfferSnapshot.Result.ValueType # 5 + """Reject all snapshots from the sender(s), try others""" + + RESULT_FIELD_NUMBER: builtins.int + result: global___ResponseOfferSnapshot.Result.ValueType + def __init__( + self, + *, + result: global___ResponseOfferSnapshot.Result.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + +global___ResponseOfferSnapshot = ResponseOfferSnapshot + +@typing_extensions.final +class ResponseLoadSnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHUNK_FIELD_NUMBER: builtins.int + chunk: builtins.bytes + def __init__( + self, + *, + chunk: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunk", b"chunk"]) -> None: ... + +global___ResponseLoadSnapshotChunk = ResponseLoadSnapshotChunk + +@typing_extensions.final +class ResponseApplySnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Result: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ResponseApplySnapshotChunk._Result.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: ResponseApplySnapshotChunk._Result.ValueType # 0 + """Unknown result, abort all snapshot restoration""" + ACCEPT: ResponseApplySnapshotChunk._Result.ValueType # 1 + """Chunk successfully accepted""" + ABORT: ResponseApplySnapshotChunk._Result.ValueType # 2 + """Abort all snapshot restoration""" + RETRY: ResponseApplySnapshotChunk._Result.ValueType # 3 + """Retry chunk (combine with refetch and reject)""" + RETRY_SNAPSHOT: ResponseApplySnapshotChunk._Result.ValueType # 4 + """Retry snapshot (combine with refetch and reject)""" + REJECT_SNAPSHOT: ResponseApplySnapshotChunk._Result.ValueType # 5 + """Reject this snapshot, try others""" + + class Result(_Result, metaclass=_ResultEnumTypeWrapper): ... + UNKNOWN: ResponseApplySnapshotChunk.Result.ValueType # 0 + """Unknown result, abort all snapshot restoration""" + ACCEPT: ResponseApplySnapshotChunk.Result.ValueType # 1 + """Chunk successfully accepted""" + ABORT: ResponseApplySnapshotChunk.Result.ValueType # 2 + """Abort all snapshot restoration""" + RETRY: ResponseApplySnapshotChunk.Result.ValueType # 3 + """Retry chunk (combine with refetch and reject)""" + RETRY_SNAPSHOT: ResponseApplySnapshotChunk.Result.ValueType # 4 + """Retry snapshot (combine with refetch and reject)""" + REJECT_SNAPSHOT: ResponseApplySnapshotChunk.Result.ValueType # 5 + """Reject this snapshot, try others""" + + RESULT_FIELD_NUMBER: builtins.int + REFETCH_CHUNKS_FIELD_NUMBER: builtins.int + REJECT_SENDERS_FIELD_NUMBER: builtins.int + result: global___ResponseApplySnapshotChunk.Result.ValueType + @property + def refetch_chunks(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: + """Chunks to refetch and reapply""" + @property + def reject_senders(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Chunk senders to reject and ban""" + def __init__( + self, + *, + result: global___ResponseApplySnapshotChunk.Result.ValueType = ..., + refetch_chunks: collections.abc.Iterable[builtins.int] | None = ..., + reject_senders: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["refetch_chunks", b"refetch_chunks", "reject_senders", b"reject_senders", "result", b"result"]) -> None: ... + +global___ResponseApplySnapshotChunk = ResponseApplySnapshotChunk + +@typing_extensions.final +class ResponsePrepareProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TXS_FIELD_NUMBER: builtins.int + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__( + self, + *, + txs: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["txs", b"txs"]) -> None: ... + +global___ResponsePrepareProposal = ResponsePrepareProposal + +@typing_extensions.final +class ResponseProcessProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _ProposalStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ResponseProcessProposal._ProposalStatus.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: ResponseProcessProposal._ProposalStatus.ValueType # 0 + ACCEPT: ResponseProcessProposal._ProposalStatus.ValueType # 1 + REJECT: ResponseProcessProposal._ProposalStatus.ValueType # 2 + + class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): ... + UNKNOWN: ResponseProcessProposal.ProposalStatus.ValueType # 0 + ACCEPT: ResponseProcessProposal.ProposalStatus.ValueType # 1 + REJECT: ResponseProcessProposal.ProposalStatus.ValueType # 2 + + STATUS_FIELD_NUMBER: builtins.int + status: global___ResponseProcessProposal.ProposalStatus.ValueType + def __init__( + self, + *, + status: global___ResponseProcessProposal.ProposalStatus.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + +global___ResponseProcessProposal = ResponseProcessProposal + +@typing_extensions.final +class CommitInfo(google.protobuf.message.Message): + """---------------------------------------- + Misc. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROUND_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + round: builtins.int + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VoteInfo]: ... + def __init__( + self, + *, + round: builtins.int = ..., + votes: collections.abc.Iterable[global___VoteInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["round", b"round", "votes", b"votes"]) -> None: ... + +global___CommitInfo = CommitInfo + +@typing_extensions.final +class ExtendedCommitInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROUND_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + round: builtins.int + """The round at which the block proposer decided in the previous height.""" + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExtendedVoteInfo]: + """List of validators' addresses in the last validator set with their voting + information, including vote extensions. + """ + def __init__( + self, + *, + round: builtins.int = ..., + votes: collections.abc.Iterable[global___ExtendedVoteInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["round", b"round", "votes", b"votes"]) -> None: ... + +global___ExtendedCommitInfo = ExtendedCommitInfo + +@typing_extensions.final +class Event(google.protobuf.message.Message): + """Event allows application developers to attach additional information to + ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + Later, transactions may be queried using these events. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: builtins.str + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventAttribute]: ... + def __init__( + self, + *, + type: builtins.str = ..., + attributes: collections.abc.Iterable[global___EventAttribute] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["attributes", b"attributes", "type", b"type"]) -> None: ... + +global___Event = Event + +@typing_extensions.final +class EventAttribute(google.protobuf.message.Message): + """EventAttribute is a single key-value pair, associated with an event.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + index: builtins.bool + """nondeterministic""" + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + index: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["index", b"index", "key", b"key", "value", b"value"]) -> None: ... + +global___EventAttribute = EventAttribute + +@typing_extensions.final +class TxResult(google.protobuf.message.Message): + """TxResult contains results of executing the transaction. + + One usage is indexing transaction results. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + height: builtins.int + index: builtins.int + tx: builtins.bytes + @property + def result(self) -> global___ResponseDeliverTx: ... + def __init__( + self, + *, + height: builtins.int = ..., + index: builtins.int = ..., + tx: builtins.bytes = ..., + result: global___ResponseDeliverTx | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "index", b"index", "result", b"result", "tx", b"tx"]) -> None: ... + +global___TxResult = TxResult + +@typing_extensions.final +class Validator(google.protobuf.message.Message): + """---------------------------------------- + Blockchain Types + + Validator + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + address: builtins.bytes + """The first 20 bytes of SHA256(public key)""" + power: builtins.int + """PubKey pub_key = 2 [(gogoproto.nullable)=false]; + The voting power + """ + def __init__( + self, + *, + address: builtins.bytes = ..., + power: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "power", b"power"]) -> None: ... + +global___Validator = Validator + +@typing_extensions.final +class ValidatorUpdate(google.protobuf.message.Message): + """ValidatorUpdate""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PUB_KEY_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + power: builtins.int + def __init__( + self, + *, + pub_key: tendermint.crypto.keys_pb2.PublicKey | None = ..., + power: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["power", b"power", "pub_key", b"pub_key"]) -> None: ... + +global___ValidatorUpdate = ValidatorUpdate + +@typing_extensions.final +class VoteInfo(google.protobuf.message.Message): + """VoteInfo""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + SIGNED_LAST_BLOCK_FIELD_NUMBER: builtins.int + @property + def validator(self) -> global___Validator: ... + signed_last_block: builtins.bool + def __init__( + self, + *, + validator: global___Validator | None = ..., + signed_last_block: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["signed_last_block", b"signed_last_block", "validator", b"validator"]) -> None: ... + +global___VoteInfo = VoteInfo + +@typing_extensions.final +class ExtendedVoteInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATOR_FIELD_NUMBER: builtins.int + SIGNED_LAST_BLOCK_FIELD_NUMBER: builtins.int + VOTE_EXTENSION_FIELD_NUMBER: builtins.int + @property + def validator(self) -> global___Validator: ... + signed_last_block: builtins.bool + vote_extension: builtins.bytes + """Reserved for future use""" + def __init__( + self, + *, + validator: global___Validator | None = ..., + signed_last_block: builtins.bool = ..., + vote_extension: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["signed_last_block", b"signed_last_block", "validator", b"validator", "vote_extension", b"vote_extension"]) -> None: ... + +global___ExtendedVoteInfo = ExtendedVoteInfo + +@typing_extensions.final +class Misbehavior(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + type: global___MisbehaviorType.ValueType + @property + def validator(self) -> global___Validator: + """The offending validator""" + height: builtins.int + """The height when the offense occurred""" + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The corresponding time where the offense occurred""" + total_voting_power: builtins.int + """Total voting power of the validator set in case the ABCI application does + not store historical validators. + https://github.com/tendermint/tendermint/issues/4581 + """ + def __init__( + self, + *, + type: global___MisbehaviorType.ValueType = ..., + validator: global___Validator | None = ..., + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + total_voting_power: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["time", b"time", "validator", b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "time", b"time", "total_voting_power", b"total_voting_power", "type", b"type", "validator", b"validator"]) -> None: ... + +global___Misbehavior = Misbehavior + +@typing_extensions.final +class Snapshot(google.protobuf.message.Message): + """---------------------------------------- + State Sync Types + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNKS_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + height: builtins.int + """The height at which the snapshot was taken""" + format: builtins.int + """The application-specific snapshot format""" + chunks: builtins.int + """Number of chunks in the snapshot""" + hash: builtins.bytes + """Arbitrary snapshot hash, equal only if identical""" + metadata: builtins.bytes + """Arbitrary application metadata""" + def __init__( + self, + *, + height: builtins.int = ..., + format: builtins.int = ..., + chunks: builtins.int = ..., + hash: builtins.bytes = ..., + metadata: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunks", b"chunks", "format", b"format", "hash", b"hash", "height", b"height", "metadata", b"metadata"]) -> None: ... + +global___Snapshot = Snapshot diff --git a/nibiru_proto/tendermint/abci/types_pb2_grpc.py b/nibiru_proto/tendermint/abci/types_pb2_grpc.py new file mode 100644 index 00000000..24094065 --- /dev/null +++ b/nibiru_proto/tendermint/abci/types_pb2_grpc.py @@ -0,0 +1,570 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from tendermint.abci import types_pb2 as tendermint_dot_abci_dot_types__pb2 + + +class ABCIApplicationStub(object): + """---------------------------------------- + Service Definition + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Echo = channel.unary_unary( + '/tendermint.abci.ABCIApplication/Echo', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestEcho.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseEcho.FromString, + ) + self.Flush = channel.unary_unary( + '/tendermint.abci.ABCIApplication/Flush', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestFlush.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseFlush.FromString, + ) + self.Info = channel.unary_unary( + '/tendermint.abci.ABCIApplication/Info', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestInfo.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseInfo.FromString, + ) + self.DeliverTx = channel.unary_unary( + '/tendermint.abci.ABCIApplication/DeliverTx', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestDeliverTx.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseDeliverTx.FromString, + ) + self.CheckTx = channel.unary_unary( + '/tendermint.abci.ABCIApplication/CheckTx', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestCheckTx.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseCheckTx.FromString, + ) + self.Query = channel.unary_unary( + '/tendermint.abci.ABCIApplication/Query', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestQuery.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseQuery.FromString, + ) + self.Commit = channel.unary_unary( + '/tendermint.abci.ABCIApplication/Commit', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestCommit.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseCommit.FromString, + ) + self.InitChain = channel.unary_unary( + '/tendermint.abci.ABCIApplication/InitChain', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestInitChain.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseInitChain.FromString, + ) + self.BeginBlock = channel.unary_unary( + '/tendermint.abci.ABCIApplication/BeginBlock', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestBeginBlock.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseBeginBlock.FromString, + ) + self.EndBlock = channel.unary_unary( + '/tendermint.abci.ABCIApplication/EndBlock', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestEndBlock.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseEndBlock.FromString, + ) + self.ListSnapshots = channel.unary_unary( + '/tendermint.abci.ABCIApplication/ListSnapshots', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestListSnapshots.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseListSnapshots.FromString, + ) + self.OfferSnapshot = channel.unary_unary( + '/tendermint.abci.ABCIApplication/OfferSnapshot', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestOfferSnapshot.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseOfferSnapshot.FromString, + ) + self.LoadSnapshotChunk = channel.unary_unary( + '/tendermint.abci.ABCIApplication/LoadSnapshotChunk', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestLoadSnapshotChunk.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseLoadSnapshotChunk.FromString, + ) + self.ApplySnapshotChunk = channel.unary_unary( + '/tendermint.abci.ABCIApplication/ApplySnapshotChunk', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestApplySnapshotChunk.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseApplySnapshotChunk.FromString, + ) + self.PrepareProposal = channel.unary_unary( + '/tendermint.abci.ABCIApplication/PrepareProposal', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestPrepareProposal.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponsePrepareProposal.FromString, + ) + self.ProcessProposal = channel.unary_unary( + '/tendermint.abci.ABCIApplication/ProcessProposal', + request_serializer=tendermint_dot_abci_dot_types__pb2.RequestProcessProposal.SerializeToString, + response_deserializer=tendermint_dot_abci_dot_types__pb2.ResponseProcessProposal.FromString, + ) + + +class ABCIApplicationServicer(object): + """---------------------------------------- + Service Definition + + """ + + def Echo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Flush(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Info(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeliverTx(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckTx(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Query(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitChain(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BeginBlock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EndBlock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSnapshots(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def OfferSnapshot(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadSnapshotChunk(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ApplySnapshotChunk(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PrepareProposal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ProcessProposal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ABCIApplicationServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Echo': grpc.unary_unary_rpc_method_handler( + servicer.Echo, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestEcho.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseEcho.SerializeToString, + ), + 'Flush': grpc.unary_unary_rpc_method_handler( + servicer.Flush, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestFlush.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseFlush.SerializeToString, + ), + 'Info': grpc.unary_unary_rpc_method_handler( + servicer.Info, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestInfo.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseInfo.SerializeToString, + ), + 'DeliverTx': grpc.unary_unary_rpc_method_handler( + servicer.DeliverTx, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestDeliverTx.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseDeliverTx.SerializeToString, + ), + 'CheckTx': grpc.unary_unary_rpc_method_handler( + servicer.CheckTx, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestCheckTx.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseCheckTx.SerializeToString, + ), + 'Query': grpc.unary_unary_rpc_method_handler( + servicer.Query, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestQuery.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseQuery.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestCommit.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseCommit.SerializeToString, + ), + 'InitChain': grpc.unary_unary_rpc_method_handler( + servicer.InitChain, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestInitChain.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseInitChain.SerializeToString, + ), + 'BeginBlock': grpc.unary_unary_rpc_method_handler( + servicer.BeginBlock, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestBeginBlock.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseBeginBlock.SerializeToString, + ), + 'EndBlock': grpc.unary_unary_rpc_method_handler( + servicer.EndBlock, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestEndBlock.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseEndBlock.SerializeToString, + ), + 'ListSnapshots': grpc.unary_unary_rpc_method_handler( + servicer.ListSnapshots, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestListSnapshots.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseListSnapshots.SerializeToString, + ), + 'OfferSnapshot': grpc.unary_unary_rpc_method_handler( + servicer.OfferSnapshot, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestOfferSnapshot.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseOfferSnapshot.SerializeToString, + ), + 'LoadSnapshotChunk': grpc.unary_unary_rpc_method_handler( + servicer.LoadSnapshotChunk, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestLoadSnapshotChunk.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseLoadSnapshotChunk.SerializeToString, + ), + 'ApplySnapshotChunk': grpc.unary_unary_rpc_method_handler( + servicer.ApplySnapshotChunk, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestApplySnapshotChunk.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseApplySnapshotChunk.SerializeToString, + ), + 'PrepareProposal': grpc.unary_unary_rpc_method_handler( + servicer.PrepareProposal, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestPrepareProposal.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponsePrepareProposal.SerializeToString, + ), + 'ProcessProposal': grpc.unary_unary_rpc_method_handler( + servicer.ProcessProposal, + request_deserializer=tendermint_dot_abci_dot_types__pb2.RequestProcessProposal.FromString, + response_serializer=tendermint_dot_abci_dot_types__pb2.ResponseProcessProposal.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'tendermint.abci.ABCIApplication', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ABCIApplication(object): + """---------------------------------------- + Service Definition + + """ + + @staticmethod + def Echo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/Echo', + tendermint_dot_abci_dot_types__pb2.RequestEcho.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseEcho.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Flush(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/Flush', + tendermint_dot_abci_dot_types__pb2.RequestFlush.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseFlush.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Info(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/Info', + tendermint_dot_abci_dot_types__pb2.RequestInfo.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseInfo.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeliverTx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/DeliverTx', + tendermint_dot_abci_dot_types__pb2.RequestDeliverTx.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseDeliverTx.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckTx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/CheckTx', + tendermint_dot_abci_dot_types__pb2.RequestCheckTx.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseCheckTx.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Query(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/Query', + tendermint_dot_abci_dot_types__pb2.RequestQuery.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseQuery.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/Commit', + tendermint_dot_abci_dot_types__pb2.RequestCommit.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseCommit.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitChain(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/InitChain', + tendermint_dot_abci_dot_types__pb2.RequestInitChain.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseInitChain.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BeginBlock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/BeginBlock', + tendermint_dot_abci_dot_types__pb2.RequestBeginBlock.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseBeginBlock.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EndBlock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/EndBlock', + tendermint_dot_abci_dot_types__pb2.RequestEndBlock.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseEndBlock.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSnapshots(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/ListSnapshots', + tendermint_dot_abci_dot_types__pb2.RequestListSnapshots.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseListSnapshots.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def OfferSnapshot(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/OfferSnapshot', + tendermint_dot_abci_dot_types__pb2.RequestOfferSnapshot.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseOfferSnapshot.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadSnapshotChunk(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/LoadSnapshotChunk', + tendermint_dot_abci_dot_types__pb2.RequestLoadSnapshotChunk.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseLoadSnapshotChunk.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ApplySnapshotChunk(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/ApplySnapshotChunk', + tendermint_dot_abci_dot_types__pb2.RequestApplySnapshotChunk.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseApplySnapshotChunk.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PrepareProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/PrepareProposal', + tendermint_dot_abci_dot_types__pb2.RequestPrepareProposal.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponsePrepareProposal.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ProcessProposal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/tendermint.abci.ABCIApplication/ProcessProposal', + tendermint_dot_abci_dot_types__pb2.RequestProcessProposal.SerializeToString, + tendermint_dot_abci_dot_types__pb2.ResponseProcessProposal.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/nibiru_proto/tendermint/crypto/keys_pb2.py b/nibiru_proto/tendermint/crypto/keys_pb2.py new file mode 100644 index 00000000..29181ffe --- /dev/null +++ b/nibiru_proto/tendermint/crypto/keys_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/crypto/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ctendermint/crypto/keys.proto\x12\x11tendermint.crypto\x1a\x14gogoproto/gogo.proto\"X\n\tPublicKey\x12\x1a\n\x07\x65\x64\x32\x35\x35\x31\x39\x18\x01 \x01(\x0cH\x00R\x07\x65\x64\x32\x35\x35\x31\x39\x12\x1e\n\tsecp256k1\x18\x02 \x01(\x0cH\x00R\tsecp256k1:\x08\xe8\xa0\x1f\x01\xe8\xa1\x1f\x01\x42\x05\n\x03sumB6Z4github.com/cometbft/cometbft/proto/tendermint/cryptob\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.crypto.keys_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z4github.com/cometbft/cometbft/proto/tendermint/crypto' + _PUBLICKEY._options = None + _PUBLICKEY._serialized_options = b'\350\240\037\001\350\241\037\001' + _PUBLICKEY._serialized_start=73 + _PUBLICKEY._serialized_end=161 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/crypto/keys_pb2.pyi b/nibiru_proto/tendermint/crypto/keys_pb2.pyi new file mode 100644 index 00000000..7a615822 --- /dev/null +++ b/nibiru_proto/tendermint/crypto/keys_pb2.pyi @@ -0,0 +1,37 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 PublicKey(google.protobuf.message.Message): + """PublicKey defines the keys available for use with Validators""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ED25519_FIELD_NUMBER: builtins.int + SECP256K1_FIELD_NUMBER: builtins.int + ed25519: builtins.bytes + secp256k1: builtins.bytes + def __init__( + self, + *, + ed25519: builtins.bytes = ..., + secp256k1: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["ed25519", b"ed25519", "secp256k1", b"secp256k1", "sum", b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["ed25519", b"ed25519", "secp256k1", b"secp256k1", "sum", b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["sum", b"sum"]) -> typing_extensions.Literal["ed25519", "secp256k1"] | None: ... + +global___PublicKey = PublicKey diff --git a/nibiru_proto/tendermint/crypto/keys_pb2_grpc.py b/nibiru_proto/tendermint/crypto/keys_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/crypto/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/crypto/proof_pb2.py b/nibiru_proto/tendermint/crypto/proof_pb2.py new file mode 100644 index 00000000..7cd68ebf --- /dev/null +++ b/nibiru_proto/tendermint/crypto/proof_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/crypto/proof.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dtendermint/crypto/proof.proto\x12\x11tendermint.crypto\x1a\x14gogoproto/gogo.proto\"f\n\x05Proof\x12\x14\n\x05total\x18\x01 \x01(\x03R\x05total\x12\x14\n\x05index\x18\x02 \x01(\x03R\x05index\x12\x1b\n\tleaf_hash\x18\x03 \x01(\x0cR\x08leafHash\x12\x14\n\x05\x61unts\x18\x04 \x03(\x0cR\x05\x61unts\"K\n\x07ValueOp\x12\x10\n\x03key\x18\x01 \x01(\x0cR\x03key\x12.\n\x05proof\x18\x02 \x01(\x0b\x32\x18.tendermint.crypto.ProofR\x05proof\"J\n\x08\x44ominoOp\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05input\x18\x02 \x01(\tR\x05input\x12\x16\n\x06output\x18\x03 \x01(\tR\x06output\"C\n\x07ProofOp\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n\x03key\x18\x02 \x01(\x0cR\x03key\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\">\n\x08ProofOps\x12\x32\n\x03ops\x18\x01 \x03(\x0b\x32\x1a.tendermint.crypto.ProofOpB\x04\xc8\xde\x1f\x00R\x03opsB6Z4github.com/cometbft/cometbft/proto/tendermint/cryptob\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.crypto.proof_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z4github.com/cometbft/cometbft/proto/tendermint/crypto' + _PROOFOPS.fields_by_name['ops']._options = None + _PROOFOPS.fields_by_name['ops']._serialized_options = b'\310\336\037\000' + _PROOF._serialized_start=74 + _PROOF._serialized_end=176 + _VALUEOP._serialized_start=178 + _VALUEOP._serialized_end=253 + _DOMINOOP._serialized_start=255 + _DOMINOOP._serialized_end=329 + _PROOFOP._serialized_start=331 + _PROOFOP._serialized_end=398 + _PROOFOPS._serialized_start=400 + _PROOFOPS._serialized_end=462 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/crypto/proof_pb2.pyi b/nibiru_proto/tendermint/crypto/proof_pb2.pyi new file mode 100644 index 00000000..284656af --- /dev/null +++ b/nibiru_proto/tendermint/crypto/proof_pb2.pyi @@ -0,0 +1,129 @@ +""" +@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 Proof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + LEAF_HASH_FIELD_NUMBER: builtins.int + AUNTS_FIELD_NUMBER: builtins.int + total: builtins.int + index: builtins.int + leaf_hash: builtins.bytes + @property + def aunts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__( + self, + *, + total: builtins.int = ..., + index: builtins.int = ..., + leaf_hash: builtins.bytes = ..., + aunts: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["aunts", b"aunts", "index", b"index", "leaf_hash", b"leaf_hash", "total", b"total"]) -> None: ... + +global___Proof = Proof + +@typing_extensions.final +class ValueOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + key: builtins.bytes + """Encoded in ProofOp.Key.""" + @property + def proof(self) -> global___Proof: + """To encode in ProofOp.Data""" + def __init__( + self, + *, + key: builtins.bytes = ..., + proof: global___Proof | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proof", b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "proof", b"proof"]) -> None: ... + +global___ValueOp = ValueOp + +@typing_extensions.final +class DominoOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int + OUTPUT_FIELD_NUMBER: builtins.int + key: builtins.str + input: builtins.str + output: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + input: builtins.str = ..., + output: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["input", b"input", "key", b"key", "output", b"output"]) -> None: ... + +global___DominoOp = DominoOp + +@typing_extensions.final +class ProofOp(google.protobuf.message.Message): + """ProofOp defines an operation used for calculating Merkle root + The data could be arbitrary format, providing nessecary data + for example neighbouring node hash + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + type: builtins.str + key: builtins.bytes + data: builtins.bytes + def __init__( + self, + *, + type: builtins.str = ..., + key: builtins.bytes = ..., + data: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "key", b"key", "type", b"type"]) -> None: ... + +global___ProofOp = ProofOp + +@typing_extensions.final +class ProofOps(google.protobuf.message.Message): + """ProofOps is Merkle proof defined by the list of ProofOps""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPS_FIELD_NUMBER: builtins.int + @property + def ops(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProofOp]: ... + def __init__( + self, + *, + ops: collections.abc.Iterable[global___ProofOp] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ops", b"ops"]) -> None: ... + +global___ProofOps = ProofOps diff --git a/nibiru_proto/tendermint/crypto/proof_pb2_grpc.py b/nibiru_proto/tendermint/crypto/proof_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/crypto/proof_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/libs/bits/types_pb2.py b/nibiru_proto/tendermint/libs/bits/types_pb2.py new file mode 100644 index 00000000..dc2121fc --- /dev/null +++ b/nibiru_proto/tendermint/libs/bits/types_pb2.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/libs/bits/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n tendermint/libs/bits/types.proto\x12\x14tendermint.libs.bits\"4\n\x08\x42itArray\x12\x12\n\x04\x62its\x18\x01 \x01(\x03R\x04\x62its\x12\x14\n\x05\x65lems\x18\x02 \x03(\x04R\x05\x65lemsB9Z7github.com/cometbft/cometbft/proto/tendermint/libs/bitsb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.libs.bits.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z7github.com/cometbft/cometbft/proto/tendermint/libs/bits' + _BITARRAY._serialized_start=58 + _BITARRAY._serialized_end=110 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/libs/bits/types_pb2.pyi b/nibiru_proto/tendermint/libs/bits/types_pb2.pyi new file mode 100644 index 00000000..311efd52 --- /dev/null +++ b/nibiru_proto/tendermint/libs/bits/types_pb2.pyi @@ -0,0 +1,36 @@ +""" +@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 BitArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BITS_FIELD_NUMBER: builtins.int + ELEMS_FIELD_NUMBER: builtins.int + bits: builtins.int + @property + def elems(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__( + self, + *, + bits: builtins.int = ..., + elems: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bits", b"bits", "elems", b"elems"]) -> None: ... + +global___BitArray = BitArray diff --git a/nibiru_proto/tendermint/libs/bits/types_pb2_grpc.py b/nibiru_proto/tendermint/libs/bits/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/libs/bits/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/p2p/types_pb2.py b/nibiru_proto/tendermint/p2p/types_pb2.py new file mode 100644 index 00000000..5cfbad3b --- /dev/null +++ b/nibiru_proto/tendermint/p2p/types_pb2.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/p2p/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1atendermint/p2p/types.proto\x12\x0etendermint.p2p\x1a\x14gogoproto/gogo.proto\"P\n\nNetAddress\x12\x16\n\x02id\x18\x01 \x01(\tB\x06\xe2\xde\x1f\x02IDR\x02id\x12\x16\n\x02ip\x18\x02 \x01(\tB\x06\xe2\xde\x1f\x02IPR\x02ip\x12\x12\n\x04port\x18\x03 \x01(\rR\x04port\"T\n\x0fProtocolVersion\x12\x19\n\x03p2p\x18\x01 \x01(\x04\x42\x07\xe2\xde\x1f\x03P2PR\x03p2p\x12\x14\n\x05\x62lock\x18\x02 \x01(\x04R\x05\x62lock\x12\x10\n\x03\x61pp\x18\x03 \x01(\x04R\x03\x61pp\"\xeb\x02\n\x0f\x44\x65\x66\x61ultNodeInfo\x12P\n\x10protocol_version\x18\x01 \x01(\x0b\x32\x1f.tendermint.p2p.ProtocolVersionB\x04\xc8\xde\x1f\x00R\x0fprotocolVersion\x12\x39\n\x0f\x64\x65\x66\x61ult_node_id\x18\x02 \x01(\tB\x11\xe2\xde\x1f\rDefaultNodeIDR\rdefaultNodeId\x12\x1f\n\x0blisten_addr\x18\x03 \x01(\tR\nlistenAddr\x12\x18\n\x07network\x18\x04 \x01(\tR\x07network\x12\x18\n\x07version\x18\x05 \x01(\tR\x07version\x12\x1a\n\x08\x63hannels\x18\x06 \x01(\x0cR\x08\x63hannels\x12\x18\n\x07moniker\x18\x07 \x01(\tR\x07moniker\x12@\n\x05other\x18\x08 \x01(\x0b\x32$.tendermint.p2p.DefaultNodeInfoOtherB\x04\xc8\xde\x1f\x00R\x05other\"b\n\x14\x44\x65\x66\x61ultNodeInfoOther\x12\x19\n\x08tx_index\x18\x01 \x01(\tR\x07txIndex\x12/\n\x0brpc_address\x18\x02 \x01(\tB\x0e\xe2\xde\x1f\nRPCAddressR\nrpcAddressB3Z1github.com/cometbft/cometbft/proto/tendermint/p2pb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.p2p.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z1github.com/cometbft/cometbft/proto/tendermint/p2p' + _NETADDRESS.fields_by_name['id']._options = None + _NETADDRESS.fields_by_name['id']._serialized_options = b'\342\336\037\002ID' + _NETADDRESS.fields_by_name['ip']._options = None + _NETADDRESS.fields_by_name['ip']._serialized_options = b'\342\336\037\002IP' + _PROTOCOLVERSION.fields_by_name['p2p']._options = None + _PROTOCOLVERSION.fields_by_name['p2p']._serialized_options = b'\342\336\037\003P2P' + _DEFAULTNODEINFO.fields_by_name['protocol_version']._options = None + _DEFAULTNODEINFO.fields_by_name['protocol_version']._serialized_options = b'\310\336\037\000' + _DEFAULTNODEINFO.fields_by_name['default_node_id']._options = None + _DEFAULTNODEINFO.fields_by_name['default_node_id']._serialized_options = b'\342\336\037\rDefaultNodeID' + _DEFAULTNODEINFO.fields_by_name['other']._options = None + _DEFAULTNODEINFO.fields_by_name['other']._serialized_options = b'\310\336\037\000' + _DEFAULTNODEINFOOTHER.fields_by_name['rpc_address']._options = None + _DEFAULTNODEINFOOTHER.fields_by_name['rpc_address']._serialized_options = b'\342\336\037\nRPCAddress' + _NETADDRESS._serialized_start=68 + _NETADDRESS._serialized_end=148 + _PROTOCOLVERSION._serialized_start=150 + _PROTOCOLVERSION._serialized_end=234 + _DEFAULTNODEINFO._serialized_start=237 + _DEFAULTNODEINFO._serialized_end=600 + _DEFAULTNODEINFOOTHER._serialized_start=602 + _DEFAULTNODEINFOOTHER._serialized_end=700 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/p2p/types_pb2.pyi b/nibiru_proto/tendermint/p2p/types_pb2.pyi new file mode 100644 index 00000000..dfe6bbe5 --- /dev/null +++ b/nibiru_proto/tendermint/p2p/types_pb2.pyi @@ -0,0 +1,114 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 NetAddress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + IP_FIELD_NUMBER: builtins.int + PORT_FIELD_NUMBER: builtins.int + id: builtins.str + ip: builtins.str + port: builtins.int + def __init__( + self, + *, + id: builtins.str = ..., + ip: builtins.str = ..., + port: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "ip", b"ip", "port", b"port"]) -> None: ... + +global___NetAddress = NetAddress + +@typing_extensions.final +class ProtocolVersion(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + P2P_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + APP_FIELD_NUMBER: builtins.int + p2p: builtins.int + block: builtins.int + app: builtins.int + def __init__( + self, + *, + p2p: builtins.int = ..., + block: builtins.int = ..., + app: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["app", b"app", "block", b"block", "p2p", b"p2p"]) -> None: ... + +global___ProtocolVersion = ProtocolVersion + +@typing_extensions.final +class DefaultNodeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROTOCOL_VERSION_FIELD_NUMBER: builtins.int + DEFAULT_NODE_ID_FIELD_NUMBER: builtins.int + LISTEN_ADDR_FIELD_NUMBER: builtins.int + NETWORK_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CHANNELS_FIELD_NUMBER: builtins.int + MONIKER_FIELD_NUMBER: builtins.int + OTHER_FIELD_NUMBER: builtins.int + @property + def protocol_version(self) -> global___ProtocolVersion: ... + default_node_id: builtins.str + listen_addr: builtins.str + network: builtins.str + version: builtins.str + channels: builtins.bytes + moniker: builtins.str + @property + def other(self) -> global___DefaultNodeInfoOther: ... + def __init__( + self, + *, + protocol_version: global___ProtocolVersion | None = ..., + default_node_id: builtins.str = ..., + listen_addr: builtins.str = ..., + network: builtins.str = ..., + version: builtins.str = ..., + channels: builtins.bytes = ..., + moniker: builtins.str = ..., + other: global___DefaultNodeInfoOther | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["other", b"other", "protocol_version", b"protocol_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["channels", b"channels", "default_node_id", b"default_node_id", "listen_addr", b"listen_addr", "moniker", b"moniker", "network", b"network", "other", b"other", "protocol_version", b"protocol_version", "version", b"version"]) -> None: ... + +global___DefaultNodeInfo = DefaultNodeInfo + +@typing_extensions.final +class DefaultNodeInfoOther(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TX_INDEX_FIELD_NUMBER: builtins.int + RPC_ADDRESS_FIELD_NUMBER: builtins.int + tx_index: builtins.str + rpc_address: builtins.str + def __init__( + self, + *, + tx_index: builtins.str = ..., + rpc_address: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rpc_address", b"rpc_address", "tx_index", b"tx_index"]) -> None: ... + +global___DefaultNodeInfoOther = DefaultNodeInfoOther diff --git a/nibiru_proto/tendermint/p2p/types_pb2_grpc.py b/nibiru_proto/tendermint/p2p/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/p2p/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/types/block_pb2.py b/nibiru_proto/tendermint/types/block_pb2.py new file mode 100644 index 00000000..ffabee4e --- /dev/null +++ b/nibiru_proto/tendermint/types/block_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/types/block.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from tendermint.types import evidence_pb2 as tendermint_dot_types_dot_evidence__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ctendermint/types/block.proto\x12\x10tendermint.types\x1a\x14gogoproto/gogo.proto\x1a\x1ctendermint/types/types.proto\x1a\x1ftendermint/types/evidence.proto\"\xee\x01\n\x05\x42lock\x12\x36\n\x06header\x18\x01 \x01(\x0b\x32\x18.tendermint.types.HeaderB\x04\xc8\xde\x1f\x00R\x06header\x12\x30\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.tendermint.types.DataB\x04\xc8\xde\x1f\x00R\x04\x64\x61ta\x12@\n\x08\x65vidence\x18\x03 \x01(\x0b\x32\x1e.tendermint.types.EvidenceListB\x04\xc8\xde\x1f\x00R\x08\x65vidence\x12\x39\n\x0blast_commit\x18\x04 \x01(\x0b\x32\x18.tendermint.types.CommitR\nlastCommitB5Z3github.com/cometbft/cometbft/proto/tendermint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.types.block_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cometbft/cometbft/proto/tendermint/types' + _BLOCK.fields_by_name['header']._options = None + _BLOCK.fields_by_name['header']._serialized_options = b'\310\336\037\000' + _BLOCK.fields_by_name['data']._options = None + _BLOCK.fields_by_name['data']._serialized_options = b'\310\336\037\000' + _BLOCK.fields_by_name['evidence']._options = None + _BLOCK.fields_by_name['evidence']._serialized_options = b'\310\336\037\000' + _BLOCK._serialized_start=136 + _BLOCK._serialized_end=374 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/types/block_pb2.pyi b/nibiru_proto/tendermint/types/block_pb2.pyi new file mode 100644 index 00000000..90ed919e --- /dev/null +++ b/nibiru_proto/tendermint/types/block_pb2.pyi @@ -0,0 +1,46 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import sys +import tendermint.types.evidence_pb2 +import tendermint.types.types_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class Block(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEADER_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + LAST_COMMIT_FIELD_NUMBER: builtins.int + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def data(self) -> tendermint.types.types_pb2.Data: ... + @property + def evidence(self) -> tendermint.types.evidence_pb2.EvidenceList: ... + @property + def last_commit(self) -> tendermint.types.types_pb2.Commit: ... + def __init__( + self, + *, + header: tendermint.types.types_pb2.Header | None = ..., + data: tendermint.types.types_pb2.Data | None = ..., + evidence: tendermint.types.evidence_pb2.EvidenceList | None = ..., + last_commit: tendermint.types.types_pb2.Commit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data", b"data", "evidence", b"evidence", "header", b"header", "last_commit", b"last_commit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "evidence", b"evidence", "header", b"header", "last_commit", b"last_commit"]) -> None: ... + +global___Block = Block diff --git a/nibiru_proto/tendermint/types/block_pb2_grpc.py b/nibiru_proto/tendermint/types/block_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/types/block_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/types/evidence_pb2.py b/nibiru_proto/tendermint/types/evidence_pb2.py new file mode 100644 index 00000000..74aee935 --- /dev/null +++ b/nibiru_proto/tendermint/types/evidence_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/types/evidence.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from tendermint.types import types_pb2 as tendermint_dot_types_dot_types__pb2 +from tendermint.types import validator_pb2 as tendermint_dot_types_dot_validator__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ftendermint/types/evidence.proto\x12\x10tendermint.types\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1ctendermint/types/types.proto\x1a tendermint/types/validator.proto\"\xe4\x01\n\x08\x45vidence\x12\x61\n\x17\x64uplicate_vote_evidence\x18\x01 \x01(\x0b\x32\'.tendermint.types.DuplicateVoteEvidenceH\x00R\x15\x64uplicateVoteEvidence\x12n\n\x1clight_client_attack_evidence\x18\x02 \x01(\x0b\x32+.tendermint.types.LightClientAttackEvidenceH\x00R\x19lightClientAttackEvidenceB\x05\n\x03sum\"\x90\x02\n\x15\x44uplicateVoteEvidence\x12-\n\x06vote_a\x18\x01 \x01(\x0b\x32\x16.tendermint.types.VoteR\x05voteA\x12-\n\x06vote_b\x18\x02 \x01(\x0b\x32\x16.tendermint.types.VoteR\x05voteB\x12,\n\x12total_voting_power\x18\x03 \x01(\x03R\x10totalVotingPower\x12\'\n\x0fvalidator_power\x18\x04 \x01(\x03R\x0evalidatorPower\x12\x42\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\"\xcd\x02\n\x19LightClientAttackEvidence\x12I\n\x11\x63onflicting_block\x18\x01 \x01(\x0b\x32\x1c.tendermint.types.LightBlockR\x10\x63onflictingBlock\x12#\n\rcommon_height\x18\x02 \x01(\x03R\x0c\x63ommonHeight\x12N\n\x14\x62yzantine_validators\x18\x03 \x03(\x0b\x32\x1b.tendermint.types.ValidatorR\x13\x62yzantineValidators\x12,\n\x12total_voting_power\x18\x04 \x01(\x03R\x10totalVotingPower\x12\x42\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\"L\n\x0c\x45videnceList\x12<\n\x08\x65vidence\x18\x01 \x03(\x0b\x32\x1a.tendermint.types.EvidenceB\x04\xc8\xde\x1f\x00R\x08\x65videnceB5Z3github.com/cometbft/cometbft/proto/tendermint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.types.evidence_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cometbft/cometbft/proto/tendermint/types' + _DUPLICATEVOTEEVIDENCE.fields_by_name['timestamp']._options = None + _DUPLICATEVOTEEVIDENCE.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _LIGHTCLIENTATTACKEVIDENCE.fields_by_name['timestamp']._options = None + _LIGHTCLIENTATTACKEVIDENCE.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _EVIDENCELIST.fields_by_name['evidence']._options = None + _EVIDENCELIST.fields_by_name['evidence']._serialized_options = b'\310\336\037\000' + _EVIDENCE._serialized_start=173 + _EVIDENCE._serialized_end=401 + _DUPLICATEVOTEEVIDENCE._serialized_start=404 + _DUPLICATEVOTEEVIDENCE._serialized_end=676 + _LIGHTCLIENTATTACKEVIDENCE._serialized_start=679 + _LIGHTCLIENTATTACKEVIDENCE._serialized_end=1012 + _EVIDENCELIST._serialized_start=1014 + _EVIDENCELIST._serialized_end=1090 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/types/evidence_pb2.pyi b/nibiru_proto/tendermint/types/evidence_pb2.pyi new file mode 100644 index 00000000..b78058dd --- /dev/null +++ b/nibiru_proto/tendermint/types/evidence_pb2.pyi @@ -0,0 +1,124 @@ +""" +@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 google.protobuf.timestamp_pb2 +import sys +import tendermint.types.types_pb2 +import tendermint.types.validator_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class Evidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER: builtins.int + LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER: builtins.int + @property + def duplicate_vote_evidence(self) -> global___DuplicateVoteEvidence: ... + @property + def light_client_attack_evidence(self) -> global___LightClientAttackEvidence: ... + def __init__( + self, + *, + duplicate_vote_evidence: global___DuplicateVoteEvidence | None = ..., + light_client_attack_evidence: global___LightClientAttackEvidence | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["duplicate_vote_evidence", b"duplicate_vote_evidence", "light_client_attack_evidence", b"light_client_attack_evidence", "sum", b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["duplicate_vote_evidence", b"duplicate_vote_evidence", "light_client_attack_evidence", b"light_client_attack_evidence", "sum", b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["sum", b"sum"]) -> typing_extensions.Literal["duplicate_vote_evidence", "light_client_attack_evidence"] | None: ... + +global___Evidence = Evidence + +@typing_extensions.final +class DuplicateVoteEvidence(google.protobuf.message.Message): + """DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VOTE_A_FIELD_NUMBER: builtins.int + VOTE_B_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + VALIDATOR_POWER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def vote_a(self) -> tendermint.types.types_pb2.Vote: ... + @property + def vote_b(self) -> tendermint.types.types_pb2.Vote: ... + total_voting_power: builtins.int + validator_power: builtins.int + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + vote_a: tendermint.types.types_pb2.Vote | None = ..., + vote_b: tendermint.types.types_pb2.Vote | None = ..., + total_voting_power: builtins.int = ..., + validator_power: builtins.int = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "vote_a", b"vote_a", "vote_b", b"vote_b"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "total_voting_power", b"total_voting_power", "validator_power", b"validator_power", "vote_a", b"vote_a", "vote_b", b"vote_b"]) -> None: ... + +global___DuplicateVoteEvidence = DuplicateVoteEvidence + +@typing_extensions.final +class LightClientAttackEvidence(google.protobuf.message.Message): + """LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONFLICTING_BLOCK_FIELD_NUMBER: builtins.int + COMMON_HEIGHT_FIELD_NUMBER: builtins.int + BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def conflicting_block(self) -> tendermint.types.types_pb2.LightBlock: ... + common_height: builtins.int + @property + def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.types.validator_pb2.Validator]: ... + total_voting_power: builtins.int + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + conflicting_block: tendermint.types.types_pb2.LightBlock | None = ..., + common_height: builtins.int = ..., + byzantine_validators: collections.abc.Iterable[tendermint.types.validator_pb2.Validator] | None = ..., + total_voting_power: builtins.int = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["conflicting_block", b"conflicting_block", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["byzantine_validators", b"byzantine_validators", "common_height", b"common_height", "conflicting_block", b"conflicting_block", "timestamp", b"timestamp", "total_voting_power", b"total_voting_power"]) -> None: ... + +global___LightClientAttackEvidence = LightClientAttackEvidence + +@typing_extensions.final +class EvidenceList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVIDENCE_FIELD_NUMBER: builtins.int + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... + def __init__( + self, + *, + evidence: collections.abc.Iterable[global___Evidence] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["evidence", b"evidence"]) -> None: ... + +global___EvidenceList = EvidenceList diff --git a/nibiru_proto/tendermint/types/evidence_pb2_grpc.py b/nibiru_proto/tendermint/types/evidence_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/types/evidence_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/types/params_pb2.py b/nibiru_proto/tendermint/types/params_pb2.py new file mode 100644 index 00000000..36c19d4f --- /dev/null +++ b/nibiru_proto/tendermint/types/params_pb2.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/types/params.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dtendermint/types/params.proto\x12\x10tendermint.types\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\"\x80\x02\n\x0f\x43onsensusParams\x12\x33\n\x05\x62lock\x18\x01 \x01(\x0b\x32\x1d.tendermint.types.BlockParamsR\x05\x62lock\x12<\n\x08\x65vidence\x18\x02 \x01(\x0b\x32 .tendermint.types.EvidenceParamsR\x08\x65vidence\x12?\n\tvalidator\x18\x03 \x01(\x0b\x32!.tendermint.types.ValidatorParamsR\tvalidator\x12\x39\n\x07version\x18\x04 \x01(\x0b\x32\x1f.tendermint.types.VersionParamsR\x07version\"I\n\x0b\x42lockParams\x12\x1b\n\tmax_bytes\x18\x01 \x01(\x03R\x08maxBytes\x12\x17\n\x07max_gas\x18\x02 \x01(\x03R\x06maxGasJ\x04\x08\x03\x10\x04\"\xa9\x01\n\x0e\x45videnceParams\x12+\n\x12max_age_num_blocks\x18\x01 \x01(\x03R\x0fmaxAgeNumBlocks\x12M\n\x10max_age_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01R\x0emaxAgeDuration\x12\x1b\n\tmax_bytes\x18\x03 \x01(\x03R\x08maxBytes\"?\n\x0fValidatorParams\x12\"\n\rpub_key_types\x18\x01 \x03(\tR\x0bpubKeyTypes:\x08\xb8\xa0\x1f\x01\xe8\xa0\x1f\x01\"+\n\rVersionParams\x12\x10\n\x03\x61pp\x18\x01 \x01(\x04R\x03\x61pp:\x08\xb8\xa0\x1f\x01\xe8\xa0\x1f\x01\"Z\n\x0cHashedParams\x12&\n\x0f\x62lock_max_bytes\x18\x01 \x01(\x03R\rblockMaxBytes\x12\"\n\rblock_max_gas\x18\x02 \x01(\x03R\x0b\x62lockMaxGasB9Z3github.com/cometbft/cometbft/proto/tendermint/types\xa8\xe2\x1e\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.types.params_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cometbft/cometbft/proto/tendermint/types\250\342\036\001' + _EVIDENCEPARAMS.fields_by_name['max_age_duration']._options = None + _EVIDENCEPARAMS.fields_by_name['max_age_duration']._serialized_options = b'\310\336\037\000\230\337\037\001' + _VALIDATORPARAMS._options = None + _VALIDATORPARAMS._serialized_options = b'\270\240\037\001\350\240\037\001' + _VERSIONPARAMS._options = None + _VERSIONPARAMS._serialized_options = b'\270\240\037\001\350\240\037\001' + _CONSENSUSPARAMS._serialized_start=106 + _CONSENSUSPARAMS._serialized_end=362 + _BLOCKPARAMS._serialized_start=364 + _BLOCKPARAMS._serialized_end=437 + _EVIDENCEPARAMS._serialized_start=440 + _EVIDENCEPARAMS._serialized_end=609 + _VALIDATORPARAMS._serialized_start=611 + _VALIDATORPARAMS._serialized_end=674 + _VERSIONPARAMS._serialized_start=676 + _VERSIONPARAMS._serialized_end=719 + _HASHEDPARAMS._serialized_start=721 + _HASHEDPARAMS._serialized_end=811 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/types/params_pb2.pyi b/nibiru_proto/tendermint/types/params_pb2.pyi new file mode 100644 index 00000000..cc347048 --- /dev/null +++ b/nibiru_proto/tendermint/types/params_pb2.pyi @@ -0,0 +1,177 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +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 ConsensusParams(google.protobuf.message.Message): + """ConsensusParams contains consensus critical parameters that determine the + validity of blocks. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + @property + def block(self) -> global___BlockParams: ... + @property + def evidence(self) -> global___EvidenceParams: ... + @property + def validator(self) -> global___ValidatorParams: ... + @property + def version(self) -> global___VersionParams: ... + def __init__( + self, + *, + block: global___BlockParams | None = ..., + evidence: global___EvidenceParams | None = ..., + validator: global___ValidatorParams | None = ..., + version: global___VersionParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block", b"block", "evidence", b"evidence", "validator", b"validator", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block", b"block", "evidence", b"evidence", "validator", b"validator", "version", b"version"]) -> None: ... + +global___ConsensusParams = ConsensusParams + +@typing_extensions.final +class BlockParams(google.protobuf.message.Message): + """BlockParams contains limits on the block size.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_BYTES_FIELD_NUMBER: builtins.int + MAX_GAS_FIELD_NUMBER: builtins.int + max_bytes: builtins.int + """Max block size, in bytes. + Note: must be greater than 0 + """ + max_gas: builtins.int + """Max gas per block. + Note: must be greater or equal to -1 + """ + def __init__( + self, + *, + max_bytes: builtins.int = ..., + max_gas: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["max_bytes", b"max_bytes", "max_gas", b"max_gas"]) -> None: ... + +global___BlockParams = BlockParams + +@typing_extensions.final +class EvidenceParams(google.protobuf.message.Message): + """EvidenceParams determine how we handle evidence of malfeasance.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MAX_AGE_NUM_BLOCKS_FIELD_NUMBER: builtins.int + MAX_AGE_DURATION_FIELD_NUMBER: builtins.int + MAX_BYTES_FIELD_NUMBER: builtins.int + max_age_num_blocks: builtins.int + """Max age of evidence, in blocks. + + The basic formula for calculating this is: MaxAgeDuration / {average block + time}. + """ + @property + def max_age_duration(self) -> google.protobuf.duration_pb2.Duration: + """Max age of evidence, in time. + + It should correspond with an app's "unbonding period" or other similar + mechanism for handling [Nothing-At-Stake + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + """ + max_bytes: builtins.int + """This sets the maximum size of total evidence in bytes that can be committed in a single block. + and should fall comfortably under the max block bytes. + Default is 1048576 or 1MB + """ + def __init__( + self, + *, + max_age_num_blocks: builtins.int = ..., + max_age_duration: google.protobuf.duration_pb2.Duration | None = ..., + max_bytes: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["max_age_duration", b"max_age_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["max_age_duration", b"max_age_duration", "max_age_num_blocks", b"max_age_num_blocks", "max_bytes", b"max_bytes"]) -> None: ... + +global___EvidenceParams = EvidenceParams + +@typing_extensions.final +class ValidatorParams(google.protobuf.message.Message): + """ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PUB_KEY_TYPES_FIELD_NUMBER: builtins.int + @property + def pub_key_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + pub_key_types: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["pub_key_types", b"pub_key_types"]) -> None: ... + +global___ValidatorParams = ValidatorParams + +@typing_extensions.final +class VersionParams(google.protobuf.message.Message): + """VersionParams contains the ABCI application version.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + APP_FIELD_NUMBER: builtins.int + app: builtins.int + def __init__( + self, + *, + app: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["app", b"app"]) -> None: ... + +global___VersionParams = VersionParams + +@typing_extensions.final +class HashedParams(google.protobuf.message.Message): + """HashedParams is a subset of ConsensusParams. + + It is hashed into the Header.ConsensusHash. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_MAX_BYTES_FIELD_NUMBER: builtins.int + BLOCK_MAX_GAS_FIELD_NUMBER: builtins.int + block_max_bytes: builtins.int + block_max_gas: builtins.int + def __init__( + self, + *, + block_max_bytes: builtins.int = ..., + block_max_gas: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["block_max_bytes", b"block_max_bytes", "block_max_gas", b"block_max_gas"]) -> None: ... + +global___HashedParams = HashedParams diff --git a/nibiru_proto/tendermint/types/params_pb2_grpc.py b/nibiru_proto/tendermint/types/params_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/types/params_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/types/types_pb2.py b/nibiru_proto/tendermint/types/types_pb2.py new file mode 100644 index 00000000..9532ae40 --- /dev/null +++ b/nibiru_proto/tendermint/types/types_pb2.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/types/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from tendermint.crypto import proof_pb2 as tendermint_dot_crypto_dot_proof__pb2 +from tendermint.version import types_pb2 as tendermint_dot_version_dot_types__pb2 +from tendermint.types import validator_pb2 as tendermint_dot_types_dot_validator__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ctendermint/types/types.proto\x12\x10tendermint.types\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dtendermint/crypto/proof.proto\x1a\x1etendermint/version/types.proto\x1a tendermint/types/validator.proto\"9\n\rPartSetHeader\x12\x14\n\x05total\x18\x01 \x01(\rR\x05total\x12\x12\n\x04hash\x18\x02 \x01(\x0cR\x04hash\"h\n\x04Part\x12\x14\n\x05index\x18\x01 \x01(\rR\x05index\x12\x14\n\x05\x62ytes\x18\x02 \x01(\x0cR\x05\x62ytes\x12\x34\n\x05proof\x18\x03 \x01(\x0b\x32\x18.tendermint.crypto.ProofB\x04\xc8\xde\x1f\x00R\x05proof\"l\n\x07\x42lockID\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12M\n\x0fpart_set_header\x18\x02 \x01(\x0b\x32\x1f.tendermint.types.PartSetHeaderB\x04\xc8\xde\x1f\x00R\rpartSetHeader\"\xe6\x04\n\x06Header\x12=\n\x07version\x18\x01 \x01(\x0b\x32\x1d.tendermint.version.ConsensusB\x04\xc8\xde\x1f\x00R\x07version\x12&\n\x08\x63hain_id\x18\x02 \x01(\tB\x0b\xe2\xde\x1f\x07\x43hainIDR\x07\x63hainId\x12\x16\n\x06height\x18\x03 \x01(\x03R\x06height\x12\x38\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\x04time\x12\x43\n\rlast_block_id\x18\x05 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\x04\xc8\xde\x1f\x00R\x0blastBlockId\x12(\n\x10last_commit_hash\x18\x06 \x01(\x0cR\x0elastCommitHash\x12\x1b\n\tdata_hash\x18\x07 \x01(\x0cR\x08\x64\x61taHash\x12\'\n\x0fvalidators_hash\x18\x08 \x01(\x0cR\x0evalidatorsHash\x12\x30\n\x14next_validators_hash\x18\t \x01(\x0cR\x12nextValidatorsHash\x12%\n\x0e\x63onsensus_hash\x18\n \x01(\x0cR\rconsensusHash\x12\x19\n\x08\x61pp_hash\x18\x0b \x01(\x0cR\x07\x61ppHash\x12*\n\x11last_results_hash\x18\x0c \x01(\x0cR\x0flastResultsHash\x12#\n\revidence_hash\x18\r \x01(\x0cR\x0c\x65videnceHash\x12)\n\x10proposer_address\x18\x0e \x01(\x0cR\x0fproposerAddress\"\x18\n\x04\x44\x61ta\x12\x10\n\x03txs\x18\x01 \x03(\x0cR\x03txs\"\xe8\x02\n\x04Vote\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32\x1f.tendermint.types.SignedMsgTypeR\x04type\x12\x16\n\x06height\x18\x02 \x01(\x03R\x06height\x12\x14\n\x05round\x18\x03 \x01(\x05R\x05round\x12\x45\n\x08\x62lock_id\x18\x04 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\x0f\xc8\xde\x1f\x00\xe2\xde\x1f\x07\x42lockIDR\x07\x62lockId\x12\x42\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\x12+\n\x11validator_address\x18\x06 \x01(\x0cR\x10validatorAddress\x12\'\n\x0fvalidator_index\x18\x07 \x01(\x05R\x0evalidatorIndex\x12\x1c\n\tsignature\x18\x08 \x01(\x0cR\tsignature\"\xc0\x01\n\x06\x43ommit\x12\x16\n\x06height\x18\x01 \x01(\x03R\x06height\x12\x14\n\x05round\x18\x02 \x01(\x05R\x05round\x12\x45\n\x08\x62lock_id\x18\x03 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\x0f\xc8\xde\x1f\x00\xe2\xde\x1f\x07\x42lockIDR\x07\x62lockId\x12\x41\n\nsignatures\x18\x04 \x03(\x0b\x32\x1b.tendermint.types.CommitSigB\x04\xc8\xde\x1f\x00R\nsignatures\"\xdd\x01\n\tCommitSig\x12\x41\n\rblock_id_flag\x18\x01 \x01(\x0e\x32\x1d.tendermint.types.BlockIDFlagR\x0b\x62lockIdFlag\x12+\n\x11validator_address\x18\x02 \x01(\x0cR\x10validatorAddress\x12\x42\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\x12\x1c\n\tsignature\x18\x04 \x01(\x0cR\tsignature\"\xb3\x02\n\x08Proposal\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32\x1f.tendermint.types.SignedMsgTypeR\x04type\x12\x16\n\x06height\x18\x02 \x01(\x03R\x06height\x12\x14\n\x05round\x18\x03 \x01(\x05R\x05round\x12\x1b\n\tpol_round\x18\x04 \x01(\x05R\x08polRound\x12\x45\n\x08\x62lock_id\x18\x05 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\x0f\xc8\xde\x1f\x00\xe2\xde\x1f\x07\x42lockIDR\x07\x62lockId\x12\x42\n\ttimestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\ttimestamp\x12\x1c\n\tsignature\x18\x07 \x01(\x0cR\tsignature\"r\n\x0cSignedHeader\x12\x30\n\x06header\x18\x01 \x01(\x0b\x32\x18.tendermint.types.HeaderR\x06header\x12\x30\n\x06\x63ommit\x18\x02 \x01(\x0b\x32\x18.tendermint.types.CommitR\x06\x63ommit\"\x96\x01\n\nLightBlock\x12\x43\n\rsigned_header\x18\x01 \x01(\x0b\x32\x1e.tendermint.types.SignedHeaderR\x0csignedHeader\x12\x43\n\rvalidator_set\x18\x02 \x01(\x0b\x32\x1e.tendermint.types.ValidatorSetR\x0cvalidatorSet\"\xc2\x01\n\tBlockMeta\x12\x45\n\x08\x62lock_id\x18\x01 \x01(\x0b\x32\x19.tendermint.types.BlockIDB\x0f\xc8\xde\x1f\x00\xe2\xde\x1f\x07\x42lockIDR\x07\x62lockId\x12\x1d\n\nblock_size\x18\x02 \x01(\x03R\tblockSize\x12\x36\n\x06header\x18\x03 \x01(\x0b\x32\x18.tendermint.types.HeaderB\x04\xc8\xde\x1f\x00R\x06header\x12\x17\n\x07num_txs\x18\x04 \x01(\x03R\x06numTxs\"j\n\x07TxProof\x12\x1b\n\troot_hash\x18\x01 \x01(\x0cR\x08rootHash\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta\x12.\n\x05proof\x18\x03 \x01(\x0b\x32\x18.tendermint.crypto.ProofR\x05proof*\xd7\x01\n\x0b\x42lockIDFlag\x12\x31\n\x15\x42LOCK_ID_FLAG_UNKNOWN\x10\x00\x1a\x16\x8a\x9d \x12\x42lockIDFlagUnknown\x12/\n\x14\x42LOCK_ID_FLAG_ABSENT\x10\x01\x1a\x15\x8a\x9d \x11\x42lockIDFlagAbsent\x12/\n\x14\x42LOCK_ID_FLAG_COMMIT\x10\x02\x1a\x15\x8a\x9d \x11\x42lockIDFlagCommit\x12)\n\x11\x42LOCK_ID_FLAG_NIL\x10\x03\x1a\x12\x8a\x9d \x0e\x42lockIDFlagNil\x1a\x08\x88\xa3\x1e\x00\xa8\xa4\x1e\x01*\xd7\x01\n\rSignedMsgType\x12,\n\x17SIGNED_MSG_TYPE_UNKNOWN\x10\x00\x1a\x0f\x8a\x9d \x0bUnknownType\x12,\n\x17SIGNED_MSG_TYPE_PREVOTE\x10\x01\x1a\x0f\x8a\x9d \x0bPrevoteType\x12\x30\n\x19SIGNED_MSG_TYPE_PRECOMMIT\x10\x02\x1a\x11\x8a\x9d \rPrecommitType\x12.\n\x18SIGNED_MSG_TYPE_PROPOSAL\x10 \x1a\x10\x8a\x9d \x0cProposalType\x1a\x08\x88\xa3\x1e\x00\xa8\xa4\x1e\x01\x42\x35Z3github.com/cometbft/cometbft/proto/tendermint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.types.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cometbft/cometbft/proto/tendermint/types' + _BLOCKIDFLAG._options = None + _BLOCKIDFLAG._serialized_options = b'\210\243\036\000\250\244\036\001' + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_UNKNOWN"]._options = None + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_UNKNOWN"]._serialized_options = b'\212\235 \022BlockIDFlagUnknown' + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_ABSENT"]._options = None + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_ABSENT"]._serialized_options = b'\212\235 \021BlockIDFlagAbsent' + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_COMMIT"]._options = None + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_COMMIT"]._serialized_options = b'\212\235 \021BlockIDFlagCommit' + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_NIL"]._options = None + _BLOCKIDFLAG.values_by_name["BLOCK_ID_FLAG_NIL"]._serialized_options = b'\212\235 \016BlockIDFlagNil' + _SIGNEDMSGTYPE._options = None + _SIGNEDMSGTYPE._serialized_options = b'\210\243\036\000\250\244\036\001' + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_UNKNOWN"]._options = None + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_UNKNOWN"]._serialized_options = b'\212\235 \013UnknownType' + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PREVOTE"]._options = None + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PREVOTE"]._serialized_options = b'\212\235 \013PrevoteType' + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PRECOMMIT"]._options = None + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PRECOMMIT"]._serialized_options = b'\212\235 \rPrecommitType' + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PROPOSAL"]._options = None + _SIGNEDMSGTYPE.values_by_name["SIGNED_MSG_TYPE_PROPOSAL"]._serialized_options = b'\212\235 \014ProposalType' + _PART.fields_by_name['proof']._options = None + _PART.fields_by_name['proof']._serialized_options = b'\310\336\037\000' + _BLOCKID.fields_by_name['part_set_header']._options = None + _BLOCKID.fields_by_name['part_set_header']._serialized_options = b'\310\336\037\000' + _HEADER.fields_by_name['version']._options = None + _HEADER.fields_by_name['version']._serialized_options = b'\310\336\037\000' + _HEADER.fields_by_name['chain_id']._options = None + _HEADER.fields_by_name['chain_id']._serialized_options = b'\342\336\037\007ChainID' + _HEADER.fields_by_name['time']._options = None + _HEADER.fields_by_name['time']._serialized_options = b'\310\336\037\000\220\337\037\001' + _HEADER.fields_by_name['last_block_id']._options = None + _HEADER.fields_by_name['last_block_id']._serialized_options = b'\310\336\037\000' + _VOTE.fields_by_name['block_id']._options = None + _VOTE.fields_by_name['block_id']._serialized_options = b'\310\336\037\000\342\336\037\007BlockID' + _VOTE.fields_by_name['timestamp']._options = None + _VOTE.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _COMMIT.fields_by_name['block_id']._options = None + _COMMIT.fields_by_name['block_id']._serialized_options = b'\310\336\037\000\342\336\037\007BlockID' + _COMMIT.fields_by_name['signatures']._options = None + _COMMIT.fields_by_name['signatures']._serialized_options = b'\310\336\037\000' + _COMMITSIG.fields_by_name['timestamp']._options = None + _COMMITSIG.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _PROPOSAL.fields_by_name['block_id']._options = None + _PROPOSAL.fields_by_name['block_id']._serialized_options = b'\310\336\037\000\342\336\037\007BlockID' + _PROPOSAL.fields_by_name['timestamp']._options = None + _PROPOSAL.fields_by_name['timestamp']._serialized_options = b'\310\336\037\000\220\337\037\001' + _BLOCKMETA.fields_by_name['block_id']._options = None + _BLOCKMETA.fields_by_name['block_id']._serialized_options = b'\310\336\037\000\342\336\037\007BlockID' + _BLOCKMETA.fields_by_name['header']._options = None + _BLOCKMETA.fields_by_name['header']._serialized_options = b'\310\336\037\000' + _BLOCKIDFLAG._serialized_start=2787 + _BLOCKIDFLAG._serialized_end=3002 + _SIGNEDMSGTYPE._serialized_start=3005 + _SIGNEDMSGTYPE._serialized_end=3220 + _PARTSETHEADER._serialized_start=202 + _PARTSETHEADER._serialized_end=259 + _PART._serialized_start=261 + _PART._serialized_end=365 + _BLOCKID._serialized_start=367 + _BLOCKID._serialized_end=475 + _HEADER._serialized_start=478 + _HEADER._serialized_end=1092 + _DATA._serialized_start=1094 + _DATA._serialized_end=1118 + _VOTE._serialized_start=1121 + _VOTE._serialized_end=1481 + _COMMIT._serialized_start=1484 + _COMMIT._serialized_end=1676 + _COMMITSIG._serialized_start=1679 + _COMMITSIG._serialized_end=1900 + _PROPOSAL._serialized_start=1903 + _PROPOSAL._serialized_end=2210 + _SIGNEDHEADER._serialized_start=2212 + _SIGNEDHEADER._serialized_end=2326 + _LIGHTBLOCK._serialized_start=2329 + _LIGHTBLOCK._serialized_end=2479 + _BLOCKMETA._serialized_start=2482 + _BLOCKMETA._serialized_end=2676 + _TXPROOF._serialized_start=2678 + _TXPROOF._serialized_end=2784 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/types/types_pb2.pyi b/nibiru_proto/tendermint/types/types_pb2.pyi new file mode 100644 index 00000000..8180bc41 --- /dev/null +++ b/nibiru_proto/tendermint/types/types_pb2.pyi @@ -0,0 +1,465 @@ +""" +@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.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import tendermint.crypto.proof_pb2 +import tendermint.types.validator_pb2 +import tendermint.version.types_pb2 +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _BlockIDFlag: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _BlockIDFlagEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BlockIDFlag.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + BLOCK_ID_FLAG_UNKNOWN: _BlockIDFlag.ValueType # 0 + BLOCK_ID_FLAG_ABSENT: _BlockIDFlag.ValueType # 1 + BLOCK_ID_FLAG_COMMIT: _BlockIDFlag.ValueType # 2 + BLOCK_ID_FLAG_NIL: _BlockIDFlag.ValueType # 3 + +class BlockIDFlag(_BlockIDFlag, metaclass=_BlockIDFlagEnumTypeWrapper): + """BlockIdFlag indicates which BlcokID the signature is for""" + +BLOCK_ID_FLAG_UNKNOWN: BlockIDFlag.ValueType # 0 +BLOCK_ID_FLAG_ABSENT: BlockIDFlag.ValueType # 1 +BLOCK_ID_FLAG_COMMIT: BlockIDFlag.ValueType # 2 +BLOCK_ID_FLAG_NIL: BlockIDFlag.ValueType # 3 +global___BlockIDFlag = BlockIDFlag + +class _SignedMsgType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SignedMsgTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignedMsgType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SIGNED_MSG_TYPE_UNKNOWN: _SignedMsgType.ValueType # 0 + SIGNED_MSG_TYPE_PREVOTE: _SignedMsgType.ValueType # 1 + """Votes""" + SIGNED_MSG_TYPE_PRECOMMIT: _SignedMsgType.ValueType # 2 + SIGNED_MSG_TYPE_PROPOSAL: _SignedMsgType.ValueType # 32 + """Proposals""" + +class SignedMsgType(_SignedMsgType, metaclass=_SignedMsgTypeEnumTypeWrapper): + """SignedMsgType is a type of signed message in the consensus.""" + +SIGNED_MSG_TYPE_UNKNOWN: SignedMsgType.ValueType # 0 +SIGNED_MSG_TYPE_PREVOTE: SignedMsgType.ValueType # 1 +"""Votes""" +SIGNED_MSG_TYPE_PRECOMMIT: SignedMsgType.ValueType # 2 +SIGNED_MSG_TYPE_PROPOSAL: SignedMsgType.ValueType # 32 +"""Proposals""" +global___SignedMsgType = SignedMsgType + +@typing_extensions.final +class PartSetHeader(google.protobuf.message.Message): + """PartsetHeader""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + total: builtins.int + hash: builtins.bytes + def __init__( + self, + *, + total: builtins.int = ..., + hash: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash", "total", b"total"]) -> None: ... + +global___PartSetHeader = PartSetHeader + +@typing_extensions.final +class Part(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + index: builtins.int + bytes: builtins.bytes + @property + def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... + def __init__( + self, + *, + index: builtins.int = ..., + bytes: builtins.bytes = ..., + proof: tendermint.crypto.proof_pb2.Proof | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proof", b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bytes", b"bytes", "index", b"index", "proof", b"proof"]) -> None: ... + +global___Part = Part + +@typing_extensions.final +class BlockID(google.protobuf.message.Message): + """BlockID""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HASH_FIELD_NUMBER: builtins.int + PART_SET_HEADER_FIELD_NUMBER: builtins.int + hash: builtins.bytes + @property + def part_set_header(self) -> global___PartSetHeader: ... + def __init__( + self, + *, + hash: builtins.bytes = ..., + part_set_header: global___PartSetHeader | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["part_set_header", b"part_set_header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["hash", b"hash", "part_set_header", b"part_set_header"]) -> None: ... + +global___BlockID = BlockID + +@typing_extensions.final +class Header(google.protobuf.message.Message): + """-------------------------------- + + Header defines the structure of a block header. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + LAST_BLOCK_ID_FIELD_NUMBER: builtins.int + LAST_COMMIT_HASH_FIELD_NUMBER: builtins.int + DATA_HASH_FIELD_NUMBER: builtins.int + VALIDATORS_HASH_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + CONSENSUS_HASH_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + LAST_RESULTS_HASH_FIELD_NUMBER: builtins.int + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int + @property + def version(self) -> tendermint.version.types_pb2.Consensus: + """basic block info""" + chain_id: builtins.str + height: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def last_block_id(self) -> global___BlockID: + """prev block info""" + last_commit_hash: builtins.bytes + """hashes of block data + commit from validators from the last block + """ + data_hash: builtins.bytes + """transactions""" + validators_hash: builtins.bytes + """hashes from the app output from the prev block + validators for the current block + """ + next_validators_hash: builtins.bytes + """validators for the next block""" + consensus_hash: builtins.bytes + """consensus params for current block""" + app_hash: builtins.bytes + """state after txs from the previous block""" + last_results_hash: builtins.bytes + """root hash of all results from the txs from the previous block""" + evidence_hash: builtins.bytes + """consensus info + evidence included in the block + """ + proposer_address: builtins.bytes + """original proposer of the block""" + def __init__( + self, + *, + version: tendermint.version.types_pb2.Consensus | None = ..., + chain_id: builtins.str = ..., + height: builtins.int = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_block_id: global___BlockID | None = ..., + last_commit_hash: builtins.bytes = ..., + data_hash: builtins.bytes = ..., + validators_hash: builtins.bytes = ..., + next_validators_hash: builtins.bytes = ..., + consensus_hash: builtins.bytes = ..., + app_hash: builtins.bytes = ..., + last_results_hash: builtins.bytes = ..., + evidence_hash: builtins.bytes = ..., + proposer_address: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_block_id", b"last_block_id", "time", b"time", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["app_hash", b"app_hash", "chain_id", b"chain_id", "consensus_hash", b"consensus_hash", "data_hash", b"data_hash", "evidence_hash", b"evidence_hash", "height", b"height", "last_block_id", b"last_block_id", "last_commit_hash", b"last_commit_hash", "last_results_hash", b"last_results_hash", "next_validators_hash", b"next_validators_hash", "proposer_address", b"proposer_address", "time", b"time", "validators_hash", b"validators_hash", "version", b"version"]) -> None: ... + +global___Header = Header + +@typing_extensions.final +class Data(google.protobuf.message.Message): + """Data contains the set of transactions included in the block""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TXS_FIELD_NUMBER: builtins.int + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: + """Txs that will be applied by state @ block.Height+1. + NOTE: not all txs here are valid. We're just agreeing on the order first. + This means that block.AppHash does not include these txs. + """ + def __init__( + self, + *, + txs: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["txs", b"txs"]) -> None: ... + +global___Data = Data + +@typing_extensions.final +class Vote(google.protobuf.message.Message): + """Vote represents a prevote, precommit, or commit vote from validators for + consensus. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_INDEX_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + type: global___SignedMsgType.ValueType + height: builtins.int + round: builtins.int + @property + def block_id(self) -> global___BlockID: + """zero if vote is nil.""" + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + validator_address: builtins.bytes + validator_index: builtins.int + signature: builtins.bytes + def __init__( + self, + *, + type: global___SignedMsgType.ValueType = ..., + height: builtins.int = ..., + round: builtins.int = ..., + block_id: global___BlockID | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + validator_address: builtins.bytes = ..., + validator_index: builtins.int = ..., + signature: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "height", b"height", "round", b"round", "signature", b"signature", "timestamp", b"timestamp", "type", b"type", "validator_address", b"validator_address", "validator_index", b"validator_index"]) -> None: ... + +global___Vote = Vote + +@typing_extensions.final +class Commit(google.protobuf.message.Message): + """Commit contains the evidence that a block was committed by a set of validators.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + height: builtins.int + round: builtins.int + @property + def block_id(self) -> global___BlockID: ... + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommitSig]: ... + def __init__( + self, + *, + height: builtins.int = ..., + round: builtins.int = ..., + block_id: global___BlockID | None = ..., + signatures: collections.abc.Iterable[global___CommitSig] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block_id", b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "height", b"height", "round", b"round", "signatures", b"signatures"]) -> None: ... + +global___Commit = Commit + +@typing_extensions.final +class CommitSig(google.protobuf.message.Message): + """CommitSig is a part of the Vote included in a Commit.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_ID_FLAG_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + block_id_flag: global___BlockIDFlag.ValueType + validator_address: builtins.bytes + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + signature: builtins.bytes + def __init__( + self, + *, + block_id_flag: global___BlockIDFlag.ValueType = ..., + validator_address: builtins.bytes = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + signature: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_id_flag", b"block_id_flag", "signature", b"signature", "timestamp", b"timestamp", "validator_address", b"validator_address"]) -> None: ... + +global___CommitSig = CommitSig + +@typing_extensions.final +class Proposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + POL_ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + type: global___SignedMsgType.ValueType + height: builtins.int + round: builtins.int + pol_round: builtins.int + @property + def block_id(self) -> global___BlockID: ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + signature: builtins.bytes + def __init__( + self, + *, + type: global___SignedMsgType.ValueType = ..., + height: builtins.int = ..., + round: builtins.int = ..., + pol_round: builtins.int = ..., + block_id: global___BlockID | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + signature: builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "height", b"height", "pol_round", b"pol_round", "round", b"round", "signature", b"signature", "timestamp", b"timestamp", "type", b"type"]) -> None: ... + +global___Proposal = Proposal + +@typing_extensions.final +class SignedHeader(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEADER_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + @property + def header(self) -> global___Header: ... + @property + def commit(self) -> global___Commit: ... + def __init__( + self, + *, + header: global___Header | None = ..., + commit: global___Commit | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit", b"commit", "header", b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "header", b"header"]) -> None: ... + +global___SignedHeader = SignedHeader + +@typing_extensions.final +class LightBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNED_HEADER_FIELD_NUMBER: builtins.int + VALIDATOR_SET_FIELD_NUMBER: builtins.int + @property + def signed_header(self) -> global___SignedHeader: ... + @property + def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + def __init__( + self, + *, + signed_header: global___SignedHeader | None = ..., + validator_set: tendermint.types.validator_pb2.ValidatorSet | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["signed_header", b"signed_header", "validator_set", b"validator_set"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["signed_header", b"signed_header", "validator_set", b"validator_set"]) -> None: ... + +global___LightBlock = LightBlock + +@typing_extensions.final +class BlockMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_SIZE_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + NUM_TXS_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> global___BlockID: ... + block_size: builtins.int + @property + def header(self) -> global___Header: ... + num_txs: builtins.int + def __init__( + self, + *, + block_id: global___BlockID | None = ..., + block_size: builtins.int = ..., + header: global___Header | None = ..., + num_txs: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "header", b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["block_id", b"block_id", "block_size", b"block_size", "header", b"header", "num_txs", b"num_txs"]) -> None: ... + +global___BlockMeta = BlockMeta + +@typing_extensions.final +class TxProof(google.protobuf.message.Message): + """TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOT_HASH_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + root_hash: builtins.bytes + data: builtins.bytes + @property + def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... + def __init__( + self, + *, + root_hash: builtins.bytes = ..., + data: builtins.bytes = ..., + proof: tendermint.crypto.proof_pb2.Proof | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proof", b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "proof", b"proof", "root_hash", b"root_hash"]) -> None: ... + +global___TxProof = TxProof diff --git a/nibiru_proto/tendermint/types/types_pb2_grpc.py b/nibiru_proto/tendermint/types/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/types/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/types/validator_pb2.py b/nibiru_proto/tendermint/types/validator_pb2.py new file mode 100644 index 00000000..bd16220e --- /dev/null +++ b/nibiru_proto/tendermint/types/validator_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/types/validator.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from tendermint.crypto import keys_pb2 as tendermint_dot_crypto_dot_keys__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n tendermint/types/validator.proto\x12\x10tendermint.types\x1a\x14gogoproto/gogo.proto\x1a\x1ctendermint/crypto/keys.proto\"\xb2\x01\n\x0cValidatorSet\x12;\n\nvalidators\x18\x01 \x03(\x0b\x32\x1b.tendermint.types.ValidatorR\nvalidators\x12\x37\n\x08proposer\x18\x02 \x01(\x0b\x32\x1b.tendermint.types.ValidatorR\x08proposer\x12,\n\x12total_voting_power\x18\x03 \x01(\x03R\x10totalVotingPower\"\xb2\x01\n\tValidator\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0cR\x07\x61\x64\x64ress\x12;\n\x07pub_key\x18\x02 \x01(\x0b\x32\x1c.tendermint.crypto.PublicKeyB\x04\xc8\xde\x1f\x00R\x06pubKey\x12!\n\x0cvoting_power\x18\x03 \x01(\x03R\x0bvotingPower\x12+\n\x11proposer_priority\x18\x04 \x01(\x03R\x10proposerPriority\"k\n\x0fSimpleValidator\x12\x35\n\x07pub_key\x18\x01 \x01(\x0b\x32\x1c.tendermint.crypto.PublicKeyR\x06pubKey\x12!\n\x0cvoting_power\x18\x02 \x01(\x03R\x0bvotingPowerB5Z3github.com/cometbft/cometbft/proto/tendermint/typesb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.types.validator_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z3github.com/cometbft/cometbft/proto/tendermint/types' + _VALIDATOR.fields_by_name['pub_key']._options = None + _VALIDATOR.fields_by_name['pub_key']._serialized_options = b'\310\336\037\000' + _VALIDATORSET._serialized_start=107 + _VALIDATORSET._serialized_end=285 + _VALIDATOR._serialized_start=288 + _VALIDATOR._serialized_end=466 + _SIMPLEVALIDATOR._serialized_start=468 + _SIMPLEVALIDATOR._serialized_end=575 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/types/validator_pb2.pyi b/nibiru_proto/tendermint/types/validator_pb2.pyi new file mode 100644 index 00000000..8665ca38 --- /dev/null +++ b/nibiru_proto/tendermint/types/validator_pb2.pyi @@ -0,0 +1,88 @@ +""" +@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 +import tendermint.crypto.keys_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class ValidatorSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALIDATORS_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + @property + def proposer(self) -> global___Validator: ... + total_voting_power: builtins.int + def __init__( + self, + *, + validators: collections.abc.Iterable[global___Validator] | None = ..., + proposer: global___Validator | None = ..., + total_voting_power: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["proposer", b"proposer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["proposer", b"proposer", "total_voting_power", b"total_voting_power", "validators", b"validators"]) -> None: ... + +global___ValidatorSet = ValidatorSet + +@typing_extensions.final +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int + address: builtins.bytes + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + voting_power: builtins.int + proposer_priority: builtins.int + def __init__( + self, + *, + address: builtins.bytes = ..., + pub_key: tendermint.crypto.keys_pb2.PublicKey | None = ..., + voting_power: builtins.int = ..., + proposer_priority: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "proposer_priority", b"proposer_priority", "pub_key", b"pub_key", "voting_power", b"voting_power"]) -> None: ... + +global___Validator = Validator + +@typing_extensions.final +class SimpleValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + voting_power: builtins.int + def __init__( + self, + *, + pub_key: tendermint.crypto.keys_pb2.PublicKey | None = ..., + voting_power: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["pub_key", b"pub_key", "voting_power", b"voting_power"]) -> None: ... + +global___SimpleValidator = SimpleValidator diff --git a/nibiru_proto/tendermint/types/validator_pb2_grpc.py b/nibiru_proto/tendermint/types/validator_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/types/validator_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/nibiru_proto/tendermint/version/types_pb2.py b/nibiru_proto/tendermint/version/types_pb2.py new file mode 100644 index 00000000..535b3179 --- /dev/null +++ b/nibiru_proto/tendermint/version/types_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tendermint/version/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1etendermint/version/types.proto\x12\x12tendermint.version\x1a\x14gogoproto/gogo.proto\"=\n\x03\x41pp\x12\x1a\n\x08protocol\x18\x01 \x01(\x04R\x08protocol\x12\x1a\n\x08software\x18\x02 \x01(\tR\x08software\"9\n\tConsensus\x12\x14\n\x05\x62lock\x18\x01 \x01(\x04R\x05\x62lock\x12\x10\n\x03\x61pp\x18\x02 \x01(\x04R\x03\x61pp:\x04\xe8\xa0\x1f\x01\x42\x37Z5github.com/cometbft/cometbft/proto/tendermint/versionb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tendermint.version.types_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z5github.com/cometbft/cometbft/proto/tendermint/version' + _CONSENSUS._options = None + _CONSENSUS._serialized_options = b'\350\240\037\001' + _APP._serialized_start=76 + _APP._serialized_end=137 + _CONSENSUS._serialized_start=139 + _CONSENSUS._serialized_end=196 +# @@protoc_insertion_point(module_scope) diff --git a/nibiru_proto/tendermint/version/types_pb2.pyi b/nibiru_proto/tendermint/version/types_pb2.pyi new file mode 100644 index 00000000..2b7b2170 --- /dev/null +++ b/nibiru_proto/tendermint/version/types_pb2.pyi @@ -0,0 +1,61 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +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 App(google.protobuf.message.Message): + """App includes the protocol and software version for the application. + This information is included in ResponseInfo. The App.Protocol can be + updated in ResponseEndBlock. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROTOCOL_FIELD_NUMBER: builtins.int + SOFTWARE_FIELD_NUMBER: builtins.int + protocol: builtins.int + software: builtins.str + def __init__( + self, + *, + protocol: builtins.int = ..., + software: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["protocol", b"protocol", "software", b"software"]) -> None: ... + +global___App = App + +@typing_extensions.final +class Consensus(google.protobuf.message.Message): + """Consensus captures the consensus rules for processing a block in the blockchain, + including all blockchain data structures and the rules of the application's + state transition machine. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BLOCK_FIELD_NUMBER: builtins.int + APP_FIELD_NUMBER: builtins.int + block: builtins.int + app: builtins.int + def __init__( + self, + *, + block: builtins.int = ..., + app: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["app", b"app", "block", b"block"]) -> None: ... + +global___Consensus = Consensus diff --git a/nibiru_proto/tendermint/version/types_pb2_grpc.py b/nibiru_proto/tendermint/version/types_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/nibiru_proto/tendermint/version/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/poetry.lock b/poetry.lock index 6dc6469a..1da8c235 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,9 +1,10 @@ -# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. +# This file is automatically @generated by Poetry and should not be changed by hand. [[package]] name = "aiocron" version = "1.8" description = "Crontabs for asyncio" +category = "main" optional = false python-versions = "*" files = [ @@ -22,6 +23,7 @@ test = ["coverage"] name = "aiohttp" version = "3.8.5" description = "Async http client/server framework (asyncio)" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -130,6 +132,7 @@ speedups = ["Brotli", "aiodns", "cchardet"] name = "aiosignal" version = "1.3.1" description = "aiosignal: a list of registered asynchronous callbacks" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -144,6 +147,7 @@ frozenlist = ">=1.1.0" name = "asn1crypto" version = "1.5.1" description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP" +category = "main" optional = false python-versions = "*" files = [ @@ -155,6 +159,7 @@ files = [ name = "async-timeout" version = "4.0.3" description = "Timeout context manager for asyncio programs" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -166,6 +171,7 @@ files = [ name = "asyncio" version = "3.4.3" description = "reference implementation of PEP 3156" +category = "main" optional = false python-versions = "*" files = [ @@ -179,6 +185,7 @@ files = [ name = "attrs" version = "23.1.0" description = "Classes Without Boilerplate" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -197,6 +204,7 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte name = "backports-zoneinfo" version = "0.2.1" description = "Backport of the standard library zoneinfo module" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -225,6 +233,7 @@ tzdata = ["tzdata"] name = "base58" version = "2.1.1" description = "Base58 and Base58Check implementation." +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -239,6 +248,7 @@ tests = ["PyHamcrest (>=2.0.2)", "mypy", "pytest (>=4.6)", "pytest-benchmark", " name = "bech32" version = "1.2.0" description = "Reference implementation for Bech32 and segwit addresses." +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -250,6 +260,7 @@ files = [ name = "bip32" version = "3.4" description = "Minimalistic implementation of the BIP32 key derivation scheme" +category = "main" optional = false python-versions = "*" files = [ @@ -265,6 +276,7 @@ coincurve = ">=15.0,<19" name = "black" version = "22.12.0" description = "The uncompromising code formatter." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -300,6 +312,7 @@ uvloop = ["uvloop (>=0.15.2)"] name = "certifi" version = "2023.7.22" description = "Python package for providing Mozilla's CA Bundle." +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -311,6 +324,7 @@ files = [ name = "cffi" version = "1.15.1" description = "Foreign Function Interface for Python calling C code." +category = "main" optional = false python-versions = "*" files = [ @@ -387,6 +401,7 @@ pycparser = "*" name = "cfgv" version = "3.4.0" description = "Validate configuration and produce human readable error messages." +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -398,6 +413,7 @@ files = [ name = "charset-normalizer" version = "3.2.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" optional = false python-versions = ">=3.7.0" files = [ @@ -482,6 +498,7 @@ files = [ name = "click" version = "8.1.7" description = "Composable command line interface toolkit" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -496,6 +513,7 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "coincurve" version = "18.0.0" description = "Cross-platform Python CFFI bindings for libsecp256k1" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -551,6 +569,7 @@ cffi = ">=1.3.0" name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." +category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -562,6 +581,7 @@ files = [ name = "coverage" version = "7.3.1" description = "Code coverage measurement for Python" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -629,6 +649,7 @@ toml = ["tomli"] name = "croniter" version = "1.4.1" description = "croniter provides iteration for datetime object with cron like format" +category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -643,6 +664,7 @@ python-dateutil = "*" name = "distlib" version = "0.3.7" description = "Distribution utilities" +category = "main" optional = false python-versions = "*" files = [ @@ -654,6 +676,7 @@ files = [ name = "ecdsa" version = "0.18.0" description = "ECDSA cryptographic signature library (pure python)" +category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -672,6 +695,7 @@ gmpy2 = ["gmpy2"] name = "exceptiongroup" version = "1.1.3" description = "Backport of PEP 654 (exception groups)" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -686,6 +710,7 @@ test = ["pytest (>=6)"] name = "filelock" version = "3.12.4" description = "A platform independent file lock." +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -698,10 +723,46 @@ docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1 testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"] typing = ["typing-extensions (>=4.7.1)"] +[[package]] +name = "flake8" +version = "6.1.0" +description = "the modular source code checker: pep8 pyflakes and co" +category = "dev" +optional = false +python-versions = ">=3.8.1" +files = [ + {file = "flake8-6.1.0-py2.py3-none-any.whl", hash = "sha256:ffdfce58ea94c6580c77888a86506937f9a1a227dfcd15f245d694ae20a6b6e5"}, + {file = "flake8-6.1.0.tar.gz", hash = "sha256:d5b3857f07c030bdb5bf41c7f53799571d75c4491748a3adcd47de929e34cd23"}, +] + +[package.dependencies] +mccabe = ">=0.7.0,<0.8.0" +pycodestyle = ">=2.11.0,<2.12.0" +pyflakes = ">=3.1.0,<3.2.0" + +[[package]] +name = "flake8-pyproject" +version = "1.2.3" +description = "Flake8 plug-in loading the configuration from pyproject.toml" +category = "dev" +optional = false +python-versions = ">= 3.6" +files = [ + {file = "flake8_pyproject-1.2.3-py3-none-any.whl", hash = "sha256:6249fe53545205af5e76837644dc80b4c10037e73a0e5db87ff562d75fb5bd4a"}, +] + +[package.dependencies] +Flake8 = ">=5" +TOMLi = {version = "*", markers = "python_version < \"3.11\""} + +[package.extras] +dev = ["pyTest", "pyTest-cov"] + [[package]] name = "frozenlist" version = "1.4.0" description = "A list-like structure which implements collections.abc.MutableSequence" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -772,6 +833,7 @@ files = [ name = "grpcio" version = "1.58.0" description = "HTTP/2-based RPC framework" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -829,6 +891,7 @@ protobuf = ["grpcio-tools (>=1.58.0)"] name = "grpcio-tools" version = "1.58.0" description = "Protobuf code generator for gRPC" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -888,6 +951,7 @@ setuptools = "*" name = "hdwallets" version = "0.1.2" description = "Python implementation of the BIP32 key derivation scheme" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -902,6 +966,7 @@ ecdsa = ">=0.14.0" name = "identify" version = "2.5.29" description = "File identification library for Python" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -916,6 +981,7 @@ license = ["ukkonen"] name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -925,13 +991,14 @@ files = [ [[package]] name = "importlib-metadata" -version = "5.2.0" +version = "6.8.0" description = "Read metadata from Python packages" +category = "main" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "importlib_metadata-5.2.0-py3-none-any.whl", hash = "sha256:0eafa39ba42bf225fc00e67f701d71f85aead9f878569caf13c3724f704b970f"}, - {file = "importlib_metadata-5.2.0.tar.gz", hash = "sha256:404d48d62bba0b7a77ff9d405efd91501bef2e67ff4ace0bed40a0cf28c3c7cd"}, + {file = "importlib_metadata-6.8.0-py3-none-any.whl", hash = "sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb"}, + {file = "importlib_metadata-6.8.0.tar.gz", hash = "sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743"}, ] [package.dependencies] @@ -940,12 +1007,13 @@ zipp = ">=0.5" [package.extras] docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] perf = ["ipython"] -testing = ["flake8 (<5)", "flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)"] +testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"] [[package]] name = "iniconfig" version = "2.0.0" description = "brain-dead simple config-ini parsing" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -957,6 +1025,7 @@ files = [ name = "isort" version = "5.12.0" description = "A Python utility / library to sort Python imports." +category = "dev" optional = false python-versions = ">=3.8.0" files = [ @@ -974,6 +1043,7 @@ requirements-deprecated-finder = ["pip-api", "pipreqs"] name = "mako" version = "1.2.4" description = "A super-fast templating language that borrows the best ideas from the existing templating languages." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -993,6 +1063,7 @@ testing = ["pytest"] name = "markdown" version = "3.4.4" description = "Python implementation of John Gruber's Markdown." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1011,6 +1082,7 @@ testing = ["coverage", "pyyaml"] name = "markupsafe" version = "2.1.3" description = "Safely add untrusted strings to HTML/XML markup." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1076,10 +1148,23 @@ files = [ {file = "MarkupSafe-2.1.3.tar.gz", hash = "sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad"}, ] +[[package]] +name = "mccabe" +version = "0.7.0" +description = "McCabe checker, plugin for flake8" +category = "dev" +optional = false +python-versions = ">=3.6" +files = [ + {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, + {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, +] + [[package]] name = "mnemonic" version = "0.20" description = "Implementation of Bitcoin BIP-0039" +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -1091,6 +1176,7 @@ files = [ name = "multidict" version = "6.0.4" description = "multidict implementation" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1174,6 +1260,7 @@ files = [ name = "mypy" version = "1.5.1" description = "Optional static typing for Python" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1220,6 +1307,7 @@ reports = ["lxml"] name = "mypy-extensions" version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." +category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -1231,6 +1319,7 @@ files = [ name = "mypy-protobuf" version = "3.5.0" description = "Generate mypy stub files from protobuf specs" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1242,30 +1331,11 @@ files = [ protobuf = ">=4.23.4" types-protobuf = ">=4.23.0.2" -[[package]] -name = "nibiru-proto" -version = "0.21.9" -description = "Nibiru Chain Python SDK" -optional = false -python-versions = ">=3.8,<4.0" -files = [ - {file = "nibiru_proto-0.21.9-py3-none-any.whl", hash = "sha256:4ccc9d93549080f8ad56a3f15b6f43e30240778cdae879ac611f389f6829cb42"}, - {file = "nibiru_proto-0.21.9.tar.gz", hash = "sha256:5915f1192ef699d77e3ad0166c398e226b1619fed06f01d7461a43873cc78448"}, -] - -[package.dependencies] -asyncio = ">=3.4.3,<4.0.0" -bech32 = ">=1.2.0,<2.0.0" -grpcio = ">=1.51.1,<2.0.0" -grpcio-tools = ">=1.51.1,<2.0.0" -mypy-protobuf = ">=3.4.0,<4.0.0" -protobuf = ">=4.21.12,<5.0.0" -types-protobuf = ">=4.21.0.2,<5.0.0.0" - [[package]] name = "nodeenv" version = "1.8.0" description = "Node.js virtual environment builder" +category = "main" optional = false python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*" files = [ @@ -1278,22 +1348,21 @@ setuptools = "*" [[package]] name = "packaging" -version = "21.3" +version = "23.1" description = "Core utilities for Python packages" +category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" files = [ - {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, - {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, + {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"}, + {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"}, ] -[package.dependencies] -pyparsing = ">=2.0.2,<3.0.5 || >3.0.5" - [[package]] name = "pathspec" version = "0.11.2" description = "Utility library for gitignore style pattern matching of file paths." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1305,6 +1374,7 @@ files = [ name = "pdoc3" version = "0.10.0" description = "Auto-generate API documentation for Python projects." +category = "dev" optional = false python-versions = ">= 3.6" files = [ @@ -1320,6 +1390,7 @@ markdown = ">=3.0" name = "platformdirs" version = "3.10.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1335,6 +1406,7 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-co name = "pluggy" version = "1.3.0" description = "plugin and hook calling mechanisms for python" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1348,13 +1420,14 @@ testing = ["pytest", "pytest-benchmark"] [[package]] name = "pre-commit" -version = "2.21.0" +version = "3.4.0" description = "A framework for managing and maintaining multi-language pre-commit hooks." +category = "main" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"}, - {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"}, + {file = "pre_commit-3.4.0-py2.py3-none-any.whl", hash = "sha256:96d529a951f8b677f730a7212442027e8ba53f9b04d217c4c67dc56c393ad945"}, + {file = "pre_commit-3.4.0.tar.gz", hash = "sha256:6bbd5129a64cad4c0dfaeeb12cd8f7ea7e15b77028d985341478c8af3c759522"}, ] [package.dependencies] @@ -1368,6 +1441,7 @@ virtualenv = ">=20.10.0" name = "protobuf" version = "4.24.3" description = "" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1386,10 +1460,23 @@ files = [ {file = "protobuf-4.24.3.tar.gz", hash = "sha256:12e9ad2ec079b833176d2921be2cb24281fa591f0b119b208b788adc48c2561d"}, ] +[[package]] +name = "pycodestyle" +version = "2.11.0" +description = "Python style guide checker" +category = "dev" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pycodestyle-2.11.0-py2.py3-none-any.whl", hash = "sha256:5d1013ba8dc7895b548be5afb05740ca82454fd899971563d2ef625d090326f8"}, + {file = "pycodestyle-2.11.0.tar.gz", hash = "sha256:259bcc17857d8a8b3b4a2327324b79e5f020a13c16074670f9c8c8f872ea76d0"}, +] + [[package]] name = "pycparser" version = "2.21" description = "C parser in Python" +category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1398,23 +1485,22 @@ files = [ ] [[package]] -name = "pyparsing" -version = "3.1.1" -description = "pyparsing module - Classes and methods to define and execute parsing grammars" +name = "pyflakes" +version = "3.1.0" +description = "passive checker of Python programs" +category = "dev" optional = false -python-versions = ">=3.6.8" +python-versions = ">=3.8" files = [ - {file = "pyparsing-3.1.1-py3-none-any.whl", hash = "sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb"}, - {file = "pyparsing-3.1.1.tar.gz", hash = "sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db"}, + {file = "pyflakes-3.1.0-py2.py3-none-any.whl", hash = "sha256:4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774"}, + {file = "pyflakes-3.1.0.tar.gz", hash = "sha256:a0aae034c444db0071aa077972ba4768d40c830d9539fd45bf4cd3f8f6992efc"}, ] -[package.extras] -diagrams = ["jinja2", "railroad-diagrams"] - [[package]] name = "pytest" version = "7.4.2" description = "pytest: simple powerful testing with Python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1437,6 +1523,7 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "no name = "pytest-cov" version = "4.1.0" description = "Pytest plugin for measuring coverage." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1455,6 +1542,7 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtuale name = "pytest-order" version = "1.1.0" description = "pytest plugin to run your tests in a specific order" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1472,6 +1560,7 @@ pytest = [ name = "pytest-skip-slow" version = "0.0.3" description = "A pytest plugin to skip `@pytest.mark.slow` tests by default. " +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1489,6 +1578,7 @@ test = ["tox"] name = "python-dateutil" version = "2.8.2" description = "Extensions to the standard Python datetime module" +category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -1501,13 +1591,14 @@ six = ">=1.5" [[package]] name = "python-dotenv" -version = "0.21.1" +version = "1.0.0" description = "Read key-value pairs from a .env file and set them as environment variables" +category = "main" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "python-dotenv-0.21.1.tar.gz", hash = "sha256:1c93de8f636cde3ce377292818d0e440b6e45a82f215c3744979151fa8151c49"}, - {file = "python_dotenv-0.21.1-py3-none-any.whl", hash = "sha256:41e12e0318bebc859fcc4d97d4db8d20ad21721a6aa5047dd59f090391cb549a"}, + {file = "python-dotenv-1.0.0.tar.gz", hash = "sha256:a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba"}, + {file = "python_dotenv-1.0.0-py3-none-any.whl", hash = "sha256:f5971a9226b701070a4bf2c38c89e5a3f0d64de8debda981d1db98583009122a"}, ] [package.extras] @@ -1517,6 +1608,7 @@ cli = ["click (>=5.0)"] name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1576,6 +1668,7 @@ files = [ name = "requests" version = "2.31.0" description = "Python HTTP for Humans." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1597,6 +1690,7 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "setuptools" version = "68.2.2" description = "Easily download, build, install, upgrade, and uninstall Python packages" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1613,6 +1707,7 @@ testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jar name = "shutup" version = "0.2.0" description = "Stop python warnings, no matter what!" +category = "main" optional = false python-versions = ">=3.5,<4.0" files = [ @@ -1624,6 +1719,7 @@ files = [ name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" +category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -1635,6 +1731,7 @@ files = [ name = "tomli" version = "2.0.1" description = "A lil' TOML parser" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1646,6 +1743,7 @@ files = [ name = "types-protobuf" version = "4.24.0.2" description = "Typing stubs for protobuf" +category = "main" optional = false python-versions = "*" files = [ @@ -1657,6 +1755,7 @@ files = [ name = "types-requests" version = "2.31.0.3" description = "Typing stubs for requests" +category = "dev" optional = false python-versions = "*" files = [ @@ -1671,6 +1770,7 @@ types-urllib3 = "*" name = "types-urllib3" version = "1.26.25.14" description = "Typing stubs for urllib3" +category = "dev" optional = false python-versions = "*" files = [ @@ -1682,6 +1782,7 @@ files = [ name = "typing-extensions" version = "4.8.0" description = "Backported and Experimental Type Hints for Python 3.8+" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1693,6 +1794,7 @@ files = [ name = "tzdata" version = "2023.3" description = "Provider of IANA time zone data" +category = "main" optional = false python-versions = ">=2" files = [ @@ -1704,6 +1806,7 @@ files = [ name = "tzlocal" version = "5.0.1" description = "tzinfo object for the local timezone" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1722,6 +1825,7 @@ devenv = ["black", "check-manifest", "flake8", "pyroma", "pytest (>=4.3)", "pyte name = "urllib3" version = "2.0.5" description = "HTTP library with thread-safe connection pooling, file post, and more." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1739,6 +1843,7 @@ zstd = ["zstandard (>=0.18.0)"] name = "virtualenv" version = "20.24.5" description = "Virtual Python Environment builder" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1759,6 +1864,7 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess name = "websocket-client" version = "1.6.3" description = "WebSocket client for Python with low level API options" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1775,6 +1881,7 @@ test = ["websockets"] name = "yarl" version = "1.9.2" description = "Yet another URL library" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1862,6 +1969,7 @@ multidict = ">=4.0" name = "zipp" version = "3.17.0" description = "Backport of pathlib-compatible object wrapper for zip files" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1875,5 +1983,5 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" -python-versions = "^3.8" -content-hash = "83ad44e2061451948fb5674b61b5bfaa0a982850e202321265b9f12e082d576d" +python-versions = "^3.8.16" +content-hash = "8617dc2b53a75d8b4668e57dac2ffbe8790f89297b39a697fd0848c0e992317a" diff --git a/pyproject.toml b/pyproject.toml index 2ce68fe5..31e540dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nibiru" -version = "0.21.9" +version = "0.21.10" description = "Python SDK for interacting with Nibiru." authors = ["Nibiru Chain "] license = "MIT" @@ -20,24 +20,27 @@ classifiers = [ packages = [{ include = "pysdk" }] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.8.16" asyncio = "^3.4.3" bech32 = "^1.2.0" -python-dotenv = "^0.21.0" +python-dotenv = "^1.0.0" requests = "^2.28.1" aiohttp = "^3.8.3" ecdsa = "^0.18.0" mnemonic = "^0.20" hdwallets = "^0.1.2" aiocron = "^1.8" -pre-commit = "^2.20.0" +pre-commit = "^3.4.0" shutup = "^0.2.0" websocket-client = "^1.4.1" -packaging = "^21.3" -nibiru-proto = "==0.21.9" +packaging = "^23.1" bip32 = "^3.3" -importlib-metadata = "^5.0.0" +importlib-metadata = "^6.8.0" types-protobuf = "^4.23.0.1" +grpcio = "^1.51.1" +grpcio-tools = "^1.51.1" +protobuf = "^4.21.12" +mypy-protobuf = "^3.4.0" [tool.poetry.group.dev.dependencies] pytest-skip-slow = "^0.0.3" @@ -49,25 +52,39 @@ pytest-cov = "^4.0.0" isort = "^5.12.0" types-requests = "^2.31.0.1" mypy = "^1.4.1" -types-protobuf = "^4.23.0.1" +flake8 = "^6.1.0" +flake8-pyproject = "^1.2.3" + [tool.black] line-length = 88 skip-string-normalization = true include = '.*\.pyi?$' -target-version = ['py37'] +target-version = ['py38'] extend-exclude = ''' ^/( \.vscode - | nibiru/proto + | \.github + | nibiru_proto/ + | scripts + | docs/ + | docs-md/ )$ ''' [tool.isort] profile = "black" py_version = 39 -skip_glob = ["nibiru/proto/*"] +skip_glob = ["nibiru_proto/*"] + +[tool.flake8] +ignore = [ + "W503", "E501", "F811", "F541", "W605", "E203", "F405", "E722", "W191", + "F403", "F821", "E101", "N806", "N802", "N801", "N811", "N818" +] +max-line-length = 88 +exclude = [".github", "nibiru_proto", "scripts", "docs", "docs-md", ".venv"] [build-system] requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" +build-backend = "poetry.core.masonry.api" \ No newline at end of file diff --git a/pysdk/event_specs.py b/pysdk/event_specs.py index 39b37853..1187b25b 100644 --- a/pysdk/event_specs.py +++ b/pysdk/event_specs.py @@ -2,6 +2,7 @@ from enum import Enum import google.protobuf.message + from nibiru_proto.nibiru.oracle.v1 import event_pb2 as oracle_events from nibiru_proto.nibiru.perp.v2 import event_pb2 as perp_events from nibiru_proto.nibiru.spot.v1 import event_pb2 as spot_events diff --git a/pysdk/grpc_client.py b/pysdk/grpc_client.py index 3452da43..33eb6dfd 100644 --- a/pysdk/grpc_client.py +++ b/pysdk/grpc_client.py @@ -3,6 +3,9 @@ from typing import Dict, Generator, List, Literal, Optional, Tuple, Union import grpc +from packaging import version + +from nibiru_proto import version as nibiru_proto_version from nibiru_proto.cosmos.auth.v1beta1 import auth_pb2 as auth_type from nibiru_proto.cosmos.auth.v1beta1 import query_pb2 as auth_query from nibiru_proto.cosmos.auth.v1beta1 import query_pb2_grpc as auth_query_grpc @@ -17,8 +20,6 @@ ) from nibiru_proto.cosmos.tx.v1beta1 import service_pb2 as tx_service from nibiru_proto.cosmos.tx.v1beta1 import service_pb2_grpc as tx_service_grpc -from packaging import version - from pysdk import exceptions, pytypes, query_clients DEFAULT_TIMEOUTHEIGHT = 20 # blocks @@ -95,13 +96,6 @@ def __init__( self.stablecoin = query_clients.StablecoinQueryClient(self.chain_channel) if not bypass_version_check: - try: - from importlib import metadata - except ImportError: # for Python<3.8 - import importlib_metadata as metadata - - nibiru_proto_version = metadata.version("nibiru_proto") - self.assert_compatible_versions( nibiru_proto_version=nibiru_proto_version, chain_nibiru_version=str(self.get_version()), diff --git a/pysdk/msg/bank.py b/pysdk/msg/bank.py index 43bbd156..4c3815e2 100644 --- a/pysdk/msg/bank.py +++ b/pysdk/msg/bank.py @@ -2,7 +2,6 @@ from typing import Iterable, List, Union from nibiru_proto.cosmos.bank.v1beta1 import tx_pb2 as pb - from pysdk.pytypes import Coin, PythonMsg diff --git a/pysdk/msg/perp.py b/pysdk/msg/perp.py index 80647984..cf88cb10 100644 --- a/pysdk/msg/perp.py +++ b/pysdk/msg/perp.py @@ -3,7 +3,6 @@ from nibiru_proto.nibiru.perp.v2 import state_pb2 as state_pb from nibiru_proto.nibiru.perp.v2 import tx_pb2 as pb - from pysdk.pytypes import Coin, Direction, PythonMsg from pysdk.utils import to_sdk_dec, to_sdk_int diff --git a/pysdk/msg/spot.py b/pysdk/msg/spot.py index 6dca8da9..2d542f67 100644 --- a/pysdk/msg/spot.py +++ b/pysdk/msg/spot.py @@ -3,7 +3,6 @@ from nibiru_proto.nibiru.spot.v1 import pool_pb2 as pool_tx_pb from nibiru_proto.nibiru.spot.v1 import tx_pb2 as pb - from pysdk.pytypes import Coin, PoolAsset, PoolType, PythonMsg diff --git a/pysdk/msg/staking.py b/pysdk/msg/staking.py index 059dc841..b92266fa 100644 --- a/pysdk/msg/staking.py +++ b/pysdk/msg/staking.py @@ -2,7 +2,6 @@ from nibiru_proto.cosmos.distribution.v1beta1 import tx_pb2 as pb_distribution from nibiru_proto.cosmos.staking.v1beta1 import tx_pb2 as pb_staking - from pysdk.pytypes import Coin, PythonMsg diff --git a/pysdk/pytypes/common.py b/pysdk/pytypes/common.py index 29c3db96..8a2254bf 100644 --- a/pysdk/pytypes/common.py +++ b/pysdk/pytypes/common.py @@ -3,13 +3,12 @@ from enum import Enum from typing import List +import pysdk from nibiru_proto.cosmos.base.v1beta1 import ( # noqa # type: ignore coin_pb2 as cosmos_base_coin_pb, ) from nibiru_proto.nibiru.spot.v1.pool_pb2 import PoolType # noqa # type: ignore -import pysdk - MAX_MEMO_CHARACTERS = 256 DEFAULT_GAS_PRICE = 1 * pow(10, -3) diff --git a/pysdk/query_clients/auth.py b/pysdk/query_clients/auth.py index 50d1fecf..4e2693eb 100644 --- a/pysdk/query_clients/auth.py +++ b/pysdk/query_clients/auth.py @@ -1,8 +1,8 @@ from google.protobuf.json_format import MessageToDict from grpc import Channel + from nibiru_proto.cosmos.auth.v1beta1 import query_pb2 as auth_type from nibiru_proto.cosmos.auth.v1beta1 import query_pb2_grpc as auth_query_grpc - from pysdk.query_clients.util import QueryClient diff --git a/pysdk/query_clients/epoch.py b/pysdk/query_clients/epoch.py index 794dcb12..9f12a639 100644 --- a/pysdk/query_clients/epoch.py +++ b/pysdk/query_clients/epoch.py @@ -1,8 +1,8 @@ from google.protobuf.json_format import MessageToDict from grpc import Channel + from nibiru_proto.nibiru.epochs.v1 import query_pb2 as epoch_query from nibiru_proto.nibiru.epochs.v1 import query_pb2_grpc as epoch_query_grpc - from pysdk.query_clients.util import QueryClient diff --git a/pysdk/query_clients/perp.py b/pysdk/query_clients/perp.py index 4ef83ac0..624e8ab8 100644 --- a/pysdk/query_clients/perp.py +++ b/pysdk/query_clients/perp.py @@ -2,9 +2,9 @@ from google.protobuf.json_format import MessageToDict from grpc import Channel + from nibiru_proto.nibiru.perp.v2 import query_pb2 as perp_type from nibiru_proto.nibiru.perp.v2 import query_pb2_grpc as perp_query - from pysdk.query_clients.util import QueryClient, deserialize from pysdk.utils import from_sdk_dec, update_nested_fields diff --git a/pysdk/query_clients/spot.py b/pysdk/query_clients/spot.py index 6ed828e7..f06e7134 100644 --- a/pysdk/query_clients/spot.py +++ b/pysdk/query_clients/spot.py @@ -2,10 +2,10 @@ from google.protobuf import json_format, message from grpc import Channel + from nibiru_proto.cosmos.base.query.v1beta1.pagination_pb2 import PageRequest from nibiru_proto.nibiru.spot.v1 import query_pb2 as spot_type from nibiru_proto.nibiru.spot.v1 import query_pb2_grpc as spot_query - from pysdk.pytypes import Coin from pysdk.query_clients.util import QueryClient from pysdk.utils import format_fields_nested, from_sdk_dec_n diff --git a/pysdk/query_clients/stablecoin.py b/pysdk/query_clients/stablecoin.py index 3c70d7f4..5bd095ad 100644 --- a/pysdk/query_clients/stablecoin.py +++ b/pysdk/query_clients/stablecoin.py @@ -1,8 +1,8 @@ from google.protobuf.json_format import MessageToDict from grpc import Channel + from nibiru_proto.nibiru.stablecoin.v1 import query_pb2 as stablecoin_type from nibiru_proto.nibiru.stablecoin.v1 import query_pb2_grpc as stablecoin_query - from pysdk.query_clients.util import QueryClient, dict_keys_from_camel_to_snake from pysdk.utils import format_fields_nested, from_sdk_dec_n diff --git a/pysdk/query_clients/staking.py b/pysdk/query_clients/staking.py index 3362d8bc..6192c447 100644 --- a/pysdk/query_clients/staking.py +++ b/pysdk/query_clients/staking.py @@ -1,7 +1,7 @@ from grpc import Channel + from nibiru_proto.cosmos.staking.v1beta1 import query_pb2 as staking_type from nibiru_proto.cosmos.staking.v1beta1 import query_pb2_grpc as staking_query - from pysdk.query_clients.util import QueryClient, deserialize, get_page_request diff --git a/pysdk/query_clients/util.py b/pysdk/query_clients/util.py index 1140d3ca..e657d11a 100644 --- a/pysdk/query_clients/util.py +++ b/pysdk/query_clients/util.py @@ -4,10 +4,10 @@ import grpc import grpc._channel from google.protobuf import json_format, message + from nibiru_proto.cosmos.base.query.v1beta1.pagination_pb2 import PageRequest from nibiru_proto.cosmos.tx.v1beta1.tx_pb2 import Tx from nibiru_proto.tendermint.types.block_pb2 import Block - from pysdk import utils from pysdk.exceptions import QueryError diff --git a/pysdk/tx.py b/pysdk/tx.py index 158771af..e5795334 100644 --- a/pysdk/tx.py +++ b/pysdk/tx.py @@ -19,7 +19,6 @@ from nibiru_proto.cosmos.tx.signing.v1beta1 import signing_pb2 as tx_sign from nibiru_proto.cosmos.tx.v1beta1 import service_pb2 as tx_service from nibiru_proto.cosmos.tx.v1beta1 import tx_pb2 as cosmos_tx_type - from pysdk import exceptions, jsonrpc from pysdk import pytypes as pt from pysdk import tmrpc, wallet diff --git a/pysdk/wallet.py b/pysdk/wallet.py index 74346f82..42038d3d 100644 --- a/pysdk/wallet.py +++ b/pysdk/wallet.py @@ -8,8 +8,8 @@ from ecdsa import BadSignatureError, SECP256k1, SigningKey, VerifyingKey from ecdsa.util import sigencode_string_canonize from mnemonic import Mnemonic -from nibiru_proto.cosmos.crypto.secp256k1.keys_pb2 import PubKey as PubKeyProto +from nibiru_proto.cosmos.crypto.secp256k1.keys_pb2 import PubKey as PubKeyProto from pysdk.crypto.ripemd160 import ripemd160 BECH32_PUBKEY_ACC_PREFIX = "nibipub" diff --git a/scripts/fmt.sh b/scripts/fmt.sh index c67fec36..757a0bdd 100755 --- a/scripts/fmt.sh +++ b/scripts/fmt.sh @@ -1,5 +1,4 @@ #!/bin/bash poetry run black . poetry run isort . -poetry run python -m pip install flake8 -poetry run flake8 pysdk tests examples +poetry run flake8 diff --git a/scripts/pkg_create_inits.py b/scripts/pkg_create_inits.py new file mode 100644 index 00000000..2e8ec32d --- /dev/null +++ b/scripts/pkg_create_inits.py @@ -0,0 +1,59 @@ +import os + + +def create_init_file_at_path(path: str, file_content: str) -> None: + # Skip creating __init__.py if it already exists + if os.path.exists(path): + return + + # Create __init__.py if it doesn't exist + with open(path, "w") as f: + f.write(file_content) + + +def create_init_file(root: str, dir_name: str, file_content: str) -> None: + init_file_path: str = os.path.join(root, dir_name, "__init__.py") + create_init_file_at_path(path=init_file_path, file_content=file_content) + + +def create_init_files(root_dir_start: str, file_content: str) -> None: + root_dir_start_init_path: str = os.path.join(root_dir_start, "__init__.py") + root_dir_start_content: str = "" + # root_dir_start_content: str = "\n".join([ + # "import os", + # "import sys", + # "sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))", + # ]) + create_init_file_at_path( + path=root_dir_start_init_path, + file_content=root_dir_start_content, + ) + assert os.path.exists(root_dir_start_init_path) + + for root, dirs, _files in os.walk(root_dir_start): + for dir_name in dirs: + create_init_file( + root=root, + dir_name=dir_name, + file_content=file_content, + ) + + +def main(): + # Set the directory you want to start from + root_dir = 'nibiru_proto/nibiru' + + # Content to be written in each __init__.py file + init_content = '' + + if not os.path.isdir(root_dir): + raise Exception( + f"directory {root_dir} is not visible from path: {os.getcwd()}", + ) + + create_init_files(root_dir, init_content) + print("Successfully created __init__.py files!") + + +if __name__ == "__main__": + main() diff --git a/scripts/proto-gen-py.sh b/scripts/proto-gen-py.sh new file mode 100755 index 00000000..60e9a0d6 --- /dev/null +++ b/scripts/proto-gen-py.sh @@ -0,0 +1,183 @@ +#!/usr/bin/env bash +set -e pipefail # see https://stackoverflow.com/a/68465418/13305627 + +# ------------------------------------------------ CONFIG +PKG_DIR_NAME="nibiru_proto" +nibiru_cosmos_sdk_version="v0.47.4" +nibiru_chain_version="v0.21.10" +# ------------------------------------------------ + +init_globals() { + GEN_PY_REPO=$(pwd) + PKG_PATH=$GEN_PY_REPO/$PKG_DIR_NAME + cd ../nibiru + NIBIRU_PATH=$(pwd) + echo "GEN_PY_REPO: $GEN_PY_REPO" + echo "PKG_PATH: $PKG_PATH" + echo "NIBIRU_PATH: $NIBIRU_PATH" +} + +init_globals + +# Add PKG_PATH as dir if it doesn't exist. +clean_repo() { + cd $GEN_PY_REPO + rm -rf ./proto/ + rm -rf ./nibiru/ + rm -rf $PKG_PATH + mkdir $PKG_PATH + + # add directories to package path for Python imports + echo > $PKG_PATH/__init__.py + printf "import os\n\ +import sys\n\n\ +sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))\n\ +version = '${nibiru_chain_version:1}'\n" > $PKG_PATH/__init__.py +} + +copy_nibiru_protobuf_from_remote() { + git clone --depth 1 --branch $nibiru_chain_version https://github.com/NibiruChain/nibiru.git + cp -r ./nibiru/proto/ ./proto/ + cp ./nibiru/go.mod go.mod + cp ./nibiru/go.sum go.sum +} + +copy_nibiru_protobuf_from_local() { + cd $NIBIRU_PATH # move to nibiru + git checkout $nibiru_chain_version + cd $GEN_PY_REPO # move to py-sdk + cp -r $NIBIRU_PATH/proto $GEN_PY_REPO/$PKG_DIR_NAME + cp $NIBIRU_PATH/go.mod $GEN_PY_REPO/go.mod + cp $NIBIRU_PATH/go.sum $GEN_PY_REPO/go.sum +} + +create_py_typed_file() { + # A `py.typed` file should be included in any distribution at the root of the + # package whenever you want to signal that the package is "type hinted" or + # "type annotated", meaning that it supports type checking. + # + # This is part of PEP 561 -- Distributing and Packaging Type information See: + # https://peps.python.org/pep-0561/ + # + # Without the `py.typed` file, a package is assumed not to be type-safe such + # that, even if the pacakge has type annotations, type checkers like mypy and + # most LSPs will ignore them when type checking other projects that use the + # package in question. + # + # The py.typed file itself can be empty; its presence is the important part. + cd $GEN_PY_REPO # move to py-sdk + touch $GEN_PY_REPO/$PKG_DIR_NAME/py.typed +} + +go_get_from_cosmos() { + if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &>/dev/null; then + echo -e "\tPlease run this command from somewhere inside the cosmos-sdk folder." + return 1 + fi + + # get protos: cosmos-sdk + go get github.com/cosmos/cosmos-sdk@$nibiru_cosmos_sdk_version + # get protos: cosmos-proto + go get github.com/cosmos/cosmos-proto + + # get protoc gocosmos plugin + # DEPRECATED: cosmos-proto was previously maintained by regen network. + # go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest 2>/dev/null +} + +code_gen() { + echo "grabbing cosmos-sdk proto file locations from disk" + cd $NIBIRU_PATH + go_get_from_cosmos + dir_cosmos_sdk=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk) + + echo "grab all of the proto directories" + cd $GEN_PY_REPO + + proto_dirs=() + proto_dirs+=("$dir_cosmos_sdk/proto") + proto_dirs+=("$NIBIRU_PATH/proto") + + echo "Proto Directories: " + echo $proto_dirs + + # generate the protos for each directory + for proto_dir in "${proto_dirs[@]}"; do + string=$proto_dir + prefix=$HOME/go/pkg/mod/github.com/ + prefix_removed_string=${string/#$prefix/} + echo "------------ generating $prefix_removed_string ------------" + # echo "$dir_cosmos_sdk" + + echo "proto_dir: ${proto_dir}" + + echo "NIBIRU_PATH: $NIBIRU_PATH" + local out_dir=$PKG_PATH + echo "out_dir: $out_dir" + + if [ ! buf ]; then + echo "Please install buf to generate protos." + exit 1 + fi + buf generate $proto_dir --template $NIBIRU_PATH/proto/buf.gen.py.yaml \ + -o $out_dir \ + --config $NIBIRU_PATH/proto/buf.yaml \ + --include-imports + done + + echo "Complete - generated Python types from proto" +} + +final_cleanup() { + echo "final cleanup" + cd $GEN_PY_REPO + # -z "$var" to check for empty + # -n "$var" to check for not empty + if [ -n "$GEN_PY_REPO" ]; then + rm -rf $GEN_PY_REPO/$PKG_DIR_NAME/home + rm go.mod go.sum + fi + rm -rf $GEN_PY_REPO/$PKG_DIR_NAME/proto +} + +rewrite_misnamed_import() { + if [ ! find ]; then + echo "Please install find." + exit 1 + fi + if [ ! sed ]; then + echo "Please install sed." + exit 1 + fi + + find . -name "*.py" -type f -exec sed -i "" 's/from nibiru\./from nibiru_proto.nibiru./g' {} \; + + find . -name "*.py" -type f -exec sed -i "" 's/import nibiru\./import nibiru_proto.nibiru./g' {} \; +} + +# ------------------------------------------------ +# __main__ : Start of script execution +# ------------------------------------------------ + + +main() { + clean_repo + + # copy_nibiru_protobuf_from_remote + copy_nibiru_protobuf_from_local + + code_gen + + final_cleanup + + create_py_typed_file + + poetry run python scripts/pkg_create_inits.py + rewrite_misnamed_import +} + +if main; then + echo "🔥 Generated Python proto types successfully. " +else + echo "❌ Generation failed." +fi diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index b4438eaa..00000000 --- a/setup.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[flake8] -max-line-length = 88 -exclude = .git,nibiru/proto/*,build/ -ignore = W503,E501,F811,F541,W605,E203,F405,E722,W191,F403,F821,E101,N806,N802,N801,N811,N818 - -[options] -packages = find: diff --git a/tests/__init__.py b/tests/__init__.py index c63ae001..c357e3cb 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -10,9 +10,9 @@ # stubs or py.typed marker. # NOTE: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mis import shutup # type: ignore -from nibiru_proto.cosmos.tx.v1beta1 import service_pb2 as tx_service # type: ignore import pysdk +from nibiru_proto.cosmos.tx.v1beta1 import service_pb2 as tx_service # type: ignore from pysdk import utils from pysdk.pytypes import common, tx_resp diff --git a/pysdk/tmrpc/broadcast_test.py b/tests/broadcast_test.py similarity index 100% rename from pysdk/tmrpc/broadcast_test.py rename to tests/broadcast_test.py diff --git a/pysdk/jsonrpc/jsonrpc_test.py b/tests/jsonrpc_test.py similarity index 97% rename from pysdk/jsonrpc/jsonrpc_test.py rename to tests/jsonrpc_test.py index 00d1182a..ead1ba87 100644 --- a/pysdk/jsonrpc/jsonrpc_test.py +++ b/tests/jsonrpc_test.py @@ -3,6 +3,7 @@ import pytest +from pysdk import Network from pysdk.jsonrpc import jsonrpc, rpc_error @@ -99,7 +100,7 @@ def test_rpc_calls(request_json: str, response_json: str): assert got_resp == want_resp -def test_rpc_block_query(): +def test_rpc_block_query(network: Network): """ Runs the example query JSON-RPC query from the Tendermint documentation: The following exampl @@ -116,6 +117,7 @@ def test_rpc_block_query(): jsonrpc_resp: jsonrpc.JsonRPCResponse = jsonrpc.do_jsonrpc_request( data=dict(method="block", params=["5"], id=1), + endpoint=network.tendermint_rpc_endpoint, ) assert isinstance(jsonrpc_resp, jsonrpc.JsonRPCResponse) assert jsonrpc_resp.error is None diff --git a/tests/utils_test.py b/tests/utils_test.py index b154aad9..9d00e8b4 100644 --- a/tests/utils_test.py +++ b/tests/utils_test.py @@ -2,11 +2,11 @@ from urllib.parse import ParseResult, urlparse import pytest -from nibiru_proto.cosmos.bank.v1beta1.tx_pb2 import MsgSend # type: ignore -from nibiru_proto.nibiru.perp.v2.tx_pb2 import MsgMarketOrder # type: ignore import pysdk import tests +from nibiru_proto.cosmos.bank.v1beta1.tx_pb2 import MsgSend # type: ignore +from nibiru_proto.nibiru.perp.v2.tx_pb2 import MsgMarketOrder # type: ignore from pysdk import Coin, pytypes, utils from pysdk.query_clients import util as query_util