-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interface file of each generated proto
- Loading branch information
Showing
230 changed files
with
20,136 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
|
||
from .proofs_pb2 import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
""" | ||
@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.internal.containers | ||
import google.protobuf.message | ||
import typing | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... | ||
|
||
# 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). | ||
class BaseAccount(google.protobuf.message.Message): | ||
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: typing.Text = ... | ||
@property | ||
def pub_key(self) -> google.protobuf.any_pb2.Any: ... | ||
account_number: builtins.int = ... | ||
sequence: builtins.int = ... | ||
def __init__(self, | ||
*, | ||
address : typing.Text = ..., | ||
pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., | ||
account_number : builtins.int = ..., | ||
sequence : builtins.int = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"address",b"address",u"pub_key",b"pub_key",u"sequence",b"sequence"]) -> None: ... | ||
global___BaseAccount = BaseAccount | ||
|
||
# ModuleAccount defines an account for modules that holds coins on a pool. | ||
class ModuleAccount(google.protobuf.message.Message): | ||
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: typing.Text = ... | ||
@property | ||
def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... | ||
def __init__(self, | ||
*, | ||
base_account : typing.Optional[global___BaseAccount] = ..., | ||
name : typing.Text = ..., | ||
permissions : typing.Optional[typing.Iterable[typing.Text]] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account",u"name",b"name",u"permissions",b"permissions"]) -> None: ... | ||
global___ModuleAccount = ModuleAccount | ||
|
||
# Params defines the parameters for the auth module. | ||
class Params(google.protobuf.message.Message): | ||
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[u"max_memo_characters",b"max_memo_characters",u"sig_verify_cost_ed25519",b"sig_verify_cost_ed25519",u"sig_verify_cost_secp256k1",b"sig_verify_cost_secp256k1",u"tx_sig_limit",b"tx_sig_limit",u"tx_size_cost_per_byte",b"tx_size_cost_per_byte"]) -> None: ... | ||
global___Params = Params |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
|
||
from .auth_pb2 import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import builtins | ||
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 typing | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... | ||
|
||
# GenesisState defines the auth module's genesis state. | ||
class GenesisState(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
PARAMS_FIELD_NUMBER: builtins.int | ||
ACCOUNTS_FIELD_NUMBER: builtins.int | ||
# params defines all the paramaters of the module. | ||
@property | ||
def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... | ||
# accounts are the accounts present at genesis. | ||
@property | ||
def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... | ||
def __init__(self, | ||
*, | ||
params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., | ||
accounts : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"accounts",b"accounts",u"params",b"params"]) -> None: ... | ||
global___GenesisState = GenesisState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
|
||
from .genesis_pb2 import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import builtins | ||
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 typing | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... | ||
|
||
# QueryAccountsRequest is the request type for the Query/Accounts RPC method. | ||
class QueryAccountsRequest(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
PAGINATION_FIELD_NUMBER: builtins.int | ||
# pagination defines an optional pagination for the request. | ||
@property | ||
def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... | ||
def __init__(self, | ||
*, | ||
pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... | ||
global___QueryAccountsRequest = QueryAccountsRequest | ||
|
||
# QueryAccountsResponse is the response type for the Query/Accounts RPC method. | ||
class QueryAccountsResponse(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
ACCOUNTS_FIELD_NUMBER: builtins.int | ||
PAGINATION_FIELD_NUMBER: builtins.int | ||
# accounts are the existing accounts | ||
@property | ||
def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... | ||
# pagination defines the pagination in the response. | ||
@property | ||
def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... | ||
def __init__(self, | ||
*, | ||
accounts : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., | ||
pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"accounts",b"accounts",u"pagination",b"pagination"]) -> None: ... | ||
global___QueryAccountsResponse = QueryAccountsResponse | ||
|
||
# QueryAccountRequest is the request type for the Query/Account RPC method. | ||
class QueryAccountRequest(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
ADDRESS_FIELD_NUMBER: builtins.int | ||
# address defines the address to query for. | ||
address: typing.Text = ... | ||
def __init__(self, | ||
*, | ||
address : typing.Text = ..., | ||
) -> None: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address"]) -> None: ... | ||
global___QueryAccountRequest = QueryAccountRequest | ||
|
||
# QueryAccountResponse is the response type for the Query/Account RPC method. | ||
class QueryAccountResponse(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
ACCOUNT_FIELD_NUMBER: builtins.int | ||
# account defines the account of the corresponding address. | ||
@property | ||
def account(self) -> google.protobuf.any_pb2.Any: ... | ||
def __init__(self, | ||
*, | ||
account : typing.Optional[google.protobuf.any_pb2.Any] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> None: ... | ||
global___QueryAccountResponse = QueryAccountResponse | ||
|
||
# QueryParamsRequest is the request type for the Query/Params RPC method. | ||
class QueryParamsRequest(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
def __init__(self, | ||
) -> None: ... | ||
global___QueryParamsRequest = QueryParamsRequest | ||
|
||
# QueryParamsResponse is the response type for the Query/Params RPC method. | ||
class QueryParamsResponse(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
PARAMS_FIELD_NUMBER: builtins.int | ||
# params defines the parameters of the module. | ||
@property | ||
def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... | ||
def __init__(self, | ||
*, | ||
params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... | ||
global___QueryParamsResponse = QueryParamsResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import grpc | ||
|
||
from .query_pb2 import * | ||
# Query defines the gRPC querier service. | ||
class QueryStub: | ||
def __init__(self, channel: grpc.Channel) -> None: ... | ||
# Accounts returns all the existing accounts | ||
Accounts:grpc.UnaryUnaryMultiCallable[ | ||
global___QueryAccountsRequest, | ||
global___QueryAccountsResponse] = ... | ||
|
||
# Account returns account details based on address. | ||
Account:grpc.UnaryUnaryMultiCallable[ | ||
global___QueryAccountRequest, | ||
global___QueryAccountResponse] = ... | ||
|
||
# Params queries all parameters. | ||
Params:grpc.UnaryUnaryMultiCallable[ | ||
global___QueryParamsRequest, | ||
global___QueryParamsResponse] = ... | ||
|
||
|
||
# Query defines the gRPC querier service. | ||
class QueryServicer(metaclass=abc.ABCMeta): | ||
# Accounts returns all the existing accounts | ||
@abc.abstractmethod | ||
def Accounts(self, | ||
request: global___QueryAccountsRequest, | ||
context: grpc.ServicerContext, | ||
) -> global___QueryAccountsResponse: ... | ||
|
||
# Account returns account details based on address. | ||
@abc.abstractmethod | ||
def Account(self, | ||
request: global___QueryAccountRequest, | ||
context: grpc.ServicerContext, | ||
) -> global___QueryAccountResponse: ... | ||
|
||
# Params queries all parameters. | ||
@abc.abstractmethod | ||
def Params(self, | ||
request: global___QueryParamsRequest, | ||
context: grpc.ServicerContext, | ||
) -> global___QueryParamsResponse: ... | ||
|
||
|
||
def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
@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 typing | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... | ||
|
||
# GenericAuthorization gives the grantee unrestricted permissions to execute | ||
# the provided method on behalf of the granter's account. | ||
class GenericAuthorization(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... | ||
MSG_FIELD_NUMBER: builtins.int | ||
# Msg, identified by it's type URL, to grant unrestricted permissions to execute | ||
msg: typing.Text = ... | ||
def __init__(self, | ||
*, | ||
msg : typing.Text = ..., | ||
) -> None: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"msg",b"msg"]) -> None: ... | ||
global___GenericAuthorization = GenericAuthorization | ||
|
||
# Grant gives permissions to execute | ||
# the provide method with expiration time. | ||
class Grant(google.protobuf.message.Message): | ||
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: ... | ||
def __init__(self, | ||
*, | ||
authorization : typing.Optional[google.protobuf.any_pb2.Any] = ..., | ||
expiration : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration"]) -> None: ... | ||
global___Grant = Grant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
|
||
from .authz_pb2 import * |
Oops, something went wrong.